joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405370
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47f778
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4a237c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x4053aa
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x405530
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0xb7
je 0x405530
call ebx
cmp eax, 3
jne 0x40552c
cmp dword [esi + 0x14], 0x10
mov edi, esi
jb 0x4053e3
mov edi, dword [esi]
mov edx, dword [esi + 0x10]
test edx, edx
je 0x40545a
push 0x100
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.0045c350
add esp, 0xc
mov ecx, 0x49dfe4
mov edx, 2
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ebp + eax - 0x128], 1
sub edx, 1
jne 0x405410
mov edx, dword [esi + 0x10]
or ecx, 0xffffffff
lea eax, [edx - 1]
cmp eax, ecx
cmovb ecx, eax
movzx eax, byte [ecx + edi]
add ecx, edi
mov al, byte [ebp + eax - 0x128]
test al, al
jne 0x405456
cmp ecx, edi
je 0x40545a
movzx eax, byte [ecx - 1]
dec ecx
mov al, byte [ebp + eax - 0x128]
test al, al
je 0x405442
sub ecx, edi
jmp 0x40545d
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x40552c
cmp edx, ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov eax, esi
cmovb ecx, edx
mov byte [ebp - 0x28], 0
cmp dword [esi + 0x14], 0x10
jb 0x405487
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.00404220
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00405370
test al, al
je 0x4054fc
cmp dword [esi + 0x14], 0x10
jb 0x4054ac
mov esi, dword [esi]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4054c6
call ebx
cmp eax, 0xb7
je 0x4054c6
xor bl, bl
jmp 0x4054c8
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x4054f8
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4054ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40554e
push edx
push ecx
call fcn.0045a799
add esp, 8
mov al, bl
jmp 0x405532
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40552c
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x405522
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40554e
push edx
push ecx
call fcn.0045a799
add esp, 8
xor al, al
jmp 0x405532
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045a753
mov esp, ebp
pop ebp
ret
call fcn.00460059
int3
Function at 0x40f730
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x40f7cf
push edi
call fcn.00421970
add esp, 4
test al, al
jne 0x40f7cf
push ebx
push ebp
push esi
mov esi, edi
xor ebx, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40f758
sub esi, ecx
push esi
push 0x2e
push edi
call fcn.0042cdd0
add esp, 0xc
test eax, eax
je 0x40f78c
sub eax, edi
push eax
push 0x2e
push edi
call fcn.0042cdd0
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x40f78e
inc ebx
mov ecx, edi
sub ecx, ebx
add esi, ecx
test ebx, ebx
cmovne edi, ebx
xor ecx, ecx
xor ebp, ebp
mov ebx, 0x1505
lea eax, [edi + esi]
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x40f7c7
mov al, byte [edi]
push eax
call fcn.0041dfb0
movsx ecx, al
lea edi, [edi + 1]
mov eax, ebx
inc ebp
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp ebp, esi
jb 0x40f7a6
pop esi
pop ebp
movzx eax, bl
pop ebx
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x414270
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], 0x4a2054
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 0x4142a7
mov byte [eax], 0
mov ebp, dword [esp + 0x34]
mov esi, dword [ebp + 0x8d8]
test esi, esi
je 0x414464
push dword [ecx + 8]
mov edi, dword [esi + 0x14]
call dword [0x4a200c]
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
je 0x414300
mov eax, dword [ebx + 0xc]
cmp byte [eax + 0x1c9], 0
je 0x414312
push dword [eax + 0x64]
call dword [0x4a200c]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x41430d
mov edi, dword [esp + 0x34]
push edi
call dword [0x4a2004]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebx + 0xc]
jmp 0x41431a
mov dword [esp + 0x10], 0
cmp byte [eax + 0x1ca], 0
je 0x41432f
mov ecx, dword [eax + 0x444]
mov dword [esp + 0x14], ecx
jmp 0x414337
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x41434d
test byte [eax + 4], 0x10
je 0x41434d
lea edx, [eax + 0x78]
mov dword [esp + 0x30], edx
jmp 0x414357
lea eax, [ebp + 0x8dc]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x4a4]
mov ecx, 1
cmp eax, ecx
jbe 0x4143ab
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 0x4143a5
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 0x414370
mov eax, dword [ebp + 0x4a4]
cmp ecx, eax
jne 0x4143ba
push esi
call fcn.00414d20
add esp, 4
jmp 0x4143c6
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 [0x4a2004]
push dword [esi + 4]
call dword [0x4a2004]
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.00413aa0
add esp, 0x10
test al, al
jne 0x414459
push ebx
call fcn.00413d30
push edi
mov dword [esi + 0xc], 0
call dword [0x4a2004]
push ebp
call dword [0x4a2004]
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 0x414464
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x41a490
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp byte [esi + 0x6d0], 0
je 0x41a51c
cmp dword [esi + 0x1a4], 0
je 0x41a4e3
push esi
call fcn.0040a740
push 1
push esi
mov byte [esp + 0x14], al
call fcn.0040a9f0
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.0040a9f0
add esp, 0x28
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x41a51c
push dword [esi + 0x150]
lea eax, [eax + eax*2]
push 1
add eax, 0x481a14
push 2
push eax
call fcn.00461a60
push dword [esi + 0x150]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00461a60
add esp, 0x20
pop esi
ret

Function at 0x41c280
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x481c20
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x41c29a
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push 0x481c34
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x481c44
push esi
call fcn.00463ad4
add esp, 8
test eax, eax
je 0x41c2e2
test ebp, ebp
je 0x41c2d3
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 0x41c308
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41c308
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 0x41c3e2
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c325
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 0x41c3d8
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x41c3d8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41c366
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 0x41c381
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 0x41c3a0
test ebp, ebp
je 0x41c3cf
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4a2004]
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 [0x4a2004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x421970
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x18
mov eax, dword [0x4a237c]
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 0x4219b9
lea eax, [esp + 8]
push eax
push esi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4219b9
xor al, al
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0045a753
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
mov al, 1
pop esi
xor ecx, esp
call fcn.0045a753
add esp, 0x18
ret

Function at 0x421ac0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x421afe
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xe8], 0
jne 0x421af2
push 0
call fcn.00421ac0
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 0x421b13
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret
Function at 0x422590
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x34
mov eax, dword [0x4a237c]
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 0x4225b0
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 0x422756
mov eax, dword [esp + 0xc]
mov dword [esp + 0x30], eax
lea eax, [esi + 0x31]
push 1
push eax
call dword [0x4a2010]
mov esi, eax
add esp, 8
test esi, esi
je 0x422756
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 0x422652
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x422665
sub ecx, edx
push ebx
push 1
lea eax, [ecx + 0x3d]
push eax
call dword [0x4a2010]
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x42269e
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.0045a753
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 0x48291c
push 0x17
mov dword [esp + 0x24], 0
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jl 0x422684
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 0x422730
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.0045a753
add esp, 0x34
ret
mov ecx, dword [esp + 0x3c]
xor eax, eax
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0045a753
add esp, 0x34
ret
Function at 0x42d530
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.0040fad0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.0042b900
push dword [esp + 0x40]
mov edi, eax
call fcn.0042b900
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 0x42d5c5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.0040fad0
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.0040fb80
add esp, 0x20
test edx, edx
ja 0x42d5e9
jb 0x42d5b7
cmp eax, 0x3e8
ja 0x42d5e9
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x42d580
test edi, edi
je 0x42d5d2
push edi
call fcn.0045fbca
add esp, 4
test esi, esi
je 0x42d5df
push esi
call fcn.0045fbca
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x42d5f6
push edi
call fcn.0045fbca
add esp, 4
test esi, esi
je 0x42d603
push esi
call fcn.0045fbca
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x42da00
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 0x42db91
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x42db7c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42da5e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42da50
sub eax, edx
lea ecx, [eax + 1]
jmp 0x42da60
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x42da71
lea ebp, [eax + 0xe]
jmp 0x42da7d
cmp eax, 0x17
jne 0x42db1e
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x42db1e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x42db1e
cmp eax, ebp
jb 0x42db1e
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
je 0x42db6d
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.0045c5e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x42db0a
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.0045c5e0
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x42db1a
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42da42
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x42db3e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x42db78
test ebx, ebx
je 0x42db5d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x4a2004]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x42db46
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 0x42db2d
test ebx, ebx
jne 0x42db88
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 0x42e000
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 0x42e0ab
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.00414e50
add esp, 0xc
cmp eax, 4
jne 0x42e066
cmp byte [0x4a3248], 0
jne 0x42e072
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 0x42e0ad
mov eax, dword [esp + 0x1c]
jmp 0x42e08f
imul eax, dword [0x4a3244], 0x41c64e6d
add eax, 0x3039
mov dword [0x4a3244], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x42e0a3
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x42e093
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x42e020
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x42e0c0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x4a237c]
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 0x42e21b
test cl, 1
je 0x42e21b
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 0x42e1bd
mov ebx, 4
lea eax, [esp + 0x10]
push 4
push eax
cmp edi, ebx
push edx
cmovb ebx, edi
call fcn.00414e50
add esp, 0xc
cmp eax, 4
jne 0x42e16b
cmp byte [0x4a3248], 0
jne 0x42e17b
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 0x42e202
mov eax, dword [esp + 0x10]
jmp 0x42e198
imul eax, dword [0x4a3244], 0x41c64e6d
add eax, 0x3039
mov dword [0x4a3244], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x42e1b0
nop dword [eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x42e1a0
mov dword [esp + 0x10], eax
test edi, edi
je 0x42e1bd
mov edx, dword [esp + 0x14]
jmp 0x42e125
mov eax, ecx
test eax, eax
jne 0x42e202
mov edx, dword [esp + 0xa8]
test edx, edx
je 0x42e1fc
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 + 0x485cac]
mov byte [ebp], al
movzx eax, byte [ecx + 0x485cac]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x42e1d2
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.0045a753
add esp, 0x8c
ret
mov ecx, dword [esp + 0x8c]
mov eax, 0x2b
pop ebp
xor ecx, esp
call fcn.0045a753
add esp, 0x8c
ret

Function at 0x42e240
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call fcn.0045c350
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 0x430e90
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 [0x4a2008]
mov edi, eax
add esp, 8
test edi, edi
je 0x430ee7
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 0x430eff
cmp esi, ebx
je 0x430eff
cmp esi, 0x8000
ja 0x430eff
cmp esi, ebx
jb 0x430ef8
push esi
push edi
call dword [0x4a2008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x430eb0
push ebp
call dword [0x4a2004]
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 [0x4a2004]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4323d0
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 0x43241c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0041a520
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.00431ff0
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x432570
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 0x4326c0
push esi
push edi
lea eax, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x4325be
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4325be
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4325be
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 0x432628
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432628
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432628
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432628
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432628
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x432628
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.004320f0
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 0x432680
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0041a520
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.00432440
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 0x4326be
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.0041a520
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret