joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d40f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x428
mov eax, 0x10015406
call fcn.10013c9a
mov edx, dword [ebp + 0xc]
xor ebx, ebx
mov eax, dword [ebp + 8]
mov esi, ebx
mov dword [ebp - 0x42c], edx
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x430], ecx
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
test eax, eax
je 0x1000d630
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
push 2
push eax
mov dword [ebp - 0x420], eax
lea eax, [ebp - 0x420]
push eax
call fcn.100144f3
add esp, 0x10
test eax, eax
js 0x1000d62a
mov edi, dword [ebp - 0x420]
cmp edi, 0x400
jg 0x1000d4b3
push edi
call fcn.100081d8
pop ecx
test al, al
je 0x1000d4b3
mov eax, edi
call fcn.10013eb0
mov dword [ebp - 0x10], esp
mov eax, esp
jmp 0x1000d4c5
push edi
lea ecx, [ebp - 0x424]
call fcn.100144f3
mov esi, dword [ebp - 0x424]
push 3
push edi
push dword [ebp - 0x41c]
push eax
call fcn.100144f3
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x1000d62a
push 0x60
push ebx
push eax
call fcn.1000e9b2
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x1000d51d
push 2
push ebx
push dword [ebp - 0x41c]
call fcn.1000e9b2
mov edi, eax
mov dword [ebp - 0x420], eax
test edi, edi
jne 0x1000d51d
call fcn.100037d1
mov ebx, eax
jmp 0x1000d5f9
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x1000d544
call fcn.100037d1
jmp 0x1000d5ec
push eax
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov dword [ebp - 0x428], eax
test eax, eax
je 0x1000d53a
push dword [ebp - 0x42c]
push edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x41c], eax
lea ecx, [eax + 1]
cmp ecx, eax
jae 0x1000d577
mov ebx, 0x8007000e
jmp 0x1000d5ee
push ecx
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.100144f3
jmp 0x1000d59d
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
je 0x1000d570
mov eax, dword [ebp - 0x41c]
push eax
push dword [ebp - 0x428]
push eax
push dword [ebp - 0x418]
call fcn.100144f3
mov eax, dword [ebp - 0x418]
add esp, 0x10
mov ecx, dword [ebp - 0x41c]
push dword [ebp + 0x14]
mov byte [eax + ecx], bl
lea ecx, [ebp - 0x434]
push dword [ebp - 0x418]
call fcn.100144f3
mov ebx, eax
test edi, edi
je 0x1000d5f9
push edi
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000d612
lea ecx, [ebp - 0x418]
call fcn.1000cc05
or dword [ebp - 4], 0xffffffff
jmp 0x1000d622
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d618
mov eax, ebx
jmp 0x1000d65e
mov ebx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
cmp ebx, eax
je 0x1000d645
lea ecx, [ebp - 0x418]
call fcn.1000cc05
or dword [ebp - 4], 0xffffffff
jmp 0x1000d655
push esi
mov esi, dword [esi]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
test esi, esi
jne 0x1000d64b
mov eax, 0x8007000e
lea esp, [ebp - 0x444]
call fcn.10013be7
ret 0x10
Function at 0x1000f1e0
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x3c
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [ebp + 0x10]
add esi, 0x568
push 0x10017bc0
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f269
push str.file:__
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f269
push dword [ebp + 0xc]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x1000f269
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push edi
call dword [sym.imp.wininet.dll_InternetCrackUrlW]
test eax, eax
je 0x1000f26c
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x1000f265
add eax, 0xfffffffd
cmp eax, 1
ja 0x1000f26c
mov esi, edi
jmp 0x1000f26c
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
call fcn.100144f3
add esp, 0x10
pop edi
pop esi
leave
ret 0x20
Function at 0x100144f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x10014502
pop dword [ebp - 0x2c]
mov eax, 0x10014502
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x36603
push 0
mov eax, 0x2020577f
sub eax, 0x101ef63f
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x195f9e88
sub ecx, 0x195f64b7
mov edx, eax
mov ebx, 0xa8c5626c
sub ebx, 0x98c31e6c
add ebx, dword [ebp - 0x2c]
mov edi, 0xee3c1a42
add edi, 0x9f8fa5c8
xor dword [ebp - 0x18], 0x4a82474c
mov esi, dword [ebx]
add dword [ebp - 0x10], eax
add esi, edi
xor dword [ebp - 8], 0x51e5ba6b
mov dword [edx], esi
add dword [ebp - 0x28], 0xf9acac73
add edx, 4
add ebx, 0x9192c23f
sub ebx, 0x9192c23b
loop 0x1001455c
add eax, 0xda17
xor ebx, ebx
add ebx, eax
add eax, 0x61879dae
add eax, 0x9e786257
mov ecx, 0x1347a146
sub ecx, 0x347a146
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x430003
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax - 0x6f6f6f70], dl
nop
nop
nop
nop
nop
pushal
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6f
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42ffd9
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10001d40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x14c
mov edx, dword [esi + 0x3c]
lea eax, [esi + 0x88]
add eax, edx
lea ecx, [esi + 0x78]
add ecx, edx
cmp word [edx + esi + 4], di
cmovne ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x10001e75
cmp dword [ebp + 0x10], 0
lea ecx, [eax + esi]
mov dword [ebp - 8], ecx
ja 0x10001dbc
mov eax, dword [ebp + 0xc]
jb 0x10001d8b
cmp eax, 0xffff
ja 0x10001dbc
movzx edx, ax
xor eax, eax
sub edx, dword [ecx + 0x10]
sbb eax, eax
test eax, eax
ja 0x10001e75
jb 0x10001da8
cmp edx, dword [ecx + 0x14]
jae 0x10001e75
mov eax, dword [ecx + 0x1c]
pop edi
lea eax, [eax + edx*4]
mov eax, dword [eax + esi]
add eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x24]
mov edx, dword [ecx + 0x20]
add eax, esi
mov dword [ebp - 0x14], eax
add edx, esi
xor eax, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x18], eax
jbe 0x10001e75
nop word [eax + eax]
mov ebx, dword [edx + eax*4]
add ebx, esi
mov esi, ebx
mov dword [ebp - 0xc], ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10001df0
sub esi, ecx
call fcn.10002960
push 0xeeeeeeee
push 0x7fed7fed
mov edi, eax
push edi
push 1
push esi
push ebx
call fcn.10002890
push 0xeeeeeeee
push 0x7fed7fed
push edi
push 2
push esi
push dword [ebp - 0xc]
mov ebx, eax
call fcn.10002890
xor ecx, ecx
or ecx, ebx
cmp dword [ebp + 0xc], eax
jne 0x10001e3a
cmp dword [ebp + 0x10], ecx
je 0x10001e51
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ecx + 0x18]
jae 0x10001e75
mov esi, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
jmp 0x10001de0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
movzx ecx, word [ecx + eax*2]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp + 8]
mov eax, dword [eax + ecx]
add eax, ecx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10002890
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100028ea
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
nop word [eax + eax]
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp + 0x14]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x100028b0
pop esi
pop ebx
pop edi
pop ebp
ret 0x18
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4052f2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x405301
pop dword [ebp - 0x30]
mov eax, 0xe7b736a8
sub eax, 0xe776e3a7
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xfcfc5d3d
sub dword [ebp - 0x40], 0xaeaa17f2
mov dword [ebp - 0x3c], 0x41003baf
sub dword [ebp - 0x3c], 0xeccef6a
mov dword [ebp - 0x38], 0xeea99bf3
add dword [ebp - 0x38], 0x5da2a83b
mov dword [ebp - 0x34], 0x83135445
sub dword [ebp - 0x34], 0x83135445
lea eax, [ebp - 0x40]
push eax
mov eax, 0xe31b4fb1
sub eax, 0xe2da7f5d
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xcb463eaa
add dword [ebp - 0x40], 0xa92c2aac
mov dword [ebp - 0x3c], 0xc3afce18
add dword [ebp - 0x3c], 0x7dbc935d
mov dword [ebp - 0x38], 0xfee8d805
sub dword [ebp - 0x38], 0x9b796b99
mov dword [ebp - 0x34], 0xd9702db9
sub dword [ebp - 0x34], 0xd9702db9
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xb7c88e
sub eax, 0x76f842
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3b562
push 0
call eax
mov ecx, 0x4f31
xor edi, edi
add edi, eax
mov ebx, 0x41b000
add ebx, dword [ebp - 0x30]
mov edx, 0xc2513063
sub edx, 0xa5a0136b
sub dword [ebp - 0x18], 0xfd86e4ab
mov esi, dword [ebx]
sub dword [ebp - 0x1c], edi
sub esi, edx
add dword [ebp - 0x18], ebx
mov dword [edi], esi
xor dword [ebp - 0x28], 0xee9ff005
add edi, 0x71e3b1a1
add edi, 0x8e1c4e63
add ebx, 4
loop 0x405419
add eax, 0x12f97
mov ebx, eax
add eax, 0xa21e85b8
sub eax, 0xa21e85b3
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x1001408
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4
Function at 0x401028
Capabilities:
Inspect load icon resource

Disassembly:
jmp 0x402670
push 0xffffffffffffffff
push 0x405245
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x18], esi
call sub.MFC42.DLL_CDialog::CDialog
lea edi, [esi + 0x60]
mov dword [esp + 0x1c], 0
mov ecx, edi
call sub.MFC42.DLL_CWnd::CWnd
mov dword [edi], 0x407428
lea edi, [esi + 0xa0]
mov byte [esp + 0x1c], 1
mov ecx, edi
call fcn.004038ea
lea ebx, [esi + 0xa4]
mov byte [esp + 0x1c], 2
mov ecx, ebx
call fcn.004038ea
lea ebp, [esi + 0xa8]
mov byte [esp + 0x1c], 3
mov ecx, ebp
call fcn.004038ea
lea ecx, [esi + 0xac]
mov byte [esp + 0x1c], 4
call fcn.004038ea
push 0x408ee0
mov ecx, edi
mov byte [esp + 0x20], 5
mov dword [esi], 0x407324
call fcn.00403b1e
push str.11111
mov ecx, ebx
call fcn.00403b1e
push str.87951235
mov ecx, ebp
call fcn.00403b1e
push str.ware
lea ecx, [esi + 0xac]
call fcn.00403b1e
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x550
mov dword [esi + 0xb0], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x1c], 6
je 0x402780
push esi
mov ecx, eax
call fcn.004010b4
jmp 0x402782
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xb4], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x401032
Capabilities:
Initialize winsock library

Disassembly:
jmp 0x4013d0
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x40701c
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret
Function at 0x40105a
Capabilities:
Print debug messages

Disassembly:
jmp 0x401550
sub esp, 0x24
lea eax, [esp]
push esi
push eax
push str.HARDWAREDESCRIPTIONSystemCentralProcessor0
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [0x408eb8]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test al, 1
jne 0x401591
or al, 1
mov byte [0x408eb8], al
call esi
mov dword [0x408eb4], eax
cmp dword [0x408ec4], 8
jle 0x4015cf
mov dword [0x408ec4], 0
call esi
mov ecx, dword [0x408eb4]
mov edx, eax
sub edx, ecx
mov dword [0x408eb4], eax
mov dword [esp + 8], edx
fild dword [esp + 8]
fmul dword [0x407024]
fdivr dword [0x407020]
fstp dword [0x408eb0]
push str.worinimahuorong
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.USER32.dll_GetInputState]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0
push 0
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
mov eax, 1
pop esi
add esp, 0x24
ret

Function at 0x401087
Capabilities:
Enumerate processes

Disassembly:
jmp 0x402c40
sub esp, 0x128
push ebx
push ebp
push esi
xor ebp, ebp
push edi
push ebp
push 2
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0x10]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x402cab
mov edi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.MSVCRT.dll__mbsicmp]
lea ecx, [esp + 0x34]
push edi
push ecx
call ebx
add esp, 8
test eax, eax
je 0x402ca7
lea edx, [esp + 0x10]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x402cab
lea eax, [esp + 0x34]
push edi
push eax
call ebx
add esp, 8
test eax, eax
jne 0x402c89
mov ebp, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x40108c
Capabilities:
Enumerate threads

Disassembly:
jmp 0x402a10
push 0xffffffffffffffff
push 0x405278
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov al, byte [esp + 0x44]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [esp + 0xc], ebx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push ebx
push 4
mov dword [esp + 0x4c], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x20]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x28], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x402a98
mov edi, dword [esp + 0x50]
cmp dword [esp + 0x2c], edi
jne 0x402a89
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.00401050
lea ecx, [esp + 0x20]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x402a6e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x14]
mov dl, byte [esp + 0x10]
cmp ecx, ebx
mov byte [esi], dl
jne 0x402ab5
xor eax, eax
jmp 0x402abe
mov eax, dword [esp + 0x18]
sub eax, ecx
sar eax, 2
cmp eax, ebx
jge 0x402ac4
xor eax, eax
shl eax, 2
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
add esp, 4
cmp ecx, edx
mov dword [esi + 4], eax
je 0x402af5
cmp eax, ebx
je 0x402ae7
mov edi, dword [ecx]
mov dword [eax], edi
add ecx, 4
add eax, 4
cmp ecx, edx
jne 0x402adf
mov ecx, dword [esp + 0x14]
push ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x40]
add esp, 4
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x4010d2
Capabilities:
Create thread
Link many functions at runtime
Resolve dns

Disassembly:
jmp 0x4017c0
mov eax, dword [0x408ebc]
sub esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.socket
mov edi, ecx
push eax
call esi
push 6
push 1
push 2
call eax
cmp eax, 0xffffffff
mov dword [edi + 8], eax
jne 0x4017f4
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8
push ebx
push ebp
mov ecx, dword [0x408ebc]
push str.htons
push ecx
call esi
mov edx, dword [esp + 0x24]
mov ebx, eax
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebp, eax
mov eax, dword [esp + 0x28]
push eax
mov word [esp + 0x14], 2
call ebx
mov word [esp + 0x12], ax
mov ecx, dword [ebp + 0xc]
push str.connect
mov edx, dword [ecx]
mov ecx, dword [0x408ebc]
push ecx
mov eax, dword [edx]
mov dword [esp + 0x1c], eax
call esi
mov ecx, dword [edi + 8]
lea edx, [esp + 0x10]
push 0x10
push edx
push ecx
call eax
cmp eax, 0xffffffff
jne 0x40188b
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ResetEvent
push str.KERNEL32.dll
call ebx
push eax
call esi
mov edx, dword [edi + 0xc]
push edx
call eax
push str.WaitForSingleObject
push str.KERNEL32.dll
call ebx
push eax
call esi
mov ecx, dword [edi + 0xc]
push 0x3e8
push ecx
call eax
jmp 0x4017f6
push 0
push 0
push edi
push 0x4010eb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x10
ret 8
Function at 0x403af0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0x490ce0]
call fcn.0040d0e9
mov ebx, eax
test ebx, ebx
je 0x403b54
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x403b19
push dword [esp + 0xc]
push ebx
call eax
jmp 0x403b54
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0040dc00
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
sub edi, eax
push edi
call fcn.0040dcd0
pop edi
pop esi
pop ebx
ret 8

Function at 0x4060ea
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push dword [0x490cec]
call fcn.0040d0e9
mov esi, eax
test esi, esi
je 0x4061c4
cmp dword [ebp + 0xc], 0
je 0x406136
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
je 0x406127
cmp dword [esi + 0x1c], 0
jne 0x406127
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 0
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4061c4
test byte [ebp + 0x10], 3
je 0x406151
push 4
push dword [esi]
call dword [sym.imp.USER32.dll_GetWindow]
push eax
push dword [ebp + 0x10]
push dword [esi]
call fcn.0040689b
cmp dword [esi + 0x3c], 0xffffffff
push ebx
je 0x406176
xor ebx, ebx
cmp dword [esi + 0x3c], 0x1000000
sete bl
xor ecx, ecx
cmp dword [esi + 0x3c], 0x20000000
sete cl
or dword [esi + 0x3c], 0xffffffff
jmp 0x40618a
push dword [esi]
call dword [sym.imp.USER32.dll_IsZoomed]
push dword [esi]
mov ebx, eax
call dword [sym.imp.USER32.dll_IsIconic]
mov ecx, eax
test dword [ebp + 0x10], 0x2000000
je 0x4061a7
test ebx, ebx
je 0x40619b
push 8
jmp 0x4061ad
neg ecx
sbb ecx, ecx
and ecx, 3
add ecx, 4
jmp 0x4061ba
test ebx, ebx
je 0x4061b0
push 3
pop ecx
jmp 0x4061ba
xor eax, eax
test ecx, ecx
setne al
lea ecx, [eax + 1]
push ecx
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x406620
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x4066b3
push 9
call esi
test al, al
jns 0x4066b3
push 0x11
call esi
test al, al
js 0x4066b3
push 0x10
call esi
test al, al
js 0x4066b3
push 0x12
call esi
test al, al
js 0x4066b3
push 0x10
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
push 5
lea eax, [ebp - 0x24]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x406695
push 4
lea eax, [ebp - 0x24]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x4066b3
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
jne 0x4066b3
xor eax, eax
jmp 0x406734
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4066db
push 0x11
call esi
test al, al
js 0x4066d3
push 0x10
call esi
test al, al
js 0x4066d3
push 0x12
call esi
test al, al
jns 0x4066db
push 1
push edi
call fcn.0040673c
mov esi, dword [sym.imp.USER32.dll_GetPropW]
test ebx, ebx
je 0x4066f1
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x406731
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x406731
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x406731
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x406731
lea eax, [esi - 1]
push eax
push dword [0x490cec]
call fcn.0040d0e9
test eax, eax
je 0x406731
mov eax, dword [eax + 8]
jmp 0x406733
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40807d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x490b84], eax
test eax, eax
je 0x4080ab
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x490b80], eax
lea eax, [ebp - 0x114]
mov dword [0x490b88], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40810d
cmp dword [ebp - 0x104], 1
jne 0x4080e2
and dword [0x490b88], 0
jmp 0x408125
cmp dword [ebp - 0x104], 2
jne 0x40810d
cmp dword [ebp - 0x110], 5
jb 0x4080d9
jne 0x40810d
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x490b88]
mov dword [0x490b88], eax
jmp 0x408112
mov eax, dword [0x490b88]
test eax, eax
je 0x408125
call fcn.00407958
neg eax
sbb eax, eax
and dword [0x490b88], eax
mov esp, ebp
pop ebp
ret