joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4476b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4a49d8]
cmp byte [eax + 0xc], 0
je 0x447821
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44781a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a5be8], 0
jne 0x447708
push 0x447828
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x447830
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5be8], eax
cmp dword [0x4a3ae8], 0
jne 0x447803
push 0x447840
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4a3ae8], eax
cmp dword [0x4a3ae8], 0
je 0x447803
push 0x44784c
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5bec], eax
push 0x44785c
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5bf0], eax
push 0x447870
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5bf4], eax
push 0x447888
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5bf8], eax
push 0x4478a0
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5bfc], eax
push 0x4478b4
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5c00], eax
push 0x4478cc
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5c04], eax
push 0x4478e4
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5c08], eax
push 0x447900
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5c0c], eax
push 0x44790c
mov eax, dword [0x4a3ae8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a5c10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x447821
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x44b7e4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0040452c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44b833
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404794
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x453674
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4536c4]
test si, 4
je 0x453688
or bl, 1
test si, 8
je 0x453692
or bl, 4
test si, 1
je 0x45369c
or bl, 8
test si, 2
je 0x4536a6
or bl, 0x10
test si, 0x10
je 0x4536b0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4536bf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4536c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453700]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4536e1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4536f0
or bl, 4
test esi, 0x20000000
je 0x4536fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x459d04
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x459d16
add esp, 0xfffffff0
call fcn.00403a44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fe88
mov eax, dword [0x4a453c]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a0a8
mov eax, dword [0x4a4550]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a0b4
mov eax, ebx
call fcn.0045a0c0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4159e8]
call fcn.004036b0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4159e8]
call fcn.004036b0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4159e8]
call fcn.004036b0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4159e8]
call fcn.004036b0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4159e8]
call fcn.004036b0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x456588
push eax
push 0
push 0
mov eax, dword [0x4a4724]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4218c8]
call fcn.00422f9c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4218c8]
call fcn.00422f9c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4218c8]
call fcn.00422f9c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045a4e0
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a3bc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a3bc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a3bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459e53
call fcn.00403a9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45a1a0
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a34b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a32c
mov dl, 1
mov eax, dword [0x41604c]
call fcn.004036b0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040452c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a31b
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00447b18
test al, al
je 0x45a30e
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45a35c
lea eax, [ebp - 0x254]
call fcn.00409730
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a30e
xor eax, eax
push ebp
push 0x45a307
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45a394
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a2f0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404794
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a2f0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404794
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a30e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a211
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a520
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a352
lea eax, [ebp - 0x260]
call fcn.0040452c
ret

Function at 0x45ac80
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4a5c2c]
cmp byte [eax + 0xa5], 0
jne 0x45acf1
cmp dword [0x4a5c44], 0
jne 0x45acb2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45ac3c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a5c44], eax
cmp dword [0x4a5c40], 0
jne 0x45accd
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a5c40], eax
cmp dword [0x4a5c48], 0
jne 0x45acf1
push esp
push 0
push 0
push 0x45abe0
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4a5c48], eax
pop edx
ret
Function at 0x45ade8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45adff
add esp, 0xfffffff0
call fcn.00403a44
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041fe88
mov eax, dword [0x4a4714]
cmp word [eax + 2], 0
jne 0x45ae27
mov eax, dword [0x4a4714]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c4c4
mov eax, dword [0x4a4804]
cmp word [eax + 2], 0
jne 0x45ae41
mov eax, dword [0x4a4804]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045c6bc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4159e8]
call fcn.004036b0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4159e8]
call fcn.004036b0
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422348]
call fcn.004299fc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45afc8
mov eax, dword [0x4a45d0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429dcc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45cc2c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a45d0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d2e8
test eax, eax
je 0x45af36
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409078
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d310
test eax, eax
je 0x45af4a
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404794
mov eax, dword [0x4a4420]
cmp byte [eax], 0
jne 0x45af7e
mov eax, ebx
call fcn.0045b0f0
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045ce08
mov eax, ebx
call fcn.0045d748
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45afbe
call fcn.00403a9c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45b364
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a5c2c]
cmp dword [eax + 0x30], 0
je 0x45b40e
cmp dword [ebx + 0x94], 0
jne 0x45b408
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b2f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45b408
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b3ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45b408
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004181fc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45b3dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45beec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45bf21
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040461c
jmp 0x45bf2e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404580
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45cfe4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d025
mov eax, esi
call fcn.00443108
test al, al
je 0x45d025
mov eax, dword [ebx + 0x84]
call fcn.00442e04
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d025
push 0
mov eax, dword [ebx + 0x84]
call fcn.00442e04
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x47a49c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47a6fc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x47a4ff
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00479f64
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ced4
cmp al, 1
jne 0x47a4ff
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0047a27c
test al, al
je 0x47a68b
cmp dword [ebp - 8], 0
jge 0x47a51d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00479f64
mov eax, dword [ebp - 0x210]
call fcn.004047e4
cmp ebx, eax
jge 0x47a567
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00479f64
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4a49c0]
and eax, 0xff
bt dword [edx], eax
jae 0x47a567
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x47a57b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0047a478
cmp ebx, dword [ebp - 8]
je 0x47a67d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x47a5a7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038dc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a4024]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x47a66a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038dc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a4024]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00442e04
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004038dc
and eax, 0x7f
movzx eax, word [eax*2 + 0x4a4024]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00442e04
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a671
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x47a6de
cmp dword [ebp - 8], 0
jge 0x47a696
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00479f64
mov eax, dword [ebp - 0x218]
call fcn.004047e4
cmp eax, dword [ebp - 8]
jg 0x47a6d0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00479f64
mov eax, dword [ebp - 0x21c]
call fcn.004047e4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0047a478
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a703
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404550
ret
Function at 0x4916d8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4916fd
cmp dword [esp + 4], 5
jb 0x4916fd
mov al, 1
jmp 0x4916ff
xor eax, eax
add esp, 0x94
ret
Function at 0x4011b6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebx
push ecx
push esi
push edi
push ebp
mov ebp, esp
sub esp, 0x10
mov edi, eax
mov byte [ebp - 4], dl
call fcn.00401d78
mov esi, eax
test eax, eax
jne 0x4011da
mov eax, 0xff
jmp 0x401318
push 0x40
push 0x1000
push 0xff0
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov dword [ebp - 8], eax
test eax, eax
je 0x4011d0
xor ecx, ecx
cmp byte [esi], 0
je 0x40125a
cmp ecx, 0xfeb
ja 0x4011d0
mov dword [ebp - 0x10], 0
mov ebx, 0x10
lea edx, [ebp - 0x10]
mov eax, esi
mov dword [ebp - 0xc], 0
call fcn.00401e22
test eax, eax
jne 0x401227
inc esi
jmp 0x4011f6
add esi, eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax], edx
or eax, 0xffffffff
bsr eax, edx
add eax, 8
cmp eax, 8
jle 0x40124e
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
bsr eax, edx
lea edx, [eax + 8]
jmp 0x401253
mov edx, 8
shr edx, 3
add ecx, edx
jmp 0x4011f6
mov eax, ecx
add eax, dword [ebp - 8]
inc ecx
mov byte [eax], 0xc3
cmp byte [0x404850], 0
jne 0x4012d5
xor edx, edx
jmp 0x401290
mov al, 0xa
movzx eax, al
push eax
mov eax, dword [ebp - 8]
movzx eax, byte [edx + eax]
push eax
push 0x4040a0
inc edx
call fcn.00401b75
add esp, 0xc
cmp edx, ecx
jae 0x4012a2
mov eax, edx
and eax, 0xf
cmp eax, 0xf
je 0x401274
mov al, 0x20
jmp 0x401276
cmp byte [ebp - 4], 0
je 0x4012af
mov eax, 0x4040a7
jmp 0x4012b4
mov eax, 0x4040b5
push eax
push ecx
test dl, 0xf
jne 0x4012c2
mov eax, 0x4040c8
jmp 0x4012c7
mov eax, 0x4040c9
push eax
push 0x4040cb
call fcn.00401b75
add esp, 0x10
cmp byte [ebp - 4], 0
jne 0x4011d0
xor edx, edx
mov eax, edi
call fcn.00401d78
test eax, eax
je 0x4012fe
inc edx
call fcn.00402030
mov dword [edx*4 + 0x40483c], eax
cmp edx, 4
jb 0x4012e1
mov ecx, dword [0x40484c]
mov ebx, dword [0x404848]
mov edx, dword [0x404844]
mov eax, dword [0x404840]
call dword [ebp - 8]
leave
pop edi
pop esi
pop ecx
pop ebx
ret

Function at 0x40131e
Capabilities:
Enumerate processes

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
sub esp, 0x128
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov edi, eax
mov ebx, eax
cmp eax, 0xffffffff
je 0x4013a5
call sub.KERNEL32.DLL_GetCurrentProcessId
mov esi, eax
mov eax, esp
push eax
push edi
mov dword [esp + 8], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x40139f
cmp esi, dword [esp + 8]
jne 0x401392
mov eax, esp
push eax
push ebx
mov esi, dword [esp + 0x20]
xor edi, edi
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x401388
cmp esi, dword [esp + 0x18]
jne 0x40137b
inc edi
mov eax, esp
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x401374
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, edi
jmp 0x4013a7
mov eax, esp
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x40135b
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x40275a
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
push edi
push ebp
mov ebp, esp
push eax
push edx
push ebx
mov esi, ebx
cmp ebx, 0xc350
jbe 0x40277d
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_GetConsoleMode
test eax, eax
jne 0x40279f
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 8]
push dword [ebp - 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x402798
mov ebx, dword [ebp - 0xc]
jmp 0x4027e2
mov ebx, 0xffffffff
jmp 0x4027e2
xor edi, edi
mov ebx, 0x7d00
cmp esi, ebx
jae 0x4027ac
mov ebx, esi
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
jne 0x4027cd
test edi, edi
jne 0x4027e0
mov edi, 0xffffffff
jmp 0x4027e0
add edi, dword [ebp - 0xc]
cmp ebx, dword [ebp - 0xc]
jne 0x4027e0
cmp esi, ebx
jbe 0x4027e0
add dword [ebp - 8], ebx
sub esi, ebx
jmp 0x4027a1
mov ebx, edi
mov eax, ebx
leave
pop edi
pop esi
pop ecx
ret
Function at 0x10014850
Capabilities:
Create thread

Disassembly:
push edi
push esi
cmp dword [esp + 0x10], 1
jne 0x100148a1
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov esi, eax
push eax
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
cmp eax, 0x80
je 0x1001488d
cmp eax, 0x100
je 0x1001488d
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0
push 0
push edi
push 0x10001f40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop esi
pop edi
ret 0xc

Function at 0x10015230
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, esp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], esp
mov dword [esi + 0x38], 0xffffffff
lea eax, [esi + 0x30]
mov dword [esi + 0x34], 0x1001cd00
mov ecx, dword fs:[0]
mov dword [esi + 0x30], ecx
mov dword fs:[0], eax
lea edi, [ebp + 0xc]
mov eax, 0xf22b9186
mov ecx, 0xc38e2251
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, 0xe8a6a916
mov ecx, 0x54bb0141
mov dword [esi + 0xc], ecx
mov dword [esi + 8], eax
mov eax, 0x934ee3c5
mov ecx, 0xadc74725
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov eax, 0x8ed4cc62
mov ecx, 0x54de6220
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x10]
xor ecx, ecx
movaps xmm0, xmmword [esi]
xorps xmm0, xmmword [eax]
movaps xmmword [esi], xmm0
mov eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [ebp + 0x20], 0x10
mov ecx, edi
jb 0x100152cc
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x38], 0
push 0
push ecx
call eax
add esp, 8
mov edi, eax
lea eax, [ebp + 8]
mov eax, dword [eax + 0x18]
cmp eax, 0x10
jb 0x10015316
lea ecx, [ebp + 0xc]
mov ecx, dword [ecx]
lea ebx, [eax + 1]
cmp ebx, 0x1000
jb 0x1001530c
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x10015329
add eax, 0x24
mov ebx, eax
mov ecx, edx
push ebx
push ecx
call fcn.10157950
add esp, 8
mov eax, dword [esi + 0x30]
mov dword fs:[0], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
push ebp
sub esp, 8
lea esi, [ebp - 0x3c]
mov ebp, dword [esi + 0x28]
lea ecx, [ebp + 0xc]
call fcn.10015110
add esp, 8
pop ebp
ret