joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x104
mov eax, dword [0x418010]
push ebx
mov ebx, ecx
push esi
mov ecx, 0x418080
push edi
test ecx, ecx
mov dword [esp + 0xc], eax
je 0x401796
mov edx, ecx
shr edx, 0x10
jne 0x40175e
lea eax, [esp + 0x10]
push 0x100
push eax
push ecx
call fcn.00401f90
mov ecx, 0x100
sub ecx, eax
cmp ecx, 2
jle 0x401724
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
call fcn.00402020
jmp 0x401796
mov esi, 0x100
add esi, 0x100
lea ecx, [esp + 0xc]
push esi
lea eax, [esi - 1]
push eax
call fcn.004020f0
push eax
push 0x418080
call fcn.00401f90
mov ecx, esi
sub ecx, eax
cmp ecx, 2
jle 0x401729
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00402190
jmp 0x401796
push 0x418080
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x401796
push esi
lea ecx, [esp + 0x10]
call fcn.00401fc0
test eax, eax
je 0x401796
mov edi, dword [esp + 0xc]
mov ecx, esi
mov edx, ecx
mov esi, 0x418080
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x114]
mov ecx, dword [ebx + 4]
push 1
push eax
push esi
push esi
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [esp + 0xc]
mov ecx, dword [0x418014]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4017e6
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4017e6
mov eax, dword [esp + 0xc]
add eax, 0xfffffff4
push eax
call fcn.00415cb0
add esp, 4
mov eax, dword [0x418014]
lea ecx, [esi - 0xc]
cmp ecx, eax
je 0x401805
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x401805
push esi
call fcn.00415cb0
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x104
ret 4

Function at 0x402ac0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x38
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x44]
mov eax, dword [esi + 0xe0]
xor ecx, ecx
mov dword [esi + 0xe4], edi
push 0x418090
mov cx, word [eax + 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x402af6
pop edi
pop esi
add esp, 0x38
ret 4
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402b0a
pop edi
pop esi
add esp, 0x38
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi + 0xe0]
mov dword [edx + 0x10], eax
mov eax, dword [esi + 0xe0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
jne 0x402b31
pop edi
xor eax, eax
pop esi
add esp, 0x38
ret 4
lea ecx, [esp + 8]
call fcn.004095a0
mov eax, dword [esi + 0xe0]
lea ecx, [esi + 0xa4]
push ecx
lea ecx, [esp + 0xc]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0x10]
push edx
push eax
call fcn.004097a0
test eax, eax
sete cl
mov byte [esi + 0xe8], cl
lea ecx, [esp + 8]
call fcn.004095e0
pop edi
mov eax, 1
pop esi
add esp, 0x38
ret 4
Function at 0x407b00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x38
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004095a0
mov eax, dword [esp + 0x48]
push 0x41839c
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x407b54
lea ecx, [esp + 0xc]
call fcn.004095e0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret 4
add ebx, 0x20
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004097a0
lea ecx, [esp + 0xc]
call fcn.004095e0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x38
ret 4

Function at 0x407c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x38
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.004095a0
mov eax, dword [esp + 0x48]
push 0x41839c
and eax, 0xffff
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x407cd4
lea ecx, [esp + 0xc]
call fcn.004095e0
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x38
ret 4
add ebx, 0x58
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.004097a0
lea ecx, [esp + 0xc]
call fcn.004095e0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x38
ret 4

Function at 0x40a2c0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x40a2f0
push esi
call fcn.0040d800
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x40a2e9
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x40a373
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x40a35f
mov eax, dword [esi + 8]
test eax, eax
je 0x40a314
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x40a35b
cmp eax, 2
je 0x40a35f
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x40a307
cmp eax, 3
je 0x40a33a
cmp eax, 1
jne 0x40a307
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x40a307
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x40a307
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
push esi
mov dword [esi + 0x84], eax
call fcn.0040a3a0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x40a393
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.0040a3a0
add esp, 4
pop esi
ret
Function at 0x40c880
Capabilities:
Query environment variable

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
push edi
mov dword [edi + 4], ebx
call fcn.004013f0
push 0x54
push edi
mov dword [esp + 0x18], eax
call fcn.0040dcf0
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x40c8c4
push edi
call fcn.0040dd40
mov eax, dword [edi]
push edi
mov dword [eax + 0x14], 0x36
mov ecx, dword [edi]
mov dword [ecx + 0x18], ebx
mov edx, dword [edi]
call dword [edx]
add esp, 8
mov dword [esi], fcn.0040c9c0
mov dword [esi + 4], fcn.0040cb10
mov dword [esi + 8], fcn.0040cbd0
mov dword [esi + 0xc], fcn.0040cc80
mov dword [esi + 0x10], 0x40cd30
mov dword [esi + 0x14], 0x40cda0
mov dword [esi + 0x18], 0x40ce10
mov dword [esi + 0x1c], 0x40cf90
mov dword [esi + 0x20], 0x40d180
mov dword [esi + 0x24], fcn.0040d370
mov dword [esi + 0x28], 0x40d470
mov dword [esi + 0x30], 0x3b9aca00
mov eax, dword [esp + 0xc]
mov ecx, 2
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x40]
mov dword [eax - 8], ebx
mov dword [eax], ebx
sub eax, 4
dec ecx
jne 0x40c926
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x54
push str.JPEGMEM
mov dword [edi + 4], esi
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
cmp eax, ebx
je 0x40c9b8
lea ecx, [esp + 0x14]
lea edx, [esp + 0xc]
push ecx
push edx
push str._ld_c
push eax
mov byte [esp + 0x24], 0x78
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0x10
test eax, eax
jle 0x40c9b8
mov al, byte [esp + 0x14]
cmp al, 0x6d
je 0x40c981
cmp al, 0x4d
jne 0x40c9a5
mov eax, dword [esp + 0xc]
pop edi
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop esi
pop ebx
pop ecx
ret
mov eax, dword [esp + 0xc]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x404580
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4366f2
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x449868]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x441534
mov dword [edi + 0x10], 0x4414e4
mov dword [edi + 0x78], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push ecx
lea esi, [edi + 0x18]
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 0x10], 1
call fcn.004056a0
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x78]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.00407850
lea eax, [esi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x4c], 0
mov byte [esi + 0x45], 0
lea ecx, [esi + 8]
mov dword [esi + 0x10], ecx
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x44caa4]
mov dword [esi + 0x50], 0
mov dword [esi + 0x48], eax
mov dword [esi + 0x40], 0
push ecx
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00405750
test eax, eax
jne 0x4046b5
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + edi + 0xc]
add ecx, edi
or eax, 2
cmp dword [ecx + 0x38], 0
jne 0x4046ad
or eax, 4
push 0
push eax
call fcn.00403340
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x436908
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x449868]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x449868]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x405ab4
cmp byte [ebx + 0x45], 0
je 0x405ab4
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4059c0
xor al, al
jmp 0x405ab6
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x405a00
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x405a41
dec eax
je 0x405a45
sub eax, 2
je 0x405a9b
xor bl, bl
jmp 0x405a9d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x405a7c
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0041ca3e
add esp, 0x10
cmp esi, eax
jne 0x405a3d
cmp byte [ebx + 0x45], 0
je 0x405a9b
test esi, esi
jne 0x405a00
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.00405320
jmp 0x405a00
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x405ab0
push dword [esp + 0x18]
call fcn.0041b458
add esp, 4
mov al, bl
jmp 0x405ab6
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041aca0
mov esp, ebp
pop ebp
ret
Function at 0x40b570
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e18
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x449868]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [0x44c150]
mov esi, dword [0x44c14c]
mov dword [ebx], vtable.hgeGUIObject.0
push 0x180
mov byte [ebx + 0x1c], 1
call dword [sym.imp.hge.dll_hgeCreate]
mov dword [0x44ae94], eax
mov dword [ebx + 0x20], 0xffffffff
mov dword [ebp - 4], 0
mov dword [ebx], vtable.hgeGUIMenuItem.0
mov dword [ebx + 0x4c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x54], 0
mov dword [ebx + 0x50], 0
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x60], 0
mov dword [ebx + 0x7c], 0
mov dword [ebx + 0x78], 0
mov dword [ebx + 0x74], 0
mov dword [ebx + 0x70], 0
mov dword [ebx + 0x8c], 0
mov dword [ebx + 0x88], 0
mov dword [ebx + 0x84], 0
mov dword [ebx + 0x80], 0
mov eax, dword [ebp + 8]
xorps xmm1, xmm1
divss xmm1, dword [0x441ea8]
movss xmm0, dword [ebp + 0x1c]
mov dword [ebx + 0x9c], 0
mov dword [ebx + 0x98], 0
mov dword [ebx + 0x94], 0
mov dword [ebx + 0x90], 0
mov dword [ebx + 0xac], 0
mov dword [ebx + 0xa8], 0
mov dword [ebx + 0xa4], 0
mov dword [ebx + 0xa0], 0
mov dword [ebx + 0xbc], 0
mov dword [ebx + 0xb8], 0
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0xb0], 0
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x30], esi
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x34], edi
movss dword [ebx + 0x38], xmm0
mov dword [ebx + 0xac], 0x3f800000
mov dword [ebx + 0xa0], 0x3f800000
mov dword [ebx + 0xa4], 0x3f60e0e1
mov dword [ebx + 0xa8], 0x3ec0c0c1
mov dword [ebx + 0xbc], 0x3e40c0c1
movss dword [ebx + 0xb0], xmm1
movss dword [ebx + 0xb4], xmm1
movss dword [ebx + 0xb8], xmm1
mov ecx, dword [ebx + 0x30]
push 1
push dword [ebx + 0x3c]
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xcc], 0xbf800000
mov dword [ebx + 0xd0], 0xbf800000
mov word [ebx + 8], 0x100
mov byte [ebx + 0xa], 1
call fcn.0041a540
movss xmm0, dword [ebp + 0x14]
mov eax, dword [ebx + 0x30]
fstp dword [ebp + 8]
movss xmm2, dword [ebp + 8]
mulss xmm2, dword [0x441e34]
movss xmm3, dword [eax + 0xc04]
subss xmm0, xmm2
addss xmm2, dword [ebp + 0x14]
movss dword [ebx + 0xc], xmm0
movss xmm0, dword [ebp + 0x18]
movss dword [ebx + 0x14], xmm2
addss xmm3, xmm0
movss dword [ebx + 0x10], xmm0
mov byte [ebx + 0x1c], 0
mov eax, ebx
movss dword [ebx + 0x18], xmm3
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40cb20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e86
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x449868]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x44c208]
test esi, esi
jne 0x40cb72
push 0x1cc
call fcn.0041b4a8
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], esi
test eax, eax
je 0x40cbec
mov ecx, eax
call fcn.00412c40
jmp 0x40cbee
cmp dword [0x44c234], 0
jne 0x40cbb6
lea ecx, [esi + 0x14]
call fcn.00410b10
mov ecx, esi
call fcn.004120d0
mov dword [esi + 0x1c0], 0
mov dword [esi + 0x1c4], 0x461c4000
mov eax, dword [esi + 0xb8]
mov dword [esi + 0xbc], eax
mov dword [0x44c234], 0
jmp 0x40cbfa
push ecx
mov ecx, esi
call fcn.0040ccd0
push 0x1cc
mov dword [0x44c234], 0
call fcn.0041b4a8
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
test eax, eax
je 0x40cbec
mov ecx, eax
call fcn.00412c40
jmp 0x40cbee
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x44c208], eax
mov eax, dword [0x44c144]
push 4
mov ecx, dword [eax]
push 0
push eax
call dword [ecx + 0x84]
mov ecx, dword [0x44c208]
push eax
lea ecx, [ecx + 0x14]
call fcn.00411570
mov eax, dword [0x44abf4]
mov ecx, 0x14
cmp eax, 0x3e8
cmovg eax, ecx
mov ecx, dword [0x44c14c]
push 0xffffff00
mov dword [0x44abf4], eax
mov dword [ecx + 0xc08], 0x3f333333
call fcn.0041a620
mov ecx, dword [0x44c15c]
push 0xffffff00
call fcn.0041a620
mov eax, dword [0x44c144]
push str.w
mov ecx, dword [eax]
push 0x1b
push eax
mov dword [0x44c238], 0
mov dword [0x44c23c], 0
mov dword [0x44ac10], 0x3f000000
mov dword [0x44ac0c], 0x40600000
call dword [ecx + 0x30]
mov eax, dword [0x44c144]
push 1
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push 0
push 0x64
push dword [0x44c20c]
push eax
call dword [ecx + 0xa4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40cd60
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436edc
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x449868]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x44c208]
mov dword [0x44c234], 1
mov dword [ebp - 0x10], esi
test esi, esi
je 0x40cde8
mov dword [ebp - 4], 2
mov eax, dword [0x44c144]
push dword [esi + 0x1b8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x188]
lea ecx, [esi + 0xb8]
mov byte [ebp - 4], 1
call fcn.004128d0
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0
call fcn.00411ae0
mov ecx, esi
mov dword [ebp - 4], 0xffffffff
call fcn.004122e0
push esi
call fcn.0041b458
add esp, 4
push 0x1cc
call fcn.0041b4a8
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 3
test eax, eax
je 0x40ce0c
mov ecx, eax
call fcn.00412c40
jmp 0x40ce0e
xor eax, eax
mov dword [ebp - 4], 0xffffffff
push dword [0x44abf8]
lea ecx, [eax + 0x14]
mov dword [0x44c208], eax
call fcn.00411570
mov eax, dword [0x44c14c]
push 0x80ff
mov dword [eax + 0xc08], 0x3f333333
mov eax, dword [0x44c144]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x84]
mov ecx, dword [0x44c15c]
sub eax, 0x8100
push eax
call fcn.0041a620
mov eax, dword [0x44c144]
push 0x441710
mov ecx, dword [eax]
push 0x1b
push eax
mov dword [0x44ac0c], 0x3fc00000
mov dword [0x44ac10], 0x3f000000
mov dword [0x44abf4], 0xe4c
mov dword [0x44c238], 0
mov dword [0x44c23c], 0
mov dword [0x44ac08], 0x3f8ccccd
call dword [ecx + 0x30]
mov eax, dword [0x44c144]
push 1
mov ecx, dword [eax]
push ecx
mov dword [esp], 0x3f800000
push 0
push 0x64
push dword [0x44c230]
push eax
call dword [ecx + 0xa4]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40da30
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x59c
mov eax, dword [0x449868]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x44cb04]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x598]
push eax
push 0x202
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
jne 0x40da8e
push 0x80
push 0x44c268
call dword [sym.imp.WSOCK32.dll_gethostname]
test eax, eax
je 0x40da8e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aca0
mov esp, ebp
pop ebp
ret 8
push 0x44c268
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov edi, eax
mov edx, 0x44c268
mov ecx, dword [edi + 0xc]
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [0x44c2e8], ecx
mov ecx, dword [edi]
nop
mov al, byte [ecx]
mov byte [edx], al
lea ecx, [ecx + 1]
lea edx, [edx + 1]
test al, al
jne 0x40dab0
push 0x44c268
lea eax, [ebp - 0x408]
push 0x441a28
push eax
call fcn.0041b891
add esp, 0xc
lea eax, [ebp - 0x408]
push eax
push esi
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
call esi
mov eax, dword [edi + 0xc]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0041aca0
mov esp, ebp
pop ebp
ret 8
Function at 0x40dbe0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x449868]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [0x44c2f0], eax
cmp eax, 0xffffffff
jne 0x40dc1b
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aca0
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
xorps xmm0, xmm0
mov eax, 2
movq qword [ebp - 0x418], xmm0
movq qword [ebp - 0x410], xmm0
mov word [ebp - 0x418], ax
call dword [sym.imp.WSOCK32.dll_htonl]
push dword [ebp + 0xc]
mov dword [ebp - 0x414], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x416], ax
push 0x10
lea eax, [ebp - 0x418]
push eax
push dword [0x44c2f0]
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
je 0x40dc09
mov dword [ebp - 0x408], 1
xor eax, eax
nop
mov cl, byte [eax + 0x44c268]
mov byte [ebp + eax - 0x404], cl
lea eax, [eax + 1]
test cl, cl
jne 0x40dc80
mov ecx, 0x44c268
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40dca0
sub ecx, edx
push 0
lea eax, [ecx + 4]
push eax
lea eax, [ebp - 0x408]
push eax
push dword [0x44c2f0]
call dword [sym.imp.WSOCK32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041aca0
mov esp, ebp
pop ebp
ret 8

Function at 0x40dce0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x449868]
xor eax, ebp
mov dword [ebp - 8], eax
push dword [0x44c1ec]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push eax
push eax
push 0xb1
push dword [0x44c1ec]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0x441a38
push 1
push 0xc2
push dword [0x44c1ec]
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 1
push 2
call dword [sym.imp.WSOCK32.dll_socket]
mov dword [0x44c2ec], eax
cmp eax, 0xffffffff
jne 0x40dd56
xor al, al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041aca0
mov esp, ebp
pop ebp
ret 4
push 4
lea ecx, [ebp - 0x1c]
push ecx
push 4
push 0xffff
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x40dd44
xorps xmm0, xmm0
mov eax, 2
movq qword [ebp - 0x18], xmm0
push 0
movq qword [ebp - 0x10], xmm0
mov word [ebp - 0x18], ax
call dword [sym.imp.WSOCK32.dll_htonl]
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x16], ax
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [0x44c2ec]
call dword [sym.imp.WSOCK32.dll_bind]
cmp eax, 0xffffffff
je 0x40dd44
push 0xa
push dword [0x44c2ec]
call dword [sym.imp.WSOCK32.dll_listen]
mov ecx, dword [ebp - 8]
cmp eax, 0xffffffff
setne al
xor ecx, ebp
call fcn.0041aca0
mov esp, ebp
pop ebp
ret 4