joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4106b3
Capabilities:
Allocate or change rwx memory
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00410498
add esp, 8
mov ebx, eax
test esi, esi
je 0x41076e
test edi, edi
je 0x41076e
push 0x104
lea eax, [ebp - 0x110]
push eax
push esi
call sub.kernel32.dll_GetModuleFileNameA
push edi
lea edx, [ebp - 0x110]
push edx
call fcn.00410572
add esp, 8
mov edi, eax
cmp edi, 0xffffffff
je 0x41076e
push 0x4120f3
lea ecx, [ebp - 0x110]
push ecx
call sub.msvcrt.dll_fopen
add esp, 8
mov esi, eax
push 0
push edi
push esi
call sub.msvcrt.dll_fseek
add esp, 0xc
push esi
push 5
push 1
lea eax, [ebp - 8]
push eax
call sub.msvcrt.dll_fread
add esp, 0x10
push esi
call sub.msvcrt.dll_fclose
pop ecx
lea edx, [ebp - 0xc]
push edx
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
lea ecx, [ebp - 8]
mov eax, dword [ecx]
mov dword [ebx], eax
mov dl, byte [ebp - 4]
mov byte [ebx + 4], dl
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xc]
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x410775
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4107a8
lea eax, [ebp - 4]
push eax
push 0x40
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
mov dword [ebx], 0x8b55ff8b
mov byte [ebx + 4], 0xec
lea edx, [ebp - 4]
push edx
push dword [ebp - 4]
push 5
push ebx
call sub.kernel32.dll_VirtualProtect
pop ebx
pop ecx
pop ebp
ret

Function at 0x4107ac
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4107c5
mov edi, dword fs:[0x30]
mov eax, dword [edi + 8]
ret
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x1c]
mov dword [ebp - 4], ebx
jmp 0x4107ef
push esi
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call sub.kernel32.dll_lstrcmpiW
test eax, eax
je 0x4107f8
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 8], 0
jne 0x4107d7
mov edx, dword [ebp - 4]
cmp dword [edx + 8], 0
je 0x410809
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 8]
jmp 0x41080b
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4108dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor ebx, ebx
push 0x200
call sub.msvcrt.dll_malloc
pop ecx
mov esi, eax
push 0
push 0
push 0
push 0
push dword [ebp + 0x1c]
call dword [ebp + 8]
mov dword [ebp - 8], eax
push 0
push dword [ebp + 0x24]
push 0
push 0
push dword [ebp + 0x18]
push dword [ebp - 8]
call dword [ebp + 0xc]
mov edi, eax
jmp 0x410951
push ebx
push dword [ebp - 4]
lea eax, [ebp - 0x208]
push eax
push esi
call fcn.004108af
add esp, 0x10
add ebx, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 4], edx
lea ecx, [ebx + 0x200]
push ecx
push esi
call sub.msvcrt.dll_realloc
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0x200
lea edx, [ebp - 0x208]
push edx
push edi
call dword [ebp + 0x10]
cmp dword [ebp - 4], 0
jne 0x410923
push edi
call dword [ebp + 0x14]
push dword [ebp - 8]
call dword [ebp + 0x14]
push 0x4121a9
push dword [ebp + 0x20]
call sub.msvcrt.dll_fopen
add esp, 8
mov edi, eax
push edi
push 1
push ebx
push esi
call sub.msvcrt.dll_fwrite
add esp, 0x10
push edi
call sub.msvcrt.dll_fclose
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408947
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x4085d8
add edx, edx
call fcn.00408975
and edx, edx
sub esp, 4
mov dword [esp], 0xdb87f531
pop edx
xor dword [ebx], edi
dec esi
add ebx, 1
sub edx, edx
cmp ebx, ecx
jne fcn.00408947
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x34c44da0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5ae20853
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x426dcb
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00418cbb
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x426e03
xor eax, eax
jmp 0x426e2f
cmp esi, dword [ebp - 4]
je 0x426e2c
cmp dword [ebp + 0xc], 0
je 0x426e2c
push dword [edi + 0x9c]
call fcn.004269d9
push dword [edi + 0x9c]
mov esi, eax
call fcn.00416bd5
pop ecx
pop ecx
cmp esi, eax
je 0x426dff
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x461f20
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x455015
lea edi, [esi - 0x54015]
push edi
or ebp, 0xffffffff
jmp 0x461f42
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x461f49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x461f38
mov eax, 1
add ebx, ebx
jne 0x461f5b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x461f50
jne 0x461f6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f50
xor ecx, ecx
sub eax, 3
jb 0x461f80
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x461ff2
mov ebp, eax
add ebx, ebx
jne 0x461f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x461f98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x461fbc
inc ecx
add ebx, ebx
jne 0x461fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x461f9d
jne 0x461fb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x461f9d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x461fdc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x461fcd
jmp 0x461f3e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x461fdc
add edi, ecx
jmp 0x461f3e
pop esi
mov edi, esi
mov ecx, 0x32d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x461ffa
cmp byte [edi], 0
jne 0x461ffa
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 eax, ebx
loop 0x461fff
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x46206e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x621f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62254]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x46202c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62258]
or eax, eax
je 0x462068
mov dword [ebx], eax
add ebx, 4
jmp 0x462049
call dword [esi + 0x6225c]
popal
jmp 0x4095a4
Function at 0x401230
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40a2b3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x40b580
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov dword [esp + 0x18], edi
mov ecx, ebx
call fcn.00409b60
mov dword [ebx], 0x40b56c
lea ebx, [esi + 0x1c]
mov byte [esp + 0x18], 1
mov ecx, ebx
call fcn.00409b60
or eax, 0xffffffff
push 0x53ba7c
mov dword [ebx], 0x40b530
push edi
mov dword [esi], 0x40b544
mov dword [esi + 0x54], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0x10
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x38], 0xc0c0c0
mov dword [esi + 0x3c], edi
call dword [sym.imp.KERNEL32.DLL_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x404a70
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x40a7a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
xor eax, eax
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x40b5d8
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], eax
push ecx
push eax
push eax
call dword [sym.imp.GDI32.dll_CreatePen]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov esi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x3c], eax
mov ecx, esi
lea eax, [edi + 2]
push eax
lea eax, [esp + 0x1c]
push ebx
push eax
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
push ebx
call sub.MFC42.DLL_CDC::LineTo
lea ebp, [edi + 3]
lea eax, [ebx + 1]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 1]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 4]
lea ecx, [ebx + 2]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 7]
mov ecx, esi
push eax
lea eax, [ebx + 2]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [ebx + 3]
push ebp
lea ecx, [esp + 0x1c]
push eax
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 6]
mov ecx, esi
push eax
lea eax, [ebx + 3]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea eax, [edi + 2]
lea ecx, [ebx + 4]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 5]
mov ecx, esi
push eax
lea eax, [ebx + 4]
push eax
call sub.MFC42.DLL_CDC::LineTo
lea ecx, [edi + 1]
lea eax, [ebx + 5]
push ecx
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
lea eax, [edi + 4]
mov ecx, esi
push eax
lea eax, [ebx + 5]
push eax
call sub.MFC42.DLL_CDC::LineTo
add ebx, 6
push edi
lea eax, [esp + 0x1c]
push ebx
push eax
mov ecx, esi
call sub.MFC42.DLL_CDC::MoveTo
push ebp
push ebx
mov ecx, esi
call sub.MFC42.DLL_CDC::LineTo
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov dword [esp + 0x10], 0x40b5ec
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x405500
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x40a870
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov eax, esi
mov ebp, ecx
push edi
mov dword [esp + 0x10], 0x40b600
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x30], eax
cmp ecx, eax
jne 0x405567
call fcn.00401380
test eax, eax
mov eax, 0x16
jne 0x40556c
mov eax, 4
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
push eax
call ebx
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CGdiObject::Attach
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CGdiObject::DeleteObject
call fcn.00401380
test eax, eax
je 0x4055c3
mov ecx, dword [edi + 4]
push 0xf
lea eax, [esp + 0x1c]
push 2
push eax
push ecx
call dword [sym.imp.USER32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
push 7
test eax, eax
jne 0x4055e7
call ebx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
add edx, 4
add eax, 4
push edx
push eax
push edi
mov ecx, ebp
call fcn.00404a70
jmp 0x4055ff
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
add ecx, 4
push eax
add edx, 5
push ecx
push edx
push edi
mov ecx, ebp
call fcn.00404930
mov dword [esp + 0x10], 0x40b5ec
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10

Function at 0x405b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
and esi, 0xffff
push 2
push esi
call sub.MFC42.DLL_AfxFindResourceHandle
mov edi, eax
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov esi, eax
test esi, esi
jne 0x405b29
pop edi
pop esi
ret
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x405b38
pop edi
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
test eax, eax
jne 0x405b46
pop edi
pop esi
ret
push eax
call fcn.00405ac0
add esp, 4
cmp ax, 0x10
je 0x405b5a
pop edi
xor eax, eax
pop esi
ret
push 0
push esi
push edi
call sub.MFC42.DLL_AfxLoadSysColorBitmap
pop edi
pop esi
ret
Function at 0x407180
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40aa98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetParent]
mov eax, dword [esi + 0x20]
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
push eax
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CClientDC::CClientDC
mov edx, dword [esi + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
mov dword [esp + 0x50], 0
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esi + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
call edi
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, eax
call sub.MFC42.DLL_CWnd::ScreenToClient
mov eax, dword [esi + 0x14c]
mov ebx, dword [sym.imp.GDI32.dll_BitBlt]
test eax, eax
jne 0x4072a2
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esi + 0x148]
call sub.MFC42.DLL_CDC::Attach
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x14]
sub ecx, edi
push eax
push ecx
push edx
lea edi, [esi + 0x158]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, edi
call sub.MFC42.DLL_CGdiObject::Attach
test edi, edi
je 0x407258
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x14c]
push edi
push eax
call sub.MFC42.DLL_CDC::SelectGdiObject
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push 0xcc0020
mov dword [esi + 0x160], eax
mov eax, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
sub eax, ecx
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x3c]
sub ecx, edi
push edx
push eax
mov eax, dword [esi + 0x14c]
push ecx
push 0
push 0
push eax
call ebx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
sub eax, ecx
mov ecx, dword [esp + 0x14]
lea edx, [esi + 0x148]
sub ecx, edi
test edx, edx
je 0x4072c3
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
push ecx
mov ecx, dword [esp + 0x68]
push 0
push 0
mov edx, dword [ecx + 4]
push edx
call ebx
lea ecx, [esp + 0x2c]
mov dword [esp + 0x48], 0xffffffff
call fcn.00409eba
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret 4
Function at 0x408ca0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ab50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov ecx, dword [ebp + 0x10]
xor edx, edx
push ebx
push esi
mov eax, dword [ecx + 4]
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx]
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 0
mov dx, word [eax + 0x14]
lea eax, [edx + eax + 0x18]
mov ecx, dword [ecx]
xor edx, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x408e1f
mov eax, dword [ebp - 0x14]
push 0x40c7cc
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x408d5a
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x24], 0x36
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x408d54
mov ebx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push 4
push 0x1000
mov eax, dword [ebx + 0xc]
push esi
add eax, ecx
push eax
call dword [0x53bac4]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, 0x408e03
ret
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 2
push eax
mov dword [ebp - 0x28], 0x43
call sub.MSVCRT.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
push 4
push 0x1000
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
push ecx
mov ecx, dword [ebp - 0x1c]
add edx, ecx
push edx
call dword [0x53bac4]
mov dword [ebp - 0x20], eax
mov eax, 0x408d97
ret
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000115e
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov ebx, dword [esp + 0x20]
mov ebp, dword [ebx + 4]
sub ebp, dword [ebx]
lea eax, [ebp + 4]
xor ecx, ecx
mov edi, esp
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov ecx, edi
push eax
call fcn.10001fe0
mov eax, dword [edi]
mov dword [eax], ebp
mov eax, dword [edi]
add eax, 4
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
sub edx, ecx
push edx
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor ecx, ecx
inc ecx
mov edx, dword [esi + 0x10]
xor eax, eax
lock cmpxchg dword [edx], ecx
jne 0x100011a5
xor edi, edi
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov eax, dword [esp]
mov ecx, dword [esp + 4]
sub ecx, eax
sub ecx, edi
jbe 0x100011d7
add eax, edi
push 0
push ecx
push eax
push dword [esi + 0xc]
call ebx
add edi, eax
cmp eax, 0xffffffff
jne 0x100011b8
mov eax, dword [esi + 0x10]
xor ecx, ecx
xchg dword [eax], ecx
mov eax, dword [esp]
test eax, eax
je 0x100011f5
mov ecx, dword [esp + 8]
sub ecx, eax
push ecx
push eax
call fcn.10001f76
add esp, 8
mov al, 1
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x100014e6
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1b8
mov esi, ecx
lea edi, [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x10003590
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x1c4]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0xc], eax
cmp eax, 0xffffffff
je 0x100015c5
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x10], 0
push 4
call fcn.1000362a
add esp, 4
mov ebx, dword [ebp - 0x20]
mov dword [ebx + 0x10], eax
mov dword [eax], 0
lea esi, [ebp - 0x30]
mov word [esi - 4], 2
lea edi, [ebp + 8]
movzx eax, word [edi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi - 2], ax
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x10001589
mov eax, dword [edi]
push esi
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
lea eax, [ebp - 0x34]
push 0x10
push eax
push dword [ebx + 0xc]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
mov edx, ebx
setne bl
je 0x100015c7
xor eax, eax
inc eax
lea ecx, [ebp - 0x24]
mov dword [ecx], eax
push 4
push ecx
push eax
push 6
push dword [edx + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x100015c7
xor ebx, ebx
mov eax, dword [edi + 0x14]
cmp eax, 0x10
jb 0x100015db
inc eax
push eax
push dword [edi]
call fcn.10001f76
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x1b8
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c

Function at 0x10001d32
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [0x10007070]
xor eax, esp
mov dword [esp + 8], eax
mov dword [esp], 0
xor edi, edi
mov ebp, dword [sym.imp.WS2_32.dll_recv]
cmp edi, 3
jg 0x10001d78
mov eax, 4
sub eax, edi
lea ecx, [esp + edi]
push 0
push eax
push ecx
push dword [esi + 0xc]
call ebp
add edi, eax
cmp eax, 0xffffffff
jne 0x10001d55
xor ebx, ebx
jmp 0x10001dae
lea eax, [esp + 4]
mov ecx, dword [esp + 0x20]
push eax
push dword [esp + 4]
call fcn.10002522
xor edi, edi
mov eax, dword [esp]
sub eax, edi
setle bl
jle 0x10001dae
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx]
add ecx, edi
push 0
push eax
push ecx
push dword [esi + 0xc]
call ebp
add edi, eax
cmp eax, 0xffffffff
jne 0x10001d8c
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.10003690
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 4