joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000b68f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1000b72c
push ebx
push esi
call fcn.1000b658
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1000b5ec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1000b6d9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b72b
push edi
push eax
call fcn.1000c64b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1000b6f9
call fcn.1000a134
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1000b72a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1000b5ec
add esp, 0x20
test eax, eax
jne 0x1000b718
push edi
call fcn.1000a134
jmp 0x1000b720
push ebx
call fcn.1000a134
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1000b999
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013668
push 0x10013660
push str.FlsAlloc
push 0x1f
call fcn.1000b8b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000b9cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
jmp 0x1000b9d3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1000ba17
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013678
push 0x10013670
push str.FlsGetValue
push 0x21
call fcn.1000b8b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ba4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1000ba56
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10013680
push 0x10013678
push str.FlsSetValue
push 0x22
call fcn.1000b8b5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000ba90
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10012140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10011120
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001114d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001114d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40494e
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1048
call fcn.0040ff60
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x2fa7ae8], 0x594
push edi
mov dword [ebp - 8], eax
jne 0x404998
push 0x404788
push 0x404798
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceA]
mov eax, dword [0x80e488]
mov dword [ebp - 0x24], eax
mov eax, dword [0x80e48c]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.0040493d
mov eax, dword [0x80e490]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x28], eax
mov eax, dword [0x80e494]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, ebx
shl eax, 4
cmp dword [0x2fa7ae8], 0xc
mov dword [ebp - 4], eax
jne 0x404a33
push esi
lea eax, [ebp - 0x848]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x1048]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
lea eax, [ebp - 0x48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, dword [0x2fa7ae8]
cmp eax, 0xfa9
jne 0x404a4f
mov dword [0x2fa7084], 0xedeb2e40
cmp eax, 0x3eb
jne 0x404a5c
mov dword [0x2fa6a34], esi
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, ebx
shr edx, cl
lea eax, [edi + ebx]
mov dword [ebp - 0x14], eax
mov dword [0x2fa7080], 0xf4ea3dee
add edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2fa7ae8], 0x213
mov dword [ebp - 0x14], edx
jne 0x404a98
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
add edi, edx
add eax, dword [ebp - 0x2c]
xor eax, edi
xor dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, ebx
call fcn.00404944
mov ebx, eax
lea eax, [ebp - 0x10]
call fcn.00404936
dec dword [ebp - 0x18]
jne 0x4049d1
cmp dword [0x2fa7ae8], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], ebx
jne 0x404b02
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 8]
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404e7c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
push ebx
push esi
xor esi, esi
cmp dword [0x2fa7ae8], 0x400
push edi
jne 0x404ee2
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
push esi
push esi
call fcn.004052ad
push esi
push esi
call fcn.004052ad
push esi
push esi
call fcn.004056a1
add esp, 0x10
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00404913
fstp st(0)
push esi
call fcn.004058c4
pop ecx
push esi
push esi
call fcn.00405234
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.004048f0
fstp st(0)
mov eax, dword [0x80eb14]
mov dword [0x2fa7ae8], eax
mov eax, dword [0x80eaec]
mov dword [0x2fa7aec], eax
call fcn.00404c7f
xor ebx, ebx
mov edi, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [esp + 0x10]
push eax
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp ebx, edi
jle 0x404f2e
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f37
inc ebx
cmp ebx, 0x1c1b
jl 0x404f02
xor ebx, ebx
push esi
lea eax, [esp + 0x1c]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push 0x404804
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp ebx, edi
jle 0x404f62
cmp dword [esp + 0x14], 0x785074d5
jne 0x404f6b
inc ebx
cmp ebx, 0x11915
jl 0x404f39
mov eax, dword [0x2fa6a38]
mov dword [0x2fa707c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4069f5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80d1e8]
jne 0x4069ff
repz ret
jmp fcn.0040c41b
Function at 0x40f5f7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407944
and dword [ebp - 4], 0
cmp dword [0x80f75c], 0
mov ebx, eax
jne 0x40f6a8
push 0x404704
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40f759
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4046f8
push edi
call esi
test eax, eax
je 0x40f759
push eax
call fcn.004078d2
mov dword [esp], 0x4046e8
push edi
mov dword [0x80f75c], eax
call esi
push eax
call fcn.004078d2
mov dword [esp], 0x4046d4
push edi
mov dword [0x80f760], eax
call esi
push eax
call fcn.004078d2
mov dword [esp], 0x4046b8
push edi
mov dword [0x80f764], eax
call esi
push eax
call fcn.004078d2
pop ecx
mov dword [0x80f76c], eax
test eax, eax
je 0x40f6a8
push 0x4046a0
push edi
call esi
push eax
call fcn.004078d2
pop ecx
mov dword [0x80f768], eax
mov eax, dword [0x80f768]
cmp eax, ebx
je 0x40f700
cmp dword [0x80f76c], ebx
je 0x40f700
push eax
call fcn.0040794d
push dword [0x80f76c]
mov esi, eax
call fcn.0040794d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40f700
test edi, edi
je 0x40f700
call esi
test eax, eax
je 0x40f6f7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40f6f7
test byte [ebp - 0xc], 1
jne 0x40f700
or dword [ebp + 0x10], 0x200000
jmp 0x40f739
mov eax, dword [0x80f760]
cmp eax, ebx
je 0x40f739
push eax
call fcn.0040794d
pop ecx
test eax, eax
je 0x40f739
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40f739
mov eax, dword [0x80f764]
cmp eax, ebx
je 0x40f739
push eax
call fcn.0040794d
pop ecx
test eax, eax
je 0x40f739
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x80f75c]
call fcn.0040794d
pop ecx
test eax, eax
je 0x40f759
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40f75b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e5e3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1000e5f2
pop dword [ebp - 0xc]
mov eax, 0xf53485f7
add eax, 0x1acc5ffb
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x5d3440c8
sub dword [ebp - 0x1c], 0xee1fb7d
mov dword [ebp - 0x18], 0x9532c660
add dword [ebp - 0x18], 0x9d0085e5
mov dword [ebp - 0x14], 0x175616e3
sub dword [ebp - 0x14], 0xcb09d2b5
mov dword [ebp - 0x10], 0xa0d62bee
sub dword [ebp - 0x10], 0xa0d62bee
lea eax, [ebp - 0x1c]
push eax
mov eax, 0xf106911e
sub eax, 0xe105613e
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xd6e97446
sub dword [ebp - 0x1c], 0x62770af0
mov dword [ebp - 0x18], 0x945a804c
sub dword [ebp - 0x18], 0x52ee1ed7
mov dword [ebp - 0x14], 0xeae5609a
add dword [ebp - 0x14], 0x788a0bd2
mov dword [ebp - 0x10], 0x86d004df
add dword [ebp - 0x10], 0x792ffb21
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x5bd4a310
add eax, 0xb42c8cd8
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x36e0c
push 0
call eax
mov ecx, 0x5e607c54
sub ecx, 0x5e603312
mov esi, eax
mov edx, 0x26b4b740
add edx, 0xe94cd2c0
add edx, dword [ebp - 0xc]
mov ebx, 0xb1690776
add ebx, 0x18fe2bba
sub dword [ebp - 8], 0xbc9f8960
mov edi, dword [edx]
add dword [ebp - 8], 0xcf8b5ff6
xor edi, ebx
xor dword [ebp - 8], edx
mov dword [esi], edi
mov dword [ebp - 8], 0x873b0e12
add esi, 0xbb495aef
sub esi, 0xbb495aeb
add edx, 4
loop 0x1000e714
add eax, 0x117db
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xc674266c
add ecx, 0x498bd994
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x401190
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011a9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011bd
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011de
cmp esi, eax
jae 0x4011b7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011d0
cmp esi, eax
jae 0x4011b7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402390
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov eax, dword [ecx + eax*4]
cmp eax, 0xffffffff
push edi
je 0x4023b1
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edx, dword [esi]
mov ecx, dword [esi + 8]
mov dword [ecx + edx*4], eax
mov edx, dword [esi]
mov eax, dword [esi + 8]
mov edi, dword [eax + edx*4]
push 4
lea ecx, [esp + 0xc]
push ecx
push 4
push 0xffff
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi]
inc eax
xor edx, edx
div dword [esi + 4]
mov eax, edi
pop edi
mov dword [esi], edx
pop esi
pop ecx
ret

Function at 0x402518
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x43c294]
push esi
mov esi, ecx
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x40258a
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohs]
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push edi
mov edi, dword [sym.imp.WS2_32.dll_socket]
jmp 0x402540
push 0
push 1
push 2
call edi
cmp eax, 0xffffffff
mov dword [esi + 0x40], eax
je 0x402587
xor eax, eax
mov ax, word [esi + 0x50]
mov word [esp + 0x10], 2
push eax
call ebx
mov ecx, dword [esi + 0x4c]
push ecx
mov word [esp + 0x16], ax
call ebp
push 0x10
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x40]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x402540
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
pop esi
call fcn.00411a09
add esp, 0x14
ret
Function at 0x406ce0
Capabilities:
Create service
Delete service
Start service

Disassembly:
push ebx
push ebp
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x406cfa
pop ebp
pop ebx
ret
mov eax, dword [esp + 0xc]
push esi
push edi
mov edi, dword [esp + 0x18]
push 0
push 0
push 0
push 0
push 0
push eax
push 1
push 3
push 1
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x406d3c
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x406d78
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x406d52
mov ebp, 1
jmp 0x406d6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x406d66
mov ebp, 1
jmp 0x406d6d
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test esi, esi
je 0x406d78
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret

Function at 0x406d90
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x406db0
pop edi
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x28]
push ebp
push esi
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebp, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x406dec
lea ecx, [esp + 0x10]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov ebx, 1
call ebp
push edi
call ebp
pop esi
pop ebp
pop edi
mov eax, ebx
pop ebx
add esp, 0x1c
ret

