joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435a88
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x435aa4
cmp dword [esi + 4], 0
je 0x435ad1
test byte [ebx + 0x55], 1
jne 0x435ac3
mov eax, ebx
call fcn.00434628
test eax, eax
jne 0x435ac3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x435be1
mov edx, esi
mov eax, ebx
call fcn.004355ac
jmp 0x435be1
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x435bda
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004378f8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004322c4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00435a88
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004378f8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x435be1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c1b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x476b94]
cmp byte [eax + 0xc], 0
je 0x43c31d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x43c316
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x477b68], 0
jne 0x43c204
push 0x43c324
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x43c32c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b68], eax
cmp dword [0x475b3c], 0
jne 0x43c2ff
push 0x43c33c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x475b3c], eax
cmp dword [0x475b3c], 0
je 0x43c2ff
push 0x43c348
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b6c], eax
push 0x43c358
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b70], eax
push 0x43c36c
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b74], eax
push 0x43c384
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b78], eax
push 0x43c39c
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b7c], eax
push 0x43c3b0
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b80], eax
push 0x43c3c8
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b84], eax
push 0x43c3e0
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b88], eax
push 0x43c3fc
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b8c], eax
push 0x43c408
mov eax, dword [0x475b3c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x477b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c31d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4401a8
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.00403fa8
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4401f7
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.00404218
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44790c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44795c]
test si, 4
je 0x447920
or bl, 1
test si, 8
je 0x44792a
or bl, 4
test si, 1
je 0x447934
or bl, 8
test si, 2
je 0x44793e
or bl, 0x10
test si, 0x10
je 0x447948
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447957
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x447960
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x447998]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447979
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x447988
or bl, 4
test esi, 0x20000000
je 0x447993
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44e040
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44e052
add esp, 0xfffffff0
call fcn.004034f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004198a8
mov eax, dword [0x476858]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e3e4
mov eax, dword [0x476864]
mov dword [eax + 4], ebx
mov dword [eax], 0x44e3f0
mov eax, ebx
call fcn.0044e3fc
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.004031a4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.004031a4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.004031a4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.004031a4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.004031a4
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, 0x44a818
push eax
push 0
push 0
mov eax, dword [0x4769ac]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41b304]
call fcn.0041ca78
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41b304]
call fcn.0041ca78
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41b304]
call fcn.0041ca78
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044e81c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e6f8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e6f8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44e6f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44e18f
call fcn.00403550
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x44e4dc
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 0x44e687
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x44e668
mov dl, 1
mov eax, dword [0x411a2c]
call fcn.004031a4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403fa8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44e657
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.0043c510
test al, al
je 0x44e64a
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, 0x44e698
lea eax, [ebp - 0x254]
call fcn.00408adc
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44e64a
xor eax, eax
push ebp
push 0x44e643
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 0x44e6d0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x44e62c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404218
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 0x44e62c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404218
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e64a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44e54d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415564
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 0x44e68e
lea eax, [ebp - 0x260]
call fcn.00403fa8
ret

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

Disassembly:
push ecx
mov eax, dword [0x477bb4]
cmp byte [eax + 0xa5], 0
jne 0x44f02d
cmp dword [0x477bcc], 0
jne 0x44efee
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x44ef78
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x477bcc], eax
cmp dword [0x477bc8], 0
jne 0x44f009
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x477bc8], eax
cmp dword [0x477bd0], 0
jne 0x44f02d
push esp
push 0
push 0
push 0x44ef1c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x477bd0], eax
pop edx
ret
Function at 0x44f124
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44f13b
add esp, 0xfffffff0
call fcn.004034f8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004198a8
mov eax, dword [0x476998]
cmp word [eax + 2], 0
jne 0x44f163
mov eax, dword [0x476998]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004508a4
mov eax, dword [0x476a48]
cmp word [eax + 2], 0
jne 0x44f17d
mov eax, dword [0x476a48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00450a9c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411610]
call fcn.004031a4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411610]
call fcn.004031a4
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], 0xff000018
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 [0x41bde4]
call fcn.004234bc
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44f304
mov eax, dword [0x4768bc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042388c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45103c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4768bc]
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.0040c1a4
test eax, eax
je 0x44f272
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004084d0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c1cc
test eax, eax
je 0x44f286
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.00404218
mov eax, dword [0x4767a0]
cmp byte [eax], 0
jne 0x44f2ba
mov eax, ebx
call fcn.0044f42c
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.00451218
mov eax, ebx
call fcn.00451bdc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44f2fa
call fcn.00403550
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f6ac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x477bb4]
cmp dword [eax + 0x30], 0
je 0x44f756
cmp dword [ebx + 0x94], 0
jne 0x44f750
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44f63c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x44f750
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 0x44f716
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x44f750
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.004139d4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44f725
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4502b8
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 0x4502ed
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.00404098
jmp 0x4502fa
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ffc
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4513f4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451435
mov eax, esi
call fcn.00437bd0
test al, al
je 0x451435
mov eax, dword [ebx + 0x84]
call fcn.004378f8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451435
push 0
mov eax, dword [ebx + 0x84]
call fcn.004378f8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x454afc
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x454b2a
mov eax, ebx
call fcn.004555b0
cmp dword [ebx + 0x40], 0
je 0x454b23
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x454b9b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x454b8d
cmp dword [ebx + 8], 0
je 0x454b4c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x454b5e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x454b8d
cmp dword [ebx + 8], 0
je 0x454b3f
cmp eax, 3
je 0x454b71
dec eax
jne 0x454b3f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x454b3f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x454b3f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x454bb9
cmp dword [ebx + 0x14], 0xcc
je 0x454bb9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00454bc4
pop ebx
ret
Function at 0x466838
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x466889
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x466870
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x466860
jmp 0x466889
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x466871
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10010cd
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001090
call fcn.0100126c
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001108
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001108
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001120
cmp eax, 0x20b
je 0x100110d
mov dword [ebp - 0x1c], edi
jmp 0x1001134
cmp dword [ecx + 0x84], 0xe
jbe 0x1001108
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100112e
cmp dword [ecx + 0x74], 0xe
jbe 0x1001108
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.01001266
cmp dword [section..data], edi
jne 0x100118f
push fcn.01001266
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001254
push 0x1001060
push 0x100105c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x1001058
push 0x1001054
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010010b8
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001206
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100123b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010012a5
ret
Function at 0x1c162050
Capabilities:
Write file on windows

Disassembly:
push ebp
push esi
push edi
add esp, 0xfffffef4
mov edi, dword [esp + 0x11c]
mov al, byte [edi]
test al, al
je 0x1c162072
xor esi, esi
inc esi
mov al, byte [edi + esi]
test al, al
jne 0x1c162068
jmp 0x1c162074
xor esi, esi
test esi, esi
je 0x1c16211e
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1c1620c5
call fcn.1c162440
test al, al
jne 0x1c1620c5
push 0
lea eax, [esp + 0x10c]
push eax
push esi
push edi
push ebp
mov dword [esp + 0x11c], esi
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [esp + 0x10c]
push ecx
push 2
push 0x1c165108
push ebp
call sub.KERNEL32.DLL_WriteFile
jmp 0x1c16210f
push 0
mov dword [esp + 0x10c], esi
call sub.KERNEL32.DLL_GetModuleHandleA
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
jne 0x1c1620eb
mov byte [esp], 0
push 0x1c165118
call sub.KERNEL32.DLL_LoadLibraryA
push str.MessageBoxA
push eax
call sub.KERNEL32.DLL_GetProcAddress
push 0x12010
lea ecx, [esp + 4]
push ecx
push edi
push 0
call eax
mov eax, dword [0x1c167010]
test eax, eax
je 0x1c16211e
push edi
call fcn.1c1623e0
sub esp, 0xfffffef4
pop edi
pop esi
pop ebp
ret 4

Function at 0x1c1622d0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
add esp, 0xfffffaec
mov al, byte [0x1c167014]
test al, al
je 0x1c1622e6
mov al, 1
jmp 0x1c1623d6
push dword [0x1c167010]
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
lea ecx, [esp + 0x11c]
push ecx
call fcn.1c161fc0
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x11c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [esp + 0x13c]
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0xfffffff4
test eax, eax
je 0x1c16233b
xor al, al
jmp 0x1c1623d6
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push 0x104
lea ecx, [esp + 8]
push ecx
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
test eax, eax
je 0x1c1623d4
lea eax, [esp + 4]
push eax
call fcn.1c162710
inc eax
push eax
lea ecx, [esp + 8]
push ecx
push 2
push 0
push str.EventMessageFile
mov eax, dword [esp + 0x120]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
mov ecx, eax
mov eax, dword [esp + 0x10c]
test ecx, ecx
je 0x1c162394
push eax
call sub.ADVAPI32.DLL_RegCloseKey
xor al, al
jmp 0x1c1623d6
push 4
lea ecx, [esp + 4]
push ecx
push 4
push 0
push str.TypesSupported
push eax
mov dword [esp + 0x18], 7
call sub.ADVAPI32.DLL_RegSetValueExA
mov edx, eax
mov eax, dword [esp + 0x10c]
test edx, edx
je 0x1c1623c9
push eax
call sub.ADVAPI32.DLL_RegCloseKey
xor al, al
jmp 0x1c1623d6
mov byte [0x1c167014], 1
mov al, 1
jmp 0x1c1623d6
xor al, al
sub esp, 0xfffffaec
ret

Function at 0x1c162460
Capabilities:
Parse pe header

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp word [edi], 0x5a4d
je 0x1c162476
push str.Invalid_DOS_signature
call fcn.1c162130
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
je 0x1c16248b
push str.Invalid_PE_signature
call fcn.1c162130
mov eax, edi
pop edi
ret 4