joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48249e
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4d933c]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
mov esi, dword [ebp + 0x98]
cmp dword [esi + 0x198], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], ebx
jne 0x4825bb
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 0x9c]
mov edi, 0x80
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x48251b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0048af2e
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00481ce9
add esp, 0x18
jmp 0x4825c2
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x9c]
mov dword [ebp - 0x7c], edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x48254e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0048af2e
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x48250d
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.00482465
test eax, eax
jne 0x482583
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0048af2e
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x48250e
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.00482465
test eax, eax
jne 0x4825b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.0048af2e
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x48257e
mov esi, dword [ebp - 0x78]
push esi
call fcn.00482416
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049486b
add ebp, 0x90
leave
ret

Function at 0x4825da
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x308]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push 6
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x48261f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0048af2e
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00481c76
add esp, 0x14
jmp 0x48262c
push str.TCP_NODELAY_set_n
push esi
call fcn.00481c76
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x482a83
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x520]
cmp eax, 0xffffffff
push esi
je 0x482ad6
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x482ad6
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x482ab0
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x482ad6
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x482ad6
mov eax, esi
jmp 0x482ad9
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x483bab
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
and dword [eax], 0
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov dword [ebp - 8], eax
jne 0x483d1d
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x483d02
push ebx
push edi
jmp 0x483bf3
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x483c96
cmp dword [esi + 0x18], 0
je 0x483c96
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x483c96
push 0x10
pop edi
cmp eax, edi
jb 0x483c96
push 0x20
call dword [0x4d90b8]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x483ca6
mov ecx, dword [esi]
mov dword [ebx], ecx
mov ecx, dword [esi + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [esi + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [esi + 0xc]
push edi
mov dword [ebx + 0xc], ecx
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], eax
mov dword [ebx + 0x1c], eax
call dword [0x4d90b8]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x483caf
mov esi, dword [esi + 0x18]
mov edi, eax
mov eax, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [eax + 0x14]
test eax, eax
je 0x483c7d
push eax
call dword [0x4d90c4]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x483cbf
cmp dword [ebp - 4], 0
jne 0x483c86
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x483c90
mov dword [eax + 0x1c], ebx
mov esi, dword [ebp - 0xc]
mov dword [ebp - 0x14], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
mov dword [ebp - 0xc], esi
jne 0x483bf0
jmp 0x483cd8
mov dword [ebp - 8], 8
jmp 0x483cd8
push ebx
mov dword [ebp - 8], 8
call dword [0x4d90bc]
jmp 0x483cd7
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4d90bc]
push ebx
call dword [0x4d90bc]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x483cea
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x483cfd
push dword [ebp - 4]
call fcn.00483b6f
pop ecx
mov dword [ebp - 4], esi
jmp 0x483d11
cmp dword [ebp - 4], esi
jne 0x483d11
mov eax, 0x2af9
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop esi
leave
ret
Function at 0x48406f
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x4d90c8]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x484121
mov dword [edi + 0x3a4], eax
mov dword [edi + 0x3a8], eax
mov dword [edi + 0x3a0], eax
mov dword [edi + 0x39c], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.00483f2b
test eax, eax
pop ecx
pop ecx
je 0x484121
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.0047a40a
push dword [ebp + 8]
call dword [0x4d90c4]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x484121
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x484121
lea eax, [esi + 0x10]
push eax
push 0x483f9f
call fcn.0048b753
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x48413b
call fcn.00496e84
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.0048401d
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x48413e
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x487c95
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x31c
push ebx
mov ebx, dword [ebp + 0x78]
push esi
mov esi, dword [ebp + 0x74]
xor edx, edx
push edi
xor edi, edi
cmp esi, 0xffffffff
mov dword [ebp + 0x64], edx
mov dword [ebp + 0x68], edx
jne 0x487cc9
cmp ebx, esi
jne 0x487cc9
mov eax, dword [ebp + 0x7c]
call fcn.00487c76
jmp 0x487e66
cmp dword [ebp + 0x7c], edx
jle 0x487cde
mov edi, dword [ebp + 0x7c]
call fcn.0048925b
mov dword [ebp + 0x68], edx
mov dword [ebp + 0x64], eax
xor edx, edx
xor eax, eax
or ecx, 0xffffffff
inc eax
cmp esi, ecx
mov dword [ebp - 0xa8], edx
mov dword [ebp - 0x1ac], edx
je 0x487d0e
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0xa4], esi
mov dword [ebp - 0xa8], eax
mov ecx, esi
cmp ebx, 0xffffffff
mov dword [ebp - 0x2b0], edx
je 0x487d65
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x487d41
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x487d41
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x487d2f
cmp eax, dword [ebp - 0xa8]
jne 0x487d5f
cmp dword [ebp - 0xa8], 0x40
jae 0x487d5f
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x487d65
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x487d6e
xor ebx, ebx
jmp 0x487d71
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x487d90
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x487d95
jne 0x487d98
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], eax
push ebx
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x2b0]
push eax
lea eax, [ebp - 0x1ac]
push eax
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x487df1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x487dcb
cmp eax, 0x2714
jne 0x487df5
cmp dword [ebp + 0x7c], 0
jle 0x487d74
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.0048925b
push edx
push eax
call fcn.00489271
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x487d74
jmp 0x487df5
test eax, eax
jge 0x487dfa
or eax, 0xffffffff
jmp 0x487e66
jne 0x487e00
xor eax, eax
jmp 0x487e66
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x487e32
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x487e1c
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x487e32
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x487e64
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x487e4e
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x487e64
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x489db3
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x489dc0
jmp dword [eax*4 + 0x489e1b]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret
mov al, byte [esp + 4]
ret

Function at 0x48bb03
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x48bb27
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x48bb58
cmp dword [esi + 8], 0
jne 0x48bb48
push 0x4c01a4
push dword [eax + 8]
call fcn.0049082e
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x48bb48
or eax, 0xffffffff
jmp 0x48bb7e
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.00490285
mov edi, eax
add esp, 0x10
test edi, edi
je 0x48bb66
cmp edi, dword [ebp + 0xc]
jbe 0x48bb7c
test ebx, ebx
jne 0x48bb76
push dword [esi + 8]
call fcn.00490312
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x48fa1a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48fa47
call fcn.00496e97
mov dword [eax], esi
call fcn.00496e84
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0048f55b
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x48fa23
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48fa76
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00496eaa
pop ecx
call fcn.00496e84
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x48fa9d
test al, 1
je 0x48fa9d
test byte [esp + 0xc], 2
je 0x48fa9d
call fcn.00496e97
mov dword [eax], 5
call fcn.00496e84
mov dword [eax], 0xd
jmp 0x48fa6d
xor eax, eax
pop esi
ret
Function at 0x48ffe9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x490026
cmp dword [ebp + 0x14], edi
je 0x490026
cmp ecx, edi
jne 0x49002d
call fcn.00496e84
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048f55b
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x490041
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x490062
cmp ebx, 0xffffffff
je 0x490051
push ebx
push edi
push ecx
call fcn.0048c840
add esp, 0xc
cmp esi, edi
je 0x49000e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x49000e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x49007e
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x490085
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x490176
test word [esi + 0xc], 0x10c
je 0x4900d9
mov eax, dword [esi + 4]
test eax, eax
je 0x4900d9
jl 0x4901d7
cmp ebx, eax
mov edi, ebx
jb 0x4900aa
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x49017e
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048e807
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x49016e
cmp ebx, dword [ebp - 0xc]
jb 0x490146
cmp dword [ebp - 0xc], 0
je 0x490103
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4900f8
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4900ff
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x49010e
mov eax, SysReAllocString
cmp ebx, eax
ja 0x49010e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4901aa
push eax
push dword [ebp - 8]
push esi
call fcn.004922e1
pop ecx
push eax
call fcn.0049f128
add esp, 0xc
test eax, eax
je 0x4901e9
cmp eax, 0xffffffff
je 0x4901d7
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x49016e
push esi
call fcn.0049ea47
cmp eax, 0xffffffff
pop ecx
je 0x4901db
cmp dword [ebp - 4], 0
je 0x4901aa
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x49008d
mov eax, dword [ebp + 0x14]
jmp 0x490028
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x490195
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0048c840
add esp, 0xc
call fcn.00496e84
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x49001e
cmp dword [ebp + 0xc], 0xffffffff
je 0x4901c0
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0048c840
add esp, 0xc
call fcn.00496e84
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x49001e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x490028
or dword [esi + 0xc], 0x10
jmp 0x4901db
Function at 0x49486b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d933c]
jne 0x494875
repz ret
jmp fcn.004a3fdc
Function at 0x49b465
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4d9df0]
je 0x49b480
inc edi
cmp edi, 0x17
jb 0x49b471
cmp edi, 0x17
jae 0x49b600
push ebp
push 3
call fcn.004a7fd1
cmp eax, 1
pop ecx
je 0x49b5cc
push 3
call fcn.004a7fd1
test eax, eax
pop ecx
jne 0x49b4b4
cmp dword [0x4d9194], 1
je 0x49b5cc
cmp ebx, 0xfc
je 0x49b5ff
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4df5f0
push ebp
call fcn.004930c4
add esp, 0xc
test eax, eax
je 0x49b4ea
push esi
push esi
push esi
push esi
push esi
call fcn.0048f45f
add esp, 0x14
push 0x104
mov esi, 0x4df609
push esi
push 0
mov byte [0x4df70d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49b52e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004930c4
add esp, 0xc
test eax, eax
je 0x49b52e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048f45f
add esp, 0x14
push esi
call fcn.0048f600
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x49b573
push esi
call fcn.0048f600
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4df904
push 0x4b8abc
sub ecx, eax
push ecx
push eax
call fcn.00493588
add esp, 0x14
test eax, eax
je 0x49b573
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048f45f
add esp, 0x14
jmp 0x49b575
xor esi, esi
push 0x4b8ab8
push ebx
push ebp
call fcn.004a4c54
add esp, 0xc
test eax, eax
je 0x49b595
push esi
push esi
push esi
push esi
push esi
call fcn.0048f45f
add esp, 0x14
push dword [edi*8 + 0x4d9df4]
push ebx
push ebp
call fcn.004a4c54
add esp, 0xc
test eax, eax
je 0x49b5b7
push esi
push esi
push esi
push esi
push esi
call fcn.0048f45f
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004a7e14
add esp, 0xc
jmp 0x49b5ff
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x49b5ff
cmp ebp, 0xffffffff
je 0x49b5ff
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d9df4]
push dword [esi]
call fcn.0048f600
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a7e14
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0049a5bb
xor ebx, ebx
cmp dword [0x4dff88], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4a7eea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a7fca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4a7fca
push eax
call fcn.0049a54d
mov dword [esp], 0x4b9e18
push edi
mov dword [0x4dff88], eax
call esi
push eax
call fcn.0049a54d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4dff8c], eax
call esi
push eax
call fcn.0049a54d
mov dword [0x4dff90], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00496f71
test eax, eax
pop ecx
pop ecx
je 0x4a7eb8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048f45f
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4a7eea
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0049a54d
cmp eax, ebx
pop ecx
mov dword [0x4dff98], eax
je 0x4a7eea
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0049a54d
pop ecx
mov dword [0x4dff94], eax
mov eax, dword [0x4dff94]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4a7f6f
cmp dword [0x4dff98], ecx
je 0x4a7f6f
push eax
call fcn.0049a5c4
push dword [0x4dff98]
mov esi, eax
call fcn.0049a5c4
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4a7f6f
cmp edi, ebx
je 0x4a7f6f
call esi
cmp eax, ebx
je 0x4a7f3c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4a7f3c
test byte [ebp - 0x18], 1
jne 0x4a7f6f
lea eax, [ebp - 0x10]
push eax
call fcn.00496fa8
test eax, eax
pop ecx
je 0x4a7f57
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048f45f
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4a7f66
or dword [ebp + 0x10], 0x200000
jmp 0x4a7faa
or dword [ebp + 0x10], 0x40000
jmp 0x4a7faa
mov eax, dword [0x4dff8c]
cmp eax, dword [ebp - 8]
je 0x4a7faa
push eax
call fcn.0049a5c4
cmp eax, ebx
pop ecx
je 0x4a7faa
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4a7faa
mov eax, dword [0x4dff90]
cmp eax, dword [ebp - 8]
je 0x4a7faa
push eax
call fcn.0049a5c4
cmp eax, ebx
pop ecx
je 0x4a7faa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4dff88]
call fcn.0049a5c4
cmp eax, ebx
pop ecx
je 0x4a7fca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4a7fcc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x44fb2597
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6459724a
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret