joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a3a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [0x100bdd64]
sub esp, 8
push esi
mov esi, ecx
mov dword [eax + 0x2f20], 0
push edi
test esi, esi
je 0x1002a3fd
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.1002a410
mov edx, 0x100a6954
mov ecx, esi
mov edi, eax
call fcn.10018380
mov esi, eax
test esi, esi
je 0x1002a3fd
push esi
push dword [esp + 0x10]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10033ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10033efa
mov eax, dword [0x100bdd64]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x10033eed
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10033f2b
mov eax, dword [0x100bdd64]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x10033f1e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10033f5c
mov eax, dword [0x100bdd64]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x10033f4f
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x10033fa9
mov eax, dword [0x100bdd64]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x10033f9c
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x10033fda
mov eax, dword [0x100bdd64]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x10033fcd
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1003400b
mov eax, dword [0x100bdd64]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x10033ffe
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.10037010
Function at 0x10039f70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10083bd3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x100ba040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 8], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x1c], 0
mov byte [ebp - 4], 1
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x28], 0
mov byte [ebp - 4], 2
mov eax, 0xffff
mov word [ecx + 0x3e], ax
xor eax, eax
mov dword [ecx + 0x10], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x3a], 0xffffffff
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov word [ecx + 0x38], ax
mov byte [ecx + 0x40], al
mov dword [ecx + 0x44], 0x3f800000
mov dword [ecx + 0x4c], eax
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x50], eax
mov word [ecx + 0x54], ax
mov dword [ebp - 4], 0xffffffff
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x10050ed0
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0xc], 0x100000
push ebx
push esi
push edi
mov ebx, edx
je 0x10050f41
mov cl, byte [ebx]
lea esi, [ebx + 1]
or eax, 0xffffffff
test cl, cl
je 0x10050f18
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x10050eff
cmp byte [esi], cl
jne 0x10050eff
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100a6b88]
test cl, cl
jne 0x10050ef0
mov ecx, dword [0x100bdd64]
not eax
cmp dword [ecx + 0x1bd0], eax
jne 0x10050f2e
mov dword [ecx + 0x1bd4], eax
cmp dword [ecx + 0x1c0c], eax
jne 0x10050fa3
mov byte [ecx + 0x1c10], 1
pop edi
pop esi
pop ebx
ret
mov edi, dword [0x100bdd64]
xor edx, edx
mov eax, dword [edi + 0x1b98]
mov ecx, dword [eax + 0xc4]
mov eax, dword [eax + 0xcc]
push dword [eax + ecx*4 - 4]
mov ecx, ebx
call fcn.100182e0
mov esi, eax
add esp, 4
cmp dword [edi + 0x1bd0], esi
jne 0x10050f79
mov dword [edi + 0x1bd4], esi
cmp dword [edi + 0x1c0c], esi
jne 0x10050f88
mov byte [edi + 0x1c10], 1
cmp dword [edi + 0x1bb8], esi
jne 0x10050fa1
push ecx
push ebx
mov edx, 0xb
mov ecx, esi
call fcn.1002abe0
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x1005ef00
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100ba040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100be27d], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
je 0x1005ef6b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x34], 0
jne 0x1005ef2f
cmp dword [eax + 0x30], 0
je 0x1005ef6b
lea eax, [ebp - 8]
mov byte [0x100be27e], 1
push eax
push 0x40
push 1
push 0x410660
call esi
push 0
mov byte [0x410660], 0xc3
push dword [ebp - 8]
push 1
push 0x410660
call esi
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [0xcc18c84]
mov dword [0x100be278], eax
cmp byte [ebp + 0x14], 0
jne 0x1005efe1
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, eax
sub edx, dword [0xcc18c84]
cmp byte [0x8f15f0], 1
jne 0x1005ef99
mov ecx, dword [0x100be504]
cmp byte [ecx + 0x44], 0
mov ecx, 1
jne 0x1005ef9e
mov ecx, 0x64
mov eax, dword [0x100be278]
add eax, ecx
cmp eax, edx
jae 0x1005efe1
lea eax, [ebp - 8]
mov dword [0x100be278], edx
push eax
push 0x40
push 1
push 0x410660
mov byte [0x100be27e], 0
call esi
push 0
mov byte [0x410660], 0x83
push dword [ebp - 8]
push 1
push 0x410660
call esi
mov byte [0x100be27d], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1007f5d0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10067270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x100ba040]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [0x100be5c0]
push ebx
push esi
push edi
cmp byte [eax + 0x44], 0
je 0x10067434
push 0x61
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test al, 1
je 0x100672e2
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.v.size__:
call fcn.10007b10
mov ecx, dword [0x100ba1c0]
mov esi, eax
sub ecx, dword [0x100ba1bc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
push ecx
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int_]
mov dl, 0xa
mov ecx, eax
call fcn.10008b00
mov ecx, dword [0x100ba1c0]
mov eax, 0x2aaaaaab
mov esi, dword [0x100ba1bc]
sub ecx, esi
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 3
jb 0x10067434
xor ebx, ebx
add eax, 0xfffffffd
je 0x10067434
xor edi, edi
nop word [eax + eax]
mov eax, dword [0x100ba09c]
movss xmm3, dword [edi + esi]
movss xmm2, dword [edi + esi + 4]
movss xmm1, dword [edi + esi + 8]
movups xmm0, xmmword [edi + esi + 0xc]
movss dword [esp + 0x20], xmm3
subss xmm3, dword [eax + 0x25674]
movss dword [esp + 0x24], xmm2
subss xmm2, dword [eax + 0x25678]
movss dword [esp + 0x28], xmm1
subss xmm1, dword [eax + 0x2567c]
mulss xmm3, xmm3
mulss xmm2, xmm2
mulss xmm1, xmm1
addss xmm3, xmm2
movups xmmword [esp + 0x2c], xmm0
movss xmm0, dword [edi + esi + 0x1c]
movss dword [esp + 0x3c], xmm0
movss xmm0, dword [edi + esi + 0x20]
addss xmm3, xmm1
movss dword [esp + 0x40], xmm0
movaps xmm0, xmm3
call fcn.10005c70
mov eax, dword [0x100be5d0]
comiss xmm0, dword [eax + 0xc]
ja 0x1006740b
mov eax, dword [0x100be5c8]
lea edx, [esp + 0x1c]
mov dword [esp + 0xc], 0x3f800000
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
movss xmm0, dword [eax + 0xc]
mov eax, 0x493530
movss dword [esp + 0x18], xmm0
call eax
mov eax, dword [0x100be5c4]
lea edx, [esp + 0x20]
movzx eax, byte [eax + 0x44]
push eax
mov eax, dword [0x100be5cc]
movzx eax, byte [eax + 0x44]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.10066f50
mov esi, dword [0x100ba1bc]
add esp, 0xc
mov ecx, dword [0x100ba1c0]
mov eax, 0x2aaaaaab
sub ecx, esi
add ebx, 3
imul ecx
add edi, 0x24
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, 0xfffffffd
add eax, edx
cmp ebx, eax
jb 0x10067320
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1007f5d0
mov esp, ebp
pop ebp
ret
Function at 0x10067590
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 4], edx
movss dword [ebp - 0xc], xmm3
movss dword [ebp - 0x10], xmm2
movss dword [ebp - 0x14], xmm1
mov dword [ebp - 8], ecx
pushal
push dword [ebp - 4]
mov eax, dword [ebp - 8]
sub esp, 0x20
fld dword [ebp + 0x18]
fstp dword [esp + 0x1c]
fld dword [ebp + 0x14]
fstp dword [esp + 0x18]
fld dword [ebp + 0x10]
fstp dword [esp + 0x14]
fld dword [ebp + 0xc]
fstp dword [esp + 0x10]
fld dword [ebp + 8]
fstp dword [esp + 0xc]
fld dword [ebp - 0xc]
fstp dword [esp + 8]
fld dword [ebp - 0x10]
fstp dword [esp + 4]
fld dword [ebp - 0x14]
fstp dword [esp]
call dword [0x100ae74c]
add esp, 0x24
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1007b810
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100ba040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ecx, str.1_kej_bhop_nodelay
call fcn.1000b3d0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1007b874
mov eax, dword [eax]
mov bl, byte [eax + 0x44]
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push 0x407dae
call esi
test bl, bl
mov eax, 0x100b1848
mov ecx, 0x100b1840
mov edx, 0x407dae
cmovne ecx, eax
push 0
mov eax, dword [ecx]
mov dword [edx], eax
mov ax, word [ecx + 4]
mov word [edx + 4], ax
push dword [ebp - 8]
push 6
push edx
call esi
mov ecx, str.1_kej_bhop
call fcn.1000b3d0
test eax, eax
je 0x1007b8c0
mov eax, dword [eax]
mov bl, byte [eax + 0x44]
lea eax, [ebp - 8]
push eax
push 0x40
push 6
push 0x407ddc
call esi
test bl, bl
mov eax, 0x100b1858
mov ecx, 0x100b1850
mov edx, 0x407ddc
cmovne ecx, eax
push 0
mov eax, dword [ecx]
mov dword [edx], eax
mov ax, word [ecx + 4]
mov word [edx + 4], ax
push dword [ebp - 8]
push 6
push edx
call esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1007f5d0
mov esp, ebp
pop ebp
ret
Function at 0x1007c230
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10085709
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x100ba040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bh, dl
mov bl, cl
cmp dword [0x100bdd64], 0
mov byte [ebp - 0x14], bl
jne 0x1007c2a5
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, str.R_RemoveInput_
call fcn.10007b10
push dword [ebp - 0x14]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___bool_]
mov edx, str._:_called_without_imgui_context__n
mov ecx, eax
call fcn.10007b10
push str.R_RemoveInput__:_called_without_imgui_context__n
push 7
call fcn.1000ab80
add esp, 8
jmp 0x1007c42f
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100baba8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100c1bd4]
cmp eax, dword [ecx + 4]
jle 0x1007c2eb
push 0x100c1bd4
call fcn.1007f65a
add esp, 4
cmp dword [0x100c1bd4], 0xffffffff
jne 0x1007c2eb
mov dword [ebp - 4], 0xffffffff
push 0x100c1bd4
call fcn.1007f609
add esp, 4
mov eax, dword [0x100bdd64]
test bl, bl
je 0x1007c380
mov byte [eax + 0xb0], 1
mov byte [eax + 0x350], 1
mov eax, dword [0x100bdd7c]
test eax, eax
je 0x1007c324
add eax, 0x79918
mov dword [ebp - 0x14], eax
push 0
call dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x1007c32d
mov eax, dword [0x100ba1a0]
mov byte [eax + 0xd], 0
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x4631b0
call esi
push 0
mov byte [0x4631b0], 0xc3
push dword [ebp - 0x14]
push 1
push 0x4631b0
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x467eb0
call esi
push 0
mov byte [0x467eb0], 0xc3
push dword [ebp - 0x14]
push 1
push 0x467eb0
call esi
jmp 0x1007c42f
mov byte [eax + 0xb0], 0
mov byte [eax + 0x350], 0
mov eax, dword [0x100bdd7c]
test eax, eax
je 0x1007c3ac
add eax, 0x79918
mov dword [ebp - 0x14], eax
push 1
call dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x18], eax
jmp 0x1007c3b5
mov eax, dword [0x100ba1a0]
mov byte [eax + 0xd], 1
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x4631b0
call esi
push 0
mov byte [0x4631b0], 0x51
push dword [ebp - 0x14]
push 1
push 0x4631b0
call esi
lea eax, [ebp - 0x14]
push eax
push 0x40
push 1
push 0x467eb0
call esi
push 0
mov byte [0x467eb0], 0x8b
push dword [ebp - 0x14]
push 1
push 0x467eb0
call esi
test bh, bh
je 0x1007c42f
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x100ba1a4
call fcn.10007e70
mov dword [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
call fcn.1000e680
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007f5d0
mov esp, ebp
pop ebp
ret
Function at 0x1007c830
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1007c9e0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1007c8fd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1007c87a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100ba004]
ja 0x1007c87a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1007c84a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1007c8a0
jmp 0x1007c8fd
cmp dword [ebp - 0x14], 0x10000
jne 0x1007c8e3
cmp dword [ebp - 0x18], 0x10000
jb 0x1007c8e3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1007c8d6
mov eax, dword [ebp - 8]
jmp 0x1007c8ff
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1007c8f8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1007c9e0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1007c84a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1007c910
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1007ca10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1007c9d5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1007c955
mov eax, dword [ebp - 4]
cmp eax, dword [0x100ba004]
ja 0x1007c955
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1007c925
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1007c97b
jmp 0x1007c9d5
cmp dword [ebp - 0x14], 0x10000
jne 0x1007c9be
cmp dword [ebp - 0x18], 0x10000
jb 0x1007c9be
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1007c9b1
mov eax, dword [ebp - 8]
jmp 0x1007c9d7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1007c9d0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1007ca10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1007c925
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1007f558
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x1007f57f
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x1007f582
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.1007f534
pop esi
leave
ret 8
Function at 0x401fee
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x10]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0x40b400
call fcn.004038be
add esp, 0xc
mov dword [ebp - 4], 0
push 0
push 0x40b400
call fcn.00403720
add esp, 4
push eax
push 0x40b400
mov eax, dword [ebp + 8]
push eax
call sub.WSOCK32.dll_send
mov esp, ebp
pop ebp
ret

Function at 0x402cfa
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [0x40b800], eax
cmp dword [0x40b800], 0xffffffff
jne 0x402d20
xor eax, eax
jmp 0x402df6
mov eax, dword [0x40bab4]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402d3b
xor eax, eax
jmp 0x402df6
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00403650
add esp, 0xc
mov edx, dword [ebp - 4]
movsx eax, word [edx + 0xa]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x10]
push ecx
call fcn.00403310
add esp, 0xc
mov edx, dword [ebp - 4]
mov ax, word [edx + 8]
mov word [ebp - 0x14], ax
push 0x1a0b
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
push 8
push 0
lea ecx, [ebp - 0xc]
push ecx
call fcn.00403650
add esp, 0xc
push 0x10
lea edx, [ebp - 0x14]
push edx
mov eax, dword [0x40b800]
push eax
call sub.WSOCK32.dll_connect
test eax, eax
je 0x402daa
xor eax, eax
jmp 0x402df6
push 0
push 0
push 0x80
push pe_overlay
mov ecx, dword [0x40b800]
push ecx
call sub.WSOCK32.dll_setsockopt
push 0
push 0
push 4
push pe_overlay
mov edx, dword [0x40b800]
push edx
call sub.WSOCK32.dll_setsockopt
push 0
push 0
push 8
push pe_overlay
mov eax, dword [0x40b800]
push eax
call sub.WSOCK32.dll_setsockopt
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402dfa
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
je 0x402e21
xor eax, eax
jmp 0x402e5c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00403720
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
push 1
push 0
push str.TaskReg
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x402e4d
xor eax, eax
jmp 0x402e5c
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x406839
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ad50
cmp edx, dword [eax]
je 0x40685b
add eax, 8
inc ecx
cmp eax, 0x40ade0
jl 0x40684c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ad50]
jne 0x406989
mov eax, dword [0x40b880]
cmp eax, 1
je 0x406963
test eax, eax
jne 0x40688c
cmp dword [0x40aa84], 1
je 0x406963
cmp edx, 0xfc
je 0x406989
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4068c3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004039c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403720
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x406906
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403720
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4094a0
push edi
call fcn.00403e30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004039c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004039d0
lea eax, [ebp - 0xa0]
push 0x409480
push eax
call fcn.004039d0
push dword [esi + 0x40ad54]
lea eax, [ebp - 0xa0]
push eax
call fcn.004039d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00408180
add esp, 0x2c
pop edi
jmp 0x406989
lea eax, [ebp + 8]
lea esi, [esi + 0x40ad54]
push 0
push eax
push dword [esi]
call fcn.00403720
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret