joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431200
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4ca410
push 0x479170
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.004070d0
mov edx, esi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00431320
mov bl, al
mov byte [ebp - 0x42d], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x43128e
test bl, bl
jne 0x4312fd
cmp edi, 0x1a
jne 0x4312fd
mov ecx, esi
call fcn.004070d0
push 0x410
push 0
lea eax, [ebp - 0x42c]
push eax
call fcn.0047a5f0
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.004075d0
add esp, 4
push eax
lea eax, [ebp - 0x42c]
push eax
mov ecx, esi
call fcn.00407470
mov ecx, esi
call fcn.004070b0
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.00477737
mov esp, ebp
pop ebp
ret
Function at 0x443670
Capabilities:
Hash data with crc32

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

Disassembly:
push ebp
lea ebp, [esp - 0x120]
sub esp, 0x120
push 0xffffffffffffffff
push 0x4a53e2
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 [0x4d754c], 0
jne 0x4576f7
mov eax, 0x80000001
jmp 0x45780b
mov eax, dword [esi]
test eax, eax
jne 0x457762
push 8
call fcn.00477748
mov edi, eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
push 1
call fcn.00477748
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 4]
push eax
call fcn.0047a5f0
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.0041d370
test al, al
jne 0x45779c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [esi]
push eax
add ecx, 4
call fcn.0041d8e0
test al, al
je 0x4577fa
mov ecx, dword [esi]
add ecx, 4
call fcn.0041ce90
call fcn.0041d370
test al, al
je 0x4577fa
push str.Advapi32.dll
lea ecx, [ebp - 0x28]
call fcn.00407220
mov dword [ebp - 4], 2
lea eax, [ebp - 0x28]
push eax
call fcn.00415ab0
mov ecx, eax
call fcn.00415b70
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00407180
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.00477737
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 0x4a575f
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.00407180
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00407180
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00407180
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00407180
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00407180
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00407180
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 0x4a592f
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.00407f40
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00407f40
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00407f40
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00407f40
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.00407f40
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00407f40
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 0x4a564f
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.00407280
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.00407280
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.00407280
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.00407280
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.00407280
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.00407280
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 0x4a5e1f
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.00407260
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00407260
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00407260
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00407260
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00407260
mov byte [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00407260
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.00477737
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.00477737
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00477737
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.00477737
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.00477737
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.00477737
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00477737
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 0x4a6e38
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.00407280
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.00477737
mov esp, ebp
pop ebp
ret 0x10
Function at 0x46d6b0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a85c1
mov eax, dword fs:[0]
push eax
sub esp, 0x2b4
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2b0], 0
lea eax, [ebp - 0x24c]
push eax
call fcn.0046db90
add esp, 4
mov dword [ebp - 4], 1
push str.config.ini
lea ecx, [ebp - 0x264]
call fcn.00407220
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x264]
push ecx
lea edx, [ebp - 0x24c]
push edx
lea eax, [ebp - 0x234]
push eax
call fcn.0040e130
add esp, 0xc
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x264]
call fcn.00407180
lea ecx, [ebp - 0x234]
push ecx
call fcn.0040a970
add esp, 4
movzx edx, al
test edx, edx
jne 0x46d793
push 0x4b9360
mov ecx, dword [ebp + 8]
call fcn.00407220
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00407180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00407180
mov eax, dword [ebp + 8]
jmp 0x46d91c
push 0x20a
push 0
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0047a5f0
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.004070c0
push eax
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0x4b9360
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x2b4], eax
mov ecx, dword [ebp - 0x2b4]
add ecx, 2
mov dword [ebp - 0x2bc], ecx
mov edx, dword [ebp - 0x2b4]
mov ax, word [edx]
mov word [ebp - 0x2b6], ax
add dword [ebp - 0x2b4], 2
cmp word [ebp - 0x2b6], 0
jne 0x46d7f1
mov ecx, dword [ebp - 0x2b4]
sub ecx, dword [ebp - 0x2bc]
sar ecx, 1
mov dword [ebp - 0x2c0], ecx
jne 0x46d86a
push 0x4b9360
mov ecx, dword [ebp + 8]
call fcn.00407220
mov edx, dword [ebp - 0x2b0]
or edx, 1
mov dword [ebp - 0x2b0], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00407180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00407180
mov eax, dword [ebp + 8]
jmp 0x46d91c
lea eax, [ebp - 0x2ac]
push eax
call fcn.0046d5d0
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x27c]
call fcn.00407220
mov byte [ebp - 4], 6
lea edx, [ebp - 0x27c]
push edx
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x294]
push ecx
call fcn.0040e130
add esp, 0xc
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x27c]
call fcn.00407180
lea edx, [ebp - 0x294]
push edx
mov ecx, dword [ebp + 8]
call fcn.00407f40
mov eax, dword [ebp - 0x2b0]
or eax, 1
mov dword [ebp - 0x2b0], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x294]
call fcn.00407180
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2ac]
call fcn.00407180
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00407180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24c]
call fcn.00407180
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.00477737
mov esp, ebp
pop ebp
ret
Function at 0x472bd0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a936a
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.004714b0
add esp, 8
mov dword [ebp - 4], 1
lea edx, [ebp - 0x234]
push edx
call fcn.0040a970
add esp, 4
movzx eax, al
test eax, eax
jne 0x472c65
push 0x4b9360
mov ecx, dword [ebp + 8]
call fcn.00407220
mov ecx, dword [ebp - 0x238]
or ecx, 1
mov dword [ebp - 0x238], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00407180
mov eax, dword [ebp + 8]
jmp 0x472cd8
push 0x20a
push 0
lea edx, [ebp - 0x21c]
push edx
call fcn.0047a5f0
add esp, 0xc
lea ecx, [ebp - 0x234]
call fcn.004070c0
push eax
push 0x104
lea eax, [ebp - 0x21c]
push eax
push 0x4b9360
push str.Version
push str.Upgrade
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00407220
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x234]
call fcn.00407180
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.00477737
mov esp, ebp
pop ebp
ret
Function at 0x475a70
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4d404c]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x118
lea eax, [esp + 8]
mov dword [esp + 4], 0x11c
push 0
push eax
call fcn.0047a5f0
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x475ae6
mov eax, dword [esp + 4]
cmp eax, 6
ja 0x475acf
jne 0x475ae6
mov eax, dword [esp + 8]
cmp eax, 1
ja 0x475acf
jne 0x475ae6
cmp word [esp + 0x114], 1
jb 0x475ae6
mov al, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00477737
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor al, al
xor ecx, esp
call fcn.00477737
add esp, 0x120
ret
Function at 0x4768b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4d404c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.0047a5f0
add esp, 0xc
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4768fe
xor al, al
jmp 0x476957
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x476930
cmp dword [ebp - 0x418], 0
je 0x47692c
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x476957
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00407120
cmp dword [ebp - 0x418], 0
je 0x476955
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00477737
mov esp, ebp
pop ebp
ret

Function at 0x487b1a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004877da
Function at 0x4012b0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret 8

Function at 0x402300
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
inc dl
test esi, esi
jbe 0x40232c
mov eax, dword [esp + 8]
mov cl, byte [eax]
sub cl, dl
xor cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x402320
pop esi
ret
Function at 0x402520
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
sub esp, 0x110
lea eax, [esp + 0xc]
push ebx
push esi
push edi
push str.SYSTEMCurrentControlSetServices_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x18]
push str.Distribuapa
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push 0xf003f
push 0
push eax
push 0x80000002
call dword [0x408d70]
test eax, eax
je 0x402575
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x104
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.ImagePath
push eax
call dword [0x408d74]
test eax, eax
je 0x4025c1
mov ecx, dword [esp + 0x10]
push ecx
call dword [0x408d78]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0x10]
push edx
call dword [0x408d78]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4025e8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push 0
push 3
push 0
push 1
lea ecx, [esp + 0x2c]
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402615
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
mov dword [esp + 0xc], eax
jne 0x402639
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40265b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov eax, dword [esp + 0xc]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40268d
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov esi, eax
test esi, esi
jne 0x4026bd
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
mov edx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_UpdateResourceA]
push edx
push ebx
push 0
push 0x66
push 0xa
push esi
call ebp
mov edi, eax
test edi, edi
je 0x4026f6
push str.Distribuapa
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push str.Distribuapa
push 0
push 0x65
push 0xa
push esi
call ebp
mov edi, eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
pop ebp
test eax, eax
push ebx
jne 0x402717
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x110
ret
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x110
ret