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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x595c40
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x60940c]
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 edi, ecx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
call fcn.0052aad0
xor eax, eax
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
push ebx
call fcn.00505700
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
push esi
call fcn.00505700
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
add esp, 0x10
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
cmp dword [ebp - 0x2c], 8
push eax
cmovae edx, dword [ebp - 0x40]
push ecx
push 1
push 0
push edx
push dword [edi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x52acfa
push ebx
mov ecx, edi
call fcn.0052a8a0
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x52ad0f
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040b0e0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
cmp eax, 8
jb 0x52ad38
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0040b0e0
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.0052b33d
mov esp, ebp
pop ebp
ret 8

Function at 0x5354d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5969f8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x60940c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004061a0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push edx
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
call fcn.0052b7a0
mov ecx, dword [ebp + 0x10]
add esp, 4
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], ecx
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
sub ecx, ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], ecx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
add edx, ecx
mov dword [eax], ecx
sub edx, ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x539662
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x55f575
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055f410

Function at 0x572fbe
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00572c81

Function at 0x572fc9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00572e02

Function at 0x577eb6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00577b76

Function at 0x57f280
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0057f290

Function at 0x57f510
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x57f51c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0057f530
Function at 0x10001b50
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
movzx ecx, word [edx + 0x14]
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0
jmp 0x10001b8f
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
movzx ecx, word [eax + 6]
cmp dword [ebp - 0x10], ecx
jge 0x10001cab
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x10001c1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10001c17
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x34]
push eax
push 4
push 0x1000
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001bf0
xor eax, eax
jmp 0x10001cb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x14]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.10001930
add esp, 0xc
jmp 0x10001b7d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x10]
push ecx
mov eax, dword [ebp + 0xc]
push eax
call fcn.10001b30
add esp, 8
test eax, eax
jne 0x10001c3d
xor eax, eax
jmp 0x10001cb0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x34]
push edx
push 4
push 0x1000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x1c]
call edx
add esp, 0x14
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10001c74
xor eax, eax
jmp 0x10001cb0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0xc]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.10001980
add esp, 0xc
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 8], edx
jmp 0x10001b7d
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100027b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0x37400
mov ecx, dword [ebp - 4]
push ecx
push 0x10004070
call fcn.10001000
add esp, 8
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x117c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0117c1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x117c07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x117c06a
add dl, dl
jne 0x117c089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x117c0dc
xor eax, eax
add dl, dl
jne 0x117c096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x117c17d
add dl, dl
jne 0x117c0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x117c0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x117c0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x117c0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x117c0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x117c075
mov eax, 1
add dl, dl
jne 0x117c0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x117c0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x117c0e1
sub eax, ebx
mov ebx, 1
jne 0x117c128
mov ecx, 1
add dl, dl
jne 0x117c10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x117c119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x117c105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x117c075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x117c13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x117c14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x117c136
cmp eax, 0x7d00
jae 0x117c16d
cmp eax, 0x500
jb 0x117c168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x117c075
cmp eax, 0x7f
ja 0x117c170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x117c075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x117c19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x117c075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x226d2e26
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x357c7741
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x507f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb3000]
push edi
jmp 0x507f6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x507f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507f60
mov eax, 1
add ebx, ebx
jne 0x507f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x507f94
jne 0x507fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507fb3
dec eax
add ebx, ebx
jne 0x507fa0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x507f78
add ebx, ebx
jne 0x507faf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x508005
xor ecx, ecx
sub eax, 3
jb 0x507fcb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50803a
sar eax, 1
mov ebp, eax
jmp 0x507fd6
add ebx, ebx
jne 0x507fd6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507fa4
inc ecx
add ebx, ebx
jne 0x507fe4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x507fa4
add ebx, ebx
jne 0x507ff1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x507fe6
jne 0x508002
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x507fe6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x508024
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x508016
jmp 0x507f66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x508024
add edi, ecx
jmp 0x507f66
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x508042
cmp byte [edi], 0x11
jne 0x508042
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x508047
lea edi, [esi + 0x100000]
mov eax, dword [edi]
or eax, eax
je 0x5080bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1378a4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x137a20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x508074
mov ecx, edi
jns 0x5080a3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x137a24]
or eax, eax
je 0x5080b9
mov dword [ebx], eax
add ebx, 4
jmp 0x508091
call dword [esi + 0x137a34]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5080f0
cmp al, 0xef
ja 0x5080e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5080c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5080d2
mov ebp, dword [esi + 0x137a28]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x508124
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x4019b0
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
mov esi, ecx
push edx
push dword [ecx + 4]
push 1
push dword [ecx]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
cmp eax, dword [esi + 4]
jne 0x4019d4
xor eax, eax
mov dword [esi + 4], 0
jmp 0x4019f8
mov edi, eax
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push dword [esi + 4]
push edi
push str.ERROR:_write__zu_of__zu_bytes_n
push eax
call fcn.00401990
add esp, 0x10
mov eax, 0xffffffff
pop esi
pop edi
ret

Function at 0x401a00
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x14]
mov ebx, dword [ecx + 4]
mov edi, edx
mov esi, ecx
add ebx, ebp
cmp ebx, dword [ecx + 8]
jbe 0x401a49
sub ebx, 0xffffff80
push ebx
push dword [esi]
call sub.api_ms_win_crt_heap_l1_1_0.dll_realloc
add esp, 8
test eax, eax
je 0x401a2f
mov dword [esi], eax
mov dword [esi + 8], ebx
jmp 0x401a49
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push ebx
push str.ERROR:_realloc_failed_on_size_d_n
push eax
call fcn.00401990
add esp, 0xc
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push ebp
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fread
add esp, 0x10
cmp eax, ebp
jne 0x401a66
add dword [esi + 4], ebp
xor eax, eax
jmp 0x401aa9
cmp dword [esp + 0x18], 0
mov ebx, eax
je 0x401a89
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_feof
add esp, 4
test eax, eax
je 0x401a89
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_ferror
add esp, 4
test eax, eax
je 0x401a5f
push 2
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
push ebp
push ebx
push str.ERROR:_read__zu_of__zu_bytes_n
push eax
call fcn.00401990
add esp, 0x10
mov eax, 0xffffffff
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402340
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
mov dword [esp + 0xc], eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004039d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
lea esi, [esi]

Function at 0x4023a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x40c460]
test eax, eax
jle 0x4024b0
mov edx, dword [0x40c464]
xor ebx, ebx
mov ecx, dword [edx + 0xc]
cmp ecx, esi
ja 0x4023d1
mov edi, dword [edx + 0x10]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x40244a
add ebx, 1
add edx, 0x14
cmp ebx, eax
jne 0x4023c0
mov dword [esp], esi
call fcn.00403b30
test eax, eax
mov edi, eax
je 0x4024d7
lea esi, [ebx + ebx*4]
mov ebx, dword [0x40c464]
shl esi, 2
add ebx, esi
mov dword [ebx + 0x10], eax
mov dword [ebx], 0
call fcn.00403c20
add eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x40c464]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4024b7
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x402452
add dword [0x40c460], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x402443
cmp eax, 0x80
je 0x402443
cmp eax, 8
je 0x402443
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x28]
add esi, dword [0x40c464]
mov dword [esi + 4], eax
mov dword [esi + 8], edx
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x402443
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00402340
nop
lea esi, [esi]
xor ebx, ebx
jmp 0x4023db
mov eax, dword [0x40c464]
mov eax, dword [eax + esi + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00402340
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00402340
mov esi, esi
lea edi, [edi]

Function at 0x403310
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
jmp fcn.00402d10
Function at 0x403a50
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x403a88
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x403a7e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x403a8a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x403a70
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401000
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x4041e9
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x19c], eax
push esi
mov eax, dword [0x407018]
xor eax, esp
push eax
lea eax, [esp + 0x1a8]
mov dword fs:[0], eax
mov esi, 0x40751c
mov dword [esp + 0xc], 0x40751c
call fcn.004024d0
xor esi, esi
mov eax, 0x407520
mov dword [esp + 0x1b0], esi
call fcn.004021d0
xor ecx, ecx
mov eax, 0x407550
mov byte [esp + 0x1b0], 1
call fcn.00402550
cmp dword [0x40750c], esi
jne 0x4010b4
cmp dword [0x407510], esi
jne 0x4010b4
lea eax, [esp + 0x14]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
cmp eax, esi
je 0x4010b4
mov ecx, eax
lea eax, [esp + 0x10]
call fcn.00402550
mov ecx, dword [eax]
push 0x405750
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], ecx
call sub.MSVCR90.dll__CxxThrowException
inc dword [0x40750c]
mov dword [0x407540], esi
mov dword [0x407544], esi
mov dword [0x40754c], esi
mov dword [0x407548], esi
mov dword [0x40752c], 0xffffffff
mov eax, 0x40751c
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.0040377c
add esp, 0x1ac
ret

Function at 0x4011c0
Capabilities:
Create tcp socket
Create thread
Create udp socket

Disassembly:
sub esp, 0x14
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, 0x40751c
call fcn.00401380
test al, al
je 0x4011e4
mov eax, esi
call fcn.004012f0
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov esi, eax
mov eax, 2
push 0x27dd
mov word [esp + 8], ax
call sub.WSOCK32.dll_htons
push 0
mov word [esp + 0xa], ax
call sub.WSOCK32.dll_htonl
push 0x10
lea ecx, [esp + 8]
push ecx
push esi
mov dword [esp + 0x14], eax
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x40124f
push esi
call sub.WSOCK32.dll_closesocket
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov esi, 0x40751c
call fcn.004011a0
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0040377c
add esp, 0x14
ret
push 0xa
push esi
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
je 0x401227
mov eax, 0x40751c
call fcn.00402530
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [0x407530], edx
mov edx, dword [esp + 0x10]
mov dword [0x407534], eax
mov eax, 0x40751c
mov dword [0x40752c], esi
mov dword [0x407538], ecx
mov dword [0x40753c], edx
call fcn.00402540
push 0x40754c
push 0
push 0x40751c
push 0x401570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x407548], eax
test eax, eax
jne 0x4012dd
mov eax, 0x40751c
call fcn.004012f0
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.0040377c
add esp, 0x14
ret
mov ecx, dword [esp + 0x14]
pop esi
xor ecx, esp
mov al, 1
call fcn.0040377c
add esp, 0x14
ret
Function at 0x401720
Capabilities:
Get hostname

Disassembly:
sub esp, 0x204
mov eax, dword [0x407018]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
push 0x1ff
lea eax, [esp + 9]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x10], 0
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x200
lea ecx, [esp + 8]
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x40178b
call sub.WSOCK32.dll_WSAGetLastError
push eax
mov esi, 0x40751c
call fcn.004011a0
xor al, al
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.0040377c
add esp, 0x204
ret
push 0x200
push 0
push esi
call sub.MSVCR90.dll_memset
lea eax, [esp + 0x10]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017a2
sub eax, edx
inc eax
cmp eax, 0x200
jle 0x4017b8
mov eax, 0x200
push eax
lea edx, [esp + 8]
push edx
push esi
call sub.MSVCR90.dll_memcpy
mov ecx, dword [esp + 0x210]
add esp, 0xc
pop esi
xor ecx, esp
mov al, 1
call fcn.0040377c
add esp, 0x204
ret