joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f640
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496942
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x42c], 0
xor eax, eax
mov word [ebp - 0x424], ax
push 0x40e
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.00472990
add esp, 0xc
push 0x207
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x428]
call fcn.0042deb0
mov dword [ebp - 4], 1
push 0x4a6134
lea ecx, [ebp - 0x428]
call fcn.0042e350
push 0x4a6138
lea ecx, [ebp - 0x428]
call fcn.0042e180
lea ecx, [ebp - 0x428]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042de60
mov edx, dword [ebp - 0x42c]
or edx, 1
mov dword [ebp - 0x42c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x428]
call fcn.0042ed20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 4

Function at 0x45f730
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49699f
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x438], ecx
mov dword [ebp - 0x434], 0
lea ecx, [ebp - 0x42c]
call fcn.0040b370
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.0042de40
mov byte [ebp - 4], 2
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.00472990
add esp, 0xc
push 0
push 0x26
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov word [ebp - 0x424], ax
push 0x206
push 0
lea ecx, [ebp - 0x422]
push ecx
call fcn.00472990
add esp, 0xc
push str.SDefender
push str.Solidify
push str._s_s_
push 0x104
lea edx, [ebp - 0x424]
push edx
call fcn.00474cf2
add esp, 0x14
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.00472bf6
add esp, 8
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x430]
call fcn.0042e120
push 0x4a6188
lea ecx, [ebp - 0x430]
call fcn.0042e350
lea eax, [ebp - 0x430]
push eax
mov ecx, dword [ebp + 8]
call fcn.0042de60
mov ecx, dword [ebp - 0x434]
or ecx, 1
mov dword [ebp - 0x434], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x430]
call fcn.0042ed20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x42c]
call fcn.0040b430
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 4
Function at 0x45f8a0
Capabilities:
Check os version
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x128], 0x11c
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x45f8df
push 0x4a618c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x124], 5
jne 0x45f927
cmp dword [ebp - 0x120], 0
jne 0x45f8f5
xor eax, eax
jmp 0x45f929
cmp dword [ebp - 0x120], 1
jne 0x45f90e
movzx ecx, word [ebp - 0x14]
cmp ecx, 2
jge 0x45f90e
mov eax, 1
jmp 0x45f929
cmp dword [ebp - 0x120], 2
jne 0x45f927
movzx edx, word [ebp - 0x14]
cmp edx, 1
jge 0x45f927
mov eax, 1
jmp 0x45f929
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret

Function at 0x45ff20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x218], 0
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00472990
add esp, 0xc
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x21c], 0
push 0
mov edx, dword [ebp + 8]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
je 0x4600e6
mov dword [ebp - 0x228], 0
mov eax, dword [ebp - 0x21c]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047159e
add esp, 4
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x228], eax
mov ecx, dword [ebp - 0x21c]
lea edx, [ecx + ecx + 4]
push edx
push 0
mov eax, dword [ebp - 0x228]
push eax
call fcn.00472990
add esp, 0xc
mov ecx, dword [ebp - 0x228]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4600c1
lea ecx, [ebp - 0x214]
push ecx
lea edx, [ebp - 0x224]
push edx
push 0x4a6408
mov eax, dword [ebp - 0x228]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4600c1
mov ecx, dword [ebp - 0x224]
movzx edx, word [ecx + 2]
push edx
mov eax, dword [ebp - 0x224]
movzx ecx, word [eax]
push ecx
push str.StringFileInfo_04x_04xProductVersion
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00474cf2
add esp, 0x14
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x210]
push edx
mov eax, dword [ebp - 0x228]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4600c1
mov ecx, dword [ebp + 0x10]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x220]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00475aa8
add esp, 0x10
mov dword [ebp - 0x218], 1
mov edx, dword [ebp - 0x228]
mov dword [ebp - 0x230], edx
mov eax, dword [ebp - 0x230]
push eax
call fcn.0047311d
add esp, 4
mov dword [ebp - 0x228], 0
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 0xc
Function at 0x460660
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496ae4
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4c1280]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a7c0
add esp, 8
lea ecx, [ebp - 0x3c]
call fcn.004080d0
mov dword [ebp - 4], 0
push 1
lea ecx, [ebp - 0x3c]
call fcn.00408140
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x460726
push 0
lea ecx, [ebp - 0x3c]
call fcn.004062e0
push eax
push 0
push 0
push 4
push 1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x460724
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp + 8]
push edx
push str.set__s_0x_x
push 0x4a6524
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00408130
jmp 0x4607e8
jmp 0x460774
lea ecx, [ebp - 0x3c]
call fcn.00441b50
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x460774
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4a6554
push 0x4a6548
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00408130
jmp 0x4607e8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4607ca
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4607ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 8]
push ecx
push str.create__s_0x_x
push 0x4a6574
call fcn.00401340
add esp, 4
push eax
call fcn.00401590
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00408130
jmp 0x4607e8
mov dword [ebp - 0x10], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00408130
xor edx, edx
jne 0x46068f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x464c00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x464c10
xor eax, eax
jmp 0x464dad
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x464d6e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a8440]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a8440]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4a8440]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a8440]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a8440]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4a8440]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a8440]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a8440]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x464c19
cmp dword [ebp + 0x10], 0
je 0x464da7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a8440]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x464d74
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x464db0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a8440]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a8440]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret

Function at 0x465da0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x465def
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x465de5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x465e49
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x18]
jbe 0x465e0f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x18]
sub edx, dword [ecx + 0x1c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x1c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00476e50
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x1c]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4678e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x4678fa
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0xffffffff
je 0x467904
mov eax, 0x1000000
jmp 0x4679de
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [ebp - 0x18]
add eax, 0x244
push eax
call fcn.00472967
add esp, 4
mov ecx, dword [ebp - 0x18]
mov dx, word [ecx + eax*2 + 0x242]
mov word [ebp - 8], dx
movzx eax, word [ebp - 8]
cmp eax, 0x5c
je 0x467962
movzx ecx, word [ebp - 8]
cmp ecx, 0x2f
je 0x467962
push 0x4a88d8
mov edx, dword [ebp - 0x18]
add edx, 0x244
push edx
call fcn.00472bf6
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x467996
push 1
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x10], eax
xor ecx, ecx
cmp dword [ebp - 0x10], 0xffffffff
setne cl
mov byte [ebp - 0x11], cl
movzx edx, byte [ebp - 0x11]
test edx, edx
jne 0x467996
mov eax, 0x2000000
jmp 0x4679de
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00465a80
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4679bc
mov eax, dword [ebp - 0xc]
jmp 0x4679de
mov ecx, dword [ebp - 4]
push ecx
call fcn.00466230
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
jne 0x4679dc
mov eax, 0x200
jmp 0x4679de
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x468490
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x4684c4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4684c4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x4684d3
jmp 0x4685de
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x218], edx
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax]
test ecx, ecx
je 0x468525
mov edx, dword [ebp - 0x218]
movzx eax, word [edx]
cmp eax, 0x2f
je 0x46850b
mov ecx, dword [ebp - 0x218]
movzx edx, word [ecx]
cmp edx, 0x5c
jne 0x468514
mov eax, dword [ebp - 0x218]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x218]
add ecx, 2
mov dword [ebp - 0x218], ecx
jmp 0x4684e2
mov edx, dword [ebp - 4]
mov dword [ebp - 0x214], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x468588
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
shl ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x420]
push eax
call fcn.00476e50
add esp, 0xc
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0xc]
sar ecx, 1
xor edx, edx
mov word [ebp + ecx*2 - 0x420], dx
lea eax, [ebp - 0x420]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00468490
add esp, 8
mov edx, dword [ebp - 0x214]
add edx, 2
mov dword [ebp - 0x214], edx
xor eax, eax
mov word [ebp - 0x210], ax
cmp dword [ebp + 8], 0
je 0x4685aa
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.00472c24
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.00472bf6
add esp, 8
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4685de
push 0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret
Function at 0x469fb0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496e25
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], ecx
mov dword [ebp - 0x238], 0
mov dword [ebp - 4], 2
push 0x4a908c
lea ecx, [ebp - 0x2c]
call fcn.00401c70
mov byte [ebp - 4], 3
xor eax, eax
mov word [ebp - 0x234], ax
push 0x206
push 0
lea ecx, [ebp - 0x232]
push ecx
call fcn.00472990
add esp, 0xc
mov ecx, dword [ebp - 0x23c]
call fcn.00401ff0
push eax
push 0x104
lea edx, [ebp - 0x234]
push edx
push 0x4a9090
lea ecx, [ebp + 0x28]
call fcn.00401ff0
push eax
lea ecx, [ebp + 0xc]
call fcn.00401ff0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401f70
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401cb0
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401ce0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401ce0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x28]
call fcn.00401ce0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 0x3c

