joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413c20
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a6fb
mov eax, dword fs:[0]
push eax
sub esp, 0x650
mov eax, dword [0x47b008]
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 esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x22c
mov ebx, eax
lea eax, [ebp - 0x658]
push 0
push eax
call fcn.0043dca0
add esp, 0xc
mov dword [ebp - 0x658], 0x22c
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413c91
xor al, al
jmp 0x413e6e
xorps xmm0, xmm0
mov dword [ebp - 0x424], 0
movq qword [ebp - 0x42c], xmm0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x658]
mov dword [ebp - 4], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x413dac
cmp dword [ebp - 0x650], ebx
je 0x413d96
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0043dca0
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00442e74
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0043dca0
add esp, 0x24
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x413d38
mov eax, dword [esi]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00442e74
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0043fde1
add esp, 0x14
test eax, eax
jne 0x413d96
mov ecx, dword [ebp - 0x428]
cmp dword [ebp - 0x424], ecx
je 0x413d83
mov eax, dword [ebp - 0x650]
mov dword [ecx], eax
add dword [ebp - 0x428], 4
jmp 0x413d96
lea eax, [ebp - 0x650]
push eax
push ecx
lea ecx, [ebp - 0x42c]
call fcn.00413f40
lea eax, [ebp - 0x658]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x413ce1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x428]
xor edx, edx
mov esi, dword [ebp - 0x42c]
xor ebx, ebx
sub ecx, esi
add ecx, 3
shr ecx, 2
cmp esi, dword [ebp - 0x428]
cmova ecx, edx
mov dword [ebp - 0x65c], ecx
test ecx, ecx
je 0x413e0e
nop
push dword [esi]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x413e02
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
add esi, 4
cmp ebx, dword [ebp - 0x65c]
jne 0x413de0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x42c]
test edx, edx
je 0x413e6c
mov ecx, dword [ebp - 0x424]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x413e44
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413e8c
push ecx
push edx
call fcn.0043c039
add esp, 8
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
mov al, 1
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.0043bff8
mov esp, ebp
pop ebp
ret 4
call fcn.00440186
int3
Function at 0x42bc30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x42bc3b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.0042bc50
Function at 0x42c500
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x124]
sub esp, 0x124
push 0xffffffffffffffff
push 0x45d5ba
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp + 0x120], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi], 0
je 0x42c545
call fcn.0042c750
cmp byte [0x47ccc4], 0
jne 0x42c558
mov eax, 0x80000001
jmp 0x42c722
mov eax, dword [esi]
test eax, eax
jne 0x42c5c3
push 8
call fcn.0043c009
mov edi, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 1
call fcn.0043c009
mov dword [edi + 4], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [ebp + 8]
push eax
call fcn.0043dca0
add esp, 0x14
mov dword [ebp + 4], 0x11c
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42c5b2
cmp dword [ebp + 8], 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 0x42c711
call fcn.0040dd40
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test al, al
jne 0x42c6b6
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x30]
mov eax, dword [esi]
add eax, 4
mov byte [ebp - 0xd], 0
push str.Advapi32.dll
mov dword [ebp - 0x14], eax
call fcn.004023d0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x30]
push eax
call fcn.0040b530
mov ecx, eax
call fcn.0040b5f0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402370
test edi, edi
je 0x42c711
push 0x46ea90
push edi
call ebx
mov ebx, eax
test ebx, ebx
je 0x42c711
push dword [ebp - 0x18]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42c711
lea eax, [ebp]
mov dword [ebp], 0
push eax
push 0x20008
push edi
call ebx
test eax, eax
je 0x42c683
push dword [ebp]
mov ecx, dword [ebp - 0x14]
call fcn.0040ded0
mov bl, al
jmp 0x42c686
mov bl, byte [ebp - 0xd]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov ecx, dword [ebp]
test ecx, ecx
je 0x42c699
push ecx
call edi
test bl, bl
je 0x42c711
mov ecx, dword [esi]
add ecx, 4
call fcn.0040d860
call fcn.0040dd40
test al, al
je 0x42c711
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.Advapi32.dll
lea ecx, [ebp - 0x30]
call fcn.004023d0
mov dword [ebp - 4], 3
lea eax, [ebp - 0x30]
push eax
call fcn.0040b530
mov ecx, eax
call fcn.0040b5f0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00402370
test edi, edi
je 0x42c711
push str.RegOpenCurrentUser
push edi
call ebx
test eax, eax
je 0x42c711
push dword [esi]
push dword [ebp + 0x12c]
call eax
test eax, eax
je 0x42c711
mov eax, dword [esi]
mov dword [eax], 0
mov eax, dword [esi]
cmp dword [eax], 0
jne 0x42c720
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
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0043bff8
lea esp, [ebp + 0x124]
pop ebp
ret 4
Function at 0x42c910
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x640]
sub esp, 0x640
push 0xffffffffffffffff
push 0x45d670
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x47b008]
xor eax, ebp
mov dword [ebp + 0x63c], 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 + 0x648]
lea ecx, [ebp]
mov ebx, dword [ebp + 0x64c]
call fcn.00402430
lea ecx, [ebp]
call fcn.00402420
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [0x47ccc8]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x18], 0x47ccc8
test eax, eax
je 0x42c9ac
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 1
mov ecx, 0x47cccc
call fcn.00402420
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x42c9cf
cmp dword [eax + 0x14], 8
jb 0x42c9c9
mov eax, dword [eax]
push ecx
jmp 0x42ca7b
push 0x20c
lea eax, [ebp + 0x430]
push 0
push eax
call fcn.0043dca0
add esp, 0xc
lea eax, [ebp + 0x430]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x42cb20
xor eax, eax
push 0x412
push eax
mov word [ebp + 0x63a], ax
lea eax, [ebp + 0x1c]
push eax
call fcn.0043dca0
add esp, 0xc
lea eax, [ebp + 0x1c]
push 0x208
push eax
lea eax, [ebp + 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x42ca65
test eax, eax
je 0x42ca65
add eax, eax
cmp eax, 0x412
jae 0x42cb73
xor ecx, ecx
mov word [ebp + eax + 0x1c], cx
lea eax, [ebp + 0x1c]
push eax
call fcn.00402610
add esp, 4
push eax
lea eax, [ebp + 0x1c]
jmp 0x42ca7b
lea eax, [ebp + 0x430]
push eax
call fcn.00402610
add esp, 4
push eax
lea eax, [ebp + 0x430]
push eax
lea ecx, [ebp]
call fcn.00402450
mov byte [ebp - 4], 0
mov eax, dword [0x47ccc8]
test eax, eax
je 0x42ca98
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push edi
lea eax, [ebp]
mov dword [ebp + 0x18], 0
push eax
mov ecx, esi
call fcn.0042c8a0
test al, al
je 0x42cab7
mov bl, 1
jmp 0x42cb3d
push 0x20c
lea eax, [ebp + 0x430]
push 0
push eax
call fcn.0043dca0
add esp, 0xc
lea eax, [ebp + 0x430]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x42cb3b
xor eax, eax
mov word [ebp + 0x63a], ax
lea eax, [ebp + 0x430]
push eax
call fcn.00402610
add esp, 4
lea ecx, [ebp]
push eax
lea eax, [ebp + 0x430]
push eax
call fcn.00402450
push ebx
push edi
lea eax, [ebp]
mov ecx, esi
push eax
call fcn.0042c8a0
mov bl, al
jmp 0x42cb3d
mov byte [ebp - 4], 0
mov eax, dword [0x47ccc8]
test eax, eax
je 0x42cb34
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 0x18], 0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00402370
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 + 0x63c]
xor ecx, ebp
call fcn.0043bff8
lea esp, [ebp + 0x640]
pop ebp
ret 8
call fcn.0043c3b3
int3
Function at 0x42d5a0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d7af
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x47b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
lea esi, [edi + 0x94]
cmp esi, ebx
je 0x42d603
push esi
mov ecx, edi
call fcn.0042f080
add esi, 0x94
add edi, 0x94
cmp esi, ebx
jne 0x42d5e3
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 4]
jmp 0x42d605
mov edi, eax
lea esi, [ebx - 0x94]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.00402370
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00402370
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402370
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402370
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402370
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402370
mov eax, dword [ebp - 0x14]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x42e280
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d9ff
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x47b008]
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.00402370
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.00402370
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.00402370
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.00402370
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.00402370
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402370
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42fbd0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45dbbf
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x47b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
call fcn.00402430
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00402420
mov ecx, dword [ebp - 0x10]
mov esi, eax
call fcn.00402420
movups xmm0, xmmword [esi]
mov dword [ebp - 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
call fcn.004025b0
add esp, 8
mov dword [ebp - 4], 0
lea esi, [edi + 0x18]
mov edi, dword [ebp - 0x10]
lea ecx, [edi + 0x18]
call fcn.00402430
mov ecx, esi
call fcn.00402420
lea ecx, [edi + 0x18]
mov esi, eax
call fcn.00402420
movups xmm0, xmmword [esi]
mov dword [ebp - 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [edi + 0x30]
mov esi, dword [ebp + 8]
call fcn.00402430
lea ecx, [esi + 0x30]
call fcn.00402420
lea ecx, [edi + 0x30]
mov esi, eax
call fcn.00402420
movups xmm0, xmmword [esi]
mov dword [ebp - 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [edi + 0x48]
mov esi, dword [ebp + 8]
call fcn.00402430
lea ecx, [esi + 0x48]
call fcn.00402420
lea ecx, [edi + 0x48]
mov esi, eax
call fcn.00402420
movups xmm0, xmmword [esi]
mov dword [ebp - 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
lea eax, [ebp - 0x14]
push eax
push esi
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 3
mov edx, edi
mov ecx, dword [ebp + 8]
lea edi, [edx + 0x64]
mov al, byte [ecx + 0x60]
lea esi, [ecx + 0x64]
mov ecx, edi
mov byte [edx + 0x60], al
call fcn.00402430
mov ecx, esi
call fcn.00402420
mov ecx, edi
mov esi, eax
call fcn.00402420
movups xmm0, xmmword [esi]
mov dword [ebp - 0x14], 0
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x14]
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 4
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
lea ecx, [edi + 0x7c]
call fcn.00402430
lea ecx, [esi + 0x7c]
call fcn.00402420
lea ecx, [edi + 0x7c]
mov esi, eax
call fcn.00402420
movups xmm0, xmmword [esi]
mov dword [ebp + 8], 0
movups xmmword [eax], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [eax + 0x10], xmm0
lea eax, [ebp + 8]
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
call fcn.004025b0
add esp, 8
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 0x432360
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45e15f
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x47b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
call fcn.00402430
mov ecx, edi
call fcn.00402420
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov dword [ebp - 4], 0
lea ecx, [edi + 0x18]
call fcn.00402430
lea ecx, [edi + 0x18]
call fcn.00402420
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [edi + 0x30]
call fcn.00402430
lea ecx, [edi + 0x30]
call fcn.00402420
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [edi + 0x48]
call fcn.00402430
lea ecx, [edi + 0x48]
call fcn.00402420
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
call fcn.00402430
lea ecx, [edi + 0x64]
call fcn.00402420
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [edi + 0x7c]
call fcn.00402430
lea ecx, [edi + 0x7c]
call fcn.00402420
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push ecx
push eax
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
call fcn.004025b0
add esp, 8
mov byte [ebp - 4], 5
mov byte [edi + 0x60], 0
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
Function at 0x4336f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x47b008]
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 0x433772
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 0x433772
test ecx, ecx
je 0x43376e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x433730
xor eax, eax
jmp 0x433777
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x433781
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0043bff8
add esp, 0xc
ret 0xc

Function at 0x434200
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x47b008]
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 0x434273
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 0x43424e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x434273
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.0043bff8
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0043bff8
add esp, 8
ret 4

Function at 0x4345f0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x47b008]
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 0x434663
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 0x43463e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x434663
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.0043bff8
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.0043bff8
add esp, 8
ret 4
Function at 0x434970
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x478950
push 0x43d5c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x47b008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], 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, edx
mov edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00402420
mov dword [ebp - 0x24], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x4349e2
mov eax, dword [eax]
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.004025b0
add esp, 8
mov edx, esi
mov ecx, edi
call fcn.00434ad0
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x434a21
test bl, bl
jne 0x434aaa
cmp edi, 0x1a
jne 0x434aaa
mov ecx, esi
call fcn.00402420
mov dword [ebp - 0x20], 0
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
jb 0x434a4b
mov eax, dword [eax]
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004025b0
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.0043dca0
add esp, 0x14
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.00402610
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00402450
mov ecx, esi
call fcn.00402420
movzx ebx, bl
mov ecx, 1
cmp dword [eax + 0x10], 0
cmovne 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 + 0x410]
xor ecx, ebp
call fcn.0043bff8
lea esp, [ebp + 0x414]
pop ebp
ret

Function at 0x438780
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45d8ef
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x47b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push edx
push 0x94
call fcn.00401990
mov esi, dword [ebp + 8]
add esp, 8
mov edi, eax
mov ecx, eax
mov dword [ebp - 0x10], edi
push esi
call fcn.004035d0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
push ecx
lea ecx, [edi + 0x18]
call fcn.004035d0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.004035d0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.004035d0
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.004035d0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.004035d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43b720
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x47b008]
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 0x43b785
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 0x43b760
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43b785
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.0043bff8
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.0043bff8
add esp, 8
ret 4