joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002af5
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1007034]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1007040]
je 0x1002b11
inc eax
cmp eax, 0x12
jb 0x1002b02
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1007040]
mov dword [ebp - 0x110], esi
jne 0x1002cbc
mov eax, dword [0x1007908]
cmp eax, 1
je 0x1002c8a
test eax, eax
jne 0x1002b47
cmp dword [0x100703c], 1
je 0x1002c8a
cmp ecx, 0xfc
je 0x1002cbc
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002b82
push 5
pop ecx
mov esi, 0x100165c
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002b8d
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1002bc5
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002ba5
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001658
push ebx
call fcn.01003bd0
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002bca
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1007044]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1002be4
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01003820
mov edx, esp
push 6
pop ecx
mov esi, 0x100163c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c10
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002c1c
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1002c35
mov eax, dword [ebp - 0x110]
mov esi, 0x1001638
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1007044]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1002c53
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1002c5f
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001610
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01003ac7
add esp, 0xc
jmp 0x1002cbc
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1002cbc
mov esi, dword [esi + 0x1007044]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1002ca1
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01002558
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002feb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
cmp dword [ebp + 8], edx
push edi
mov dword [esi], edx
mov edi, ecx
mov dword [ebx], 1
je 0x1002ff7
mov ecx, dword [ebp + 8]
add dword [ebp + 8], 4
mov dword [ecx], edi
cmp byte [eax], 0x22
jne 0x100300a
xor ecx, ecx
test edx, edx
sete cl
inc eax
mov edx, ecx
mov cl, 0x22
jmp 0x1003037
inc dword [esi]
test edi, edi
je 0x1003015
mov cl, byte [eax]
mov byte [edi], cl
inc edi
mov cl, byte [eax]
movzx ebx, cl
inc eax
test byte [ebx + 0x1007dc1], 4
je 0x1003030
inc dword [esi]
test edi, edi
je 0x100302f
mov bl, byte [eax]
mov byte [edi], bl
inc edi
inc eax
test cl, cl
mov ebx, dword [ebp + 0xc]
je 0x1003069
test edx, edx
jne 0x1002ff7
cmp cl, 0x20
je 0x1003045
cmp cl, 9
jne 0x1002ff7
test edi, edi
je 0x100304d
mov byte [edi - 1], 0
and dword [ebp - 4], 0
cmp byte [eax], 0
je 0x1003130
mov cl, byte [eax]
cmp cl, 0x20
je 0x1003066
cmp cl, 9
jne 0x100306c
inc eax
jmp 0x100305a
dec eax
jmp 0x100304d
cmp byte [eax], 0
je 0x1003130
cmp dword [ebp + 8], 0
je 0x1003084
mov ecx, dword [ebp + 8]
add dword [ebp + 8], 4
mov dword [ecx], edi
inc dword [ebx]
xor ebx, ebx
inc ebx
xor edx, edx
jmp 0x100308f
inc eax
inc edx
cmp byte [eax], 0x5c
je 0x100308d
cmp byte [eax], 0x22
jne 0x10030bf
test dl, 1
jne 0x10030bd
cmp dword [ebp - 4], 0
je 0x10030b0
lea ecx, [eax + 1]
cmp byte [ecx], 0x22
jne 0x10030b0
mov eax, ecx
jmp 0x10030b2
xor ebx, ebx
xor ecx, ecx
cmp dword [ebp - 4], ecx
sete cl
mov dword [ebp - 4], ecx
shr edx, 1
test edx, edx
je 0x10030d0
test edi, edi
je 0x10030cb
mov byte [edi], 0x5c
inc edi
inc dword [esi]
dec edx
jne 0x10030c3
mov cl, byte [eax]
test cl, cl
je 0x100311e
cmp dword [ebp - 4], 0
jne 0x10030e6
cmp cl, 0x20
je 0x100311e
cmp cl, 9
je 0x100311e
test ebx, ebx
je 0x1003118
test edi, edi
je 0x1003107
movzx edx, cl
test byte [edx + 0x1007dc1], 4
je 0x1003100
mov byte [edi], cl
inc edi
inc eax
inc dword [esi]
mov cl, byte [eax]
mov byte [edi], cl
inc edi
jmp 0x1003116
movzx ecx, cl
test byte [ecx + 0x1007dc1], 4
je 0x1003116
inc eax
inc dword [esi]
inc dword [esi]
inc eax
jmp 0x1003086
test edi, edi
je 0x1003126
mov byte [edi], 0
inc edi
inc dword [esi]
mov ebx, dword [ebp + 0xc]
jmp 0x1003051
mov eax, dword [ebp + 8]
test eax, eax
je 0x100313a
and dword [eax], 0
inc dword [ebx]
pop edi
pop ebx
leave
ret
Function at 0x1004596
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
push edi
xor edi, edi
cmp eax, dword [0x1007c64]
je 0x1004583
cmp eax, edi
je 0x1004583
mov eax, dword [esi + 0x2c]
cmp dword [eax], edi
jne 0x1004583
mov eax, dword [esi + 0x34]
cmp eax, edi
je 0x100454e
cmp dword [eax], edi
jne 0x100454e
cmp eax, dword [0x1007d80]
je 0x100454e
push eax
call fcn.01004236
push dword [esi + 0x3c]
call fcn.01005a73
pop ecx
pop ecx
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x1004571
cmp dword [eax], edi
jne 0x1004571
cmp eax, dword [0x1007d84]
je 0x1004571
push eax
call fcn.01004236
push dword [esi + 0x3c]
call fcn.01005a09
pop ecx
pop ecx
push dword [esi + 0x2c]
call fcn.01004236
push dword [esi + 0x3c]
call fcn.01004236
pop ecx
pop ecx
mov eax, dword [esi + 0x40]
cmp eax, dword [0x1007d7c]
je 0x10045a6
cmp eax, edi
je 0x10045a6
cmp dword [eax], edi
jne 0x10045a6
push eax
call fcn.01004236
push dword [esi + 0x44]
call fcn.01004236
pop ecx
pop ecx
mov eax, dword [esi + 0x50]
cmp eax, dword [0x1007c60]
je 0x10045cd
cmp eax, edi
je 0x10045cd
cmp dword [eax + 0xb4], edi
jne 0x10045cd
push eax
call fcn.0100586f
push dword [esi + 0x50]
call fcn.01004236
pop ecx
pop ecx
push esi
call fcn.01004236
pop ecx
pop edi
pop esi
pop ebp
ret
Function at 0x10056c7
Capabilities:
Get system information on windows

Disassembly:
push 0x1c
push 0x1001d38
call fcn.010036bc
xor esi, esi
cmp dword [0x1007c50], esi
jne 0x10056cd
lea eax, [ebp - 0x1c]
push eax
xor edi, edi
inc edi
push edi
push 0x1001d0c
push edi
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
test eax, eax
je 0x10056b8
mov dword [0x1007c50], edi
jmp 0x10056cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10056cd
mov dword [0x1007c50], 2
mov eax, dword [0x1007c50]
cmp eax, 2
je 0x10057cd
cmp eax, esi
je 0x10057cd
cmp eax, 1
jne 0x10057f3
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x10056ff
mov eax, dword [0x1007c44]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
xor eax, eax
cmp dword [ebp + 0x20], esi
setne al
lea eax, [eax*8 + 1]
push eax
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x10057f3
and dword [ebp - 4], 0
lea edi, [ebx + ebx]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01003820
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x2c], esi
mov ecx, edi
xor eax, eax
mov edi, esi
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
or dword [ebp - 4], 0xffffffff
jmp 0x1005778
test esi, esi
jne 0x1005793
push ebx
push 2
call fcn.01004425
pop ecx
pop ecx
mov esi, eax
test esi, esi
je 0x10057f3
mov dword [ebp - 0x20], 1
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x10057bb
push dword [ebp + 0x14]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
je 0x10057c8
push esi
call fcn.01004236
pop ecx
mov eax, dword [ebp - 0x24]
jmp 0x100583b
mov edi, dword [ebp + 0x1c]
cmp edi, esi
jne 0x10057da
mov edi, dword [0x1007c34]
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x10057e7
mov ebx, dword [0x1007c44]
push edi
call fcn.01005f6a
pop ecx
cmp eax, 0xffffffff
jne 0x10057f7
xor eax, eax
jmp 0x100583b
cmp eax, ebx
je 0x1005819
push 0
push 0
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push eax
push ebx
call fcn.01005fb4
add esp, 0x18
mov esi, eax
test esi, esi
je 0x10057f3
mov dword [ebp + 0xc], esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
mov ebx, eax
test esi, esi
je 0x1005839
push esi
call fcn.01004236
pop ecx
mov eax, ebx
lea esp, [ebp - 0x38]
call fcn.010036f7
ret
Function at 0x401360
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
sub esp, 0x410
mov eax, dword [0x40b080]
mov dword [esp + 0x40c], eax
lea eax, [esp]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4013e6
push 0x104
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x30c]
push edx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00403697
mov eax, dword [esp + 0x14]
add esp, 0x14
push 0xff
lea ecx, [esp + 0xc]
push ecx
push 1
push 0
lea edx, [esp + 0x11c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x40c]
call fcn.004032ce
add esp, 0x410
ret
Function at 0x401970
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
sub esp, 0x50c
mov eax, dword [0x40b080]
push edi
mov dword [esp + 0x50c], eax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x40c]
push ecx
lea edx, [esp + 0x310]
push edx
lea eax, [esp + 0x214]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00403697
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x2c]
add esp, 0x24
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4019e1
mov eax, dword [str._time.ini]
mov ecx, dword [0x409408]
mov dx, word [0x40940c]
mov dword [edi], eax
lea eax, [esp + 8]
mov dword [edi + 4], ecx
push eax
mov word [edi + 8], dx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
jne 0x401a2a
or eax, eax
mov ecx, dword [esp + 0x508]
call fcn.004032ce
add esp, 0x50c
ret
mov ecx, dword [0x40b544]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x514]
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x514]
push 0x100
lea eax, [esp + 0x110]
push eax
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
push 3
push 0
push 0
push connect
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x108]
push ecx
mov dword [0x40b544], eax
call fcn.00403837
mov ecx, dword [esp + 0x50c]
add esp, 4
call fcn.004032ce
add esp, 0x50c
ret

Function at 0x401ab0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x50c
mov eax, dword [0x40b080]
push edi
mov dword [esp + 0x50c], eax
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x40c]
push ecx
lea edx, [esp + 0x310]
push edx
lea eax, [esp + 0x214]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00403697
lea eax, [esp + 0x220]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edi, [esp + 0x2c]
add esp, 0x24
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401b21
mov eax, dword [str._time.ini]
mov ecx, dword [0x409408]
mov dx, word [0x40940c]
mov dword [edi], eax
mov eax, dword [0x40b544]
mov dword [edi + 4], ecx
push eax
mov word [edi + 8], dx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x518]
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x518]
push 0x100
lea edx, [esp + 0x114]
push edx
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0
push 0
push 3
push 0
push 0
push connect
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x50c]
mov dword [0x40b544], eax
lea eax, [esp + 0x10c]
pop edi
call fcn.004032ce
add esp, 0x50c
ret
Function at 0x401cc0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x28
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea ecx, [esp + 0xc]
push ecx
push str.SeShutdownPrivilege
push 0
mov dword [esp + 0x14], 1
mov dword [esp + 0x20], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x401dbd
lea edx, [esp]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x1c]
push eax
push 0x10
lea ecx, [esp + 0x14]
push ecx
push 0
push edx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x401dbd
push esi
push str.type
push str.time
call fcn.00401970
mov esi, dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 8
cmp eax, 1
jne 0x401d52
push 0
push 0xd
call esi
push str.type
push str.time
call fcn.00401970
add esp, 8
cmp eax, 2
jne 0x401d6f
push 0
push 6
call esi
push str.type
push str.time
call fcn.00401970
add esp, 8
cmp eax, 3
jne 0x401d8c
push 0
push 4
call esi
push str.type
push str.time
call fcn.00401970
add esp, 8
cmp eax, 4
pop esi
jne 0x401dbd
push 0x409428
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.LockWorkStation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
add esp, 0x28
ret
Function at 0x402bd0
Capabilities:
Check mutex on windows
Create thread
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40b080]
push str.860727262_time
push 0
push 0
mov dword [esp + 0x114], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x402d6f
push edi
push 0x104
lea eax, [esp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edi, [esp + 8]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x402c25
mov edx, dword [str._time.dll]
mov eax, dword [0x409510]
mov cx, word [0x409514]
push ebx
push ebp
push esi
push 0x409504
mov dword [edi], edx
push 0x72
mov dword [edi + 4], eax
push 0
mov word [edi + 8], cx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
lea edx, [esp + 0x2c]
push edx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov ebx, eax
lea eax, [esp + 0x14]
push eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402d6b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x40b548
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push str.lctime
push str.config
mov dword [0x40b558], eax
mov byte [0x40b564], 1
call fcn.00401970
add esp, 8
cmp eax, 1
jne 0x402d04
push 0
push 0
push 0
push 0x401400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push str.hide
push str.config
call fcn.00401970
add esp, 8
cmp eax, 1
jne 0x402d39
push 0x4093d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x4093c8
push eax
mov dword [0x40b560], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00401360
mov esi, dword [esp + 0x120]
push 0x6e
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0
push 0x401dd0
push 0
push 0x65
push esi
mov dword [0x40b56c], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
pop esi
pop ebp
pop ebx
pop edi
mov ecx, dword [esp + 0x108]
xor eax, eax
call fcn.004032ce
add esp, 0x10c
ret 0x10
Function at 0x402f76
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.00403260
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403011
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 [0x40b5d8]
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 0x403011
cmp eax, 1
je 0x403032
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 0x403011
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x402fde
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40300d
xor eax, eax
inc eax
jmp 0x403051
cmp edi, eax
jae 0x403015
xor eax, eax
jmp 0x403051
cmp eax, esi
jae 0x40301c
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 [0x40b5d8]
jmp 0x403035
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 0x40391d
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x409580
call fcn.00403ea0
mov edi, 0x94
mov eax, edi
call fcn.00403260
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 [0x40b5d8], ecx
mov eax, dword [esi + 4]
mov dword [0x40b5e4], eax
mov edx, dword [esi + 8]
mov dword [0x40b5e8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40b5dc], esi
cmp ecx, 2
je 0x40397d
or esi, 0x8000
mov dword [0x40b5dc], esi
shl eax, 8
add eax, edx
mov dword [0x40b5e0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4039b8
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4039b8
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4039d0
cmp eax, 0x20b
je 0x4039bd
mov dword [ebp - 0x1c], esi
jmp 0x4039e4
cmp dword [ecx + 0x84], 0xe
jbe 0x4039b8
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4039de
cmp dword [ecx + 0x74], 0xe
jbe 0x4039b8
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00404068
pop ecx
test eax, eax
jne 0x403a10
cmp dword [0x40b5c0], 1
jne 0x4039fd
call fcn.0040648b
push 0x1c
call fcn.00406314
push 0xff
call fcn.00404bf7
pop ecx
pop ecx
call fcn.00406c34
mov dword [ebp - 4], esi
call fcn.00406a89
test eax, eax
jge 0x403a29
push 0x1b
call fcn.004038f8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40bc58], eax
call fcn.00406967
mov dword [0x40b5b8], eax
call fcn.004068c5
test eax, eax
jge 0x403a4f
push 8
call fcn.004038f8
pop ecx
call fcn.00406692
test eax, eax
jge 0x403a60
push 9
call fcn.004038f8
pop ecx
push 1
call fcn.00404c27
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x403a76
push eax
call fcn.004038f8
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00406635
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x403a97
movzx eax, word [ebp - 0x40]
jmp 0x403a9a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402bd0
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x403ab8
push edi
call fcn.00404d52
call fcn.00404d74
jmp 0x403aea
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00403edb
ret
Function at 0x404c91
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40b618], esi
push edi
jne 0x404cb1
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 [0x40b614], esi
mov byte [0x40b610], al
jne 0x404d17
mov ecx, dword [0x40bc28]
test ecx, ecx
je 0x404cf8
mov eax, dword [0x40bc24]
sub eax, 4
cmp eax, ecx
jmp 0x404cf1
mov eax, dword [eax]
test eax, eax
je 0x404ce3
call eax
mov eax, dword [0x40bc24]
sub eax, 4
cmp eax, dword [0x40bc28]
mov dword [0x40bc24], eax
jae 0x404cdb
mov eax, 0x40b024
mov esi, 0x40b028
cmp eax, esi
mov edi, eax
jae 0x404d17
mov eax, dword [edi]
test eax, eax
je 0x404d10
call eax
add edi, 4
cmp edi, esi
jb 0x404d08
mov eax, 0x40b02c
mov esi, 0x40b034
cmp eax, esi
mov edi, eax
jae 0x404d36
mov eax, dword [edi]
test eax, eax
je 0x404d2f
call eax
add edi, 4
cmp edi, esi
jb 0x404d27
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404d50
push dword [ebp + 8]
mov dword [0x40b618], 1
call fcn.00404bf7
pop ebp
ret