Function at 0x46a990
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x7c], ecx
xor eax, eax
cmp dword [ebp + 0xc], 0
setne al
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 4
lea edx, [ebp - 8]
push edx
push 0x222070
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x46aa20
xor ecx, ecx
mov word [ebp - 0x78], cx
push 0x62
push 0
lea edx, [ebp - 0x76]
push edx
call fcn.00472990
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str.set_file_protect:_d_handle:0x_x_0x_x_n
push 0x32
lea edx, [ebp - 0x78]
push edx
call fcn.00474cf2
add esp, 0x18
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 8
Function at 0x46ac80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d4
mov eax, dword [0x4c1280]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1d4], ecx
xor eax, eax
mov word [ebp - 0x108], ax
push 0xfe
push 0
lea ecx, [ebp - 0x106]
push ecx
call fcn.00472990
add esp, 0xc
push 0x4a967c
push 0x4a9694
push 0x80
lea edx, [ebp - 0x108]
push edx
call fcn.00474cf2
add esp, 0x10
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 8]
cmp dword [edx], 0xffffffff
je 0x46ad08
mov eax, 1
jmp 0x46ad5a
xor eax, eax
mov word [ebp - 0x1d0], ax
push 0xc6
push 0
lea ecx, [ebp - 0x1ce]
push ecx
call fcn.00472990
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x108]
push edx
push str.create__s_failed_0x_x_n
push 0x64
lea eax, [ebp - 0x1d0]
push eax
call fcn.00474cf2
add esp, 0x14
lea ecx, [ebp - 0x1d0]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00472a79
mov esp, ebp
pop ebp
ret 4
Function at 0x4712f6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c3a94], 0
push esi
jne 0x471269
call fcn.0047118f
test eax, eax
je 0x4712ac
mov eax, dword [0x4c3a94]
cmp eax, 1
jne 0x47128a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4712ac
pop esi
ret
push eax
call dword [0x4c3a9c]
test eax, eax
jne 0x4712f4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4712b0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c3a94]
call dword [0x4c3a9c]
mov edi, eax
test edi, edi
je 0x4712d5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4712f1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4c3a94]
call dword [0x4c3a98]
add edi, 0x10
cmp edi, esi
jb 0x4712dd
mov eax, edi
pop edi
pop esi
ret
jmp 0x471256

Function at 0x472a79
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c1280]
jne 0x472a83
repz ret
jmp fcn.0047d923

Function at 0x479e60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x479e91
call fcn.0047a373
mov dword [eax], esi
call fcn.0047a360
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00475d29
add esp, 0x14
push 0x16
pop eax
jmp 0x479ee6
test dword [ebp + 0xc], 0xfffffff9
jne 0x479e6d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x479ebe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047a386
pop ecx
call fcn.0047a360
mov eax, dword [eax]
jmp 0x479ee6
test al, 0x10
jne 0x479ee4
test al, 1
je 0x479ee4
test byte [ebp + 0xc], 2
je 0x479ee4
call fcn.0047a373
mov dword [eax], 5
call fcn.0047a360
mov dword [eax], 0xd
jmp 0x479eb5
xor eax, eax
pop esi
pop ebp
ret