joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f4e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x80
push esi
mov dword [esp + 4], 0x10d040e
xor esi, esi
mov dword [esp + 8], 0x80b0f02
mov dword [esp + 0xc], 0xc060a03
mov dword [esp + 0x10], 0x7000905
mov dword [esp + 0x14], 0xe08010f
mov dword [esp + 0x18], 0x4030b06
mov dword [esp + 0x1c], 0xd020709
mov dword [esp + 0x20], 0xa05000c
mov dword [esp + 0x24], 0xe09000a
mov dword [esp + 0x28], 0x50f0306
mov dword [esp + 0x2c], 0x70c0d01
mov dword [esp + 0x30], 0x802040b
mov dword [esp + 0x34], 0x30e0d07
mov dword [esp + 0x38], 0xa090600
mov dword [esp + 0x3c], 0x5080201
mov dword [esp + 0x40], 0xf040c0b
mov dword [esp + 0x44], 0x1040c02
mov dword [esp + 0x48], 0x60b0a07
mov dword [esp + 0x4c], 0xf030508
mov dword [esp + 0x50], 0x90e000d
mov dword [esp + 0x54], 0xf0a010c
mov dword [esp + 0x58], 0x8060209
mov dword [esp + 0x5c], 0x4030d00
mov dword [esp + 0x60], 0xb05070e
mov dword [esp + 0x64], 0xe020b04
mov dword [esp + 0x68], 0xd08000f
mov dword [esp + 0x6c], 0x7090c03
mov dword [esp + 0x70], 0x1060a05
mov dword [esp + 0x74], 0x408020d
mov dword [esp + 0x78], 0x10b0f06
mov dword [esp + 0x7c], 0xe03090a
mov dword [esp + 0x80], 0x70c0005
nop dword [eax]
mov ecx, esi
mov edx, esi
sar ecx, 4
and edx, 0xf
movzx eax, byte [esp + ecx + 4]
shl al, 4
or al, byte [esp + edx + 0x14]
mov byte [esi + 0x4d7490], al
movzx eax, byte [esp + ecx + 0x24]
shl al, 4
or al, byte [esp + edx + 0x34]
mov byte [esi + 0x4d7190], al
movzx eax, byte [esp + ecx + 0x44]
shl al, 4
or al, byte [esp + edx + 0x54]
mov byte [esi + 0x4d7390], al
movzx eax, byte [esp + ecx + 0x64]
shl al, 4
or al, byte [esp + edx + 0x74]
mov byte [esi + 0x4d7290], al
inc esi
cmp esi, 0x100
jl 0x42f5f0
pop esi
add esp, 0x80
ret
Function at 0x431270
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x628]
sub esp, 0x628
push 0xffffffffffffffff
push 0x4a0c30
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp + 0x624], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x630]
lea ecx, [ebp - 0x24]
mov ebx, dword [ebp + 0x634]
call fcn.004075a0
mov dword [ebp - 4], 0
mov eax, dword [0x4d7178]
mov dword [ebp], 0
mov dword [ebp], 0x4d7178
test eax, eax
je 0x4312e4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x4d7154
call fcn.004073f0
test al, al
jne 0x431328
mov ecx, 0x4d7154
call fcn.00407700
lea ecx, [ebp - 0x24]
cmp ecx, eax
je 0x4313dd
mov ecx, 0x4d7154
call fcn.00407700
mov ecx, eax
cmp dword [eax + 0x14], 8
jb 0x43131f
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
jmp 0x4313d5
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.0047a110
add esp, 0xc
lea eax, [ebp + 0x418]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x431479
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 4]
push eax
call fcn.0047a110
add esp, 0xc
lea eax, [ebp + 4]
push 0x208
push eax
lea eax, [ebp + 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4313be
test eax, eax
je 0x4313be
add eax, eax
cmp eax, 0x412
jae 0x4314cc
xor ecx, ecx
mov word [ebp + eax + 4], cx
lea eax, [ebp + 4]
push eax
call fcn.00407910
add esp, 4
push eax
lea eax, [ebp + 4]
jmp 0x4313d4
lea eax, [ebp + 0x418]
push eax
call fcn.00407910
add esp, 4
push eax
lea eax, [ebp + 0x418]
push eax
lea ecx, [ebp - 0x24]
call fcn.004077b0
mov byte [ebp - 4], 0
mov eax, dword [0x4d7178]
test eax, eax
je 0x4313f1
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp - 0x24]
mov dword [ebp], 0
push eax
mov ecx, esi
call fcn.00431200
test al, al
je 0x431410
mov bl, 1
jmp 0x431496
push 0x20c
lea eax, [ebp + 0x418]
push 0
push eax
call fcn.0047a110
add esp, 0xc
lea eax, [ebp + 0x418]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x431494
xor eax, eax
mov word [ebp + 0x622], ax
lea eax, [ebp + 0x418]
push eax
call fcn.00407910
add esp, 4
lea ecx, [ebp - 0x24]
push eax
lea eax, [ebp + 0x418]
push eax
call fcn.004077b0
push ebx
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00431200
mov bl, al
jmp 0x431496
mov byte [ebp - 4], 0
mov eax, dword [0x4d7178]
test eax, eax
je 0x43148d
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004074c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x624]
xor ecx, ebp
call fcn.00477254
lea esp, [ebp + 0x628]
pop ebp
ret 8
call fcn.004778ae
int3
Function at 0x4314e0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4c9ef0
push 0x478c90
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4d404c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x434], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00407410
mov edx, esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00431600
mov bl, al
mov byte [ebp - 0x42d], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x43156e
test bl, bl
jne 0x4315dd
cmp edi, 0x1a
jne 0x4315dd
mov ecx, esi
call fcn.00407410
push 0x410
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.0047a110
add esp, 0xc
push 0x207
lea eax, [ebp - 0x42c]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x42c]
push eax
call fcn.00407910
add esp, 4
push eax
lea eax, [ebp - 0x42c]
push eax
mov ecx, esi
call fcn.004077b0
mov ecx, esi
call fcn.004073f0
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00477254
mov esp, ebp
pop ebp
ret
Function at 0x443730
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x44373b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00443750
Function at 0x4576a0
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x4a4ee2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x4576e4
call fcn.00457830
cmp byte [0x4d714c], 0
jne 0x4576f7
mov eax, 0x80000001
jmp 0x45780b
mov eax, dword [esi]
test eax, eax
jne 0x457762
push 8
call fcn.00477265
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.00477265
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.0047a110
add esp, 0x14
mov dword [ebp], 0x11c
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x457751
cmp dword [ebp + 4], 6
mov eax, dword [edi + 4]
setae cl
mov byte [eax], cl
mov dword [ebp - 4], 0xffffffff
mov dword [esi], edi
mov dword [edi], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x4577fa
call fcn.0041d660
test al, al
jne 0x45779c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.0041dbd0
test al, al
je 0x4577fa
mov ecx, dword [esi]
add ecx, 4
call fcn.0041d180
call fcn.0041d660
test al, al
je 0x4577fa
push str.Advapi32.dll
lea ecx, [ebp - 0x28]
call fcn.00407560
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.00415dc0
mov ecx, eax
call fcn.00415e80
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004074c0
test edi, edi
je 0x4577fa
push str.RegOpenCurrentUser
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4577fa
push dword [esi]
push 0x20019
call eax
test eax, eax
je 0x4577fa
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x457809
mov dword [eax], 0x80000001
mov eax, dword [esi]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.00477254
lea esp, [ebp + 0x120]
pop ebp
ret 4
Function at 0x458eb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a525f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d404c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.004074c0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004074c0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004074c0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004074c0
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.004074c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45a130
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a542f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d404c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.00408220
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00408220
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00408220
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00408220
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.00408220
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00408220
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x45bb90
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a514f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4d404c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.004075c0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.004075c0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.004075c0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.004075c0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.004075c0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.004075c0
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x45cd70
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a591f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4d404c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004075a0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004075a0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004075a0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004075a0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.004075a0
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.004075a0
mov byte [ebp - 4], 5
mov byte [esi + 0x60], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45d500
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x4d404c]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x45d582
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x45d582
test ecx, ecx
je 0x45d57e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x45d540
xor eax, eax
jmp 0x45d587
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x45d591
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00477254
add esp, 0xc
ret 0xc

Function at 0x45dfd0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4d404c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ecx + 0x10]
cmp eax, 0xffffffff
je 0x45e043
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45e01e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45e043
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, edi
pop edi
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00477254
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00477254
add esp, 8
ret 4
Function at 0x45e400
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4d404c]
xor eax, esp
mov dword [esp + 4], eax
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x45e473
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45e44e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45e473
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, edi
pop edi
adc eax, 0
mov dword [esi], ecx
mov dword [esi + 4], eax
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00477254
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00477254
add esp, 8
ret 4
Function at 0x464a00
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x4d404c]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x464a65
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x464a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x464a65
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00477254
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00477254
add esp, 8
ret 4
Function at 0x464b80
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6938
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x464bc9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x464d1b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x464ce6
test eax, eax
je 0x464ce6
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x464ce9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x464c6b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x464c5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x464c6b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x464c79
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.004075c0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x464ce6
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x464c24
jmp 0x464ce9
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x464d12
test edx, edx
je 0x464d0e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x464be0
mov al, 1
jmp 0x464d1d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x464d1b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477254
mov esp, ebp
pop ebp
ret 0x10
Function at 0x465d40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6acd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00475cb0
add esp, 4
mov dword [ebp - 4], 0
push str.config.ini
lea ecx, [ebp - 0x264]
call fcn.00407560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0040e420
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.004074c0
lea ecx, [ebp - 0x234]
push ecx
call fcn.0040ac50
add esp, 4
movzx edx, al
test edx, edx
jne 0x465e0a
mov byte [ebp - 0x2c5], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.004074c0
mov al, byte [ebp - 0x2c5]
jmp 0x465f4b
push 0x20a
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.0047a110
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.00407400
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x4b8ea0
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.Application
lea ecx, [ebp - 0x27c]
call fcn.00407560
mov byte [ebp - 4], 4
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.0040e420
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x27c]
call fcn.004074c0
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x294]
call fcn.00407560
mov byte [ebp - 4], 7
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x2c4]
push edx
call fcn.0040e420
add esp, 0xc
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2d0]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407520
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c4]
call fcn.004074c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x294]
call fcn.004074c0
mov edx, dword [ebp + 8]
push edx
call fcn.0040aab0
add esp, 4
mov byte [ebp - 0x2c6], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.004074c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.004074c0
mov al, byte [ebp - 0x2c6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477254
mov esp, ebp
pop ebp
ret
Function at 0x46a9a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a6acd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x24c]
push eax
call fcn.00476060
add esp, 4
mov dword [ebp - 4], 0
push str.config.ini
lea ecx, [ebp - 0x264]
call fcn.00407560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0040e420
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x264]
call fcn.004074c0
lea ecx, [ebp - 0x234]
push ecx
call fcn.0040ac50
add esp, 4
movzx edx, al
test edx, edx
jne 0x46aa6a
mov byte [ebp - 0x2c5], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.004074c0
mov al, byte [ebp - 0x2c5]
jmp 0x46abab
push 0x20a
push 0
lea eax, [ebp - 0x21c]
push eax
call fcn.0047a110
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.00407400
push eax
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 0x4b8ea0
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.Application
lea ecx, [ebp - 0x27c]
call fcn.00407560
mov byte [ebp - 4], 4
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
call fcn.0040e420
add esp, 0xc
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x27c]
call fcn.004074c0
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x294]
call fcn.00407560
mov byte [ebp - 4], 7
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x2ac]
push ecx
lea edx, [ebp - 0x2c4]
push edx
call fcn.0040e420
add esp, 0xc
mov dword [ebp - 0x2cc], eax
mov eax, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d0], eax
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x2d0]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407520
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x2c4]
call fcn.004074c0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x294]
call fcn.004074c0
mov edx, dword [ebp + 8]
push edx
call fcn.0040aab0
add esp, 4
mov byte [ebp - 0x2c6], al
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2ac]
call fcn.004074c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.004074c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.004074c0
mov al, byte [ebp - 0x2c6]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00477254
mov esp, ebp
pop ebp
ret