joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d48
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x414004]
jne 0x401d52
repz ret
jmp fcn.0040519c

Function at 0x40b56c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004076ba
and dword [ebp - 4], 0
cmp dword [0x418f00], 0
mov ebx, eax
jne 0x40b61d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b6ce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4120f4
push edi
call esi
test eax, eax
je 0x40b6ce
push eax
call fcn.00407648
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x418f00], eax
call esi
push eax
call fcn.00407648
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x418f04], eax
call esi
push eax
call fcn.00407648
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x418f08], eax
call esi
push eax
call fcn.00407648
pop ecx
mov dword [0x418f10], eax
test eax, eax
je 0x40b61d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407648
pop ecx
mov dword [0x418f0c], eax
mov eax, dword [0x418f0c]
cmp eax, ebx
je 0x40b675
cmp dword [0x418f10], ebx
je 0x40b675
push eax
call fcn.004076c3
push dword [0x418f10]
mov esi, eax
call fcn.004076c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b675
test edi, edi
je 0x40b675
call esi
test eax, eax
je 0x40b66c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b66c
test byte [ebp - 0xc], 1
jne 0x40b675
or dword [ebp + 0x10], 0x200000
jmp 0x40b6ae
mov eax, dword [0x418f04]
cmp eax, ebx
je 0x40b6ae
push eax
call fcn.004076c3
pop ecx
test eax, eax
je 0x40b6ae
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b6ae
mov eax, dword [0x418f08]
cmp eax, ebx
je 0x40b6ae
push eax
call fcn.004076c3
pop ecx
test eax, eax
je 0x40b6ae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x418f00]
call fcn.004076c3
pop ecx
test eax, eax
je 0x40b6ce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b6d0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001770
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
mov ecx, 0x10028aa8
call fcn.1000d93e
mov ebx, eax
mov dword [ebp - 4], 1
test ebx, ebx
je 0x10001824
test esi, esi
jne 0x10001824
mov eax, dword [ebp + 8]
shr eax, 4
inc eax
push esi
movzx ecx, ax
push ecx
push 6
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov edi, eax
test edi, edi
je 0x10001808
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10001802
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10001802
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
add eax, esi
and ecx, 0xf
jbe 0x100017f1
cmp esi, eax
jae 0x100017f5
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x100017e3
cmp esi, eax
jb 0x100017f9
xor eax, eax
jmp 0x10001802
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
mov esi, eax
test eax, eax
jne 0x1000182d
mov edi, dword [ebp - 4]
push edi
mov ecx, 0x10028aa8
call fcn.1000d93e
mov ebx, eax
inc edi
mov dword [ebp - 4], edi
test ebx, ebx
jne 0x10001795
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10001840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001858
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000188a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10001886
cmp esi, eax
jae 0x1000188a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001878
cmp esi, eax
jb 0x10001890
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x10004490
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e1a3
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x10027100]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x120], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 4], 1
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x10004550
push 0x104
push ebx
lea eax, [ebp - 0x118]
push eax
call fcn.1000f920
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push 4
lea edx, [ebp - 0x124]
push edx
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x10004550
push 0x104
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x124]
push ecx
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
push esi
lea ecx, [ebp - 0x118]
call section..text
mov dword [ebp - 0x11c], 1
jmp 0x10004586
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], ebx
jmp 0x10004571
push esi
mov ecx, 0x10022608
call section..text
mov dword [ebp - 4], ebx
or dword [ebp - 0x11c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000e003
mov esp, ebp
pop ebp
ret
Function at 0x100045b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e158
mov eax, dword fs:[0]
push eax
mov eax, 0x1020
call fcn.10017170
mov eax, dword [0x10027100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1028], eax
mov edi, ecx
mov dword [ebp - 0x1024], ebx
mov dword [ebp - 4], 1
xor esi, esi
mov dword [ebp - 0x1020], esi
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1018], ebx
mov byte [ebp - 4], 2
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1014]
push ecx
push 0x20019
push ebx
push edx
push 0x80000002
mov dword [ebp - 0x1014], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x100046a3
mov esi, dword [ebp - 0x1014]
lea eax, [ebp - 0x1014]
push eax
lea ecx, [ebp - 0x1010]
push ecx
lea edx, [ebp - 0x102c]
push edx
mov dword [ebp - 0x1020], esi
mov edi, dword [edi]
push ebx
push edi
mov dword [ebp - 0x101c], ebx
push esi
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1014], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x100046a3
mov eax, dword [ebp - 0x102c]
cmp eax, 1
je 0x10004690
cmp eax, 2
jne 0x100046a3
mov eax, dword [ebp - 0x1014]
cmp eax, ebx
je 0x10004719
cmp byte [ebp + eax - 0x1011], bl
je 0x1000471f
mov edi, dword [ebp - 0x1028]
push edi
mov ecx, 0x100225a8
call section..text
mov dword [ebp - 0x1024], 1
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x100046d3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100046fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e003
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x1010], bl
mov edi, dword [ebp - 0x1028]
push edi
lea ecx, [ebp - 0x1010]
call section..text
mov dword [ebp - 0x1024], 1
mov byte [ebp - 4], 1
cmp esi, ebx
je 0x10004750
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x101c], ebx
jmp 0x100046d9
Function at 0x10004760
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001e89e
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [0x10027100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
mov edx, dword [eax + 0xc]
mov ecx, section..data
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], esi
mov eax, 0x100225a8
test eax, 0xffff0000
jne 0x100047cd
mov ecx, eax
movzx edi, cx
push edi
call fcn.10001770
add esp, 4
cmp eax, esi
je 0x100047dc
push eax
mov eax, edi
lea edi, [ebp - 0x10]
call fcn.100015a0
jmp 0x100047dc
push 0x100225a8
xor eax, eax
lea ebx, [ebp - 0x10]
call fcn.10001430
mov dword [ebp - 4], 1
push ecx
mov ebx, esp
mov dword [ebp - 0x18], esp
push str.02_UA_We_b7dsvg_A7K65vDssoK_Cosv7K_LL___4v_
lea edi, [ebp - 0x10]
call fcn.10001bf0
mov ecx, dword [ebp + 8]
push eax
push ebx
call fcn.10001200
add esp, 0xc
mov byte [ebp - 4], 2
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.100045b0
add esp, 8
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
or ebx, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000483e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebp - 0x14]
cmp dword [edi - 0xc], 5
jle 0x100048c6
push 0x3c
lea ecx, [ebp - 0x54]
push esi
push ecx
call fcn.1000f920
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add esp, 0xc
lea ecx, [ebp - 0x54]
push ecx
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], str.open
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 5
mov dword [ebp - 0x34], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ebx
dec ebx
test ebx, ebx
jg 0x100048b2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x100048e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10004900
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001dfce
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x10027100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x400
lea eax, [ebp - 0x410]
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], ebx
call fcn.1000f920
mov edx, dword [section..data]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, section..data
mov dword [ebp - 0x424], ebx
call eax
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x420]
push ecx
push esi
mov dword [ebp - 0x428], 1
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x414], ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0x400
lea edx, [ebp - 0x410]
push edx
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x414]
mov edx, dword [ebp - 0x418]
sub ecx, eax
push ecx
mov ecx, dword [ebp - 0x420]
sub edx, ecx
push edx
push eax
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x424]
push ecx
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
push esi
push str._hwnd_:_d__thrd_:_d__t_:__s___rc_:_x_:_d__y_:_d__w_:_d__h_:_d
call fcn.100052f0
add esp, 0x20
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e003
mov esp, ebp
pop ebp
ret
Function at 0x100072a0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x10027100]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x70
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.1000f920
add esp, 0xc
mov eax, 1
push 0x80
mov ecx, 0x12
push str.00000409
mov dword [ebp - 0x74], eax
mov word [ebp - 0x70], cx
mov dword [ebp - 0x58], eax
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutA]
push eax
push 0x64
call dword [sym.imp.USER32.dll_VkKeyScanExA]
mov word [ebp - 0x54], ax
push 0x1c
mov ecx, 7
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov eax, 2
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x34], eax
mov ecx, 7
lea esi, [ebp - 0x74]
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
push 4
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000e003
mov esp, ebp
pop ebp
ret
Function at 0x1000a100
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001dd42
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x10027100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [esi], ebx
mov dword [ebp - 4], 2
mov edi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [esi + 8]
push eax
call edi
mov byte [ebp - 4], 3
lea eax, [esi + 0x18]
mov dword [ebp - 0x10], eax
mov dword [eax], ebx
mov byte [ebp - 4], 6
lea eax, [esi + 0x20]
push eax
call edi
mov byte [ebp - 4], 7
lea eax, [esi + 0x30]
mov dword [ebp - 0x10], eax
mov dword [eax], ebx
mov byte [ebp - 4], 0xa
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov byte [ebp - 4], 0xb
lea edi, [esi + 0x44]
push 0x14
mov dword [ebp - 0x14], edi
mov dword [edi + 8], ebx
call fcn.1000e648
add esp, 4
cmp eax, ebx
je 0x1000a1c8
mov dword [edi + 4], eax
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov ecx, dword [edi + 4]
mov al, 1
mov byte [ecx + 0x10], al
mov edx, dword [edi + 4]
mov byte [edx + 0x11], al
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call fcn.1000e750
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
mov byte [ebp - 4], 0xb
push 0x10023d20
lea ecx, [ebp - 0x20]
push ecx
call fcn.1000f99a
int3

Function at 0x1000db25
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10028ae0], 0
push esi
push edi
jne 0x1000da9b
call fcn.1000da07
test eax, eax
je 0x1000dae0
mov eax, dword [0x10028ae0]
cmp eax, 1
jne 0x1000dabc
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1000dae0
jmp 0x1000db22
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000db22
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000dae4
xor eax, eax
jmp 0x1000db22
mov eax, dword [esi]
push dword [0x10028ae0]
call edi
mov edi, eax
test edi, edi
je 0x1000db06
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x1000db22
lea edi, [esi + 0xff0]
push esi
push dword [0x10028ae0]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000db0c
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000da87

Function at 0x1000e003
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10027100]
jne 0x1000e00d
repz ret
jmp fcn.1001083f
Function at 0x1001968e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10027100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10011a73
and dword [ebp - 0x14], 0
cmp dword [0x100298d4], 0
mov dword [ebp - 0x18], eax
jne 0x10019741
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100197e9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100197e9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100298d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100298d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100298dc], eax
call edi
push eax
call esi
mov dword [0x100298e4], eax
test eax, eax
je 0x10019741
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100298e0], eax
mov eax, dword [0x100298e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001979a
cmp dword [0x100298e4], ecx
je 0x1001979a
push eax
call esi
push dword [0x100298e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001979a
test ebx, ebx
je 0x1001979a
call edi
test eax, eax
je 0x10019791
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10019791
test byte [ebp - 8], 1
jne 0x1001979a
or dword [ebp + 0x10], 0x200000
jmp 0x100197cd
mov eax, dword [0x100298d8]
cmp eax, dword [ebp - 0x18]
je 0x100197cd
push eax
call esi
test eax, eax
je 0x100197cd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100197cd
mov eax, dword [0x100298dc]
cmp eax, dword [ebp - 0x18]
je 0x100197cd
push eax
call esi
test eax, eax
je 0x100197cd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100298d4]
call esi
test eax, eax
je 0x100197e9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100197eb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e003
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10017330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push 0x1015a2b8
movzx eax, dx
push eax
push dword [0x10178418]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x10178418]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
push dword [0x10178418]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x100173b5
cmp ebx, 1
jl 0x100173b5
lea ecx, [ebx + 8]
push ecx
call fcn.1012e9a4
mov esi, eax
push ebx
push edi
lea eax, [esi + 8]
push eax
call fcn.10131b50
add esp, 0x10
mov dword [esi + 4], ebx
mov dword [esi], 0xffffffff
push esi
sub esp, 8
call fcn.100160d0
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x100173c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
test ecx, ecx
je 0x100173db
cmp dword [ecx + 4], 8
jne 0x100173db
cmp dword [ecx + 0xc], 0x7e3
jne 0x100173db
mov edx, dword [ecx + 8]
jmp fcn.10017330
xor eax, eax
ret

Function at 0x10017570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], edx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ecx, ecx
je 0x1001768b
mov esi, dword [ecx + 4]
lea eax, [ecx + 8]
cmp esi, 4
jle 0x100175f4
mov ecx, dword [eax]
cmp ecx, 0x3b9ac9ff
je 0x1001768b
cmp ecx, 0x5f5e100
je 0x1001768b
mov dword [ebx], eax
cmp esi, 8
jne 0x100175f6
push 0x1015a2b8
movzx eax, cx
push eax
push dword [0x10178418]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x10178418]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
push dword [0x10178418]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebx], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x1001768b
cmp esi, 5
jl 0x1001768b
mov eax, dword [ecx + 4]
add ecx, 8
mov esi, dword [ebp + 0xc]
mov dword [ebx], ecx
xor ebx, ebx
mov ecx, 4
mov dword [esi], eax
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.1012e9a4
push ebx
push 0
push eax
mov dword [ebp + 8], eax
call fcn.101306c0
xor edi, edi
add esp, 0x10
cmp dword [esi], edi
jle 0x1001767f
mov eax, dword [ebp - 4]
xor ebx, ebx
mov ecx, 4
mul ecx
seto bl
neg ebx
or ebx, eax
push ebx
call fcn.1012e9a4
push ebx
mov esi, eax
push 0
push esi
call fcn.101306c0
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, dword [ebp + 0xc]
mov dword [eax + edi*4], esi
inc edi
cmp edi, dword [ecx]
jl 0x10017641
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [eax], 0
xor eax, eax
mov esp, ebp
pop ebp
ret 8