joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a910
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
nop dword [eax]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jb 0x40a930
pop edi
pop esi
mov dword [ecx], 0x270
mov eax, ecx
pop ebp
ret 4

Function at 0x40dbc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x40dc1d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x40dbe0
mov eax, dword [esi]
jmp 0x40dcfb
cmp eax, 0x4e0
jb 0x40dcfb
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x40dc36
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x40dc81
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4163b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x41645f
push esi
call fcn.0042bfb0
add esp, 4
test al, al
jne 0x41645f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4163d7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004362a0
add esp, 0xc
test eax, eax
je 0x41640b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004362a0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x41640d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x41643e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.00427fc0
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x416420
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4261b0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x4968c0
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x4261ca
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x4968dc
push esi
call fcn.00475750
add esp, 8
test eax, eax
je 0x426212
test ebp, ebp
je 0x426203
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_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x426238
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426238
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_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4262ef
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426255
sub ecx, ebx
lea eax, [ecx + 1]
add eax, edx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4262e5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4262e5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426287
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4262a0
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4262b0
test ebp, ebp
je 0x4262dc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4b1004]
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_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4b1004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x426360
Capabilities:
Get common file path
Initialize winsock library
Link many functions at runtime

Disassembly:
sub esp, 0x198
mov eax, dword [0x4b14c0]
xor eax, esp
mov dword [esp + 0x194], eax
test byte [esp + 0x19c], 2
je 0x4263c1
lea eax, [esp + 4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4263a7
mov eax, dword [esp + 4]
cmp al, 2
jne 0x4263a1
shr eax, 8
cmp al, 2
je 0x4263c1
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0046814f
add esp, 0x198
ret
call fcn.00459e00
test eax, eax
jne 0x426594
push ebp
push esi
push edi
push 0x4968c0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x4263f5
mov dword [0x4b271c], esi
jmp 0x426519
push ebx
push str.LoadLibraryExA
push edi
call ebp
push 0x4968dc
push str.iphlpapi.dll
mov ebx, eax
call fcn.00475750
add esp, 8
test eax, eax
je 0x42643e
test ebx, ebx
je 0x42642c
push 8
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4264fd
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
jmp 0x4264fd
test ebx, ebx
je 0x426463
push str.AddDllDirectory
push edi
call ebp
test eax, eax
je 0x426463
push 0x800
push 0
push str.iphlpapi.dll
call ebx
mov esi, eax
jmp 0x4264fd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4264fd
lea ecx, [eax + 0xd]
push ecx
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x4264f3
push dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4264f3
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4264a0
sub ecx, edx
mov eax, 0x5c
mov word [ecx + edi], ax
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4264b7
sub ecx, edx
mov edx, str.iphlpapi.dll
sub ecx, edx
add ecx, edi
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [ecx + edx - 1], al
test al, al
jne 0x4264d0
test ebx, ebx
je 0x4264ea
push 8
push 0
push edi
call ebx
jmp 0x4264f1
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push edi
call dword [0x4b1004]
add esp, 4
mov dword [0x4b271c], esi
pop ebx
test esi, esi
je 0x426519
push str.if_nametoindex
push esi
call ebp
test eax, eax
je 0x426519
mov dword [0x4b270c], eax
push str.ws2_32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
je 0x426551
push str.FreeAddrInfoExW
push esi
call ebp
push str.GetAddrInfoExCancel
push esi
mov dword [0x4b2710], eax
call ebp
push str.GetAddrInfoExW
push esi
mov dword [0x4b2714], eax
call ebp
mov dword [0x4b2718], eax
push 3
push 2
push 0
push 0
push 6
call fcn.00459a20
push 3
push 2
push 0
test al, al
push 2
push 6
setne byte [0x4b3901]
call fcn.00459a20
add esp, 0x28
test al, al
setne byte [0x4b3900]
push 0x4b3908
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0046814f
add esp, 0x198
ret
Function at 0x42c150
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42c18e
mov eax, dword [esi + 0x7c]
cmp byte [eax + 0x114], 0
jne 0x42c17f
push 0
call fcn.0042c150
add esp, 4
test al, al
mov eax, dword [esi + 0x7c]
setne cl
inc cl
mov byte [eax + 0x114], cl
mov eax, dword [esi + 0x7c]
pop esi
cmp byte [eax + 0x114], 2
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x42c1a8
xor esi, esi
test esi, esi
pop esi
setne al
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
pop esi
setne al
ret
Function at 0x42cef0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4b14c0]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push edi
xor edi, edi
mov dword [esp + 8], eax
cmp byte [eax + 0x68a], 0
je 0x42d0d2
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x42d0d1
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.0043b150
add esp, 0xc
test eax, eax
jg 0x42d0d1
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.0043b150
add esp, 0xc
test eax, eax
jg 0x42d0d1
cmp byte [ebx], 0
mov eax, str._none_
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp]
cmovne eax, ebx
mov ebp, dword [esp + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.00422d20
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.004169f0
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.004169f0
add esp, 0x20
test esi, esi
je 0x42d044
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x42cfb8
cmp ecx, 2
jne 0x42d039
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x42cfe7
sub ecx, 0x15
jne 0x42cfff
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x42cff7
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.00458980
add esp, 0x10
push ebx
call fcn.00416a10
add esp, 4
test eax, eax
je 0x42d01e
push 2
push 0x495fdc
push ebx
call fcn.004169b0
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x42d064
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.00416950
mov edi, eax
add esp, 8
test edi, edi
jne 0x42d064
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42cfa7
lea eax, [esp + 0x24]
push eax
call fcn.00416a10
add esp, 4
test eax, eax
je 0x42d074
lea eax, [esp + 0x24]
push eax
call fcn.00416a20
add esp, 4
jmp 0x42d079
push str.too_many_IP__cant_show
push ebp
call fcn.00422d20
add esp, 8
jmp 0x42d0b9
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.00422d20
lea eax, [esp + 0x20]
push eax
call fcn.00416a10
add esp, 0x10
test eax, eax
je 0x42d0a5
lea eax, [esp + 0x14]
push eax
call fcn.00416a20
add esp, 4
jmp 0x42d0aa
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.00422d20
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.004169c0
lea eax, [esp + 0x28]
push eax
call fcn.004169c0
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.0046814f
add esp, 0x6c
ret
Function at 0x436a00
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.00416710
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.00481cdf
push dword [esp + 0x40]
mov edi, eax
call fcn.00481cdf
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x436a95
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.00416710
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.004167c0
add esp, 0x20
test edx, edx
ja 0x436ab9
jb 0x436a87
cmp eax, 0x3e8
ja 0x436ab9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x436a50
test edi, edi
je 0x436aa2
push edi
call fcn.0046eb00
add esp, 4
test esi, esi
je 0x436aaf
push esi
call fcn.0046eb00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x436ac6
push edi
call fcn.0046eb00
add esp, 4
test esi, esi
je 0x436ad3
push esi
call fcn.0046eb00
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x436fb0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push edi
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [eax], edi
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 0x43713f
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x43712a
push ebx
push ebp
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43700c
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x437000
sub eax, edx
inc eax
jmp 0x43700e
xor eax, eax
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
cmp ecx, 2
jne 0x43701f
lea ebp, [ecx + 0xe]
jmp 0x43702b
cmp ecx, 0x17
jne 0x4370cc
lea ebp, [ecx + 5]
cmp dword [esi + 0x18], 0
je 0x4370cc
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4370cc
cmp ecx, ebp
jb 0x4370cc
add eax, 0x20
add eax, ebp
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x43711b
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 eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x20]
push ebp
mov dword [ebx + 0x10], ebp
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.00469f20
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x4370b8
mov eax, dword [ebx + 0x18]
add eax, ebp
push ecx
mov dword [ebx + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.00469f20
add esp, 0xc
mov eax, dword [esp + 0x18]
test edi, edi
cmove edi, ebx
test eax, eax
je 0x4370c8
mov dword [eax + 0x1c], ebx
mov dword [esp + 0x18], ebx
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x436ff2
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x4370ec
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x437126
test edi, edi
je 0x43710b
mov esi, dword [edi + 0x1c]
push edi
call dword [0x4b1004]
add esp, 4
mov edi, esi
test esi, esi
jne 0x4370f4
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor edi, edi
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x4370db
test edi, edi
jne 0x437136
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], edi
mov eax, esi
pop esi
pop edi
add esp, 0x10
ret

Function at 0x437540
Capabilities:
Create thread

Disassembly:
push 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push 0
push 0
call fcn.0047389f
mov ecx, eax
add esp, 0x18
xor eax, eax
test ecx, ecx
je 0x437566
cmp ecx, 0xffffffff
cmovne eax, ecx
ret
Function at 0x437cb0
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 0x437d5b
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.0041d1a0
mov ecx, eax
add esp, 0xc
cmp ecx, 4
jne 0x437d18
cmp byte [0x4b2724], 0
jne 0x437d22
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 ecx, ecx
and ecx, 2
test ecx, ecx
jne 0x437d5b
mov eax, dword [esp + 0x1c]
jmp 0x437d3f
imul eax, dword [0x4b2720], 0x41c64e6d
add eax, 0x3039
mov dword [0x4b2720], eax
ror eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x437d53
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x437d43
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x437cd0
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x437d70
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
sub ebx, 1
je 0x437e08
mov esi, dword [esp + 0x14]
mov ebp, 0x3e
nop
push 4
lea eax, [esp + 0x20]
push eax
push esi
call fcn.0041d1a0
add esp, 0xc
cmp eax, 4
jne 0x437dcc
cmp byte [0x4b2724], 0
jne 0x437dd6
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
test eax, eax
jne 0x437e0d
mov eax, dword [esp + 0x1c]
jmp 0x437df1
imul eax, dword [0x4b2720], 0x41c64e6d
add eax, 0x3039
mov dword [0x4b2720], eax
ror eax, 0x10
mov dword [esp + 0x1c], eax
cmp eax, 0xfffffffc
jae 0x437d90
xor edx, edx
div ebp
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x437d90
mov byte [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x437e20
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.00469c90
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 0x43ad50
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 [0x4b1008]
mov edi, eax
add esp, 8
test edi, edi
je 0x43ada7
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 0x43adbf
cmp esi, ebx
je 0x43adbf
cmp esi, 0x8000
ja 0x43adbf
cmp esi, ebx
jb 0x43adb8
push esi
push edi
call dword [0x4b1008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x43ad70
push ebp
call dword [0x4b1004]
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 [0x4b1004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x449fa0
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 + 0x18]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x1a0]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x449fec
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00422c50
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.00449bc0
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x44a150
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 8
cmp dword [esp + 0x10], 0x1f
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov eax, dword [ebx + 0x18]
mov ebp, dword [ebx + 0x124]
mov dword [esp + 0x14], eax
jne 0x44a2b4
push esi
lea ecx, [ebp + 0x1cc4]
push edi
lea edi, [ebp + 0x1ec4]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x44a18f
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x44a1a3
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44a1a3
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 ecx, word [ebp + 0x1caa]
mov dword [esp + 0x20], eax
shr eax, 8
push ecx
mov dword [esp + 0x14], eax
call esi
mov ecx, dword [edi]
mov edx, eax
shr edx, 8
mov dword [esp + 0x14], eax
cmp ecx, edi
jae 0x44a21c
mov eax, dword [esp + 0x20]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x44a21c
mov eax, dword [esp + 0x10]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x44a21c
mov eax, dword [esp + 0x14]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x44a21c
mov byte [ecx], dl
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x44a21c
mov byte [ecx], 0xff
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x44a21c
mov byte [ecx], 0xf0
mov ecx, dword [edi]
inc ecx
mov dword [ebp + 0x1ec8], ecx
lea esi, [ebp + 0x1cc4]
sub ecx, esi
mov dword [edi], esi
sub ecx, 2
lea eax, [ebp + 0x1cc6]
push ecx
push eax
push 0x3e
push ebx
call fcn.00449cc0
mov eax, dword [esp + 0x2c]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x1a0]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x44a274
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00422c50
add esp, 0xc
push 4
lea eax, [ebp + 0x1cc7]
push eax
push ebx
call fcn.0044a010
add esp, 0xc
lea eax, [ebp + 0x1ccb]
push 0
push 2
push eax
mov eax, dword [esp + 0x28]
push dword [eax + 0x1a0]
call edi
test eax, eax
jns 0x44a2b2
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00422c50
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret