joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4208fe
Capabilities:
Encode data using xor

Disassembly:
popfd
jne 0x420940
mov bl, 0x1d
call 0xf9eec3ef
xor ebp, dword [ebx + 0x9ca8ccc]
imul ebp, dword [0x2f5a4589], 0x6dac3879
jl 0x420979
pop edx
push ds
shr dword [ecx - 0x13], 0x84
add al, 0xaf
int1
jmp 0x42095f
cmp al, 0x81
lodsb al, byte [esi]
xchg edx, eax
adc eax, 0x33dd2cd2
stosb byte es:[edi], al
pushfd
cmp eax, 0x736cdf5a
invalid
inc edi
outsb dx, byte [esi]
xchg esp, eax
dec ebp
in al, dx
sub al, 0x59
imul eax, eax, 0xfffffffe
pop ds
add dword [esi - 0x140706c4], esp
pop edi
sbb ebp, dword [ebp + edi*8 + 0x4a]
cmp esp, dword [ebp - 0x32950bf7]
push 0xffffffffffffffcd
std
sub byte [0xdd192eec], dh
adc bl, byte [0xe81b7918]
mov ecx, 0xefee4cbe
ficomp word [esi]
popfd
or eax, 0x2d9e6e38
dec ebp
push ds
and eax, 0x7974590b
sub cl, byte [eax]
sbb byte ds:[ecx + 0x1bc4dd0a], bl
xor dword [edi + 0x8f2d01b], edi
fsubr dword [edi + ecx - 0x73d0f047]
dec edx
mov cl, 0xe9
invalid

Function at 0x43788a
Capabilities:
Encode data using xor

Disassembly:
pop es
xchg ebx, eax
shl byte [eax], 0xf4
sub dword [ebp - 0x19425303], eax
or al, 0xc1
bound ecx, qword [esi + esi*8]
cmpsd dword [esi], dword es:[edi]
sub al, 0x56
mov dword [0x297ed661], eax
jne 0x43780e
mov ebp, 0x30210359
pop ds
mov al, byte [0xd21ccc09]
push esi
call [ebx + esi]
lodsd eax, dword [esi]
and eax, 0x68f60992
push cs
sub al, 0x17
in eax, dx
pushfd
lahf
sbb dword [ebx], ecx
push ss
enter 0xffffffffffffaca7, 0xffffffffffffff96
fucomp st(2)
jmp 0x437831
out dx, al
sbb byte [esi + 0x491de5d2], cl
dec ecx
sub ebx, dword [eax + 0xd575bb7]
lcall 0xb3bf, 0xf669eea1
lea edx, [edx]
int1
pop ss
in al, dx
not dh
pop es
fmul dword [eax - 0x691341b3]
jge 0x4377c5
xchg ebx, eax
xchg edx, eax
mov bl, ah
mov ah, 0xcd
arpl word [ebp - 0x30], di
das
out dx, al
dec ebp
dec ebp
jge 0x437814
add dword [esi + 0x7da3a4aa], ecx
and dword [ebp - 0x5a9a4fa5], eax
jge 0x4378b4
test byte [ebp + 0x5b], ah
mov al, 0x65
movsd dword es:[edi], dword [esi]
out dx, eax
daa
mov dh, 0x19
fst st(6)
cmpsd dword [esi], dword es:[edi]
cmp byte [ebp + 0x2efdfb82], 0x7e
fcom qword [edx]
fisub dword [edi - 0x3831489b]
lea ebx, [ebx]
push eax
push ds
add dword [ebx - 0x35], edx
mov byte [edx], bl
adc ch, ah
or edx, ebp
xor eax, 0xb5d70d14
mov dh, 0xbd
enter 0xffffffffffffcbcc, 0xffffffffffffffc0
cdq
xchg ebp, eax
loop 0x437891
jnp fcn.004378f6
pop ds
mov dl, 0x19
inc edi
mov dword [0xbdb6a97c], eax
mov byte [ebx + 2], dl
adc dword [ebx], 0xb
jmp dword [edi]

Function at 0x4a23f2
Capabilities:
Encode data using xor

Disassembly:
nop
jno 0x4a23f3
push esi
xor al, ah
mov word [esi - 0x2ee13809], cs
invalid
invalid
push ds
invalid
pop ds
fnstcw word [eax + 0x42]
xchg esp, eax
jl fcn.004a23f2
nop
in eax, 0x89
cmp al, 0x81

Function at 0x4ac1d2
Capabilities:
Encode data using xor

Disassembly:
insb byte es:[edi], dx
sbb al, 0xd3
mov dh, byte [eax]
push esp
sar dword [ebp + 0x76eca900], cl
and byte [edi + 1], dh
push ecx
invalid
Function at 0x4bac9d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c43a8
cmp edx, dword [eax]
je 0x4bacbf
add eax, 8
inc ecx
cmp eax, 0x4c4438
jl 0x4bacb0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c43a8]
jne 0x4baded
mov eax, dword [0x4c8d2c]
cmp eax, 1
je 0x4badc7
test eax, eax
jne 0x4bacf0
cmp dword [0x4c42d0], 1
je 0x4badc7
cmp edx, 0xfc
je 0x4baded
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bad27
lea eax, [ebp - 0x1a4]
push 0x4bfd10
push eax
call fcn.004bb680
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbb10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bad6a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbb10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfd0c
push edi
call fcn.004bd9e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfcf0
push eax
call fcn.004bb680
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb690
lea eax, [ebp - 0xa0]
push 0x4bfcec
push eax
call fcn.004bb690
push dword [esi + 0x4c43ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb690
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfcc4
push eax
call fcn.004bd954
add esp, 0x2c
pop edi
jmp 0x4baded
lea eax, [ebp + 8]
lea esi, [esi + 0x4c43ac]
push 0
push eax
push dword [esi]
call fcn.004bbb10
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4042e8
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x2b50ecc8
mov edi, 0x36cf32f
xor edi, edx
mov edx, 0x72a5127f
xor edi, edx
xor edi, 0x12f8034
mov ebx, 0xb48040
mov edx, 0x5b020711
xor ebx, edx
xor edi, ebx
xor ecx, ecx
leave
mov ebx, 0
mov ecx, 0
xor ebx, ecx
mov ecx, 0x7623cb6d
mov eax, 0x7623cb6d
xor eax, ecx
xor ebx, eax
xor ebx, ebx
jmp 0x403fbc

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x1037a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1037a1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1037a07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1037a06a
add dl, dl
jne 0x1037a089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1037a0dc
xor eax, eax
add dl, dl
jne 0x1037a096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1037a17d
add dl, dl
jne 0x1037a0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1037a0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1037a0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1037a0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1037a0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1037a075
mov eax, 1
add dl, dl
jne 0x1037a0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1037a0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1037a0e1
sub eax, ebx
mov ebx, 1
jne 0x1037a128
mov ecx, 1
add dl, dl
jne 0x1037a10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1037a119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1037a105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1037a075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1037a13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1037a14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1037a136
cmp eax, 0x7d00
jae 0x1037a16d
cmp eax, 0x500
jb 0x1037a168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1037a075
cmp eax, 0x7f
ja 0x1037a170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1037a075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1037a19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1037a075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40149d
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x470690]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x401532
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ef
cmp dword [ebp + 0x10], ebx
jne 0x401526
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.0040149d
test eax, eax
jne 0x401501
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d6
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d05
cmp eax, ebx
je 0x401539
push ebx
push dword [0x470690]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x401532
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x470690], ebx
jne 0x40152f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152f
jmp 0x401532
Function at 0x402f49
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42e1c4]
sub esi, dword [0x4321d0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
mov dword [0x470600], eax
cmp esi, ebx
jle 0x4030a7
push dword [0x4321cc]
call fcn.00402f32
push ebx
push ebx
push dword [0x4321d0]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42e1c0], esi
mov dword [0x41e134], ebx
mov ebp, 0x4261c0
mov eax, dword [0x4321c8]
sub eax, dword [0x4321cc]
mov edi, 0x4000
cmp eax, edi
jg 0x402fbe
mov edi, eax
push edi
mov esi, 0x42e1c8
push esi
call fcn.00402f00
test eax, eax
je 0x4030b9
add dword [0x4321cc], edi
mov dword [0x426150], esi
mov dword [0x426154], edi
cmp dword [0x4705bc], ebx
je 0x403015
cmp dword [0x470680], ebx
jne 0x403015
mov eax, dword [0x42e1c0]
sub eax, dword [0x42e1c4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4321d0]
mov dword [0x41e134], eax
call fcn.00402e5e
pop ecx
mov ecx, 0x426138
mov dword [0x426158], ebp
mov dword [0x42615c], 0x8000
call fcn.00406d3e
test eax, eax
js 0x4030be
mov esi, dword [0x426158]
sub esi, ebp
je 0x403073
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030c3
cmp esi, dword [esp + 0x10]
jne 0x4030c3
add dword [0x4321d0], esi
cmp dword [0x426154], ebx
jne 0x402fe4
jmp 0x40307f
cmp dword [0x426154], ebx
jne 0x4030be
cmp edi, ebx
je 0x4030be
mov eax, dword [0x42e1c4]
mov ecx, eax
sub ecx, dword [0x4321d0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402fa8
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e5e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x4030b1
push 0xfffffffffffffffd
pop eax
jmp 0x4030b1
push 0xfffffffffffffffe
jmp 0x4030c0
Function at 0x4030c7
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4030f1
add eax, dword [0x4705f8]
push edi
push edi
push eax
push dword [0x40a014]
mov dword [0x42e1c4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f49
cmp eax, edi
jl 0x4031ea
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031e6
cmp dword [ebp - 4], esi
jne 0x4031e6
push dword [ebp + 8]
add dword [0x42e1c4], esi
call fcn.00402f49
mov dword [ebp - 8], eax
cmp eax, edi
jl 0x4031e9
cmp dword [ebp + 0x10], edi
jne 0x4031b5
cmp dword [ebp + 8], edi
jle 0x4031e1
mov esi, 0x42e1c8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403165
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031e6
cmp edi, dword [ebp - 4]
jne 0x4031e6
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031b1
cmp dword [ebp + 0x14], edi
jne 0x4031b1
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42e1c4], eax
cmp dword [ebp + 8], 0
jg 0x403158
jmp 0x4031e1
push 0xfffffffffffffffe
jmp 0x4031e8
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031c0
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031e6
mov eax, dword [ebp - 4]
add dword [0x42e1c4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031e9
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405836
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x456268
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x456268], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405871
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a27
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405a44
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405a47
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405a76
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4088f4]
mov dword [ebp - 8], eax
mov eax, dword [0x4088f8]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ac6
test edi, edi
jne 0x405a83
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405ac0

Function at 0x405aca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b43
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b2c
cmp dword [ebp + 0x14], 1
je 0x405b31
cmp dword [ebp + 0x14], 2
je 0x405b31
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x406218
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4562b0
push esi
call fcn.00405c00
push esi
call fcn.00405950
mov edi, eax
test edi, edi
jne 0x406239
xor eax, eax
jmp 0x406296
push edi
call fcn.00405c2f
test byte [0x470608], 0x80
je 0x406255
movzx eax, word [edi]
test ax, ax
je 0x406235
cmp eax, 0x5c
je 0x406235
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406277
push esi
call fcn.00405cde
test eax, eax
je 0x406271
test byte [eax], 0x10
je 0x40629b
push esi
call fcn.004061eb
push esi
call ebx
cmp eax, edi
jg 0x406262
push esi
call fcn.004061bc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406295
Function at 0x406533
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089dc
mov ebx, 0x45a2b8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x406581
push 1
push ebp
push edi
call fcn.00405a47
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4066fc
cmp eax, esi
jg 0x4066fc
push esi
mov edi, 0x45f910
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x4066fc
cmp eax, esi
jg 0x4066fc
push ebp
push ebp
push esi
push 0x45aab8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x4066fc
push ebp
push ebp
push esi
mov esi, 0x45b108
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x4066fc
push esi
push 0x45aab8
push str._s_s_r_n
push 0x45b508
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4705bc]
push dword [eax + 0x128]
push edi
call fcn.0040629f
push 4
push 0xc0000000
push edi
call fcn.00405a47
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x4066fc
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x4066f2
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4066f2
cmp edi, dword [esp + 0x10]
jne 0x4066f2
push str._Rename__r_n
push esi
call fcn.004059ad
cmp eax, ebp
jne 0x406685
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4066ba
push 0x4089d0
add eax, 0xa
push eax
call fcn.004059ad
mov ebp, eax
test ebp, ebp
je 0x4066b8
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
cmp ecx, ebp
jbe 0x4066af
sub eax, ecx
mov dl, byte [ecx]
mov byte [eax + ecx], dl
dec ecx
cmp ecx, ebp
ja 0x4066a5
sub ebp, esi
lea eax, [ebp + 1]
xor ebp, ebp
jmp 0x4066bc
xor ebp, ebp
mov eax, edi
push ebx
push 0x45b508
add eax, esi
push eax
call fcn.00405a03
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret