joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418100
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427bed
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x438d98], 0x28
jl 0x418158
push 0x438d9c
call fcn.0041fd10
mov ecx, dword [0x438d94]
add esp, 4
test ecx, ecx
je 0x41814a
mov eax, dword [ecx]
mov dword [0x438d94], eax
mov dword [0x438d9c], 1
test ecx, ecx
jne 0x418177
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x418177
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
push ecx
call fcn.004184a0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x418270
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42baa5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x438d98], 0x28
jl 0x4182cc
push 0x438d9c
call fcn.0041fd10
mov esi, dword [0x438d94]
add esp, 4
test esi, esi
je 0x4182be
mov eax, dword [esi]
mov dword [0x438d94], eax
mov dword [0x438d9c], 1
test esi, esi
jne 0x4182eb
push 0x28
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
jne 0x4182eb
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
push ecx
mov ecx, esi
call fcn.004184a0
mov byte [ebp - 4], 1
mov ecx, esi
push edi
mov dword [esi], vtable.CVolObjectArray.0
call fcn.00418410
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4188a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bc70
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x438d98], 0x3c
jl 0x4188f8
push 0x438d9c
call fcn.0041fd10
mov edx, dword [0x438d94]
add esp, 4
test edx, edx
je 0x4188ea
mov eax, dword [edx]
mov dword [0x438d94], eax
mov dword [0x438d9c], 1
test edx, edx
jne 0x418917
push 0x3c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
test edx, edx
jne 0x418917
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], 0
mov dword [edx], vtable.CVolObject.0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov byte [ebp - 4], 1
lea ecx, [edx + 0x10]
mov dword [edx], vtable.CVolException.0
call fcn.00402750
mov byte [ebp - 4], 2
mov dword [edx + 0xc], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x418ab0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bcf8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x438d98], 0x3c
jl 0x418b0d
push 0x438d9c
call fcn.0041fd10
mov edi, dword [0x438d94]
add esp, 4
test edi, edi
je 0x418aff
mov eax, dword [edi]
mov dword [0x438d94], eax
mov dword [0x438d9c], 1
test edi, edi
jne 0x418b2c
push 0x3c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x418b2c
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov dword [edi], vtable.CVolObject.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CVolException.0
call fcn.00402750
mov byte [ebp - 4], 2
mov dword [edi + 0xc], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x20]
mov dword [edi], vtable.CVolException.0
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [edi + 0x20]
call dword [eax + 0x44]
lea eax, [ebx + 0x20]
push eax
lea ecx, [edi + 0x20]
call fcn.00402d10
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418fe0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427aed
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [0x438d98], 0xc
jl 0x41903b
push 0x438d9c
call fcn.0041fd10
mov ecx, dword [0x438d94]
add esp, 4
test ecx, ecx
je 0x41902d
mov eax, dword [ecx]
mov dword [0x438d94], eax
mov dword [0x438d9c], 1
test ecx, ecx
jne 0x41905a
push 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x41905a
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ecx], vtable.CVolObject.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov byte [ebp - 4], 1
mov dword [ecx], vtable.CVolUserApp.0
mov dword [0x438dc0], ecx
mov byte [ebp - 4], 2
mov dword [ecx], vtable.CVolUserApp.0
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov dword [ecx + 8], eax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x419390
Capabilities:
Get system information on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42bf1b
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x400000
mov dword [0x438d80], 0x42ede8
mov dword [0x438d88], 0x42f134
push 0
mov dword [ebp - 0x14], 0x438d80
mov dword [0x438d9c], 1
mov dword [0x438d98], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x419407
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea eax, [ecx + 0x400000]
mov dword [0x438d94], ecx
mov dword [0x438d90], eax
mov edx, 0x1555
mov eax, dword [0x438d98]
mov dword [0x438d8c], ecx
nop dword [eax + eax]
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x438d98]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x438d98]
add ecx, eax
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x438d98]
add ecx, eax
sub edx, 1
jne 0x419430
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x438da0
mov dword [ebp - 0x18], 0x438da0
mov dword [ebp - 0x1c], 0x438da0
mov dword [0x438da0], 0x42d878
mov dword [0x438da4], edx
mov dword [0x438da8], edx
mov byte [ebp - 4], 1
mov dword [0x438da0], 0x42d77c
mov dword [0x438dac], edx
mov dword [0x438db4], edx
mov dword [0x438db0], edx
mov dword [0x438db8], 0x40
mov byte [ebp - 4], 2
mov dword [0x438db8], 0x80
mov byte [ebp - 4], 5
mov dword [0x438dbc], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x438dd0
mov dword [ebp - 0x20], 0x438dd0
call esi
mov byte [ebp - 4], 7
mov dword [0x438de8], 0
mov byte [ebp - 4], 8
push 0x438df4
mov dword [ebp - 0x24], 0x438df4
call esi
mov byte [ebp - 4], 9
mov dword [0x438e0c], 0x3e8
mov dword [ebp - 0x28], 0x438e20
mov dword [ebp - 0x2c], 0x438e20
mov dword [0x438e20], 0x42d878
mov dword [0x438e24], 0
mov dword [0x438e28], 0
mov byte [ebp - 4], 0xa
mov dword [0x438e20], 0x42d77c
mov dword [0x438e2c], 0
mov dword [0x438e34], 0
mov dword [0x438e30], 0
mov dword [0x438e38], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x438e38], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x438e14], 0x3e80
mov dword [0x438e18], 1
mov dword [0x438e1c], 0
lea eax, [eax*2 + 2]
mov dword [0x438e10], eax
mov byte [ebp - 4], 0xe
push 0x438e3c
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x438e54
call fcn.004184a0
mov byte [ebp - 4], 0x10
mov dword [0x438dc0], 0
mov dword [0x438e7c], 0
movsd xmm0, qword [0x42f700]
movsd qword [0x438dc8], xmm0
xorps xmm0, xmm0
mov dword [0x438e80], 0
mov dword [0x438e84], 0
mov dword [0x438e88], 0
mov dword [0x438dc4], 0
movq qword [0x438dec], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x438d80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41a100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x41a11f
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x41a1f5
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x41a1f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x41a1ec
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x41a1d0
cmp edi, 1
jne 0x41a195
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x41a1e7
cmp edi, 2
jne 0x41a1a8
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x41a1e7
cmp edi, 4
jne 0x41a1b9
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x41a1e7
cmp edi, 8
jne 0x41a1d0
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x41a1e7
test edi, edi
jle 0x41a1e7
push edi
mov ecx, esi
call fcn.0041f0e0
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x41a550
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x438d98]
jg 0x41a58b
push 0x438d9c
call fcn.0041fd10
mov ecx, dword [0x438d94]
add esp, 4
test ecx, ecx
je 0x41a57d
mov eax, dword [ecx]
mov dword [0x438d94], eax
mov dword [0x438d9c], 1
test ecx, ecx
jne 0x41a5a9
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x41a5a9
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, ecx
pop esi
pop ebp
ret 4

Function at 0x41a610
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x438d8c]
jb 0x41a684
cmp esi, dword [0x438d90]
jae 0x41a684
mov eax, dword [ebp + 0xc]
cmp eax, dword [0x438d98]
jle 0x41a699
push edi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x41a69d
push dword [0x438d98]
push esi
push edi
call sub.VCRUNTIME140.dll_memcpy
push 0x438d9c
call fcn.0041fd10
mov eax, dword [0x438d94]
add esp, 0x10
mov dword [esi], eax
mov dword [0x438d94], esi
mov esi, edi
mov dword [0x438d9c], 1
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
test esi, esi
jne 0x41a67d
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x41dc00
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c38d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
push esi
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x41dd73
cmp word [esi], 0
je 0x41dd73
push 0x44
lea eax, [ebp - 0x7c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
or dword [ebp - 0x50], 1
mov eax, 1
mov dword [ebp - 0x38], vtable.CVolCommonBaseWithMemManager.0
add esp, 0xc
mov dword [ebp - 0x7c], 0x44
mov word [ebp - 0x4c], ax
mov dword [ebp - 0x38], vtable.CVolObject.0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x38]
push esi
call fcn.0041f1e0
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
cmp dword [ebp - 0x24], ecx
cmove eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x41dce0
xor esi, esi
jmp 0x41dd03
push 0x1f4
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
push dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x1c]
call esi
mov esi, 1
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x38], vtable.CVolMem.0
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x41dd3e
mov eax, dword [ebp - 0x38]
push ecx
mov eax, dword [eax + 0xc]
cmp eax, method.CWString.virtual_12
jne 0x41dd39
mov ecx, 0x438d88
call fcn.0041fed0
jmp 0x41dd3e
lea ecx, [ebp - 0x38]
call eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov dword [ebp - 0x38], vtable.CVolObject.0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41dd90
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c3c0
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x438008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x41df04
cmp word [esi], 0
je 0x41df04
lea ecx, [ebp - 0x244]
call fcn.00402750
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x41de07
push eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call dword [eax + 0xc]
movzx eax, word [esi]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
cmp eax, 0x5c
je 0x41de40
test ax, ax
je 0x41de73
cmp word [esi + 2], 0x3a
jne 0x41de73
cmp word [esi + 4], 0x5c
jne 0x41de73
push 0x5c
push esi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
add esp, 8
test eax, eax
je 0x41de73
cmp eax, esi
jbe 0x41de5f
cmp word [eax - 2], 0x3a
lea ecx, [eax - 2]
cmovne eax, ecx
sub eax, esi
lea ecx, [ebp - 0x244]
add eax, 2
sar eax, 1
push eax
push esi
call fcn.00422120
mov edi, dword [ebp - 0x238]
test edi, edi
jne 0x41de96
cmp dword [ebp - 0x220], edi
jne 0x41de8c
mov edi, 0x42d644
jmp 0x41de96
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x41dee5
cmp word [edi], 0
je 0x41dee5
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41dee5
test edi, edi
je 0x41dec3
cmp word [edi], 0
je 0x41dec3
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp word [ebp - 0x218], 0
mov esi, eax
je 0x41deee
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x41deee
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.004023f0
mov eax, esi
jmp 0x41df06
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00426886
mov esp, ebp
pop ebp
ret
Function at 0x41f6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ecx + 0xc]
push esi
mov esi, dword [ecx + 0x14]
test eax, eax
je 0x41f70e
cmp word [eax], 0
je 0x41f70e
test esi, esi
js 0x41f70e
push edi
push 0x42f070
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wfopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x41f6e9
pop edi
pop esi
pop ebx
pop ebp
ret 8
push edi
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor ebx, ebx
cmp eax, esi
push edi
sete bl
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x420a00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427bed
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x438d98], 0x2c
jl 0x420a58
push 0x438d9c
call fcn.0041fd10
mov ecx, dword [0x438d94]
add esp, 4
test ecx, ecx
je 0x420a4a
mov eax, dword [ecx]
mov dword [0x438d94], eax
mov dword [0x438d9c], 1
test ecx, ecx
jne 0x420a77
push 0x2c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
jne 0x420a77
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
call fcn.00420d50
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x420b80
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427e35
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [0x438d98], 0x2c
jl 0x420bdd
push 0x438d9c
call fcn.0041fd10
mov edi, dword [0x438d94]
add esp, 4
test edi, edi
je 0x420bcf
mov eax, dword [edi]
mov dword [0x438d94], eax
mov dword [0x438d9c], 1
test edi, edi
jne 0x420bfc
push 0x2c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x420bfc
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0
mov ecx, edi
call fcn.00420d50
mov byte [ebp - 4], 1
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CU8String.0
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0x10]
call dword [eax + 0x44]
lea eax, [ebx + 0x10]
push eax
lea ecx, [edi + 0x10]
call fcn.00402d10
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
push edi
mov edi, dword [ebp + 8]
cmp ebx, 0xffffffff
je 0x42100c
test edi, edi
js 0x42100c
je 0x421000
xor esi, esi
test edi, edi
jle 0x421000
push 0
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x42100c
mov edx, dword [ebp - 4]
add esi, eax
cmp esi, edi
jl 0x420fe0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421020
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x438008]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [0x438dbc]
push esi
mov esi, ecx
test eax, eax
jne 0x421064
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [0x438dbc], eax
test eax, eax
je 0x421092
lea ecx, [esi + 4]
call fcn.004214e0
test eax, eax
je 0x421092
mov eax, dword [ebp + 8]
mov ecx, esi
mov dword [esi + 0xc], eax
mov eax, dword [esi]
call dword [eax + 8]
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00426886
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x19c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00426886
mov esp, ebp
pop ebp
ret 4

Function at 0x4210b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x427ead
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x438008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
test edx, edx
je 0x421189
cmp word [edx], 0
je 0x421189
push edx
lea ecx, [ebp - 0x38]
call fcn.00420e10
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x42110f
cmp dword [ebp - 0x14], 0
mov esi, 0x42d8cb
cmovne esi, dword [ebp - 0x1c]
push dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [edi], xmm0
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [edi + 2], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
jne 0x421157
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x421167
movsx eax, word [esi + 0xa]
push eax
mov eax, dword [esi + 0xc]
push dword [eax]
lea eax, [edi + 4]
push eax
call sub.VCRUNTIME140.dll_memcpy
movzx eax, word [esi + 8]
add esp, 0xc
jmp 0x42115f
mov dword [edi + 4], eax
mov eax, 2
mov word [edi], ax
mov esi, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004023f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4211a0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x438008]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [0x438dbc]
push esi
mov esi, ecx
test eax, eax
jne 0x4211e4
lea eax, [esp + 8]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [0x438dbc], eax
test eax, eax
je 0x421210
lea ecx, [esi + 4]
call fcn.004214e0
test eax, eax
je 0x421210
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, 1
pop esi
mov ecx, dword [esp + 0x198]
xor ecx, esp
call fcn.00426886
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x19c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00426886
mov esp, ebp
pop ebp
ret 4
Function at 0x421230
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x10]
mov dword [esi + 0x14], 0
cmp edi, 0xffffffff
je 0x42125f
push 0
push 0
push dword [esi + 8]
push edi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x10], 0xffffffff
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
xor ecx, ecx
mov dword [esi + 0x10], eax
cmp eax, 0xffffffff
pop edi
setne cl
mov eax, ecx
pop esi
ret