Function at 0x407090
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x4070b5
xor eax, eax
mov dword [esi + 4], 3
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
pop esi
ret 4

Function at 0x4070c0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4070d9
mov dword [esi + 4], 2
pop esi
ret

Function at 0x4070e0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 1
jne 0x4070f5
mov dword [esi + 4], eax
pop esi
ret
Function at 0x407100
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push 8
mov esi, ecx
call fcn.00423fb3
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add esp, 4
lea edx, [esi + 8]
push edx
push ebx
push eax
mov dword [eax], ecx
mov ecx, dword [esp + 0x18]
mov dword [eax + 4], esi
mov eax, dword [esp + 0x20]
push 0x407060
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test bl, 4
mov dword [esi + 0xc], eax
jne 0x407145
mov dword [esi + 4], 1
pop esi
pop ebx
ret 0x10

Function at 0x4094ec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40953f
call fcn.0042b310
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40953f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x409535
xor eax, eax
jmp 0x409658
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40956f
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40956f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x409655
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40959c
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040816b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x409655
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4095e5
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x4095e5
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x4095df
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040816b
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x409645
and dword [ebp + 0xc], 0
jmp 0x409645
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x409645
push 0xc
call fcn.00423fb3
mov esi, eax
test esi, esi
pop ecx
je 0x409627
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x409629
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x409640
push dword [ebp - 8]
call fcn.0041effc
jmp 0x409645
call fcn.0041efd3
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x4095aa
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41305d
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.004125b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4130f8
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 [0x581234]
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 0x4130f8
cmp eax, 1
je 0x413119
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 0x4130f8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4130c5
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4130f4
xor eax, eax
inc eax
jmp 0x413138
cmp edi, eax
jae 0x4130fc
xor eax, eax
jmp 0x413138
cmp eax, esi
jae 0x413103
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 [0x581234]
jmp 0x41311c
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 0x413384
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4335d8
call fcn.00413b78
mov edi, 0x94
mov eax, edi
call fcn.004125b0
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 [0x581234], ecx
mov eax, dword [esi + 4]
mov dword [0x581240], eax
mov edx, dword [esi + 8]
mov dword [0x581244], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x581238], esi
cmp ecx, 2
je 0x4133e4
or esi, 0x8000
mov dword [0x581238], esi
shl eax, 8
add eax, edx
mov dword [0x58123c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x41341f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41341f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x413437
cmp eax, 0x20b
je 0x413424
mov dword [ebp - 0x1c], esi
jmp 0x41344b
cmp dword [ecx + 0x84], 0xe
jbe 0x41341f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x413445
cmp dword [ecx + 0x74], 0xe
jbe 0x41341f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415c9b
pop ecx
test eax, eax
jne 0x41345f
push 0x1c
call fcn.00413360
pop ecx
call fcn.00417c38
test eax, eax
jne 0x413470
push 0x10
call fcn.00413360
pop ecx
call fcn.0041a909
mov dword [ebp - 4], esi
call fcn.00419b5c
test eax, eax
jge 0x413489
push 0x1b
call fcn.0041333b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x582b10], eax
call fcn.0041a7e7
mov dword [0x581224], eax
call fcn.0041a745
test eax, eax
jge 0x4134af
push 8
call fcn.0041333b
pop ecx
call fcn.0041a512
test eax, eax
jge 0x4134c0
push 9
call fcn.0041333b
pop ecx
push 1
call fcn.00413f5a
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4134d6
push eax
call fcn.0041333b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041a4b5
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4134f7
movzx eax, word [ebp - 0x40]
jmp 0x4134fa
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041eac6
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x413518
push edi
call fcn.00414087
call fcn.004140a9
jmp 0x41354a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00413bb3
ret