joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43abd8
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 0x43abf4
cmp dword [esi + 4], 0
je 0x43ac21
test byte [ebx + 0x55], 1
jne 0x43ac13
mov eax, ebx
call fcn.00439778
test eax, eax
jne 0x43ac13
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43ad31
mov edx, esi
mov eax, ebx
call fcn.0043a6fc
jmp 0x43ad31
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 0x43ad2a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043ca48
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.00437414
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043abd8
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.0043ca48
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43ad31
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 0x441404
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45a21c]
cmp byte [eax + 0xc], 0
je 0x441571
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44156a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45bb90], 0
jne 0x441458
push 0x441578
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x441580
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb90], eax
cmp dword [0x459bdc], 0
jne 0x441553
push 0x441590
call sub.kernel32.dll_LoadLibraryA
mov dword [0x459bdc], eax
cmp dword [0x459bdc], 0
je 0x441553
push 0x44159c
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb94], eax
push 0x4415ac
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb98], eax
push 0x4415c0
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bb9c], eax
push 0x4415d8
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bba0], eax
push 0x4415f0
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bba4], eax
push 0x441604
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bba8], eax
push 0x44161c
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bbac], eax
push 0x441634
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bbb0], eax
push 0x441650
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bbb4], eax
push 0x44165c
mov eax, dword [0x459bdc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45bbb8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441571
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

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

Function at 0x44d040
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d090]
test si, 4
je 0x44d054
or bl, 1
test si, 8
je 0x44d05e
or bl, 4
test si, 1
je 0x44d068
or bl, 8
test si, 2
je 0x44d072
or bl, 0x10
test si, 0x10
je 0x44d07c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d08b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44d094
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d0cc]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d0ad
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d0bc
or bl, 4
test esi, 0x20000000
je 0x44d0c7
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453774
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453786
add esp, 0xfffffff0
call fcn.004034a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419584
mov eax, dword [0x459ee4]
mov dword [eax + 4], ebx
mov dword [eax], 0x453b18
mov eax, dword [0x459ef0]
mov dword [eax + 4], ebx
mov dword [eax], 0x453b24
mov eax, ebx
call fcn.00453b30
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411864]
call fcn.00403154
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411864]
call fcn.00403154
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411864]
call fcn.00403154
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411864]
call fcn.00403154
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411864]
call fcn.00403154
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, 0x44ff4c
push eax
push 0
push 0
mov eax, dword [0x45a038]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41afe8]
call fcn.0041c75c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41afe8]
call fcn.0041c75c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41afe8]
call fcn.0041c75c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453f50
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453e2c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453e2c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453e2c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4538c3
call fcn.00403500
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453c10
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 0x453dbb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453d9c
mov dl, 1
mov eax, dword [0x411c80]
call fcn.00403154
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403ed4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453d8b
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.00441764
test al, al
je 0x453d7e
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, 0x453dcc
lea eax, [ebp - 0x254]
call fcn.00408c04
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453d7e
xor eax, eax
push ebp
push 0x453d77
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 0x453e04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453d60
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404144
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 0x453d60
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404144
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453d7e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453c81
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00415774
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 0x453dc2
lea eax, [ebp - 0x260]
call fcn.00403ed4
ret

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

Disassembly:
push ecx
mov eax, dword [0x45bbdc]
cmp byte [eax + 0xa5], 0
jne 0x454761
cmp dword [0x45bbf4], 0
jne 0x454722
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4546ac
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45bbf4], eax
cmp dword [0x45bbf0], 0
jne 0x45473d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45bbf0], eax
cmp dword [0x45bbf8], 0
jne 0x454761
push esp
push 0
push 0
push 0x454650
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45bbf8], eax
pop edx
ret
Function at 0x454858
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45486f
add esp, 0xfffffff0
call fcn.004034a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419584
mov eax, dword [0x45a024]
cmp word [eax + 2], 0
jne 0x454897
mov eax, dword [0x45a024]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455fc0
mov eax, dword [0x45a0d0]
cmp word [eax + 2], 0
jne 0x4548b1
mov eax, dword [0x45a0d0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004561b8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411864]
call fcn.00403154
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411864]
call fcn.00403154
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 [0x41bac8]
call fcn.00422e90
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x454a38
mov eax, dword [0x459f44]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423260
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456758
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x459f44]
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.0040c2d4
test eax, eax
je 0x4549a6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004085f8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c2fc
test eax, eax
je 0x4549ba
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.00404144
mov eax, dword [0x459e34]
cmp byte [eax], 0
jne 0x4549ee
mov eax, ebx
call fcn.00454b60
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.00456934
mov eax, ebx
call fcn.004572f8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454a2e
call fcn.00403500
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454de0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45bbdc]
cmp dword [eax + 0x30], 0
je 0x454e8a
cmp dword [ebx + 0x94], 0
jne 0x454e84
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454d70
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454e84
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 0x454e4a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454e84
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.00413bcc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454e59
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4559ec
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 0x455a21
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.00403fc4
jmp 0x455a2e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f28
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456b10
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456b51
mov eax, esi
call fcn.0043cd4c
test al, al
je 0x456b51
mov eax, dword [ebx + 0x84]
call fcn.0043ca48
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456b51
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043ca48
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x10012530
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100126f4
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc000]
push edi
jmp 0x1001255a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10012561
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10012550
mov eax, 1
add ebx, ebx
jne 0x10012573
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10012568
jne 0x10012584
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10012568
xor ecx, ecx
sub eax, 3
jb 0x10012598
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1001260a
mov ebp, eax
add ebx, ebx
jne 0x100125a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x100125b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x100125d4
inc ecx
add ebx, ebx
jne 0x100125c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100125b5
jne 0x100125d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100125b5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100125f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100125e5
jmp 0x10012556
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100125f4
add edi, ecx
jmp 0x10012556
pop esi
mov edi, esi
mov ecx, 0x288
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10012612
cmp byte [edi], 5
jne 0x10012612
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10012617
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x10012686
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x124f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1251c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10012644
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12520]
or eax, eax
je 0x10012680
mov dword [ebx], eax
add ebx, 4
jmp 0x10012661
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100126b7
cmp al, 0xef
ja 0x100126aa
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1001268c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10012699
mov ebp, dword [esi + 0x12524]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x100126eb
sub esp, 0xffffff80
jmp 0x10003460
Function at 0x812370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x81238e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x83b074
push ecx
mov edi, eax
call fcn.00826198
mov esi, eax
add esp, 8
test esi, esi
jne 0x8123cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0082602e
push esi
call fcn.00825fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x815850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x8158ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x840720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x8158ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.008261e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x8158ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x840720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x81592a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00827082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x815957
mov word [eax], si
add eax, 2
push eax
call fcn.00827030
add esp, 4
jmp 0x815959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x8158ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x8158b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x815ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x816080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x8160c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x83b458
push ecx
call fcn.008261e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.008261e1
add esp, 0x10
jmp 0x8160d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0082620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00825dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00816050
mov eax, dword [0x840728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x81613b
push esi
call fcn.00815fb0
add esp, 4
mov dword [0x840728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x81614c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00815ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x819440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x8194b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x81948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x819471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x81947e
add edx, ecx
cmp ebx, edx
jb 0x81948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x819467
xor ecx, ecx
jmp 0x8194a2
test eax, eax
jne 0x819492
xor ecx, ecx
jmp 0x8194a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.008193c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x8198f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x819921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x819946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x81996e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x819993
push ecx
push esi
call fcn.008194c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret