joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f6b5
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40f6e6
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40f6ed
cmp ebx, dword [ebp + 8]
jae 0x40f6ed
xor eax, eax
jmp 0x40f8d3
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40f6fe
xor eax, eax
inc eax
jmp 0x40f8d2
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40f710
cmp ecx, edx
jae 0x40f774
cmp dword [eax + 4], 0
je 0x40f719
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40f705
cmp dword [ebp + 8], 0
je 0x40f733
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40f774
cmp eax, esi
jae 0x40f774
mov ecx, dword [0x416000]
mov esi, ebx
and esi, 0xfffff000
xor eax, eax
test ecx, ecx
jle 0x40f755
cmp dword [eax*4 + 0x416008], esi
je 0x40f77b
inc eax
cmp eax, ecx
jl 0x40f747
lea eax, [ebp + 8]
push eax
push 0x1c
lea eax, [ebp - 0x20]
push eax
push 0
push ebx
or edi, 0xffffffff
push edi
call sub.ntdll.dll_NtQueryVirtualMemory
test eax, eax
jl 0x40f7eb
mov eax, dword [ebp + 8]
jmp 0x40f7ed
xor eax, eax
jmp 0x40f8d2
test eax, eax
jle 0x40f6f6
xor edx, edx
mov ebx, 0x416048
inc edx
mov edi, ebx
xchg dword [edi], edx
test edx, edx
jne 0x40f6f6
cmp dword [eax*4 + 0x416008], esi
je 0x40f7ca
lea eax, [ecx - 1]
test eax, eax
jl 0x40f7b7
cmp dword [eax*4 + 0x416008], esi
je 0x40f7b3
dec eax
jns 0x40f7a7
test eax, eax
jge 0x40f7c8
cmp ecx, 0x10
jge 0x40f7c3
inc ecx
mov dword [0x416000], ecx
lea eax, [ecx - 1]
jmp 0x40f7ca
je 0x40f7e2
xor edx, edx
test eax, eax
jl 0x40f7e2
lea ecx, [edx*4 + 0x416008]
mov edi, dword [ecx]
inc edx
cmp edx, eax
mov dword [ecx], esi
mov esi, edi
jle 0x40f7d0
xor eax, eax
xchg dword [ebx], eax
jmp 0x40f6f6
xor eax, eax
test eax, eax
je 0x40f8d0
cmp dword [ebp - 8], 0x1000000
jne 0x40f8d0
test byte [ebp - 0xc], 0xcc
je 0x40f862
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40f8d0
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f8d0
cmp word [eax + 0x18], 0x10b
jne 0x40f8d0
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40f8d0
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40f862
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40f862
test byte [ecx + 0x27], 0x80
jne 0x40f774
xor eax, eax
inc eax
mov ecx, eax
mov edx, 0x416048
xchg dword [edx], ecx
test ecx, ecx
jne 0x40f8d2
mov ecx, dword [0x416000]
test ecx, ecx
mov edx, ecx
jle 0x40f891
lea eax, [ecx*4 + 0x416004]
cmp dword [eax], esi
je 0x40f891
dec edx
sub eax, 4
test edx, edx
jg 0x40f885
test edx, edx
jne 0x40f8c2
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40f89e
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40f8b6
lea eax, [edx*4 + 0x416008]
mov edi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], esi
mov esi, edi
jle 0x40f8a4
cmp ecx, 0x10
jge 0x40f8c2
inc ecx
mov dword [0x416000], ecx
xor eax, eax
mov ecx, 0x416048
xchg dword [ecx], eax
jmp 0x40f6f6
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402844
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x40d008], 0x8088405
inc edx
mov dword [ebx + 0x40d008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402c6c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40d018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d04
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402ce4
xor eax, eax
push ebp
push 0x402cdd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402ce4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40d018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40d018], ax
mov esp, ebp
pop ebp
ret

Function at 0x40376c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40e044], 0
je 0x4037cd
cmp word [0x40e218], 0xd7b2
jne 0x403795
cmp dword [0x40e220], 0
jbe 0x403795
mov eax, 0x40e214
call dword [0x40e230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40d060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4037f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40d024], 0
jne 0x4037e9
push 0
push 0x40d058
push 0x40d060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404234
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404464
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4042b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404464
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4042b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404480
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404340
xor eax, eax
push ebp
push 0x404339
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.0040407c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40431e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4044a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40431e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404340
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40445a
cmp byte [ebp - 0xd], 0
jne 0x404387
cmp byte [ebp - 0x12], 0
je 0x40445a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4043a0
dec ebx
cmp byte [ebx], 0x2e
je 0x4043af
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40439f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40445a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4043ec
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40445a
cmp byte [ebp - 0xd], 0
je 0x40445a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40445a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4045f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404656
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b3c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402860
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404640
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40465d
lea eax, [ebp - 0x10]
call fcn.004038e8
ret

Function at 0x4067c8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406801
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004039d8
jmp 0x40680a
mov eax, ebx
mov edx, esi
call fcn.0040393c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406814
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406835
mov al, byte [esp]
jmp 0x406837
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406ebc
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406d34
mov eax, dword [0x40d4b0]
cmp byte [eax], 0
je 0x406f38
mov eax, dword [0x40d400]
call fcn.00402750
call fcn.0040261c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405ca8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406f80
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406f6e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40d3e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40e660]
call fcn.00404040
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40795c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4079c0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403b3c
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405b7c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4079c7
lea eax, [ebp - 0xc]
call fcn.004038e8
ret

Function at 0x408a74
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x408aba
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004089d8
mov eax, dword [ebp - 4]
call fcn.00403cc4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408ac1
lea eax, [ebp - 4]
call fcn.004038e8
ret

Function at 0x408cb8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x408d45
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x408d02
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.004039d8
jmp 0x408d2f
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x408d16
lea eax, [ebp - 4]
call fcn.004038e8
jmp 0x408d25
lea edx, [ebp - 4]
call fcn.00408b84
test ebx, ebx
je 0x408d25
dec ebx
jmp 0x408d07
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040393c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408d4c
lea eax, [ebp - 4]
call fcn.004038e8
ret

Function at 0x408d54
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00405d5c
add esp, 0x104
pop ebx
ret
Function at 0x408e98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x408fcc
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x408fb6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x408ef5
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x408fb6
cmp dword [ebp - 0x10], 0
jne 0x408f0a
mov eax, dword [ebp - 8]
call fcn.004038e8
mov bl, 1
jmp 0x408fb6
cmp dword [ebp - 0x10], 0x70000000
jb 0x408f18
call fcn.00406fa8
mov esi, dword [ebp - 0x10]
shr esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.004039d8
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403d14
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA_1
cmp eax, 0xea
je 0x408ebe
test eax, eax
jne 0x408fb6
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x408f66
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x408fb6
mov esi, dword [ebp - 0x10]
shr esi, 0
jmp 0x408f6f
dec esi
test esi, esi
je 0x408f7d
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x408f6e
cmp dword [ebp - 0xc], 7
jne 0x408f88
test esi, esi
je 0x408f88
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.00403db8
cmp dword [ebp - 0xc], 7
jne 0x408fa9
test esi, esi
je 0x408fa9
lea eax, [ebp - 0x14]
call fcn.00403d14
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.0040393c
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408fd3
lea eax, [ebp - 0x14]
call fcn.004038e8
ret

Function at 0x409978
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40e7d4
mov eax, esi
mov edx, 8
test al, 1
je 0x409994
shr eax, 1
xor eax, 0xedb88320
jmp 0x409996
shr eax, 1
dec edx
jne 0x409987
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x409980
pop esi
ret

Function at 0x4099ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x40e7d0], 0
jne 0x4099cf
call fcn.00409978
push 1
push 0x40e7d0
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x4099fb
mov edx, ebx
and edx, 0xff
xor ecx, ecx
mov cl, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x40e7d4]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x4099d5
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x40b3c8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0040b37c
test al, al
jne 0x40b3e9
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40b435
xor eax, eax
push ebp
push 0x40b425
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403cc4
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b42c
lea eax, [ebp - 0xc]
call fcn.0040b3b8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40b774
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40b77c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40b869
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00408d80
mov edx, dword [ebp - 8]
mov ecx, 0x40b880
xor eax, eax
call fcn.0040b664
push 0
mov eax, dword [ebp - 4]
call fcn.00403cc4
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40b837
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x40b796
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040b170
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00405b54
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00409268
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040b140
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x404f5c]
call fcn.00406fb4
call fcn.00403348
jmp 0x40b796
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040393c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b870
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.0040390c
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040390c
ret

Function at 0x40b890
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x40d500]
cmp dword [eax], 2
jne 0x40b8f8
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40b8b3
xor eax, eax
jmp 0x40b907
lea eax, [esp + 8]
push eax
push 0x40b90c
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x40b8f8
xor eax, eax
jmp 0x40b907
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x40b920
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x40b97a
inc esi
xor edi, edi
cmp edi, 1
jne 0x40b946
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40b954
cmp edi, 1
jle 0x40b954
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040b3c8
test eax, eax
jne 0x40b97a
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x40b97a
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x40b97a
inc edi
dec esi
jne 0x40b936
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x40bddc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40beb1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40bec8
push ebx
push 0x40bed4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00403c28
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402824
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403cc4
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40be5c
mov al, 0x62
call fcn.0040b9bc
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.0040bdb0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40be65
call fcn.0040bdb0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40beb8
lea eax, [ebp - 4]
call fcn.004038e8
ret
Function at 0x40bf74
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c028
jmp 0x40c01d
cmp dword [esi + 0x10], 0x1000
jne 0x40c009
test byte [esi + 0x15], 1
jne 0x40c009
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40bfc8
cmp eax, 2
je 0x40bfc8
cmp eax, 0x10
je 0x40bfc8
cmp eax, 0x20
jne 0x40bfdd
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x40bfdd
mov bl, 1
xor ebp, ebp
jmp 0x40bfee
mov eax, dword [esi]
add eax, ebp
call fcn.0040bf6c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40bfe1
test bl, bl
je 0x40c009
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x40c028
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40bfa0
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x404620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x463e90
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4821a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0042a2b8
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004280fb
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
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