joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426290
Capabilities:
Check os version

Disassembly:
push esi
push 0x9c
push 0
push 0x545488
mov dword [0x545484], 0
call fcn.004cb5a0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
push 0x545488
mov dword [0x545488], 0x94
call esi
test eax, eax
je 0x42630b
cmp dword [0x545498], 2
mov dword [0x545480], 1
jne 0x42630b
cmp dword [0x54548c], 5
jb 0x42630b
push 0x9c
push 0
push 0x545488
call fcn.004cb5a0
add esp, 0xc
push 0x545488
mov dword [0x545488], 0x9c
call esi
pop esi
ret

Function at 0x426420
Capabilities:
Check os version

Disassembly:
sub esp, 0xa4
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0xa0], eax
mov edx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push esi
mov esi, dword [esp + 0xb4]
push edx
push eax
mov dword [esp + 0xc], esi
call fcn.004263a0
test eax, eax
jne 0x426471
pop esi
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004cb553
add esp, 0xa4
ret 0xc
mov eax, dword [0x53a8b0]
cmp eax, 0xffffffff
je 0x42649a
mov dword [esi], eax
mov eax, 1
pop esi
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.004cb553
add esp, 0xa4
ret 0xc
push ebx
push ebp
push edi
push 0x9c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004cb5a0
add esp, 0xc
push 1
push 0x20
push 0
push 0
mov dword [esp + 0x24], 0x9c
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
mov ebp, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
mov edi, eax
mov ebx, edx
xor esi, esi
push ebx
push edi
push 0x20
lea ecx, [esp + 0x20]
push ecx
mov word [esp + 0xb8], si
call ebp
test eax, eax
jne 0x42650b
inc esi
cmp esi, 0xa
jl 0x4264d3
mov ecx, dword [esp + 0xb0]
pop edi
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.004cb553
add esp, 0xa4
ret 0xc
mov edx, dword [esp + 0x10]
mov dword [0x53a8b0], esi
mov dword [edx], esi
mov eax, 1
jmp 0x4264f0

Function at 0x426ab0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x42b8b0
Capabilities:
Set socket configuration

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x8004667e
push ecx
mov dword [esp + 0xc], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
pop ecx
ret

Function at 0x42b930
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
sub esp, 8
movzx eax, word [edi]
push esi
push 0
push ebx
push eax
mov dword [esp + 0x10], 0x10
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x42b9bc
push 4
lea ecx, [esp + 0xc]
push ecx
push 0xfffffffffffffffb
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x42b9b2
mov edx, dword [esp + 4]
push edx
push edi
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x42b9b2
cmp ebx, 2
je 0x42b997
push closesocket
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x42b9b2
mov ecx, esi
call fcn.0042b8b0
lea eax, [esp + 4]
push eax
push edi
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, esi
pop esi
add esp, 8
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop esi
add esp, 8
ret

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

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp fcn.0042b870
Function at 0x42ce80
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov eax, 2
push 0
mov dword [esp + 0x14], 0x10
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x7f000001
mov word [esp + 0x1a], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov ebx, dword [esp + 0x30]
mov ebp, dword [sym.imp.WS2_32.dll_socket]
push 0
push ebx
push 2
mov dword [esp + 0x24], eax
call ebp
mov edi, eax
cmp edi, 0xffffffff
je 0x42cff4
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x42cff4
cmp ebx, 1
jne 0x42cf2d
push ebx
push edi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x42cff4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x42cff4
push eax
push ebx
push 2
call ebp
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x42d002
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.WS2_32.dll_connect]
push edx
lea ecx, [esp + 0x18]
push ecx
push eax
call ebp
test eax, eax
jne 0x42cff4
cmp ebx, 2
jne 0x42cfa3
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x42cff4
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push edi
call ebp
test eax, eax
jne 0x42cff4
mov eax, edi
jmp 0x42cfb4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x42cff4
mov eax, dword [esi]
push eax
call fcn.0042c870
mov ecx, dword [esi + 4]
push ecx
call fcn.0042c870
add esp, 8
cmp ebx, 1
jne 0x42cfdc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004cb553
add esp, 0x18
ret
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x42d002
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x42d011
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
je 0x42d01d
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0x24]
pop edi
mov dword [esi + 4], 0xffffffff
mov dword [esi], 0xffffffff
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004cb553
add esp, 0x18
ret
Function at 0x42d1f0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov eax, 0x2008
call fcn.004cb570
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x2004], eax
mov ecx, dword [edi + 0xc]
push esi
push 0
push 0x2004
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
push 0
push 1
lea edx, [esp + 0x10]
mov esi, eax
mov eax, dword [edi + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp esi, 4
jl 0x42d26d
cmp dword [esp + 4], 0
je 0x42d26d
push 0
push edi
call fcn.0042bcf0
mov esi, eax
add esp, 8
test esi, esi
je 0x42d26d
lea ecx, [esp + 8]
push ecx
push 0
push esi
call dword [esp + 0x10]
push esi
push edi
call fcn.0042bcf0
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x42d251
mov ecx, dword [esp + 0x2008]
pop esi
xor ecx, esp
call fcn.004cb553
add esp, 0x2008
ret

Function at 0x42d910
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x14], eax
mov edx, dword [esp + 0x1c]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x10], 0x10
push edx
test bl, 4
je 0x42d95e
call dword [sym.imp.WS2_32.dll_getpeername]
jmp 0x42d964
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [esp + 0x2c]
push ebx
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
call fcn.0042c880
mov ecx, dword [esp + 0x2c]
add esp, 0x10
pop esi
pop ebx
xor ecx, esp
call fcn.004cb553
add esp, 0x18
ret

Function at 0x42dca0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x190], eax
mov eax, dword [esp + 0x198]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push esi
mov dword [eax + 0x14], ecx
mov ecx, dword [esp + 0x1a0]
lea edx, [esp + 4]
push edx
lea esi, [eax + 8]
push 0x202
mov dword [eax + 0xc], 0xffffffff
mov dword [esi], 0xffffffff
mov dword [eax + 0x10], ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 2
push esi
call fcn.0042ce80
add esp, 8
cmp dword [esi], 0xffffffff
je 0x42dcf3
cmp dword [0x54552c], 0
pop esi
jne 0x42dd18
call fcn.0049a090
inc dword [0x54552c]
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004cb553
add esp, 0x194
ret
Function at 0x42dd30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
push esi
mov esi, ecx
cmp dword [esi + 8], eax
push edi
setne al
mov edi, eax
test edi, edi
je 0x42dd5b
mov ecx, dword [esi + 0x40]
push ecx
call fcn.00498bb0
jmp 0x42dd64
mov edx, dword [esi + 0x40]
push edx
call fcn.00498be0
add esp, 4
cmp eax, 1
jne 0x42ddbd
mov eax, dword [esi + 0x6c]
and eax, 0xffffff9f
or eax, 0x10
mov dword [esi + 0x6c], eax
test edi, edi
je 0x42ddd3
mov eax, dword [esi + 0x10]
push ebx
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
lea ecx, [esp + 0x10]
push ecx
mov ebx, 1
call fcn.0042dc10
add esp, 4
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004cb553
add esp, 0x18
ret
call fcn.0042bbe0
cmp eax, 2
je 0x42ddd3
cmp eax, 3
je 0x42ddd3
or dword [esi + 0x6c], 0x1000
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
xor ecx, esp
call fcn.004cb553
add esp, 0x18
ret
Function at 0x42ddf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x410
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x40c], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x6c]
mov dword [esp + 8], 0
test cl, 8
je 0x42de9d
mov edx, dword [esi + 0x10]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x1007
push 0xffff
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x42de60
cmp dword [esp + 0xc], eax
jne 0x42de67
cmp dword [esi + 0x40], eax
je 0x42de70
mov ecx, esi
call fcn.0042dd30
cmp dword [esp + 0xc], 0
je 0x42de70
or dword [esi + 0x6c], 0x1000
jmp 0x42de74
and dword [esi + 0x6c], 0xfffffff7
lea eax, [esp + 0xc]
push eax
mov ebx, 2
call fcn.0042dc10
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004cb553
add esp, 0x410
ret
mov eax, dword [esi + 0x40]
push edi
test eax, eax
je 0x42df54
test cl, 0x10
je 0x42df35
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push eax
call fcn.00496710
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jle 0x42df27
lea edi, [esi + 0x28]
push eax
lea edx, [esp + 0x1c]
push edx
push edi
call fcn.0042a130
lea eax, [esp + 0x18]
push eax
mov ebx, 3
call fcn.0042dc10
add esp, 0x10
test dword [esi + 0x6c], 0x1000
jne 0x42df23
mov edx, dword [esi + 0x40]
push 0x400
lea ecx, [esp + 0x1c]
push ecx
push edx
call fcn.00496710
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jg 0x42ded0
call fcn.0042bbe0
mov eax, dword [esp + 0xc]
jmp 0x42dfc7
mov eax, dword [esp + 0xc]
call fcn.0042bbe0
mov eax, dword [esp + 0xc]
jmp 0x42dfc7
mov ecx, esi
call fcn.0042dd30
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40c]
xor ecx, esp
call fcn.004cb553
add esp, 0x410
ret
push ebp
mov edx, 0x400
mov ecx, esi
call fcn.0042bc70
mov ecx, dword [esi + 0x10]
mov ebp, dword [sym.imp.WS2_32.dll_recv]
push 0
mov edi, eax
push edi
lea eax, [esp + 0x24]
push eax
push ecx
call ebp
mov dword [esp + 0x10], eax
test eax, eax
jle 0x42dfc6
nop
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esi + 0x28]
push eax
call fcn.0042a130
lea eax, [esp + 0x1c]
push eax
mov ebx, 3
call fcn.0042dc10
add esp, 0x10
test dword [esi + 0x6c], 0x1000
jne 0x42dfc2
mov edx, dword [esi + 0x10]
push 0
push edi
lea ecx, [esp + 0x24]
push ecx
push edx
call ebp
mov dword [esp + 0x10], eax
test eax, eax
jg 0x42df80
jmp 0x42dfc6
mov eax, dword [esp + 0x10]
pop ebp
call fcn.0042bc10
test eax, eax
je 0x42dfd7
or dword [esi + 0x6c], 0x1000
mov ecx, dword [esp + 0x418]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cb553
add esp, 0x410
ret
Function at 0x42dff0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x40]
push edi
lea edi, [esi + 0x34]
mov dword [esp + 0xc], 0
mov ebx, 0x1000
test eax, eax
je 0x42e059
test byte [esi + 0x6c], 0x10
je 0x42e04d
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push ecx
push edx
push eax
call fcn.004967b0
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jg 0x42e047
call fcn.0042bbe0
cmp eax, 2
je 0x42e0bd
cmp eax, 3
je 0x42e0bd
or dword [esi + 0x6c], ebx
mov eax, dword [esp + 0xc]
jmp 0x42e070
and dword [esi + 0x6c], 0xffffff9f
jmp 0x42e070
mov ecx, esi
call fcn.0042dd30
pop edi
pop esi
pop ebx
pop ecx
ret
mov eax, dword [edi + 4]
mov ecx, dword [edi]
mov edx, dword [esi + 0x10]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0xc], eax
call fcn.0042bc10
test eax, eax
je 0x42e07e
or dword [esi + 0x6c], ebx
jmp 0x42e0ab
mov ecx, dword [esp + 0xc]
test ecx, ecx
jle 0x42e0ab
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x42e0a1
push 4
push ecx
push eax
push esi
call fcn.0042d990
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
push edi
call fcn.0042a150
add esp, 8
lea ecx, [esp + 0xc]
push ecx
mov ebx, 4
call fcn.0042dc10
add esp, 4
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42e0d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x668
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x664], eax
push ebp
mov ebp, dword [esp + 0x670]
push 0x70
lea eax, [esp + 0x20]
push 0
push eax
mov dword [esp + 0x10], 0x10
call fcn.004cb5a0
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov ecx, dword [ebp + 0x10]
lea edx, [esp + 0x34]
push edx
push 0
push 0x5dc
lea eax, [esp + 0x9c]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [esp + 8], eax
test eax, eax
jle 0x42e1b9
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x40]
push esi
mov dword [esp + 0x20], ecx
push edi
mov ecx, 0x1c
mov esi, ebp
lea edi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], edx
lea eax, [esp + 0x14]
mov dword [esp + 0x40], ebx
lea edx, [esp + 0x98]
push eax
mov ebx, 3
lea esi, [esp + 0x2c]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x98], 2
call fcn.0042dc10
mov ecx, dword [esp + 0x98]
add esp, 4
pop edi
pop esi
mov dword [ebp + 0x6c], ecx
pop ebx
mov ecx, dword [esp + 0x668]
pop ebp
xor ecx, esp
call fcn.004cb553
add esp, 0x668
ret
Function at 0x42e430
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, eax
push esi
mov esi, ecx
test ebx, ebx
je 0x42e448
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], ecx
mov eax, dword [esi + 0x6c]
test al, 8
je 0x42e45c
test ebx, ebx
je 0x42e4c1
mov ecx, esi
pop esi
pop ebx
jmp fcn.0042ddf0
test al, 1
je 0x42e471
test bl, 1
je 0x42e4c1
push edi
mov edi, esi
call fcn.0042e340
pop edi
pop esi
pop ebx
ret
test bl, 1
je 0x42e496
test al, 2
je 0x42e485
push esi
call fcn.0042e0d0
add esp, 4
jmp 0x42e48c
mov ecx, esi
call fcn.0042ddf0
mov eax, dword [esi + 0x6c]
test eax, 0x1000
jne 0x42e4c1
test bl, 2
je 0x42e4ad
test eax, 0x800
jne 0x42e4ad
test al, 2
jne 0x42e4ad
mov eax, esi
call fcn.0042dff0
test bl, 3
jne 0x42e4c1
lea edx, [esp + 0xc]
push edx
xor ebx, ebx
call fcn.0042dc10
add esp, 4
pop esi
pop ebx
ret
Function at 0x42e4d0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x31c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x32c]
xor ebp, ebp
push edi
mov edi, dword [esi + 0xc]
lea ebx, [esp + 0x10]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x20], ebp
mov dword [esp + 0x228], ebp
mov dword [esp + 0x124], ebp
call fcn.0042bcb0
mov esi, dword [esi]
cmp esi, ebp
je 0x42e57a
test byte [esi + 0x6c], 0x40
mov ebp, dword [esi]
jne 0x42e533
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x24]
jae 0x42e533
mov edi, dword [esi + 0x10]
lea ebx, [esp + 0x10]
lea ecx, [esp + 0x20]
call fcn.0042bcb0
mov eax, dword [esi + 0x6c]
mov ecx, eax
and ecx, 8
je 0x42e541
test al, 0x20
je 0x42e552
cmp dword [esi + 0x38], 0
jbe 0x42e574
test ecx, ecx
jne 0x42e574
test eax, 0x800
jne 0x42e574
mov edi, dword [esi + 0x10]
lea ebx, [esp + 0x10]
lea ecx, [esp + 0x228]
call fcn.0042bcb0
mov edi, dword [esi + 0x10]
lea ecx, [esp + 0x124]
call fcn.0042bcb0
mov esi, ebp
test ebp, ebp
jne 0x42e513
mov ecx, dword [esp + 0x334]
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
sub ecx, eax
imul ecx, ecx, 0x3e8
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x128]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x230]
push eax
lea ecx, [esp + 0x2c]
push ecx
inc edx
push edx
call dword [sym.imp.WS2_32.dll_select]
push 0
mov ebp, eax
call fcn.004ce03a
mov edi, dword [esp + 0x334]
add esp, 4
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
test ebp, ebp
jle 0x42e609
mov eax, dword [edi + 0xc]
cmp eax, 0xffffffff
je 0x42e609
lea ecx, [esp + 0x20]
push ecx
push eax
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42e609
call fcn.0042d1f0
mov ebx, dword [edi]
test ebx, ebx
je 0x42e685
nop
xor eax, eax
test ebp, ebp
jle 0x42e662
mov eax, dword [ebx + 0x10]
lea edx, [esp + 0x124]
push edx
push eax
call sub.WS2_32.dll___WSAFDIsSet
mov edx, dword [ebx + 0x10]
mov edi, eax
lea ecx, [esp + 0x228]
neg edi
push ecx
sbb edi, edi
push edx
and edi, 4
call sub.WS2_32.dll___WSAFDIsSet
mov ecx, dword [ebx + 0x10]
mov esi, eax
neg esi
sbb esi, esi
lea eax, [esp + 0x20]
push eax
and esi, 2
push ecx
or esi, edi
call sub.WS2_32.dll___WSAFDIsSet
neg eax
sbb eax, eax
neg eax
or eax, esi
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx]
push edx
push ecx
mov ecx, ebx
call fcn.0042e430
add esp, 8
mov ebx, esi
test esi, esi
jne 0x42e610
mov edi, dword [esp + 0x330]
mov eax, dword [edi]
test eax, eax
je 0x42e6b6
jmp 0x42e690
mov ecx, dword [eax + 0x6c]
mov esi, dword [eax]
test ecx, 0x1000
jne 0x42e6ab
cmp dword [eax + 0x38], 0
jne 0x42e6b0
test ecx, 0x400
je 0x42e6b0
call fcn.0042dc70
mov eax, esi
test esi, esi
jne 0x42e690
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x31c
ret
Function at 0x431450
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
call fcn.00430e10
mov edi, eax
add esp, 4
test edi, edi
jne 0x4314f6
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0042fc30
push 0x4fa348
push esi
push 0x4fa344
push ebx
push str.fopen_
push 5
call fcn.0042ff00
add esp, 0x2c
call fcn.004d0828
cmp dword [eax], 2
je 0x4314d5
call fcn.004d0828
cmp dword [eax], 6
je 0x4314d5
push 0xb8
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0042fc30
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xb6
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0042fc30
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x53bbc8
call fcn.004309e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x431518
push edi
call fcn.004ce5c0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00430420
push edi
push 1
push 0x6a
push esi
call fcn.00430780
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x439be0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004cb570
mov eax, dword [0x542c54]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x439c67
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x439c67
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.004d1921
add esp, 0x10
test eax, eax
jge 0x439c3d
mov eax, 0x100
push 0
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004cb553
add esp, 0x108
ret
mov ecx, dword [esp + 0x110]
lea eax, [esp + 0x114]
push eax
push ecx
lea edx, [esp + 0x10]
push 0xff
push edx
call fcn.004d1921
add esp, 0x10
mov byte [esp + 0x107], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x439cf9
call fcn.00439aa0
test eax, eax
jle 0x439cf9
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x439d0d
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [esp + 0x28]
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004cb553
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004cb553
add esp, 0x108
ret
Function at 0x439d60
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
jbe 0x439d88
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
sub edi, 1
jne 0x439d77
pop esi
pop ebx
movzx eax, cl
pop edi
ret
Function at 0x47f3a0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x47f3b9
mov esi, ebx
mov ebx, eax
jmp 0x47f3bb
mov esi, eax
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
cmp eax, dword [edi + 8]
jg 0x47f3cb
mov eax, edi
jmp 0x47f3d5
push eax
push edi
call fcn.00436d90
add esp, 8
test eax, eax
jne 0x47f3dd
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x47f3f9
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x47f3e4
cmp eax, dword [esi + 4]
jge 0x47f410
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x47f400
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
test eax, eax
jle 0x47f431
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x47f42e
dec eax
test eax, eax
jg 0x47f420
mov dword [edi + 4], eax
cmp dword [edi + 4], 0
jne 0x47f43e
mov dword [edi + 0xc], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret