joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e32f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x47e35c
call fcn.0047fa66
mov dword [eax], esi
call fcn.0047fa53
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00478ca7
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x47e338
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47e38b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047fa79
pop ecx
call fcn.0047fa53
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x47e3b2
test al, 1
je 0x47e3b2
test byte [esp + 0xc], 2
je 0x47e3b2
call fcn.0047fa66
mov dword [eax], 5
call fcn.0047fa53
mov dword [eax], 0xd
jmp 0x47e382
xor eax, eax
pop esi
ret

Function at 0x47f08c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4d4304]
jne 0x47f096
repz ret
jmp fcn.0048d3bc

Function at 0x487373
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 + 0x4d4e20]
je 0x48738e
inc edi
cmp edi, 0x17
jb 0x48737f
cmp edi, 0x17
jae 0x48750e
push ebp
push 3
call fcn.00490cbe
cmp eax, 1
pop ecx
je 0x4874da
push 3
call fcn.00490cbe
test eax, eax
pop ecx
jne 0x4873c2
cmp dword [0x4d4160], 1
je 0x4874da
cmp ebx, 0xfc
je 0x48750d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4d9580
push ebp
call fcn.0047e4fd
add esp, 0xc
test eax, eax
je 0x4873f8
push esi
push esi
push esi
push esi
push esi
call fcn.00478bab
add esp, 0x14
push 0x104
mov esi, 0x4d9599
push esi
push 0
mov byte [0x4d969d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48743c
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0047e4fd
add esp, 0xc
test eax, eax
je 0x48743c
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00478bab
add esp, 0x14
push esi
call fcn.004796d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x487481
push esi
call fcn.004796d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4d9894
push 0x4aeb8c
sub ecx, eax
push ecx
push eax
call fcn.0047ba25
add esp, 0x14
test eax, eax
je 0x487481
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00478bab
add esp, 0x14
jmp 0x487483
xor esi, esi
push 0x4aeb88
push ebx
push ebp
call fcn.0048d719
add esp, 0xc
test eax, eax
je 0x4874a3
push esi
push esi
push esi
push esi
push esi
call fcn.00478bab
add esp, 0x14
push dword [edi*8 + 0x4d4e24]
push ebx
push ebp
call fcn.0048d719
add esp, 0xc
test eax, eax
je 0x4874c5
push esi
push esi
push esi
push esi
push esi
call fcn.00478bab
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00490b01
add esp, 0xc
jmp 0x48750d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48750d
cmp ebp, 0xffffffff
je 0x48750d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4d4e24]
push dword [esi]
call fcn.004796d0
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 0x490b01
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048273a
xor ebx, ebx
cmp dword [0x4d9ed8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x490bd7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x490cb7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x490cb7
push eax
call fcn.004826cc
mov dword [esp], 0x4aef88
push edi
mov dword [0x4d9ed8], eax
call esi
push eax
call fcn.004826cc
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d9edc], eax
call esi
push eax
call fcn.004826cc
mov dword [0x4d9ee0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0047bc6e
test eax, eax
pop ecx
pop ecx
je 0x490ba5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00478bab
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x490bd7
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004826cc
cmp eax, ebx
pop ecx
mov dword [0x4d9ee8], eax
je 0x490bd7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004826cc
pop ecx
mov dword [0x4d9ee4], eax
mov eax, dword [0x4d9ee4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x490c5c
cmp dword [0x4d9ee8], ecx
je 0x490c5c
push eax
call fcn.00482743
push dword [0x4d9ee8]
mov esi, eax
call fcn.00482743
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x490c5c
cmp edi, ebx
je 0x490c5c
call esi
cmp eax, ebx
je 0x490c29
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x490c29
test byte [ebp - 0x18], 1
jne 0x490c5c
lea eax, [ebp - 0x10]
push eax
call fcn.0047bca5
test eax, eax
pop ecx
je 0x490c44
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00478bab
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x490c53
or dword [ebp + 0x10], 0x200000
jmp 0x490c97
or dword [ebp + 0x10], 0x40000
jmp 0x490c97
mov eax, dword [0x4d9edc]
cmp eax, dword [ebp - 8]
je 0x490c97
push eax
call fcn.00482743
cmp eax, ebx
pop ecx
je 0x490c97
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x490c97
mov eax, dword [0x4d9ee0]
cmp eax, dword [ebp - 8]
je 0x490c97
push eax
call fcn.00482743
cmp eax, ebx
pop ecx
je 0x490c97
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d9ed8]
call fcn.00482743
cmp eax, ebx
pop ecx
je 0x490cb7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x490cb9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4931b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4d4304]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4931f5
cmp byte [ebp - 0x194], 2
jne 0x4931ef
cmp byte [ebp - 0x193], 2
je 0x4931f8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f08c
leave
ret
Function at 0x49aea7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x49aed6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x49aff7
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x49b017
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x49b050
cmp eax, 2
jg 0x49b050
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4b0468
push 2
push eax
call fcn.0047c1ba
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0047c1ba
add esp, 0x20
xor eax, eax
ret

Function at 0x49b216
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x49b288
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x49b262
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x49b287
push ebx
push esi
call fcn.004a43c7
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0049b182
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret
Function at 0x49b937
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4d4304]
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 0x49ba54
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 0x49b9b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a43c7
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0049b182
add esp, 0x18
jmp 0x49ba5b
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 0x49b9e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.004a43c7
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
jmp 0x49b9a6
lea edi, [esi + 0xc8]
lea ebx, [esi + 0x9a]
lea esi, [ebp - 0x74]
call fcn.0049b8fe
test eax, eax
jne 0x49ba1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a43c7
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push dword [ebp - 0x80]
jmp 0x49b9a7
mov eax, dword [ebp - 0x78]
lea edi, [eax + 0xfc]
lea ebx, [eax + 0xcc]
lea esi, [ebp + 0xc]
call fcn.0049b8fe
test eax, eax
jne 0x49ba51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push dword [ebp - 0x78]
call fcn.004a43c7
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x49ba17
mov esi, dword [ebp - 0x78]
push esi
call fcn.0049b8af
pop ecx
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f08c
add ebp, 0x90
leave
ret

Function at 0x49ba73
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 0x49bab8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004a43c7
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0049b10f
add esp, 0x14
jmp 0x49bac5
push str.TCP_NODELAY_set_n
push esi
call fcn.0049b10f
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x49bf1c
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 0x49bf6f
mov ecx, dword [ecx + 0x514]
mov ecx, dword [ecx]
lea eax, [ecx + eax*4]
cmp dword [eax], 0
je 0x49bf6f
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov eax, dword [eax]
je 0x49bf49
mov dword [ecx], eax
cmp dword [eax + 0x144], 0
mov esi, dword [eax + 0x12c]
jne 0x49bf6f
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x49bf6f
mov eax, esi
jmp 0x49bf72
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x49d044
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 0x49d1b6
push esi
mov esi, dword [ebp - 0x10]
test esi, esi
mov dword [ebp - 0xc], esi
je 0x49d19b
push ebx
push edi
jmp 0x49d08c
mov esi, dword [ebp - 0xc]
cmp dword [esi + 4], 2
jne 0x49d12f
cmp dword [esi + 0x18], 0
je 0x49d12f
mov eax, dword [esi + 0x10]
test eax, eax
jbe 0x49d12f
push 0x10
pop edi
cmp eax, edi
jb 0x49d12f
push 0x20
call dword [0x4d55e8]
mov ebx, eax
xor eax, eax
cmp ebx, eax
pop ecx
je 0x49d13f
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 [0x4d55e8]
test eax, eax
pop ecx
mov dword [ebx + 0x18], eax
je 0x49d148
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 0x49d116
push eax
call dword [0x4d55f4]
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
je 0x49d158
cmp dword [ebp - 4], 0
jne 0x49d11f
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x49d129
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 0x49d089
jmp 0x49d171
mov dword [ebp - 8], 8
jmp 0x49d171
push ebx
mov dword [ebp - 8], 8
call dword [0x4d55ec]
jmp 0x49d170
push dword [ebx + 0x18]
mov dword [ebp - 8], 8
call dword [0x4d55ec]
push ebx
call dword [0x4d55ec]
pop ecx
pop ecx
xor esi, esi
cmp dword [ebp - 0x10], esi
pop edi
pop ebx
je 0x49d183
push dword [ebp - 0x10]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], esi
je 0x49d196
push dword [ebp - 4]
call fcn.0049d008
pop ecx
mov dword [ebp - 4], esi
jmp 0x49d1aa
cmp dword [ebp - 4], esi
jne 0x49d1aa
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 0x49d508
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 [0x4d55f8]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3ac], esi
je 0x49d5ba
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.0049d3c4
test eax, eax
pop ecx
pop ecx
je 0x49d5ba
lea ebx, [edi + 0x398]
push dword [ebx]
call fcn.004938a2
push dword [ebp + 8]
call dword [0x4d55f4]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x49d5ba
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x49d5ba
lea eax, [esi + 0x10]
push eax
push 0x49d438
call fcn.004a4bef
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x49d5d4
call fcn.0047fa53
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x398
push edi
call fcn.0049d4b6
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x49d5d7
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a112e
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 0x4a1162
cmp ebx, esi
jne 0x4a1162
mov eax, dword [ebp + 0x7c]
call fcn.004a110f
jmp 0x4a12ff
cmp dword [ebp + 0x7c], edx
jle 0x4a1177
mov edi, dword [ebp + 0x7c]
call fcn.004a26f4
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 0x4a11a7
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 0x4a11fe
mov dword [ebp - 0x2b0], eax
xor eax, eax
cmp dword [ebp - 0xa8], edx
mov dword [ebp - 0x2ac], ebx
jbe 0x4a11da
cmp dword [ebp + eax*4 - 0xa4], ebx
je 0x4a11da
inc eax
cmp eax, dword [ebp - 0xa8]
jb 0x4a11c8
cmp eax, dword [ebp - 0xa8]
jne 0x4a11f8
cmp dword [ebp - 0xa8], 0x40
jae 0x4a11f8
mov dword [ebp + eax*4 - 0xa4], ebx
inc dword [ebp - 0xa8]
cmp ebx, ecx
jbe 0x4a11fe
mov ecx, ebx
cmp dword [ebp + 0x7c], edx
jge 0x4a1207
xor ebx, ebx
jmp 0x4a120a
lea ebx, [ebp + 0x5c]
lea esi, [ecx + 1]
xor eax, eax
cmp dword [ebp + 0x7c], eax
jle 0x4a1229
mov eax, edi
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp + 0x60], edx
jmp 0x4a122e
jne 0x4a1231
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 0x4a128a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x4a1264
cmp eax, 0x2714
jne 0x4a128e
cmp dword [ebp + 0x7c], 0
jle 0x4a120d
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call fcn.004a26f4
push edx
push eax
call fcn.004a270a
mov edi, dword [ebp + 0x7c]
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x4a120d
jmp 0x4a128e
test eax, eax
jge 0x4a1293
or eax, 0xffffffff
jmp 0x4a12ff
jne 0x4a1299
xor eax, eax
jmp 0x4a12ff
xor esi, esi
cmp dword [ebp + 0x74], 0xffffffff
je 0x4a12cb
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a12b5
inc esi
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x74]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a12cb
or esi, 4
cmp dword [ebp + 0x78], 0xffffffff
je 0x4a12fd
lea eax, [ebp - 0x2b0]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a12e7
or esi, 2
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 0x78]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4a12fd
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
add ebp, 0x6c
leave
ret
Function at 0x4a324c
Capabilities:
Parse pe header

Disassembly:
movsx eax, byte [esp + 4]
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x4a3259
jmp dword [eax*4 + 0x4a32b4]
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 0x4a4f9f
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 0x4a4fc3
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4a4ff4
cmp dword [esi + 8], 0
jne 0x4a4fe4
push 0x4b35dc
push dword [eax + 8]
call fcn.00477347
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4a4fe4
or eax, 0xffffffff
jmp 0x4a501a
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004792a9
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4a5002
cmp edi, dword [ebp + 0xc]
jbe 0x4a5018
test ebx, ebx
jne 0x4a5012
push dword [esi + 8]
call fcn.004773cc
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 0x402868
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
cmp dword [ebp + 0x14], 0
push ebx
push esi
push edi
lea esi, [ebp - 0x24c]
je 0x4028ad
push dword [ebp + 0x14]
mov eax, esi
push eax
call fcn.0040a478
mov eax, esi
push eax
call fcn.0040a385
push dword [ebp + 0x14]
lea esi, [ebp + eax - 0x24b]
push esi
call fcn.0040a478
push esi
call fcn.0040a385
lea esi, [esi + eax + 1]
push 0x85
call fcn.004098f8
push eax
push esi
call fcn.0040a478
push esi
call fcn.0040a385
lea esi, [esi + eax + 1]
push 0x4122d4
push esi
call fcn.0040a478
push esi
call fcn.0040a385
push 0x4c
mov byte [eax + esi + 1], 0
pop esi
push esi
push 0
lea eax, [ebp - 0x4c]
push eax
call fcn.0040a28a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x48], eax
mov eax, dword [0x414c78]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov edi, 0x400
push esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x1c], eax
call fcn.004073dc
cmp eax, esi
jne 0x40293c
lea eax, [ebp - 0x64c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x20], eax
cmp byte [ebp + 0x18], 0
mov ebx, dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], 0x1080c
push eax
je 0x40295b
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x40295d
call ebx
mov edi, eax
test edi, edi
jne 0x40298b
call dword [sym.imp.COMDLG32.dll_CommDlgExtendedError]
cmp eax, 0x3002
jne 0x402989
cmp byte [ebp + 0x18], 0
lea eax, [ebp - 0x4c]
mov byte [esi], 0
push eax
je 0x402985
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x402987
call ebx
mov edi, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0x14

Function at 0x402cf5
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4141c4], 0
jne 0x402d03
call fcn.00402ccb
mov ecx, dword [esp + 8]
mov eax, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
test esi, esi
jbe 0x402d30
test cl, 7
je 0x402d30
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec esi
inc ecx
jmp 0x402d11
cmp esi, 8
jb 0x402db4
mov edi, esi
shr edi, 3
xor eax, dword [ecx]
add ecx, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
sub esi, 8
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
mov edx, eax
movzx eax, dl
mov eax, dword [eax*4 + 0x4141c0]
xor eax, dword [ecx - 4]
shr edx, 8
xor eax, edx
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
movzx edx, al
shr eax, 8
xor eax, dword [edx*4 + 0x4141c0]
dec edi
jne 0x402d3a
xor edx, edx
test esi, esi
jbe 0x402dd4
push ebx
movzx edi, byte [edx + ecx]
movzx ebx, al
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x4141c0]
inc edx
cmp edx, esi
jb 0x402dbb
pop ebx
pop edi
pop esi
ret 0xc