joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484674
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x4846bb
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.00404404
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.00404404
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x484a1c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
test dl, dl
je 0x484a39
add esp, 0xfffffff0
call fcn.004036f0
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x484b38
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp + 8], 0
je 0x484a86
mov eax, esi
call fcn.00404660
push eax
call sub.kernel32.dll_GetFileAttributesA
mov edi, eax
mov eax, edi
and eax, 2
cmp eax, 2
je 0x484a77
mov eax, edi
and eax, 1
cmp eax, 1
jne 0x484a86
push 0x20
mov eax, esi
call fcn.00404660
push eax
call sub.kernel32.dll_SetFileAttributesA
push 0
push 0x80
xor eax, eax
mov al, byte [ebp + 0xc]
mov eax, dword [eax*4 + 0x48d5f8]
push eax
push 0
push 3
push 0xc0000000
mov eax, esi
call fcn.00404660
push eax
call sub.kernel32.dll_CreateFileA
mov ecx, eax
xor edx, edx
mov eax, ebx
call fcn.0041d25c
cmp dword [ebx + 4], 0
jge 0x484b09
lea edx, [ebp - 0x18]
mov eax, esi
call fcn.00408ef0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x1c]
call fcn.0040b8a4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [0x48db94]
mov dl, 1
mov eax, dword [0x417fe0]
call fcn.0040c1a4
call fcn.00403b58
cmp byte [ebp + 8], 0
je 0x484b1d
push edi
mov eax, esi
call fcn.00404660
push eax
call sub.kernel32.dll_SetFileAttributesA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484b3f
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004041c4
ret
Function at 0x4853d8
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
xor eax, eax
push ebp
push 0x4854f5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.004852a0
pop ecx
test al, al
je 0x4854d0
mov eax, dword [ebp + 8]
push eax
call fcn.004850e4
pop ecx
test al, al
jne 0x4854d0
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x140]
push eax
call sub.wininet.dll_HttpSendRequestA
test eax, eax
je 0x4854d0
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.00485124
pop ecx
test al, al
je 0x4854d0
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404410
mov eax, dword [ebp - 4]
xor edx, edx
call fcn.004088c4
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x188], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov esi, dword [eax + 0x188]
cmp esi, 0xc8
je 0x48549b
mov eax, dword [ebp + 8]
cmp esi, 0xce
jne 0x4854d0
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.00485124
pop ecx
test al, al
je 0x4854d0
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00404410
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004088c4
mov ebx, eax
mov eax, dword [ebp + 8]
push eax
call fcn.004850e4
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4854fc
lea eax, [ebp - 8]
mov edx, 2
call fcn.004041c4
ret
Function at 0x48a7c4
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48a918
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x48ed54]
call fcn.00404660
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x48a88b
mov dl, 1
mov eax, dword [0x418d14]
call fcn.0040339c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48a87b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x48a924
mov edx, 0x48a924
mov eax, dword [0x48e668]
call fcn.0048315c
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a882
mov eax, dword [ebp - 0x10]
call fcn.004033cc
ret
push 1
push dword [0x48ed54]
push 0x48a934
lea edx, [ebp - 0x1c]
mov eax, dword [0x48d9e8]
mov eax, dword [eax]
call fcn.004663f8
push dword [ebp - 0x1c]
push 0x48a940
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.00404520
mov eax, dword [ebp - 0x18]
call fcn.00404660
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x264], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1fa], 0
je 0x48a8f8
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1fc]
call dword [ebx + 0x1f8]
jmp 0x48a8fd
call fcn.004831ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a91f
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004041c4
ret

Function at 0x48a9e8
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor edx, edx
mov dword [ebp - 0x150], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x14c], edx
xor eax, eax
push ebp
push 0x48aad3
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x140]
push eax
lea edx, [ebp - 0x14c]
mov eax, dword [0x48d9e8]
mov eax, dword [eax]
call fcn.004663f8
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00408e3c
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.0040cd94
lea eax, [ebp - 0x144]
mov edx, 0x48aae8
call fcn.00404468
mov eax, dword [ebp - 0x144]
call fcn.00404660
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x48aab5
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404410
mov eax, dword [ebp - 0x150]
call fcn.00408da4
lea eax, [ebp - 0x140]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x48aa7d
push ebx
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48aada
lea eax, [ebp - 0x150]
mov edx, 4
call fcn.004041c4
ret
Function at 0x406d10
Capabilities:
Encode data using xor

Disassembly:
and eax, 0
push esi
pop esi
nop
sub eax, 0xffffff89
mov edx, 0xbcd3874c
xor dword [ecx + 0x2d], edx
add ecx, 4
push ecx
pop ecx
nop
dec eax
jne 0x406d21
pop eax
pop edx
pop ecx
pop esi
cmpsd dword [esi], dword es:[edi]
movsb byte es:[edi], byte [esi]
mov byte [0x401a3793], dh
loop 0x406d2e
xor eax, 0x360d0eb5
dec edx
mov bh, 0xd4
sti
sub al, byte [esi]
in al, dx
fdiv st(2)
invalid

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x4041b8
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 0xf003f
push 0
push 0x404374
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404219
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404390
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40428b
xor eax, eax
push ebp
push 0x404284
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404010
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40426d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4043b0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40428b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x40436c
cmp byte [ebp - 0xd], 0
jne 0x4042cd
cmp byte [ebp - 0x12], 0
je 0x40436c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4042e6
dec ebx
cmp byte [ebx], 0x2e
je 0x4042f5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4042e5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40436c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404322
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40436c
cmp byte [ebp - 0xd], 0
je 0x40436c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40436c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x40428b
Capabilities:
Get geographical location

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 0xf003f
push 0
push 0x404374
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x404219
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x404390
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x40428b
xor eax, eax
push ebp
push 0x404284
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
call fcn.00404010
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40426d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4043b0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40428b
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x40436c
cmp byte [ebp - 0xd], 0
jne 0x4042cd
cmp byte [ebp - 0x12], 0
je 0x40436c
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4042e6
dec ebx
cmp byte [ebx], 0x2e
je 0x4042f5
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4042e5
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40436c
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404322
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40436c
cmp byte [ebp - 0xd], 0
je 0x40436c
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40436c
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x406b38
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 0x406b71
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403548
jmp 0x406b7a
mov eax, ebx
mov edx, esi
call fcn.004034b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x409890
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 0x4099c4
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 0x4099ae
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x4098ed
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4099ae
cmp dword [ebp - 0x10], 0
jne 0x409902
mov eax, dword [ebp - 8]
call fcn.00403460
mov bl, 1
jmp 0x4099ae
cmp dword [ebp - 0x10], 0x70000000
jb 0x409910
call fcn.00407314
mov esi, dword [ebp - 0x10]
shr esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403548
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.004037e8
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 0x4098b6
test eax, eax
jne 0x4099ae
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x40995e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x4099ae
mov esi, dword [ebp - 0x10]
shr esi, 0
jmp 0x409967
dec esi
test esi, esi
je 0x409975
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x409966
cmp dword [ebp - 0xc], 7
jne 0x409980
test esi, esi
je 0x409980
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004038bc
cmp dword [ebp - 0xc], 7
jne 0x4099a1
test esi, esi
je 0x4099a1
lea eax, [ebp - 0x14]
call fcn.004037e8
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004034b4
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099cb
lea eax, [ebp - 0x14]
call fcn.00403460
ret

Function at 0x40a36c
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x40f640
mov eax, esi
mov edx, 8
test al, 1
je 0x40a388
shr eax, 1
xor eax, 0xedb88320
jmp 0x40a38a
shr eax, 1
dec edx
jne 0x40a37b
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x40a374
pop esi
ret

Function at 0x40be2c
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.0040bde0
test al, al
jne 0x40be4d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x40be99
xor eax, eax
push ebp
push 0x40be89
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004037dc
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_1
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40be90
lea eax, [ebp - 0xc]
call fcn.0040be1c
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c1d8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40c1e0
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x40c2cd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00409778
mov edx, dword [ebp - 8]
mov ecx, 0x40c2e4
xor eax, eax
call fcn.0040c0c8
push 0
mov eax, dword [ebp - 4]
call fcn.004037dc
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
jne 0x40c29b
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0xb7
je 0x40c1fa
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.0040bb9c
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.0040636c
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.00409c60
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.0040bb6c
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x405898]
call fcn.00407320
call fcn.00402f30
jmp 0x40c1fa
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.004034b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c2d4
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00403484
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403484
ret

Function at 0x40c2f4
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x40e4e4]
cmp dword [eax], 2
jne 0x40c35c
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x40c317
xor eax, eax
jmp 0x40c36b
lea eax, [esp + 8]
push eax
push 0x40c370
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_1
test eax, eax
je 0x40c35c
xor eax, eax
jmp 0x40c36b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
neg eax
sbb eax, eax
neg eax
add esp, 0x14
ret

Function at 0x40c384
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 0x40c3de
inc esi
xor edi, edi
cmp edi, 1
jne 0x40c3aa
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x40c3b8
cmp edi, 1
jle 0x40c3b8
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0040be2c
test eax, eax
jne 0x40c3de
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x40c3de
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x40c3de
inc edi
dec esi
jne 0x40c39a
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8
Function at 0x40c3e8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 1], dl
mov esi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test edi, edi
je 0x40c435
xor ebx, ebx
jmp 0x40c42a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, edi
call fcn.00406318
test eax, eax
jne 0x40c429
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x40c4e5
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40c40b
mov al, byte [ebp - 1]
sub al, 1
jb 0x40c440
je 0x40c449
jmp 0x40c452
call fcn.00409a0c
mov edi, eax
jmp 0x40c454
call sub.kernel32.dll_GetUserDefaultLangID
mov edi, eax
jmp 0x40c454
xor edi, edi
test di, di
je 0x40c4e5
xor ebx, ebx
jmp 0x40c490
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, di
cmp eax, edx
jne 0x40c48f
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x40c484
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x40c48f
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40c4e5
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40c461
xor ebx, ebx
jmp 0x40c4da
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, edi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x40c4d9
mov eax, dword [ebp - 8]
cmp dword [eax + 0x2c], 0
je 0x40c4ce
call sub.kernel32.dll_GetACP
mov edx, dword [ebp - 8]
cmp eax, dword [edx + 0x2c]
jne 0x40c4d9
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x40c4e5
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call esi
test al, al
jne 0x40c49f
mov al, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x40c890
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 0x40c965
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40c97c
push ebx
push 0x40c988
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.0040377c
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402764
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.004037dc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x40c910
mov al, 0x62
call fcn.0040c52c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040c864
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x40c919
call fcn.0040c864
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_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c96c
lea eax, [ebp - 4]
call fcn.00403460
ret
Function at 0x40ca28
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_1
test eax, eax
je 0x40cadc
jmp 0x40cad1
cmp dword [esi + 0x10], 0x1000
jne 0x40cabd
test byte [esi + 0x15], 1
jne 0x40cabd
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x40ca7c
cmp eax, 2
je 0x40ca7c
cmp eax, 0x10
je 0x40ca7c
cmp eax, 0x20
jne 0x40ca91
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 0x40ca91
mov bl, 1
xor ebp, ebp
jmp 0x40caa2
mov eax, dword [esi]
add eax, ebp
call fcn.0040ca20
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40ca95
test bl, bl
je 0x40cabd
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_1
test eax, eax
je 0x40cadc
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40ca54
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret