joyce8/EMBER2024-capa huggingface dataset:
Function at 0x494110
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4d55e6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x51aab0]
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], eax
lea ecx, [esp + 8]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xac], ebx
call fcn.004c3bdd
cmp dword [0x55caac], ebx
je 0x494180
lea ecx, [esp + 8]
mov dword [esp + 0xa8], 0xffffffff
call fcn.004c1790
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
add esp, 0xa4
ret
mov edx, dword [0x51aab0]
push ebp
push edi
mov edi, 1
mov dword [0x55caac], edi
mov dword [esp + 0x40], edx
cmp esi, ebx
mov byte [esp + 0xb0], 1
jne 0x4941a9
mov dword [esp + 0x20], ebx
jmp 0x4941b0
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x20], eax
mov ecx, esi
call fcn.004c5d24
mov ecx, dword [esi + 0x84]
mov edx, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], 5
mov dword [esp + 0x34], edx
call fcn.004c187d
mov eax, dword [esi + 0x9c]
mov ecx, dword [esi + 0x94]
mov edx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x1c], edx
jne 0x49420e
mov dword [esp + 0x14], ebx
jmp 0x494215
mov ebp, dword [eax + 0x1c]
mov dword [esp + 0x14], ebp
cmp ecx, 0xd
jne 0x49422f
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x494229
cmp eax, 2
jne 0x49422f
mov dword [esp + 0x18], edi
jmp 0x494233
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x494241
push edx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c3212
mov edi, eax
cmp edi, ebx
jne 0x494251
xor eax, eax
jmp 0x494254
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x49427c
mov ecx, esi
call fcn.004c5d24
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov esi, dword [esp + 0x1c]
push esi
call ebx
test eax, eax
je 0x494294
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x18]
mov dword [0x55caac], 0
test eax, eax
je 0x4942bd
mov esi, dword [esp + 0x14]
push esi
call ebx
test eax, eax
je 0x4942bd
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0xb0], 0
call fcn.004c1790
lea ecx, [esp + 0x10]
mov dword [esp + 0xb0], 0xffffffff
call fcn.004c1790
mov ecx, dword [esp + 0xa8]
pop edi
pop ebp
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4961c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4d57d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004c8411
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov ecx, esi
mov dword [esp + 0x44], 0
call fcn.00496100
mov ecx, dword [esi + 0x174]
mov eax, dword [esi + 0x178]
add ecx, 0x64
add eax, 0x64
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004c833f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x496287
cmp dword [esp + 0x40], 1
jne 0x496285
cmp ecx, eax
jge 0x496287
mov eax, ecx
cmp eax, 0x12c
jge 0x496293
mov eax, 0x12c
mov ecx, esi
mov dword [esi + 0x194], eax
mov dword [esi + 0x1dc], 1
call fcn.004962e0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004c8483
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x49a530
Capabilities:
Get graphical window text

Disassembly:
push 0xffffffffffffffff
push 0x4d5cc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
mov eax, dword [0x51aab0]
push ebx
push ebp
push esi
mov esi, ecx
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
xor ebx, ebx
push ecx
mov ecx, esi
mov dword [esp + 0xb0], ebx
call fcn.004c3bdd
mov edx, dword [0x51aab0]
mov dword [esp + 0x3c], edx
cmp esi, ebx
mov byte [esp + 0xac], 1
jne 0x49a58a
mov dword [esp + 0x1c], ebx
jmp 0x49a591
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x1c], eax
push edi
mov ecx, esi
call fcn.004c5d24
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x40]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x10]
mov edi, 1
mov dword [esp + 0x2c], ecx
push eax
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], 0xffffff96
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], edx
call fcn.004c187d
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x1c]
cmp eax, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x1c], ecx
jne 0x49a5e2
mov dword [esp + 0x14], ebx
jmp 0x49a5e9
mov edx, dword [eax + 0x1c]
mov dword [esp + 0x14], edx
cmp dword [esi + 0x44], 0xd
jne 0x49a604
mov eax, dword [eax + 0x3c4]
cmp eax, edi
je 0x49a5fe
cmp eax, 2
jne 0x49a604
mov dword [esp + 0x18], edi
jmp 0x49a608
mov dword [esp + 0x18], ebx
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x49a616
push ecx
call dword [sym.imp.USER32.dll_GetParent]
push eax
call fcn.004c3212
mov edi, eax
cmp edi, ebx
jne 0x49a626
xor eax, eax
jmp 0x49a629
mov eax, dword [edi + 0x1c]
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
push eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x49a651
mov ecx, esi
call fcn.004c5d24
mov edx, dword [edi + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push eax
push 0x4e
push edx
call ebp
mov eax, dword [esp + 0x1c]
push eax
call ebx
test eax, eax
pop edi
je 0x49a66d
mov ecx, dword [esi + 0x1c]
push 0
push 0
push 0x10
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x49a68c
mov esi, dword [esp + 0x10]
push esi
call ebx
test eax, eax
je 0x49a68c
push 1
push 0xd
push 0x100
push esi
call ebp
lea ecx, [esp + 0x3c]
mov byte [esp + 0xac], 0
call fcn.004c1790
lea ecx, [esp + 0xc]
mov dword [esp + 0xac], 0xffffffff
call fcn.004c1790
mov ecx, dword [esp + 0xa4]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xa4
ret
Function at 0x4b7400
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d71e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.004ac20c
mov eax, dword [0x4f7bc8]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.004ac13e
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.004b7f10
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x4b74a7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b749e
cmp al, 0xff
je 0x4b749e
dec al
mov byte [ecx], al
jmp 0x4b74a7
push ecx
call fcn.004c14fa
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4b74d8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4b74cf
cmp al, 0xff
je 0x4b74cf
dec al
mov byte [ecx], al
jmp 0x4b74d8
push ecx
call fcn.004c14fa
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4c3bdd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c3c15
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004c1beb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c1bc3
jmp 0x4c3c21
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c5453
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c5495
call fcn.004cbcda
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c5495
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c548c
xor eax, eax
jmp 0x4c549d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c54a3
pop edi
pop esi
pop ebx
ret 4

Function at 0x4cc20a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4cc238
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4cc256
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004cc170
jmp 0x4cc256
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4cc256
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004cc170
test edi, edi
mov eax, edi
jne 0x4cc240
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4ceaa7
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4ceacf
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4ceae0
push 2
call edi
test ax, ax
jge 0x4ceae0
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004c3212
cmp dword [esi + 0x30], ebx
jne 0x4cebba
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004c3212
cmp eax, dword [esp + 0x34]
jne 0x4cebba
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4ceb56
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4ceb9b
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4cebba
cmp eax, 0x205
je 0x4cebba
cmp eax, 0x201
je 0x4cebba
cmp eax, 0x204
je 0x4cebba
cmp eax, ebx
jne 0x4ceb81
cmp dword [esp + 0x1c], 0x1b
je 0x4cebba
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x55e8c4]
jbe 0x4cebb0
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4ceb13
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x10001420
Capabilities:
Log keystrokes via application hook

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1000145c
mov eax, dword [section.L_sectio]
test eax, eax
jne 0x10001457
mov eax, dword [0x1000dedc]
push 0
push eax
push 0x100011b0
push 2
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [section.L_sectio], eax
je 0x10001457
mov eax, 1
ret 4
xor eax, eax
ret 4
mov ecx, dword [section.L_sectio]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
ret 4

Function at 0x100015f0
Capabilities:
Print debug messages
Send data
Send data on socket

Disassembly:
mov eax, 0x402c
call fcn.10007950
mov ecx, dword [esp + 0x4030]
push edi
lea eax, [esp + 0x10]
push 0x20
push eax
push ecx
call fcn.10001750
mov edx, dword [esp + 0x4044]
add esp, 0xc
test edx, edx
je 0x10001662
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0x2000
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x2034]
push ecx
push eax
push edx
call fcn.10001720
add esp, 0x10
lea ecx, [esp + 0x2030]
lea edx, [esp + 0x10]
lea eax, [esp + 0x30]
push ecx
push edx
push str.1_s_s_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
jmp 0x1000167a
lea ecx, [esp + 0x10]
lea edx, [esp + 0x30]
push ecx
push str.1_s_
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x1000df38]
test eax, eax
jne 0x100016b9
lea edi, [esp + 0x30]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x1000d020]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
lea ecx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
pop edi
add esp, 0x402c
ret
lea eax, [esp + 0x30]
lea edi, [esp + 0x30]
mov dword [esp + 8], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x1000ddec]
repne scasb al, byte es:[edi]
mov eax, dword [0x1000ddf0]
not ecx
dec ecx
mov dword [esp + 4], ecx
mov ecx, dword [0x1000dde8]
push ecx
mov ecx, dword [0x1000ddf4]
push edx
push eax
push ecx
mov ecx, dword [0x1000d020]
lea edx, [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x1c]
push 1
push eax
push ecx
call dword [0x1000de54]
mov eax, 1
pop edi
add esp, 0x402c
ret
Function at 0x10002680
Capabilities:
Get number of processors
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x100089b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1000d024]
push ebx
push ebp
push esi
mov ebx, dword [eax*4 + 0x1000d4d8]
xor eax, eax
sub ebx, 0x2e8
xor ecx, ecx
mov dword [esp + 0x29], ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x2d], ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [esp + 0x35], ecx
mov dword [esp + 0x39], ecx
mov dword [esp + 0x1c], eax
mov word [esp + 0x3d], cx
mov byte [esp + 0x14], al
mov dword [esp + 0x10], eax
mov byte [esp + 0x2c], al
mov byte [esp + 0x3f], cl
mov dword [esp + 0x18], eax
lea ebp, [ebx + 0x73]
xor edx, edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], edx
lea ecx, [ebp - 0x74]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
push edx
push 1
push eax
push ecx
mov dword [esp + 0x4c], edx
call esi
push eax
call edi
mov edx, dword [esp + 0x14]
push 0
and edx, 0xff
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call esi
push eax
call edi
push 0
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
call esi
push eax
call edi
push 0
lea edx, [esp + 0x14]
push 2
lea eax, [ebp + 4]
push edx
push eax
call esi
push eax
call edi
mov al, byte [esp + 0x14]
test al, al
je 0x1000276d
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x10002798
mov eax, dword [esp + 0x18]
add ebx, 0x7c
add ebp, 0x7c
inc eax
cmp eax, 0x2e
mov dword [esp + 0x18], eax
jl 0x100026ee
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x1c]
xor edi, edi
push edi
push edi
xor eax, eax
push edi
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], eax
push 0x3ee
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], eax
call fcn.10002580
lea eax, [esp + 0x44]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.100015f0
add esp, 0x20
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x50]
and edx, 0xffff
mov dword [esp + 0x48], edi
push edx
push str.vv__d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x5c]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
cmp ax, 2
jae 0x10002820
push edi
lea edx, [esp + 0x18]
push 1
mov byte [esp + 0x1c], 0
push edx
dec ebx
jmp 0x10002847
cmp ax, 0x3e8
jbe 0x1000282d
add eax, 0xfc18
jmp 0x10002838
cmp ax, 0x64
jae 0x1000283c
add eax, 0xffff
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
push 2
push eax
add ebx, 0x77
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [esp + 0x50]
mov dword [esp + 0x48], 0xffffffff
call fcn.10007454
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x10002880
Capabilities:
Get number of processors
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x100089d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [0x1000d024]
push ebx
push ebp
push esi
mov ebx, dword [eax*4 + 0x1000d5a0]
xor eax, eax
xor ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [esp + 0x29], ecx
push edi
mov dword [esp + 0x31], ecx
mov edi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [esp + 0x35], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x39], ecx
mov byte [esp + 0x14], al
mov word [esp + 0x3d], cx
mov dword [esp + 0x10], eax
mov byte [esp + 0x2c], al
mov byte [esp + 0x3f], cl
mov dword [esp + 0x18], eax
lea ebp, [ebx + 0x73]
xor edx, edx
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], edx
lea ecx, [ebp - 0x74]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], edx
push edx
push 1
push eax
push ecx
mov dword [esp + 0x4c], edx
call esi
push eax
call edi
mov edx, dword [esp + 0x14]
push 0
and edx, 0xff
lea eax, [esp + 0x30]
push edx
push eax
push ebx
call esi
push eax
call edi
push 0
lea ecx, [esp + 0x20]
push 4
push ecx
push ebp
call esi
push eax
call edi
push 0
lea edx, [esp + 0x14]
push 2
lea eax, [ebp + 4]
push edx
push eax
call esi
push eax
call edi
mov al, byte [esp + 0x14]
test al, al
je 0x10002967
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
je 0x10002992
mov eax, dword [esp + 0x18]
add ebx, 0x7c
add ebp, 0x7c
inc eax
cmp eax, 0x28
mov dword [esp + 0x18], eax
jl 0x100028e8
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
mov ecx, dword [esp + 0x1c]
xor edi, edi
push edi
push edi
xor eax, eax
push edi
push ecx
lea edx, [esp + 0x30]
mov dword [esp + 0x34], eax
push 0x450
push edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x40], eax
call fcn.10002580
mov eax, dword [esp + 0x68]
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.100015f0
add esp, 0x20
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x18]
and edx, 0xffff
mov dword [esp + 0x48], edi
push edx
push str.vv__d
push eax
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esp + 0x10]
cmp ax, 2
jae 0x10002a1a
push edi
lea edx, [esp + 0x18]
push 1
mov byte [esp + 0x1c], 0
push edx
dec ebx
jmp 0x10002a41
cmp ax, 0x3e8
jbe 0x10002a27
add eax, 0xfc18
jmp 0x10002a32
cmp ax, 0x64
jae 0x10002a36
add eax, 0xffff
mov dword [esp + 0x10], eax
push edi
lea eax, [esp + 0x14]
push 2
push eax
add ebx, 0x77
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [esp + 0x18]
mov dword [esp + 0x48], 0xffffffff
call fcn.10007454
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x10003d60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x124
mov eax, dword [ecx + 0x28]
cmp eax, 1
jg 0x10003d82
mov eax, dword [ecx + 0x24]
lea ecx, [esp + 8]
push eax
push 0x1000dbec
push ecx
jmp 0x10003d91
mov edx, dword [ecx + eax*4 + 0x28]
lea eax, [esp + 8]
push edx
push 0x1000dbec
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 4]
mov dword [esp], 0x104
push ebx
push ecx
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2Logical_Disk_Manager_Service
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10003e40
lea edx, [esp + 4]
lea eax, [esp + 0x24]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10003e40
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0x130]
push eax
lea ecx, [esp + 0x28]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
je 0x10003e40
cmp byte [ebx], 0
jne 0x10003e33
mov al, byte [esp + 0x24]
test al, al
je 0x10003e33
push esi
push edi
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x124
ret
xor eax, eax
pop ebx
add esp, 0x124
ret

Function at 0x10003e60
Capabilities:
Enumerate processes

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
push 0x128
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
mov dword [esi], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10003ede
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCRT.dll__strcmpi]
lea edi, [esi + 0x24]
push ebx
push edi
call ebp
add esp, 8
test eax, eax
jne 0x10003eb5
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x10]
push esi
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x10003ede
push ebx
push edi
call ebp
add esp, 8
test eax, eax
je 0x10003eac
mov ecx, dword [esp + 0x10]
push esi
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x10003ec4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x10004890
Capabilities:
Create thread

Disassembly:
push 0
push 0
push ecx
push 0x100048b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
ret
Function at 0x10007b30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x10007ba1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x10007ba1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x10007b8a
jmp 0x10007ba1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8