joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449e64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x449e9c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449e7d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x449e8c
or bl, 4
test esi, 0x20000000
je 0x449e97
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x450544
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x450556
add esp, 0xfffffff0
call fcn.004034c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bc94
mov eax, dword [0x486374]
mov dword [eax + 4], ebx
mov dword [eax], 0x4508e8
mov eax, dword [0x486384]
mov dword [eax + 4], ebx
mov dword [eax], 0x4508f4
mov eax, ebx
call fcn.00450900
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403188
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403188
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403188
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403188
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403188
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, 0x44cd1c
push eax
push 0
push 0
mov eax, dword [0x4865e8]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41d6c0]
call fcn.0041eb04
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41d6c0]
call fcn.0041eb04
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41d6c0]
call fcn.0041eb04
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00450d20
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450bfc
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450bfc
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x450bfc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x450693
call fcn.0040351c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4509e0
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 0x450b8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x450b6c
mov dl, 1
mov eax, dword [0x412e24]
call fcn.00403188
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f94
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x450b5b
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.0043e9ec
test al, al
je 0x450b4e
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, 0x450b9c
lea eax, [ebp - 0x254]
call fcn.00409664
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x450b4e
xor eax, eax
push ebp
push 0x450b47
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 0x450bd4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x450b30
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404214
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 0x450b30
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404214
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x450b4e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x450a51
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041784c
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 0x450b92
lea eax, [ebp - 0x260]
call fcn.00403f94
ret

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

Disassembly:
push ecx
mov eax, dword [0x487bb4]
cmp byte [eax + 0xa5], 0
jne 0x451531
cmp dword [0x487bcc], 0
jne 0x4514f2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45147c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x487bcc], eax
cmp dword [0x487bc8], 0
jne 0x45150d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x487bc8], eax
cmp dword [0x487bd0], 0
jne 0x451531
push esp
push 0
push 0
push 0x451420
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x487bd0], eax
pop edx
ret
Function at 0x451628
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45163f
add esp, 0xfffffff0
call fcn.004034c4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041bc94
mov eax, dword [0x4865c0]
cmp word [eax + 2], 0
jne 0x451667
mov eax, dword [0x4865c0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452d00
mov eax, dword [0x486714]
cmp word [eax + 2], 0
jne 0x451681
mov eax, dword [0x486714]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00452ef8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403188
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4127c0]
call fcn.00403188
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 [0x41de70]
call fcn.00423ab8
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x451808
mov eax, dword [0x48643c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00423e88
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x453498
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x48643c]
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.0040d1c4
test eax, eax
je 0x451776
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408ca8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d1ec
test eax, eax
je 0x45178a
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.00404214
mov eax, dword [0x48620c]
cmp byte [eax], 0
jne 0x4517be
mov eax, ebx
call fcn.00451930
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.00453674
mov eax, ebx
call fcn.00454038
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4517fe
call fcn.0040351c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451bb0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x487bb4]
cmp dword [eax + 0x30], 0
je 0x451c5a
cmp dword [ebx + 0x94], 0
jne 0x451c54
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x451b40
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x451c54
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 0x451c1a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x451c54
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.00414e54
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x451c29
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4527bc
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 0x4527f1
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.00404084
jmp 0x4527fe
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403fe8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x453850
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x453891
mov eax, esi
call fcn.0043a018
test al, al
je 0x453891
mov eax, dword [ebx + 0x84]
call fcn.00439d14
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x453891
push 0
mov eax, dword [ebx + 0x84]
call fcn.00439d14
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x45a75c
Capabilities:
Link many functions at runtime

Disassembly:
mov byte [0x4850c4], 0
mov eax, dword [0x48695c]
cmp dword [eax], 2
jne 0x45a935
mov eax, dword [0x486444]
cmp dword [eax], 5
jl 0x45a935
call fcn.004578f8
test al, al
jne 0x45a78d
call fcn.00457904
call fcn.004578f0
mov dword [0x4850cc], eax
push 0x45a938
mov eax, dword [0x4850cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485090], eax
cmp dword [0x485090], 0
jne 0x45a7e8
mov edx, 0x8000
mov eax, 0x45a94c
call fcn.0040df68
mov dword [0x4850c8], eax
mov eax, dword [0x4850c8]
mov dword [0x4850cc], eax
push 0x45a938
mov eax, dword [0x4850cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485090], eax
cmp dword [0x485090], 0
je 0x45a930
push 0x45a958
mov eax, dword [0x4850cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485094], eax
cmp dword [0x485094], 0
je 0x45a930
push 0x45a964
mov eax, dword [0x4850cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x485098], eax
cmp dword [0x485098], 0
je 0x45a930
mov byte [0x4850c4], 1
push 0x45a974
mov eax, dword [0x4850cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x48509c], eax
push 0x45a980
mov eax, dword [0x4850cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4850a0], eax
push 0x45a98c
mov eax, dword [0x4850cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4850a4], eax
push 0x45a99c
mov eax, dword [0x4850cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4850a8], eax
push 0x45a9ac
mov eax, dword [0x4850cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4850ac], eax
mov edx, 0x8000
mov eax, 0x45a9c4
call fcn.0040df68
mov dword [0x4850d0], eax
cmp dword [0x4850d0], 0
je 0x45a935
push 0x45a9d4
mov eax, dword [0x4850d0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4850b0], eax
push 0x45a9f0
mov eax, dword [0x4850d0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4850b4], eax
push 0x45aa10
mov eax, dword [0x4850d0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4850b8], eax
push 0x45aa2c
mov eax, dword [0x4850d0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4850bc], eax
push 0x45aa44
mov eax, dword [0x4850d0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4850c0], eax
ret
call fcn.0045a6dc
ret
Function at 0x47083c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
mov ebx, ecx
xor eax, eax
push ebp
push 0x470a55
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov byte [eax], 5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dl, byte [ebp + 0x10]
mov byte [eax + 1], dl
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov byte [eax + 2], 0
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00455b7c
mov eax, dword [ebp - 8]
call fcn.00404264
test eax, eax
jle 0x470914
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov byte [eax + 3], 4
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov byte [eax + 4], 0x10
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov edx, ebx
mov eax, dword [0x46e1f8]
call fcn.0046e2fc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470902
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x4708ec
push 4
push 0x10
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0046e298
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
xor edx, edx
call fcn.00455504
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470909
lea eax, [ebp - 4]
call fcn.0040de9c
ret
mov eax, dword [0x486854]
mov eax, dword [eax]
mov edx, ebx
call fcn.0045d968
test al, al
je 0x470996
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov byte [eax + 3], 1
mov edx, ebx
mov eax, dword [0x46e1f8]
call fcn.0046e2fc
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x470984
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x47096e
push 4
push 4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0046e298
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
xor edx, edx
call fcn.00455504
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47098b
lea eax, [ebp - 4]
call fcn.0040de9c
ret
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov byte [eax + 3], 3
mov eax, ebx
call fcn.00404264
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov byte [edx + 4], al
mov eax, dword [ebp + 8]
mov dword [eax], 5
mov eax, ebx
call fcn.00404264
test eax, eax
jle 0x4709e9
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
mov eax, ebx
call fcn.00404264
push eax
lea ecx, [ebp - 0x14]
mov dl, 1
mov eax, ebx
call fcn.00456dd0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
xor edx, edx
call fcn.00455504
mov eax, ebx
call fcn.00404264
mov edx, dword [ebp + 8]
add dword [edx], eax
mov eax, dword [0x486854]
mov eax, dword [eax]
mov dx, word [ebp + 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x30]
mov ebx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
push 2
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00456f90
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
xor edx, edx
call fcn.00455504
mov eax, dword [ebp + 8]
add dword [eax], 2
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470a5c
lea eax, [ebp - 0x18]
mov edx, dword [0x454d40]
mov ecx, 4
call fcn.00404ab4
lea eax, [ebp - 8]
call fcn.00403f94
ret
Function at 0x476914
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x47696e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00476908
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004748ac
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00474488
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476975
lea eax, [ebp - 4]
call fcn.00403f94
ret
Function at 0x10001000
Capabilities:
Encode data using xor
Get file size
Hash data with crc32
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
mov ecx, esi
mov eax, esi
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
test al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
test dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
test cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
test dl, 1
cmove eax, ecx
mov dword [esi*4 + 0x10003050], eax
inc esi
cmp esi, 0xff
jle 0x10001010
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001168
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001161
cmp dword [ebp - 4], ebx
jne 0x10001161
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x10001161
test eax, eax
je 0x10001161
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 8], eax
test eax, eax
je 0x10001161
or ebx, 0xffffffff
mov edx, eax
test esi, esi
je 0x1000114f
mov al, byte [edx]
lea edx, [edx + 1]
movzx ecx, al
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x10003050]
sub esi, 1
jne 0x10001130
mov eax, dword [ebp - 8]
push eax
not ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001180
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
sub eax, 1
je 0x100011cb
sub eax, 1
je 0x100011a9
sub eax, 1
jne 0x1000131b
cmp dword [0x10003664], 0
jne 0x1000131b
call fcn.10001330
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001426
mov esp, ebp
pop ebp
ret 0xc
push dword [0x10003660]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x100020d8
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10003660], eax
test eax, eax
je 0x1000131b
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100020e8
push eax
call esi
push 0x100020fc
push dword [0x10003660]
mov dword [0x10003048], eax
call esi
push 0
mov dword [0x1000304c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, 0x10003458
mov ebx, eax
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp word [0x10003458], 0
je 0x10001269
nop
add esi, 2
cmp word [esi], 0
jne 0x10001260
push edi
nop word [eax + eax]
mov edi, esi
sub esi, 2
cmp word [esi], 0x5c
jne 0x10001270
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.bds.exe
push edi
call esi
test eax, eax
jne 0x100012af
push 0x10003458
call fcn.10001000
add esp, 4
cmp eax, 0x4334c1af
jne 0x10001318
lea edi, [ebx + 0xfebc4]
add ebx, 0x20116
jmp 0x100012db
push str.LicenseManager.exe
push edi
call esi
test eax, eax
jne 0x10001318
push 0x10003458
call fcn.10001000
add esp, 4
cmp eax, 0x21733e8f
jne 0x10001318
lea edi, [ebx + 0x4d1928]
add ebx, 0x14eb66
mov dword [0x10003450], ebx
test edi, edi
je 0x10001318
mov eax, dword [edi]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [0x10003454], eax
lea eax, [ebp - 0x10c]
push eax
push 0x40
push 4
push edi
call esi
lea eax, [ebp - 0x10c]
mov dword [edi], 0x100013f0
push eax
push dword [ebp - 0x10c]
push 4
push edi
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10001426
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001330
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
push str.wintrust.dll
mov dword [ebp - 0x14], 0xcc2c033
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x100013dc
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push esi
push str.WinVerifyTrust
push edi
mov dword [ebp - 0xc], eax
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
test esi, esi
je 0x10001396
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push esi
call ebx
lea eax, [ebp - 8]
mov dword [esi], 0xcc2c033
push eax
mov byte [esi + 4], 0
push dword [ebp - 8]
push 0xffffffffffffffff
push esi
call ebx
push str.WinVerifyTrustEx
push edi
call dword [ebp - 0xc]
mov esi, eax
test esi, esi
je 0x100013c9
lea eax, [ebp - 8]
push eax
push 0x40
push 5
push esi
call ebx
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
mov al, byte [ebp - 1]
mov byte [esi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0xffffffffffffffff
push esi
call ebx
mov esi, eax
mov eax, esi
mov dword [0x10003664], 0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
mov dword [0x10003664], 1
pop edi
mov esp, ebp
pop ebp
ret