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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4a3b18]
cmp byte [eax + 0xc], 0
je 0x45aad9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45aad2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a4b9c], 0
jne 0x45a9c0
push 0x45aae0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x45aae8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4b9c], eax
cmp dword [0x49edf0], 0
jne 0x45aabb
push 0x45aaf8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x49edf0], eax
cmp dword [0x49edf0], 0
je 0x45aabb
push 0x45ab04
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4ba0], eax
push 0x45ab14
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4ba4], eax
push 0x45ab28
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4ba8], eax
push 0x45ab40
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bac], eax
push 0x45ab58
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bb0], eax
push 0x45ab6c
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bb4], eax
push 0x45ab84
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bb8], eax
push 0x45ab9c
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bbc], eax
push 0x45abb8
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bc0], eax
push 0x45abc4
mov eax, dword [0x49edf0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a4bc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45aad9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x45ee38
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.00404600
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x45ee87
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.00404870
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x466674
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4666c4]
test si, 4
je 0x466688
or bl, 1
test si, 8
je 0x466692
or bl, 4
test si, 1
je 0x46669c
or bl, 8
test si, 2
je 0x4666a6
or bl, 0x10
test si, 0x10
je 0x4666b0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4666bf
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4666c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x466700]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4666e1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4666f0
or bl, 4
test esi, 0x20000000
je 0x4666fb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x46cda8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x46cdba
add esp, 0xfffffff0
call fcn.00403bd4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e284
mov eax, dword [0x4a3654]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d14c
mov eax, dword [0x4a3660]
mov dword [eax + 4], ebx
mov dword [eax], 0x46d158
mov eax, ebx
call fcn.0046d164
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415c30]
call fcn.00403880
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415c30]
call fcn.00403880
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415c30]
call fcn.00403880
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415c30]
call fcn.00403880
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415c30]
call fcn.00403880
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, 0x469580
push eax
push 0
push 0
mov eax, dword [0x4a3824]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fd48]
call fcn.0042155c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fd48]
call fcn.0042155c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fd48]
call fcn.0042155c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0046d584
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d460
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d460
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x46d460
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46cef7
call fcn.00403c2c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46d244
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 0x46d3ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46d3d0
mov dl, 1
mov eax, dword [0x4161d8]
call fcn.00403880
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404600
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46d3bf
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.0045accc
test al, al
je 0x46d3b2
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, 0x46d400
lea eax, [ebp - 0x254]
call fcn.00409814
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46d3b2
xor eax, eax
push ebp
push 0x46d3ab
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 0x46d438
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46d394
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404870
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 0x46d394
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404870
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d3b2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46d2b5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041a474
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 0x46d3f6
lea eax, [ebp - 0x260]
call fcn.00404600
ret

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

Disassembly:
push ecx
mov eax, dword [0x4a4be8]
cmp byte [eax + 0xa5], 0
jne 0x46dd95
cmp dword [0x4a4c00], 0
jne 0x46dd56
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46dce0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a4c00], eax
cmp dword [0x4a4bfc], 0
jne 0x46dd71
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a4bfc], eax
cmp dword [0x4a4c04], 0
jne 0x46dd95
push esp
push 0
push 0
push 0x46dc84
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4a4c04], eax
pop edx
ret
Function at 0x46de8c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46dea3
add esp, 0xfffffff0
call fcn.00403bd4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e284
mov eax, dword [0x4a3800]
cmp word [eax + 2], 0
jne 0x46decb
mov eax, dword [0x4a3800]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f5f4
mov eax, dword [0x4a390c]
cmp word [eax + 2], 0
jne 0x46dee5
mov eax, dword [0x4a390c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0046f7ec
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415c30]
call fcn.00403880
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415c30]
call fcn.00403880
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 [0x4208c8]
call fcn.00428614
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x46e06c
mov eax, dword [0x4a36cc]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004289e4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x46fd8c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a36cc]
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.0040d054
test eax, eax
je 0x46dfda
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091cc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d07c
test eax, eax
je 0x46dfee
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.00404870
mov eax, dword [0x4a3530]
cmp byte [eax], 0
jne 0x46e022
mov eax, ebx
call fcn.0046e194
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.0046ff68
mov eax, ebx
call fcn.0047092c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x46e062
call fcn.00403c2c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46e414
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a4be8]
cmp dword [eax + 0x30], 0
je 0x46e4be
cmp dword [ebx + 0x94], 0
jne 0x46e4b8
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46e3a4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46e4b8
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 0x46e47e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46e4b8
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.00418124
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46e48d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46f020
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 0x46f055
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.004046f0
jmp 0x46f062
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404654
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x470144
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x470185
mov eax, esi
call fcn.00456270
test al, al
je 0x470185
mov eax, dword [ebx + 0x84]
call fcn.00455f6c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x470185
push 0
mov eax, dword [ebx + 0x84]
call fcn.00455f6c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x471e88
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 0x4720e8
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x471eeb
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00471950
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040cbc8
cmp al, 1
jne 0x471eeb
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00471c68
test al, al
je 0x472077
cmp dword [ebp - 8], 0
jge 0x471f09
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.00471950
mov eax, dword [ebp - 0x210]
call fcn.004048c0
cmp ebx, eax
jge 0x471f53
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00471950
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4a3af4]
and eax, 0xff
bt dword [edx], eax
jae 0x471f53
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x471f67
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00471e64
cmp ebx, dword [ebp - 8]
je 0x472069
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 0x471f93
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403aac
and eax, 0x7f
movzx eax, word [eax*2 + 0x49f030]
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 0x472056
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403aac
and eax, 0x7f
movzx eax, word [eax*2 + 0x49f030]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00455f6c
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403aac
and eax, 0x7f
movzx eax, word [eax*2 + 0x49f030]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00455f6c
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47205d
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 0x4720ca
cmp dword [ebp - 8], 0
jge 0x472082
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00471950
mov eax, dword [ebp - 0x218]
call fcn.004048c0
cmp eax, dword [ebp - 8]
jg 0x4720bc
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00471950
mov eax, dword [ebp - 0x21c]
call fcn.004048c0
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00471e64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4720ef
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404624
ret
Function at 0x10007489
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov ecx, dword [0x10007028]
mov eax, dword [ecx + 0x3c]
push ebx
push esi
push edi
mov edi, dword [0x10007024]
add eax, ecx
cmp dword [edi + 0x78], ecx
mov dword [ebp - 0x18], eax
je 0x10007596
mov esi, dword [edi + 0x88]
test esi, esi
je 0x10007596
add esi, ecx
jmp 0x1000758a
and dword [ebp - 0x10], 0
lea eax, [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
sub eax, 8
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x10007587
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
mov ebx, eax
and ebx, 0xfff
add ebx, dword [esi]
add ebx, ecx
shr eax, 0xc
mov dword [ebp - 0x20], ebx
je 0x1000756c
cmp eax, 3
jne 0x1000759e
mov eax, dword [ebx]
mov dword [ebp - 4], eax
mov eax, ecx
sub eax, dword [edi + 0x78]
add dword [ebp - 4], eax
cmp dword [ebp - 4], ecx
jb 0x1000759e
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x50]
add eax, ecx
cmp dword [ebp - 4], eax
ja 0x1000759e
lea eax, [ebp - 8]
push eax
push 0x40
push 4
pop esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
cld
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x10007028]
mov edi, dword [0x10007024]
mov esi, dword [ebp - 0x14]
mov eax, dword [esi + 4]
add dword [ebp - 0xc], 2
inc dword [ebp - 0x10]
sub eax, 8
cdq
sub eax, edx
sar eax, 1
cmp dword [ebp - 0x10], eax
jl 0x100074e1
add esi, dword [esi + 4]
cmp dword [esi], 0
mov dword [ebp - 0x14], esi
jne 0x100074c4
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
xor eax, eax
jmp 0x10007599

Function at 0x100075a2
Capabilities:
Check mutex on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x8c
push ebx
push esi
push edi
push 6
pop ecx
mov esi, 0x100070fc
lea edi, [ebp + 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp + 0x50]
movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100075c6
sub eax, edx
mov edx, eax
mov eax, dword [0x10007024]
add eax, 0x34
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100075dc
sub eax, esi
mov ebx, eax
lea eax, [ebp + 0x50]
mov dword [ebp + 0x74], eax
lea eax, [ebp - 0x14]
mov dword [ebp + 0x6c], eax
mov dword [ebp + 0x70], edx
mov esi, dword [ebp + 0x74]
mov edi, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x70]
cld
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x10007024]
add eax, 0x34
push ebx
push eax
lea eax, [ebp + edx - 0x14]
push eax
call fcn.1000741c
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 0
add ebx, edx
push 0
mov byte [ebp + ebx - 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
pop edi
pop esi
pop ebx
je 0x10007647
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10007647
xor eax, eax
inc eax
jmp 0x10007649
xor eax, eax
add ebp, 0x78
leave
ret
Function at 0x4af370
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 0x4af38e
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 0x4d8074
push ecx
mov edi, eax
call fcn.004c3198
mov esi, eax
add esp, 8
test esi, esi
jne 0x4af3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004c302e
push esi
call fcn.004c2fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4b2850
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 0x4b28ae
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 0x4dd720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4b28ba
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.004c31e1
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 0x4b28ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x4dd720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x4b292a
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.004c4082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x4b2957
mov word [eax], si
add eax, 2
push eax
call fcn.004c4030
add esp, 4
jmp 0x4b2959
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 0x4b28ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x4b28b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x4b2ff0
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 0x4b3080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x4b30c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x4d8458
push ecx
call fcn.004c31e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.004c31e1
add esp, 0x10
jmp 0x4b30d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004c320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.004c2dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004b3050
mov eax, dword [0x4dd728]
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 0x4b313b
push esi
call fcn.004b2fb0
add esp, 4
mov dword [0x4dd728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x4b314c
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.004b2ff0
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 0x4b6440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x4b64b7
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 0x4b648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4b6471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4b647e
add edx, ecx
cmp ebx, edx
jb 0x4b648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4b6467
xor ecx, ecx
jmp 0x4b64a2
test eax, eax
jne 0x4b6492
xor ecx, ecx
jmp 0x4b64a2
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.004b63c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret