joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412e60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
mov eax, 0x180
mov edx, 0x140
push ebp
push esi
cmp dword [ebx], 0x4a0054
mov ecx, dword [ebx + 8]
cmovne eax, edx
mov dword [esp + 0x20], ecx
add eax, dword [ebx + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
push edi
test eax, eax
je 0x412e97
mov byte [eax], 0
mov ebp, dword [esp + 0x34]
mov esi, dword [ebp + 0x8d8]
test esi, esi
je 0x413054
push dword [ecx + 8]
mov edi, dword [esi + 0x14]
call dword [0x4a000c]
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x412ef0
mov eax, dword [ebx + 0xc]
cmp byte [eax + 0x1c9], 0
je 0x412f02
push dword [eax + 0x64]
call dword [0x4a000c]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x412efd
mov edi, dword [esp + 0x34]
push edi
call dword [0x4a0004]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebx + 0xc]
jmp 0x412f0a
mov dword [esp + 0x10], 0
cmp byte [eax + 0x1ca], 0
je 0x412f1f
mov ecx, dword [eax + 0x444]
mov dword [esp + 0x14], ecx
jmp 0x412f27
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x412f3d
test byte [eax + 4], 0x10
je 0x412f3d
lea edx, [eax + 0x78]
mov dword [esp + 0x30], edx
jmp 0x412f47
lea eax, [ebp + 0x8dc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x4a4]
mov ecx, 1
cmp eax, ecx
jbe 0x412f9b
mov eax, dword [ebp + 0x8d8]
add eax, 0x74
nop
cmp dword [eax - 8], 0
mov edx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], eax
je 0x412f95
mov edi, dword [eax]
inc ecx
mov esi, dword [esp + 0x18]
add eax, 0x60
add esi, 0xffffffec
cmp edi, edx
cmovge esi, dword [esp + 0x20]
cmp edi, edx
cmovge edi, edx
cmp ecx, dword [ebp + 0x4a4]
jb 0x412f60
mov eax, dword [ebp + 0x4a4]
cmp ecx, eax
jne 0x412faa
push esi
call fcn.00413910
add esp, 4
jmp 0x412fb6
lea esi, [ecx + ecx*2]
shl esi, 5
add esi, dword [ebp + 0x8d8]
mov eax, dword [esp + 0x38]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x4a0004]
push dword [esi + 4]
call dword [0x4a0004]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov dword [esi], edi
mov dword [esi + 4], ebp
mov eax, dword [eax + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebx + 0xc]
lea ebx, [esi + 0x20]
push ebx
push dword [esp + 0x34]
mov eax, dword [eax + 0x1e0]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.00412690
add esp, 0x10
test al, al
jne 0x413049
push ebx
call fcn.00412920
push edi
mov dword [esi + 0xc], 0
call dword [0x4a0004]
push ebp
call dword [0x4a0004]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x40]
test eax, eax
je 0x413054
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x419070
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6d0], 0
je 0x4190fc
cmp dword [esi + 0x1a4], 0
je 0x4190c3
push esi
call fcn.00409320
push 1
push esi
mov byte [esp + 0x14], al
call fcn.004095d0
push dword [esi + 0x154]
mov eax, dword [esi + 0x1a4]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call eax
push dword [esp + 0x28]
push esi
call fcn.004095d0
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x4190fc
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x4809c4
push 2
push eax
call fcn.0045ef58
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.0045ef58
add esp, 0x20
pop esi
ret

Function at 0x41ae60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x480bd0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x41ae7a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x480be4
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x480bf4
push esi
call fcn.00460fdf
add esp, 8
test eax, eax
je 0x41aec2
test ebp, ebp
je 0x41aeb3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41aee8
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41aee8
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x41afc2
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41af05
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x41afb8
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41afb8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41af46
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
test ax, ax
jne 0x41af61
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x41af80
test ebp, ebp
je 0x41afaf
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4a0004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x4a0004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x420560
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x4a0368]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
lea eax, [esp + 4]
push eax
push esi
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4205a9
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4205a9
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00459004
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.00459004
add esp, 0x18
ret

Function at 0x4206b0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x4206ee
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 0
jne 0x4206e2
push 0
call fcn.004206b0
add esp, 4
test al, al
mov eax, dword [esi + 0x70]
setne cl
inc cl
mov byte [eax + 0xe8], cl
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x420703
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x421180
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x34
mov eax, dword [0x4a0368]
xor eax, esp
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x38]
push ebp
push esi
push edi
mov edi, dword [esp + 0x48]
mov esi, edi
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x4211a0
movzx ebp, cx
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x34], xmm0
push ebp
sub esi, edx
mov word [esp + 0x30], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x2e], ax
lea eax, [esp + 0xc]
push eax
push str.127.0.0.1
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x421346
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esi + 0x31]
push 1
push eax
call dword [0x4a0010]
mov esi, eax
add esp, 8
test esi, esi
je 0x421346
movups xmm0, xmmword [esp + 0x2c]
lea ecx, [esi + 0x20]
mov dword [esi], 0
mov dword [esi + 0x18], ecx
mov edx, edi
mov dword [esi + 4], 2
mov dword [esi + 8], 1
mov dword [esi + 0xc], 6
mov dword [esi + 0x10], 0x10
movups xmmword [ecx], xmm0
mov ecx, dword [esi + 0x18]
add ecx, 0x10
mov dword [esi + 0x14], ecx
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x421242
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421255
sub ecx, edx
push ebx
push 1
lea eax, [ecx + 0x3d]
push eax
call dword [0x4a0010]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42128e
xor ebx, ebx
mov eax, esi
mov dword [esi + 0x1c], ebx
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00459004
add esp, 0x34
ret
mov eax, 0x17
push ebp
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
lea eax, [esp + 0x30]
push eax
push 0x4818cc
push 0x17
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x421274
movups xmm1, xmmword [esp + 0x30]
lea eax, [ebx + 0x20]
mov dword [ebx], 0
mov dword [ebx + 0x18], eax
movups xmmword [esp + 0x1c], xmm1
mov dword [ebx + 4], 0x17
movups xmm0, xmmword [esp + 0x14]
mov dword [ebx + 8], 1
mov dword [ebx + 0xc], 6
mov dword [ebx + 0x10], 0x1c
mov dword [ebx + 0x1c], 0
movups xmmword [eax], xmm0
unpckhpd xmm1, xmm1
movq qword [eax + 0x10], xmm1
mov dword [eax + 0x18], 0
mov ecx, dword [ebx + 0x18]
add ecx, 0x1c
mov dword [ebx + 0x14], ecx
nop dword [eax]
mov al, byte [edi]
lea edi, [edi + 1]
mov byte [ecx], al
lea ecx, [ecx + 1]
test al, al
jne 0x421320
mov dword [esi + 0x1c], ebx
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00459004
add esp, 0x34
ret
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00459004
add esp, 0x34
ret
Function at 0x42c140
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0040e6b0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0042a500
push dword [esp + 0x40]
mov edi, eax
call fcn.0042a500
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x42c1d5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0040e6b0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.0040e760
add esp, 0x20
test edx, edx
ja 0x42c1f9
jb 0x42c1c7
cmp eax, 0x3e8
ja 0x42c1f9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x42c190
test edi, edi
je 0x42c1e2
push edi
call fcn.0045e37a
add esp, 4
test esi, esi
je 0x42c1ef
push esi
call fcn.0045e37a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x42c206
push edi
call fcn.0045e37a
add esp, 4
test esi, esi
je 0x42c213
push esi
call fcn.0045e37a
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x42c610
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x42c7a1
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x42c78c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42c66e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42c660
sub eax, edx
lea ecx, [eax + 1]
jmp 0x42c670
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x42c681
lea ebp, [eax + 0xe]
jmp 0x42c68d
cmp eax, 0x17
jne 0x42c72e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x42c72e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42c72e
cmp eax, ebp
jb 0x42c72e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x42c77d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.0045ac40
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x42c71a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.0045ac40
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x42c72a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42c652
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x42c74e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x42c788
test ebx, ebx
je 0x42c76d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x4a0004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x42c756
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x42c73d
test ebx, ebx
jne 0x42c798
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x42cc10
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x42ccbb
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.00413a40
add esp, 0xc
cmp eax, 4
jne 0x42cc76
cmp byte [0x4a1220], 0
jne 0x42cc82
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x42ccbd
mov eax, dword [esp + 0x1c]
jmp 0x42cc9f
imul eax, dword [0x4a121c], 0x41c64e6d
add eax, 0x3039
mov dword [0x4a121c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x42ccb3
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x42cca3
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x42cc30
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42ccd0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4a0368]
xor eax, esp
mov dword [esp + 0x88], eax
mov ecx, dword [esp + 0x98]
mov eax, ecx
mov edx, dword [esp + 0x90]
and eax, 0xfffffffe
mov dword [esp + 4], edx
push ebp
mov ebp, dword [esp + 0x98]
cmp eax, 0x100
jae 0x42ce2b
test cl, 1
je 0x42ce2b
push ebx
dec ecx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xa8], ecx
shr edi, 1
lea esi, [esp + 0x18]
mov ecx, 0x2b
je 0x42cdcd
mov ebx, 4
lea eax, [esp + 0x10]
push 4
push eax
cmp edi, ebx
push edx
cmovb ebx, edi
call fcn.00413a40
add esp, 0xc
cmp eax, 4
jne 0x42cd7b
cmp byte [0x4a1220], 0
jne 0x42cd8b
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x42ce12
mov eax, dword [esp + 0x10]
jmp 0x42cda8
imul eax, dword [0x4a121c], 0x41c64e6d
add eax, 0x3039
mov dword [0x4a121c], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x42cdc0
nop dword [eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x42cdb0
mov dword [esp + 0x10], eax
test edi, edi
je 0x42cdcd
mov edx, dword [esp + 0x14]
jmp 0x42cd35
mov eax, ecx
test eax, eax
jne 0x42ce12
mov edx, dword [esp + 0xa8]
test edx, edx
je 0x42ce0c
lea ebx, [esp + 0x18]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x484c64]
mov byte [ebp], al
movzx eax, byte [ecx + 0x484c64]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x42cde2
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00459004
add esp, 0x8c
ret
mov ecx, dword [esp + 0x8c]
mov eax, 0x2b
pop ebp
xor ecx, esp
call fcn.00459004
add esp, 0x8c
ret

Function at 0x42ce50
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.0045a9b0
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret
Function at 0x42faa0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x4a0008]
mov edi, eax
add esp, 8
test edi, edi
je 0x42faf7
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x42fb0f
cmp esi, ebx
je 0x42fb0f
cmp esi, 0x8000
ja 0x42fb0f
cmp esi, ebx
jb 0x42fb08
push esi
push edi
call dword [0x4a0008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x42fac0
push ebp
call dword [0x4a0004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x4a0004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43102c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00419100
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.00430bf0
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x431180
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x124]
mov dword [esp + 8], eax
jne 0x4312d0
push esi
push edi
lea eax, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x4311ce
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4311ce
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4311ce
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x431238
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x431238
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x431238
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x431238
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x431238
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x431238
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.00430cf0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x120]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x431290
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00419100
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.00431050
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x120]
call edi
test eax, eax
jns 0x4312ce
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00419100
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4312e0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x80c
mov eax, dword [0x4a0368]
xor eax, esp
mov dword [esp + 0x808], eax
push ebx
mov ebx, dword [esp + 0x814]
push ebp
push esi
mov dword [esp + 0xc], ebx
mov esi, dword [ebx + 0x124]
mov ebp, dword [ebx + 0xc]
mov dword [esp + 0x10], ebp
mov eax, dword [esi + 0x1eb8]
sub eax, dword [esi + 0x1eb4]
add eax, 2
push eax
lea eax, [esi + 0x1cb4]
push eax
push 0x3c
push ebx
call fcn.00430cf0
mov eax, dword [esi + 0x1eb4]
add esp, 0x10
mov cl, byte [eax]
inc eax
mov dword [esi + 0x1eb4], eax
cmp cl, 0x18
je 0x4314b8
cmp cl, 0x23
je 0x431495
cmp cl, 0x27
jne 0x431540
push edi
push 0
push 0x27
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [esp + 0x2c]
push 0x800
push eax
call fcn.00429170
mov esi, dword [esi + 0x1cb0]
add esp, 0x1c
mov edi, 4
test esi, esi
je 0x431415
mov edx, dword [esi]
mov ecx, edx
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4313a0
sub ecx, ebx
lea eax, [edi + 1]
add eax, ecx
cmp eax, 0x7fa
jae 0x431406
push 0x2c
push edx
call fcn.0045ab10
mov ebx, 0x800
lea ebp, [esp + 0x20]
mov edx, eax
add esp, 8
sub ebx, edi
add ebp, edi
test edx, edx
jne 0x4313e7
push dword [esi]
push eax
push str._c_s
push ebx
push ebp
call fcn.00429170
add esp, 0x14
jmp 0x431404
mov ecx, dword [esi]
lea eax, [edx + 1]
push eax
push 1
push ecx
sub edx, ecx
push edx
push 0
push str._c_.s_c_s
push ebx
push ebp
call fcn.00429170
add esp, 0x20
add edi, eax
mov esi, dword [esi + 4]
test esi, esi
jne 0x431394
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push str._c_c
push eax
lea eax, [esp + 0x28]
add eax, edi
push eax
call fcn.00429170
add esp, 0x14
lea eax, [edi + 2]
push 0
push eax
lea eax, [esp + 0x20]
push eax
push dword [ebp + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43146b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00419100
add esp, 0xc
push edi
lea eax, [esp + 0x1e]
push eax
push 0x3e
push ebx
call fcn.00430cf0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x808]
xor ecx, esp
call fcn.00459004
add esp, 0x80c
ret
lea edx, [esi + 0x1c28]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4314a0
push 0xf0
push 0xff
push edx
push 0
push 0x23
jmp 0x4314d9
lea edx, [esi + 0x1c08]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4314c3
push 0xf0
push 0xff
push edx
push 0
push 0x18
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
sub ecx, esi
lea eax, [esp + 0x34]
push 0x800
push eax
lea esi, [ecx + 6]
call fcn.00429170
add esp, 0x28
lea eax, [esp + 0x14]
push 0
push esi
push eax
push dword [ebp + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x43152c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00419100
add esp, 0xc
lea eax, [esi - 2]
push eax
lea eax, [esp + 0x1a]
push eax
push 0x3e
push ebx
call fcn.00430cf0
add esp, 0x10
mov ecx, dword [esp + 0x814]
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00459004
add esp, 0x80c
ret