joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458a97
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], 0
mov eax, dword [esi]
push eax
push 4
mov edi, 1
lea ecx, [ebp - 0xc]
push edi
push ecx
call fcn.00416a7b
add esp, 0x10
push 0x18ee
push 4
lea edx, [ebp - 0xc]
push edx
call fcn.00450bc1
lea eax, [ebp - 0xc]
push 0x498da0
push eax
mov byte [ebp - 8], 0
call fcn.00416aa0
add esp, 8
test eax, eax
jne 0x458c2d
mov ecx, dword [esi]
add dword [ebp - 4], edi
push ecx
push edi
lea edx, [ebp + 8]
push 4
push edx
call fcn.00416a7b
mov edi, dword [ebp + 8]
mov eax, dword [esi]
push eax
xor edi, 0xadbc
lea ebx, [edi + edi]
push ebx
lea ecx, [ebp - 0x220]
push 1
push ecx
call fcn.00416a7b
add esp, 0x20
add edi, 0xb33f
push edi
push ebx
lea edx, [ebp - 0x220]
push edx
call fcn.00450bc1
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x430]
xor eax, eax
push edx
mov word [ebp + ebx - 0x220], ax
call fcn.00414198
mov eax, dword [esi]
push eax
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call fcn.00416a7b
mov edi, dword [ebp + 8]
mov edx, dword [esi]
push edx
xor edi, 0xf820
lea ebx, [edi + edi]
push ebx
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.00416a7b
add esp, 0x28
add edi, 0xf479
push edi
push ebx
lea ecx, [ebp - 0x220]
push ecx
call fcn.00450bc1
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x220]
push eax
xor edx, edx
push ecx
mov word [ebp + ebx - 0x220], dx
call fcn.00414198
mov edi, dword [ebp + 0xc]
lea edx, [ebp - 0x430]
push edi
push edx
call fcn.00414b66
add esp, 0x10
test eax, eax
je 0x458c22
push 0x498d94
push edi
call fcn.00414b66
add esp, 8
test eax, eax
jne 0x458be2
cmp dword [ebp - 4], eax
je 0x458c22
mov eax, dword [esi]
push 1
push 1
push eax
call fcn.00416e41
mov ecx, dword [esi]
add esp, 0xc
push ecx
push 1
lea edx, [ebp - 0x10]
push 4
push edx
call fcn.00416a7b
mov eax, dword [ebp - 0x10]
xor eax, 0x87bc
mov dword [ebp - 0x10], eax
add eax, 0x18
push 1
push eax
mov eax, dword [esi]
push eax
call fcn.00416e41
add esp, 0x1c
jmp 0x458aad
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
mov eax, 6
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x458c3b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
xor ecx, ecx
mov dword [ebp - 0x470], eax
mov dword [ebp - 0x46c], eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 4]
mov word [ebp - 0x44c], cx
mov ecx, dword [esi]
push eax
xor edx, edx
push ecx
mov word [ebp - 0x242], dx
mov dword [ebp - 4], 1
call fcn.00416e41
mov eax, dword [ebp + 0xc]
add esp, 0xc
lea edx, [ebp - 0x680]
push edx
push eax
push esi
call fcn.00458a97
test eax, eax
je 0x458cd4
mov eax, 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp + 0x17]
push 1
push edx
call fcn.00416a7b
mov eax, dword [esi]
push eax
push 1
lea ecx, [ebp + 8]
push 4
push ecx
call fcn.00416a7b
mov edx, dword [esi]
mov edi, dword [ebp + 8]
push edx
push 1
lea eax, [ebp + 8]
push 4
push eax
xor edi, 0x87bc
call fcn.00416a7b
mov edx, dword [esi]
mov ecx, dword [ebp + 8]
push edx
push 1
lea eax, [ebp + 8]
xor ecx, 0x87bc
push 4
push eax
mov dword [ebx], ecx
call fcn.00416a7b
mov eax, dword [ebp + 8]
mov ecx, dword [esi]
add esp, 0x40
push 1
xor eax, 0xa685
push 0x10
push ecx
mov dword [ebp - 8], eax
call fcn.00416e41
mov edx, dword [ebx]
add esp, 0xc
push edx
call fcn.00414fdb
add esp, 4
push edi
mov dword [ebp + 0xc], eax
call fcn.00414fdb
add esp, 4
mov ebx, eax
mov eax, dword [esi]
push eax
push 1
push edi
push ebx
call fcn.00416a7b
mov ecx, dword [esi + 8]
add esp, 0x10
add ecx, 0x2477
push ecx
push edi
push ebx
call fcn.00450bc1
push edi
push ebx
lea edx, [ebp - 4]
push edx
call fcn.004378f3
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
je 0x458db4
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00415168
add esp, 4
push ebx
call fcn.00415168
add esp, 4
mov eax, 0xa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp byte [ebp + 0x17], 1
jne 0x458e23
xor eax, eax
mov dword [ebp - 0x468], eax
mov dword [ebp - 0x464], eax
mov dword [ebp - 0x460], eax
mov dword [ebp - 0x454], eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x1c], eax
mov eax, 1
xor edx, edx
mov dword [ebp - 0x45c], eax
mov dword [ebp - 0x458], eax
mov word [ebp - 0x44c], dx
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x470]
xor ecx, ecx
push eax
mov word [ebp - 0x242], cx
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x470], edx
call fcn.00450d7b
push ebx
call fcn.00415168
jmp 0x458e2f
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00415168
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
add esp, 4
pop edi
pop esi
mov dword [edx], eax
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x463c81
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0xd0], 0
je 0x463cc3
test al, al
je 0x463cc3
lea eax, [esi + 0xd4]
push eax
call fcn.004370db
push esi
push 0
push 0x46246f
call fcn.00416f84
xor eax, eax
add esp, 0xc
cmp dword [esi + 0x18], eax
sete al
pop esi
pop ecx
pop ebp
ret 8
push eax
push esi
call fcn.00463b44
pop esi
pop ecx
pop ebp
ret 8

Function at 0x470b13
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov al, byte [0x4a85cf]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x8000
push edi
mov byte [ebp - 4], al
call fcn.00415b59
add esp, 4
push eax
call fcn.00415a6e
add esp, 8
mov esi, eax
push ebx
mov dword [ebp - 8], esi
call fcn.004498d3
test al, al
je 0x470b70
push edi
push ebx
call fcn.00448c9f
push eax
push 1
push ebx
call fcn.00470627
push eax
call fcn.00415cd6
add esp, 0x10
mov ebx, eax
jmp 0x470bbb
push esi
jmp 0x470bce
lea esi, [ebp - 0x1c]
call fcn.0040ef50
push ebx
call fcn.00459769
push esi
push eax
call fcn.00460b66
mov edx, dword [ebp - 0x1c]
push edx
push 0x498a74
push edi
call fcn.00415d50
add esp, 0xc
cmp byte [ebp - 4], 0
mov dword [ebp - 0xc], eax
je 0x470bad
push ebx
call fcn.0045978a
push eax
call dword [0x48721c]
lea esi, [ebp - 0x1c]
call fcn.00402cb0
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push edi
call fcn.00415fe6
add esp, 4
cmp esi, 0xffffffff
jne 0x470b6d
push 0x4000
push edi
call fcn.00415b59
add esp, 4
push eax
call fcn.00415a6e
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402590
Capabilities:
Copy file
Create directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40a12b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x380
mov eax, dword [str.VlZ6LdKiJtt7hQ0BCp0SFG5wKkvZRURR2Fu9GG418I]
push ebx
push esi
push edi
xor esi, esi
mov dword [esp + 0x384], eax
mov eax, dword [ebp + 0xc]
push esi
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
mov ebx, dword [ebp + 8]
mov eax, ebx
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], esi
mov byte [esp + 0x18], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4025e7
sub eax, edx
push eax
push ebx
lea ecx, [esp + 0x1c]
call fcn.00401ce0
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x394], esi
mov esi, 0x10
cmp eax, esi
mov eax, dword [esp + 0x18]
jae 0x402617
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x28]
cmp byte [eax + ecx - 1], 0x5c
je 0x402632
push 1
push 0x40b214
lea ecx, [esp + 0x1c]
call fcn.00401bd0
push 1
push 0x40b210
lea ecx, [esp + 0x1c]
call fcn.00401bd0
cmp dword [esp + 0x2c], esi
mov eax, dword [esp + 0x18]
jae 0x402650
lea eax, [esp + 0x18]
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x402679
cmp dword [esp + 0x2c], esi
jb 0x40277c
mov eax, dword [esp + 0x18]
push eax
jmp 0x402774
mov esi, dword [sym.imp.SHLWAPI.dll_PathCombineA]
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x278]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x170]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
push 0x40b20c
lea ecx, [esp + 0x60]
push ecx
call edi
test eax, eax
je 0x402745
push 0x40b208
lea edx, [esp + 0x60]
push edx
call edi
test eax, eax
je 0x402745
lea eax, [esp + 0x5c]
push eax
push ebx
lea ecx, [esp + 0x280]
push ecx
call esi
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0x5c]
push edx
push eax
lea ecx, [esp + 0x178]
push ecx
call esi
test byte [esp + 0x30], 0x10
je 0x402729
lea edx, [esp + 0x170]
push edx
lea eax, [esp + 0x27c]
push eax
call fcn.00402590
add esp, 8
test eax, eax
jne 0x402745
cmp dword [esp + 0x2c], 0x10
jb 0x4027b6
mov edx, dword [esp + 0x18]
push edx
call fcn.00404753
add esp, 4
xor eax, eax
jmp 0x402781
push 0
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x4027a2
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4026a3
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x2c], 0x10
jb 0x40277c
mov edx, dword [esp + 0x18]
push edx
call fcn.00404753
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x38c]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x384]
call fcn.004046be
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x2c], 0x10
jb 0x4027b6
mov eax, dword [esp + 0x18]
push eax
call fcn.00404753
add esp, 4
xor eax, eax
jmp 0x402781
Function at 0x402cc0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20
mov eax, dword [str.VlZ6LdKiJtt7hQ0BCp0SFG5wKkvZRURR2Fu9GG418I]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x402ce9
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.004046be
add esp, 0x20
ret 0x10
push esi
push eax
lea ecx, [esp + 0x38]
call fcn.00401f20
push 0x22
lea ecx, [esp + 0x38]
call fcn.004019e0
push eax
lea ecx, [esp + 0x38]
call fcn.00401b60
push 0x22
lea ecx, [esp + 0x38]
call fcn.00401990
push eax
lea ecx, [esp + 0x38]
call fcn.00401b60
mov eax, dword [esp + 0x34]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call esi
test eax, eax
jne 0x402d4b
lea ecx, [esp + 0x34]
call fcn.004013b0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.004046be
add esp, 0x20
ret 0x10
push edi
push ebx
mov edi, 0xf
push 0x40b251
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00401ce0
lea ecx, [esp + 0xc]
push ecx
call fcn.00402820
add esp, 4
test eax, eax
mov eax, dword [esp + 0x24]
jne 0x402dbc
cmp eax, 0x10
jb 0x402d93
mov edx, dword [esp + 0x10]
push edx
call fcn.00404753
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
call fcn.004013b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.004046be
add esp, 0x20
ret 0x10
mov edi, 0x10
cmp eax, edi
mov eax, dword [esp + 0x10]
jae 0x402dcd
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
jne 0x402dfa
lea ecx, [esp + 0xc]
call fcn.00401520
lea ecx, [esp + 0x38]
call fcn.004013b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.004046be
add esp, 0x20
ret 0x10
cmp dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
jae 0x402e08
lea eax, [esp + 0x10]
push ebx
push eax
call fcn.00402340
add esp, 8
test eax, eax
mov eax, dword [esp + 0x24]
je 0x402e63
cmp eax, edi
mov eax, dword [esp + 0x10]
jae 0x402e26
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00401550
push eax
call fcn.00402590
add esp, 8
test eax, eax
lea ecx, [esp + 0xc]
jne 0x402ead
call fcn.00401520
lea ecx, [esp + 0x38]
call fcn.004013b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
call fcn.004046be
add esp, 0x20
ret 0x10
cmp eax, edi
mov eax, dword [esp + 0x10]
jae 0x402e6f
lea eax, [esp + 0x10]
push eax
call fcn.004020d0
add esp, 4
test eax, eax
je 0x402dd4
cmp dword [esp + 0x24], edi
mov eax, dword [esp + 0x10]
jae 0x402e8e
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
call fcn.00401550
push eax
call fcn.00402590
add esp, 8
test eax, eax
lea ecx, [esp + 0xc]
je 0x402dd8
call fcn.00401520
lea ecx, [esp + 0x38]
call fcn.004013b0
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.004046be
add esp, 0x20
ret 0x10
Function at 0x403100
Capabilities:
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x40a220
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [str.VlZ6LdKiJtt7hQ0BCp0SFG5wKkvZRURR2Fu9GG418I]
push ebx
push ebp
push esi
xor esi, esi
mov dword [esp + 0x2c], eax
push edi
mov ebx, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x3c], 2
xor ebp, ebp
jmp 0x403140
add ebp, 0x800
test esi, esi
je 0x403153
push esi
call fcn.00404753
add esp, 4
push ebp
call fcn.00403bdb
mov esi, eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebx + 0x1c]
mov eax, 0x10
add esp, 4
cmp ecx, eax
jb 0x403183
mov edx, dword [ebx + 8]
jmp 0x403186
lea edx, [ebx + 8]
cmp dword [esp + 0x98], eax
mov edi, dword [esp + 0x84]
jae 0x40319d
lea edi, [esp + 0x84]
cmp dword [esp + 0x7c], eax
mov ecx, dword [esp + 0x68]
jae 0x4031ab
lea ecx, [esp + 0x68]
cmp dword [esp + 0x60], eax
mov eax, dword [esp + 0x4c]
jae 0x4031b9
lea eax, [esp + 0x4c]
push edx
push ebp
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 2]
cmp eax, ecx
je 0x403140
xor ebx, ebx
mov edi, 0xf
mov eax, esi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4031e8
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401ce0
push esi
mov byte [esp + 0x40], 3
call fcn.00404753
mov esi, dword [esp + 0x48]
add esp, 4
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], 0
call fcn.00401a70
mov eax, dword [esp + 0x2c]
mov ebp, 0x10
cmp eax, ebp
jb 0x403241
mov eax, dword [esp + 0x18]
push eax
call fcn.00404753
add esp, 4
cmp dword [esp + 0x60], ebp
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], 0
jb 0x403261
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.00404753
add esp, 4
cmp dword [esp + 0x7c], ebp
mov dword [esp + 0x60], edi
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], 0
jb 0x403281
mov edx, dword [esp + 0x68]
push edx
call fcn.00404753
add esp, 4
cmp dword [esp + 0x98], ebp
mov dword [esp + 0x7c], edi
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], 0
jb 0x4032a7
mov eax, dword [esp + 0x84]
push eax
call fcn.00404753
add esp, 4
mov ecx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
pop ebx
call fcn.004046be
add esp, 0x30
ret 0x58
Function at 0x403980
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x40a2a8
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 4]
xor ebx, ebx
cmp eax, ebx
push edi
mov edi, ecx
je 0x4039c7
mov edx, dword [esp + 0x44]
mov ecx, dword [esi + 8]
push edx
push esi
push ecx
push eax
call fcn.00401e00
mov eax, dword [esi + 4]
push eax
call fcn.00404753
add esp, 0x14
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
xor esi, esi
xor eax, eax
jmp 0x4039e0
mov eax, dword [esp + 0x10]
add esi, 0x800
cmp eax, ebx
je 0x4039f3
push eax
call fcn.00404753
add esp, 4
push esi
call fcn.00403bdb
mov ecx, dword [edi + 0x1c]
add esp, 4
cmp ecx, 0x10
mov dword [esp + 0x10], eax
jb 0x403a0d
mov ecx, dword [edi + 8]
jmp 0x403a10
lea ecx, [edi + 8]
push ecx
push esi
push eax
call ebp
lea ecx, [esi - 2]
cmp eax, ecx
je 0x4039dc
push 0x104
call fcn.00403bdb
mov edi, dword [esp + 0x14]
add esp, 4
cmp edi, ebx
mov ebp, eax
je 0x403ad4
push ebx
push edi
call fcn.00404ec0
mov esi, eax
add esp, 8
sub esi, edi
mov dword [esp + 0x14], eax
je 0x403ad0
push esi
push edi
push ebp
call fcn.00404d80
mov byte [esi + ebp], bl
mov esi, 0xf
mov eax, ebp
add esp, 0xc
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403a73
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x20]
call fcn.00401ce0
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x40], ebx
call fcn.004038f0
cmp dword [esp + 0x30], 0x10
mov dword [esp + 0x3c], 0xffffffff
jb 0x403ab5
mov eax, dword [esp + 0x1c]
push eax
call fcn.00404753
add esp, 4
mov eax, dword [esp + 0x14]
lea edi, [eax + 1]
cmp edi, eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jne 0x403a37
mov edi, dword [esp + 0x10]
push edi
call fcn.00404753
push ebp
call fcn.00404753
mov ecx, dword [esp + 0x3c]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x404369
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00404650
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404404
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40e85c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404404
cmp eax, 1
je 0x404425
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404404
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4043d1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404400
xor eax, eax
inc eax
jmp 0x404444
cmp edi, eax
jae 0x404408
xor eax, eax
jmp 0x404444
cmp eax, esi
jae 0x40440f
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40e85c]
jmp 0x404428
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404fa3
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b3d0
call fcn.004055f0
mov edi, 0x94
mov eax, edi
call fcn.00404650
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40e85c], ecx
mov eax, dword [esi + 4]
mov dword [0x40e868], eax
mov edx, dword [esi + 8]
mov dword [0x40e86c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40e860], esi
cmp ecx, 2
je 0x405003
or esi, 0x8000
mov dword [0x40e860], esi
shl eax, 8
add eax, edx
mov dword [0x40e864], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40503e
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40503e
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405056
cmp eax, 0x20b
je 0x405043
mov dword [ebp - 0x1c], esi
jmp 0x40506a
cmp dword [ecx + 0x84], 0xe
jbe 0x40503e
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405064
cmp dword [ecx + 0x74], 0xe
jbe 0x40503e
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004057b8
pop ecx
test eax, eax
jne 0x405096
cmp dword [0x40e844], 1
jne 0x405083
call fcn.0040849c
push 0x1c
call fcn.00408325
push 0xff
call fcn.0040632c
pop ecx
pop ecx
call fcn.00408c45
mov dword [ebp - 4], esi
call fcn.00408a9a
test eax, eax
jge 0x4050af
push 0x1b
call fcn.00404f7e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40fe18], eax
call fcn.00408978
mov dword [0x40e83c], eax
call fcn.004088d6
test eax, eax
jge 0x4050d5
push 8
call fcn.00404f7e
pop ecx
call fcn.004086a3
test eax, eax
jge 0x4050e6
push 9
call fcn.00404f7e
pop ecx
push 1
call fcn.0040635c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4050fc
push eax
call fcn.00404f7e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00408646
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40511d
movzx eax, word [ebp - 0x40]
jmp 0x405120
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402cc0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40513e
push edi
call fcn.00406487
call fcn.004064a9
jmp 0x405170
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040562b
ret
Function at 0x4063c6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40e89c], esi
push edi
jne 0x4063e6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40e898], esi
mov byte [0x40e894], al
jne 0x40644c
mov ecx, dword [0x40fde8]
test ecx, ecx
je 0x40642d
mov eax, dword [0x40fde4]
sub eax, 4
cmp eax, ecx
jmp 0x406426
mov eax, dword [eax]
test eax, eax
je 0x406418
call eax
mov eax, dword [0x40fde4]
sub eax, 4
cmp eax, dword [0x40fde8]
mov dword [0x40fde4], eax
jae 0x406410
mov eax, 0x40e030
mov esi, 0x40e038
cmp eax, esi
mov edi, eax
jae 0x40644c
mov eax, dword [edi]
test eax, eax
je 0x406445
call eax
add edi, 4
cmp edi, esi
jb 0x40643d
mov eax, 0x40e03c
mov esi, str.mZW79YIdnfCQXyWPxCYXmmKvNM6KtYLrcoaRXNNMfHg_
cmp eax, esi
mov edi, eax
jae 0x40646b
mov eax, dword [edi]
test eax, eax
je 0x406464
call eax
add edi, 4
cmp edi, esi
jb 0x40645c
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x406485
push dword [ebp + 8]
mov dword [0x40e89c], 1
call fcn.0040632c
pop ebp
ret