joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411510
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 4], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
jb 0x41152a
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4115ae
mov edi, dword [ebp - 4]
test edi, edi
je 0x4115ae
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x411568
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
jb 0x411570
mov esi, dword [esi]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411575
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push edi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4115c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov dword [ebp - 4], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
jb 0x4115da
mov ecx, dword [ecx]
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push ecx
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41165e
mov edi, dword [ebp - 4]
test edi, edi
je 0x41165e
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 8
jb 0x411618
mov edx, dword [edx]
cmp dword [esi + 0x14], 8
jb 0x411620
mov esi, dword [esi]
mov ecx, edx
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411625
sub ecx, ebx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
push edi
sete bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412120
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x48e1e0]
xor eax, esp
mov dword [esp + 0x18], eax
cmp dword [0x48fce0], 0
push esi
je 0x412150
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret
push 0x20
call fcn.0044a07a
mov ecx, eax
call fcn.00412040
mov dword [0x48fce0], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, eax
mov dword [esp + 0x18], 7
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x41218b
xor ecx, ecx
jmp 0x41219f
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412190
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.004040c0
lea eax, [esp + 4]
push eax
call fcn.00412d00
mov eax, dword [esp + 0x18]
cmp eax, 8
jb 0x4121cc
inc eax
lea ecx, [esp + 4]
push eax
push dword [esp + 8]
call fcn.004057f0
mov ecx, dword [esp + 0x1c]
mov al, 1
pop esi
xor ecx, esp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret

Function at 0x412d00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48e1e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, str._t_n_v_f_r
push esi
mov dword [ebp - 0x24], 0
xor eax, eax
push edi
mov edi, dword [0x48fce0]
lea esi, [edx + 2]
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
mov word [ebp - 0x20], ax
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x412d40
sub edx, esi
lea eax, [ebp - 0x20]
sar edx, 1
push edx
push str._t_n_v_f_r
push eax
call fcn.00410740
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x412d98
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.00412200
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x412dad
inc eax
lea ecx, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
call fcn.004057f0
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0044a31d
mov esp, ebp
pop ebp
ret 4
Function at 0x414b00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x10], 0
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
push edi
test ebx, ebx
jns 0x414b2d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x490bcc]
xor edi, edi
test ecx, ecx
je 0x414b73
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x414b73
mov ecx, dword [0x490bcc]
lea edi, [esi + 0x1c]
mov eax, ebx
mov dword [esp + 0x14], str.File::ReadAtCurrentPos
cdq
push edx
mov esi, dword [ecx]
push eax
mov eax, dword [esp + 0x18]
add eax, 4
push eax
push edi
push str.File::ReadAtCurrentPos
call dword [esi + 0x10]
mov esi, dword [esp + 0x10]
jmp 0x414b7b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 0x1c]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x414b98
mov esi, dword [esp + 0x18]
jmp 0x414baa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x26
jne 0x414ba7
xor esi, esi
jmp 0x414baa
or esi, 0xffffffff
test edi, edi
je 0x414bc2
mov ecx, dword [0x490bcc]
test ecx, ecx
je 0x414bc2
mov edx, dword [ecx]
push edi
push dword [esp + 0x18]
call dword [edx + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x414bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], 0
test edi, edi
jns 0x414bfd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x490bcc]
xor ebx, ebx
test ecx, ecx
je 0x414c43
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x414c43
mov ecx, dword [0x490bcc]
lea ebx, [esi + 0x1c]
mov eax, edi
mov dword [esp + 0x14], str.File::WriteAtCurrentPos
cdq
push edx
mov esi, dword [ecx]
push eax
mov eax, dword [esp + 0x18]
add eax, 4
push eax
push ebx
push str.File::WriteAtCurrentPos
call dword [esi + 0x10]
mov esi, dword [esp + 0x10]
jmp 0x414c4b
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or esi, 0xffffffff
test eax, eax
cmovne esi, dword [esp + 0x18]
test ebx, ebx
je 0x414c80
mov ecx, dword [0x490bcc]
test ecx, ecx
je 0x414c80
mov edx, dword [ecx]
push ebx
push dword [esp + 0x18]
call dword [edx + 0x14]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x415140
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
mov dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0xc]
test bl, 1
push esi
mov esi, ecx
mov ecx, 3
cmovne eax, ecx
test bl, 2
mov ecx, 1
cmovne eax, ecx
mov ecx, ebx
and ecx, 4
mov dword [ebp - 4], ecx
mov ecx, 4
cmovne eax, ecx
test bl, 8
mov ecx, 2
cmovne eax, ecx
mov dword [ebp + 0xc], eax
push edi
test bl, 0x10
je 0x415197
mov dword [ebp + 0xc], 5
jmp 0x41519f
test eax, eax
je 0x4152c9
xor edx, edx
mov edi, 0x40000000
test bl, 0x40
mov eax, 4
cmovne edx, edi
test bl, 0x80
cmovne edx, eax
test bl, 0x20
je 0x4151c2
or edx, 0x80000000
test ebx, 0x4000
je 0x4151d0
or edx, 0x100
test ebx, 0x40000
je 0x4151de
or edx, 0x20000000
mov ecx, ebx
shr ecx, 8
not ecx
and ecx, 1
test ebx, 0x200
jne 0x4151f3
or ecx, 2
test ebx, 0x8000
je 0x4151fd
or ecx, eax
xor eax, eax
test ebx, 0x400
cmovne eax, edi
test ebx, 0x800
je 0x415215
or eax, 0x100
test ebx, 0x1000
je 0x415220
or eax, 2
test ebx, 0x2000
je 0x41522d
or eax, 0x4000000
test ebx, 0x20000
je 0x41523a
or eax, 0x2000000
test ebx, 0x80000
je 0x415247
or eax, 0x8000000
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x415252
mov edi, dword [edi]
push 0
push eax
push dword [ebp + 0xc]
push 0
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
mov ecx, esi
call fcn.0040d620
mov eax, dword [esi]
test eax, eax
je 0x4152b9
cmp eax, 0xffffffff
je 0x4152b9
mov eax, ebx
mov dword [esi + 0x20], 0
shr eax, 0xa
and al, 1
cmp dword [ebp - 4], 0
mov byte [esi + 0x25], al
je 0x4152a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
mov byte [esi + 0x24], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test bl, 0xa
je 0x4152c9
mov byte [esi + 0x24], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00414db0
mov dword [esi + 0x20], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41d290
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0044ad40
mov eax, dword [0x48e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x100c]
push eax
lea eax, [ebp - 0x808]
mov dword [ebp - 0x100c], 0
push eax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1010], 1
push eax
push 0
push str.UserAppDataPath
push dword [ecx]
mov dword [ebp - 0x100c], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x41d3df
mov ecx, dword [ebp - 0x1010]
cmp ecx, 1
jne 0x41d372
cmp word [ebp - 0x808], ax
jne 0x41d331
xor ecx, ecx
lea eax, [ebp - 0x808]
push ecx
push eax
mov ecx, edi
call fcn.004040c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41d340
sub ecx, edx
lea eax, [ebp - 0x808]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004040c0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x41d3da
push 0x400
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x100c], eax
test eax, eax
je 0x41d3c3
cmp eax, 0x400
ja 0x41d3c3
lea eax, [ebp - 0x1008]
mov ecx, edi
push eax
call fcn.00402620
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044a31d
mov esp, ebp
pop ebp
ret 8
Function at 0x41db00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x48e1e0]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push 0xffffffffffffffff
lea ecx, [edi + 4]
push 0
mov dword [edi], 0x489c58
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.00404560
push 0x7d0
lea eax, [edi + 0x20]
mov dword [edi + 0x1c], 0
push eax
mov dword [edi], 0x489bf4
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
cmp dword [esi + 0x14], 0x10
jb 0x41db61
mov ecx, dword [esi]
jmp 0x41db63
mov ecx, esi
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x6c]
mov dword [ebp - 0x6c], ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x67452301
mov dword [ebp - 0x60], 0xefcdab89
mov dword [ebp - 0x5c], 0x98badcfe
mov dword [ebp - 0x58], 0x10325476
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x68], eax
call fcn.004205a0
lea edx, [ebp - 0x64]
lea ecx, [ebp - 0x74]
call fcn.004206c0
push dword [ebp - 0x70]
push dword [ebp - 0x74]
call fcn.0041f280
add esp, 8
lea ecx, [edi + 0x38]
push edx
push eax
call fcn.0041f320
push 0
push 0
lea ecx, [edi + 0x68]
call fcn.0041f320
mov ecx, dword [ebp - 8]
mov eax, edi
mov dword [edi + 0x68], 0x489cf0
xor ecx, ebp
pop edi
pop esi
call fcn.0044a31d
mov esp, ebp
pop ebp
ret 4
Function at 0x41e5b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x48e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
jne 0x41e5dc
xor ecx, ecx
jmp 0x41e5f9
cmp byte [edi], 0
jne 0x41e5e5
xor ecx, ecx
jmp 0x41e5f9
mov ecx, edi
lea esi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41e5f0
sub ecx, esi
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x1c]
call fcn.00410f30
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x41e60f
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp - 8]
mov esi, eax
mov dword [ebp - 0x38], esi
cmp ecx, 8
jb 0x41e630
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.004057f0
test esi, esi
jne 0x41e649
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret 8
test ebx, ebx
je 0x41e75a
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044a568
add esp, 4
mov esi, eax
push dword [ebp - 0x38]
push esi
sub esp, 8
mov edx, esp
mov dword [edx], edi
test edi, edi
je 0x41e699
cmp byte [edi], 0
jne 0x41e686
xor edi, edi
jmp 0x41e699
lea ecx, [edi + 1]
nop dword [eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x41e690
sub edi, ecx
lea ecx, [ebp - 0x1c]
mov dword [edx + 4], edi
call fcn.00410f30
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x41e6af
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x41e6cb
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004057f0
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402710
lea edx, [ebp - 0x1c]
lea ecx, [ebp - 0x34]
call fcn.00410d00
mov edi, eax
cmp ebx, edi
je 0x41e711
mov ecx, dword [ebx + 0x14]
cmp ecx, 0x10
jb 0x41e6f8
inc ecx
push ecx
push dword [ebx]
mov ecx, ebx
call fcn.00404b50
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
mov dword [ebx + 0x10], 0
push edi
mov byte [ebx], 0
call fcn.004048c0
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x41e726
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00404b50
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x34], 0
cmp eax, 8
jb 0x41e74d
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.004057f0
test esi, esi
je 0x41e75a
push esi
call fcn.0044a563
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a31d
mov esp, ebp
pop ebp
ret 8
Function at 0x41e960
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
mov eax, dword [0x48e1e0]
xor eax, esp
mov dword [esp + 0x408], eax
mov eax, dword [0x48ebf0]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], 0
push edi
mov ecx, 0x100
mov dword [esp + 0xc], eax
mov esi, ebx
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.0044a563
add esp, 4
mov edi, 0x100
nop word [eax + eax]
mov esi, dword [0x490bd0]
xor dl, dl
test esi, esi
jle 0x41e9f8
nop dword [eax]
mov ecx, dword [esp + esi*4 + 0x10]
test ecx, ecx
je 0x41e9f3
mov eax, dword [esi*4 + 0x490630]
test eax, eax
je 0x41e9f3
push ecx
mov dword [esp + esi*4 + 0x14], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x41e9d0
dec edi
test edi, edi
jle 0x41ea01
test dl, dl
jne 0x41e9c0
push 0
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x414]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret

Function at 0x422a9c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x48e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x48ee80]
mov ecx, eax
inc eax
mov dword [0x48ee80], eax
test ecx, ecx
je 0x422ac7
xor eax, eax
jmp 0x422b4d
push ebx
mov ebx, dword [ebp + 8]
mov dword [section..data], 0x455087
mov dword [fcn.00452ae3], 0x452ae3
mov dword [fcn.00454fb9], 0x454fb9
mov dword [0x48e00c], 0x457e29
mov dword [fcn.0045006a], 0x45006a
test bl, 2
je 0x422b31
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x422b3a
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x422b29
shr eax, 8
cmp al, 2
je 0x422b31
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x422b3a
call fcn.00403290
test eax, eax
je 0x422b3f
push 2
pop eax
jmp 0x422b4c
mov dword [0x48ee84], ebx
call fcn.0042c82f
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044a31d
mov esp, ebp
pop ebp
ret
Function at 0x424468
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x48e010]
mov esi, dword [ebp + 8]
mov edi, eax
pop ecx
pop ecx
push 8
mov dword [esi + 0x364], edi
pop ebx
test edi, edi
je 0x424528
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov byte [esi + 0x35c], cl
mov dword [esi + 0x360], ecx
mov dword [esi + 0x358], ecx
push eax
push dword [ebp + 0xc]
mov dword [esi + 0x354], eax
or dword [edi + 4], 0xffffffff
mov dword [edi], ecx
lea ecx, [edi + 0x10]
push ecx
call fcn.00424547
add esp, 0x10
test eax, eax
je 0x424528
mov eax, dword [esi + 0x350]
test eax, eax
je 0x4244e3
push eax
call dword [0x48e004]
and dword [esi + 0x350], 0
pop ecx
push dword [ebp + 0xc]
call dword [0x48e00c]
mov dword [esi + 0x350], eax
pop ecx
test eax, eax
je 0x424528
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x424528
lea eax, [edi + 0x10]
push eax
push 0x4243db
call fcn.0042fc66
mov dword [edi], eax
pop ecx
pop ecx
test eax, eax
jne 0x424543
call fcn.004541f7
mov ebx, dword [eax]
lea eax, [esi + 0x350]
push eax
call fcn.00424315
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret
mov al, 1
jmp 0x42453e

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [edi + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x42b9af
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x42b987
xor esi, esi
mov dword [ebx], 0x51
jmp 0x42b9af
push eax
push edi
call fcn.0042e92b
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0042b67c
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [eax + 0x856c], ecx
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x42bb38
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x42bb60
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
jmp 0x42bb98
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x42bb96
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
push 2
add eax, 0x4776e8
push eax
call fcn.004529ca
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004529ca
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x42bcf2
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov ecx, dword [eax + 0x530]
cmp ecx, edi
je 0x42bd46
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x42bd46
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42bd1f
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
mov esi, dword [eax + 0x130]
jne 0x42bd46
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
cmove esi, edi
mov eax, esi
jmp 0x42bd48
mov eax, edi
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x48e1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x42bfbf
lea eax, [ebp - 0x108]
mov esi, 0x80
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x42bf11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0042e92b
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.0042b67c
add esp, 0x18
jmp 0x42bfc6
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], esi
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x42bf4a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0042e92b
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x42bf03
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0042c31b
add esp, 0xc
test eax, eax
jne 0x42bf83
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0042e92b
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x42bf03
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.0042c31b
add esp, 0xc
test eax, eax
jne 0x42bfbf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0042e92b
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
jmp 0x42bf03
push edi
call fcn.0042bd4c
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a31d
mov esp, ebp
pop ebp
ret
Function at 0x42c6fb
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x42c743
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0042e92b
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0042b712
add esp, 0x14
jmp 0x42c750
push str.TCP_NODELAY_set_n
push esi
call fcn.0042b712
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret

Function at 0x42e205
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x42e216
jmp dword [eax*4 + 0x42e289]
mov al, 0x41
pop ebp
ret
mov al, 0x42
pop ebp
ret
mov al, 0x43
pop ebp
ret
mov al, 0x44
pop ebp
ret
mov al, 0x45
pop ebp
ret
mov al, 0x46
pop ebp
ret
mov al, 0x47
pop ebp
ret
mov al, 0x48
pop ebp
ret
mov al, 0x49
pop ebp
ret
mov al, 0x4a
pop ebp
ret
mov al, 0x4b
pop ebp
ret
mov al, 0x4c
pop ebp
ret
mov al, 0x4d
pop ebp
ret
mov al, 0x4e
pop ebp
ret
mov al, 0x4f
pop ebp
ret
mov al, 0x50
pop ebp
ret
mov al, 0x51
pop ebp
ret
mov al, 0x52
pop ebp
ret
mov al, 0x53
pop ebp
ret
mov al, 0x54
pop ebp
ret
mov al, 0x55
pop ebp
ret
mov al, 0x56
pop ebp
ret
mov al, 0x57
pop ebp
ret
mov al, 0x58
pop ebp
ret
mov al, 0x59
pop ebp
ret
mov al, 0x5a
pop ebp
ret
mov al, cl
pop ebp
ret