joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007a08
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, eax
mov eax, dword [eax]
push esi
test eax, eax
je 0x1007a52
mov esi, eax
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 8]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1007a5a
test dx, dx
je 0x1007a44
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1007a5a
add eax, 4
add ecx, 4
test dx, dx
jne 0x1007a22
xor eax, eax
test eax, eax
jne 0x1007a61
mov eax, dword [ebx]
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
lea ecx, [eax + 2]
jmp 0x1007a6b
sbb eax, eax
sbb eax, 0xffffffff
jmp 0x1007a46
mov ebx, esi
mov esi, dword [ebx]
test esi, esi
je 0x1007a52
jmp 0x1007a1c
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1007a6b
sub eax, ecx
mov ecx, dword [0x1038030]
push edi
sar eax, 1
lea edi, [eax + eax + 2]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edx, [edi + 8]
push edx
add ecx, 0x280000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x1007abf
push dword [ebp + 0xc]
and dword [esi], 0
and dword [esi + 4], 0
push edi
lea eax, [esi + 8]
push eax
call fcn.010034fc
mov dword [ebx], esi
mov eax, esi
pop edi
jmp 0x1007a4c
Function at 0x1009787
Capabilities:
Query environment variable
Query or enumerate registry value
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov dword [ebp - 0x220], 0x1009918
mov dword [ebp - 0x21c], 0x10098fc
mov dword [ebp - 0x218], 0x10098dc
mov dword [ebp - 0x214], 0x10098b4
xor edi, edi
mov esi, dword [ebp + edi*8 - 0x21c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x1009835
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 2
push dword [ebp + edi*8 - 0x220]
mov dword [ebp - 0x210], 0x208
push 0x1009860
push 0x80000002
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x1009835
mov eax, dword [ebp - 0x210]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
inc edi
cmp edi, 2
jb 0x10097c8
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.0100993d
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010015a8
leave
ret

Function at 0x100993d
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
xor ebx, ebx
push 7
mov dword [ebp - 0x24], ebx
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp dword [eax + 0x200], ebx
jne 0x10099f2
cmp dword [eax + 0x1f8], ebx
jne 0x10099f2
mov edi, dword [ebp + 0xc]
xor eax, eax
push edi
push esi
mov word [esi], ax
mov word [esi + 2], ax
mov word [esi + 4], ax
mov word [esi + 6], ax
mov word [esi + 8], ax
mov word [esi + 0xa], ax
mov word [esi + 0xc], ax
push ebx
mov word [esi + edi*2 - 4], ax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x100ca32
cmp word [esi + edi*2 - 4], bx
jne 0x100ca40
cmp word [esi], 0x5c
je 0x100ca48
mov eax, ebx
lea eax, [esi + eax*2]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x20], 0x18
mov dword [ebp - 0x10], 0x64
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
cmp eax, 0xffffffff
je 0x100ca87
xor eax, eax
pop edi
mov word [esi], ax
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100cb3c
jmp 0x100ca93
push edi
push 0x100caf8
jmp 0x100ca93
cmp word [esi + 2], 0x3f
jne 0x10099c2
cmp word [esi + 4], 0x3f
jne 0x10099c2
cmp word [esi + 6], 0x5c
jne 0x10099c2
cmp word [esi + 0xa], 0x3a
jne 0x10099c2
cmp word [esi + 0xc], 0x5c
jne 0x10099c2
push 4
pop eax
jmp 0x10099c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100cab4
mov edi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 1
push 0x70
call edi
push 0x100ac30
push 1
push 0x70
call edi
add esp, 0x1c
jmp 0x10099f2
Function at 0x1009b1f
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1f8
mov eax, dword [0x1038008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
mov esi, 0xdc
push esi
lea eax, [ebp - 0x1e8]
push edi
push eax
mov dword [ebp - 0x1ec], edi
mov dword [ebp - 0x1f4], edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1e8]
push eax
push edi
mov ebx, 0x1009b98
mov dword [ebp - 0x1f0], edi
mov edi, dword [sym.imp.USER32.dll_EnumDisplaySettingsW]
push ebx
mov word [ebp - 0x1a4], si
call edi
test eax, eax
jne 0x100f974
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010015a8
leave
ret
mov esi, 0x8000
xor ecx, ecx
mov dword [ebp - 0x1f8], ecx
cmp dword [0x1038e6c], ecx
jbe 0x100f9e6
mov eax, dword [0x1038e48]
mov dx, word [ebp - 0x13c]
add eax, ecx
cmp dx, word [eax + 8]
jne 0x100f9cf
mov dx, word [ebp - 0x138]
cmp dx, word [eax + 0xa]
jne 0x100f9cf
test byte [ebp - 0x134], 4
je 0x100f9c2
test byte [eax], 1
je 0x100f9cf
or dword [eax], esi
inc dword [ebp - 0x1ec]
jmp 0x100f9cf
test byte [eax], 2
je 0x100f9cf
or dword [eax], esi
inc dword [ebp - 0x1f4]
inc dword [ebp - 0x1f8]
mov eax, dword [ebp - 0x1f8]
add ecx, 0x10
cmp eax, dword [0x1038e6c]
jb 0x100f989
inc dword [ebp - 0x1f0]
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1f0]
push ebx
call edi
test eax, eax
jne 0x100f979
cmp dword [ebp - 0x1ec], 2
jb 0x1009b86
xor edi, edi
xor ebx, ebx
inc edi
cmp dword [ebp - 0x1f4], ebx
jbe 0x100fa24
mov dword [0x1038f2c], edi
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, ebx
je 0x100fab2
cmp eax, esi
jae 0x100fab2
push 0x100fb44
sub esi, eax
push esi
lea eax, [ebp + eax - 0x10c]
push eax
call fcn.010227da
cmp eax, ebx
jge 0x100fa7b
push eax
push 0x10120ac
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push edi
push 0x70
call esi
push 0x100ac30
push edi
push 0x70
call esi
add esp, 0x1c
jmp 0x1009b86
push ebx
push ebx
push 3
push ebx
push edi
push 0x80000000
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x1038f24], eax
cmp eax, 0xffffffff
jne 0x100faab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100fb18
jmp 0x100fa5e
mov eax, edi
jmp 0x1009b88
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x100fad8
push edi
push 0x70
call esi
push 0x100ac30
push edi
push 0x70
call esi
add esp, 0x18
jmp 0x1009b86
Function at 0x1009e9a
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0xa4
xor ebx, ebx
call esi
mov edi, 0x8000
mov ecx, edi
test cx, ax
jne 0x100a3cd
push 0xa5
call esi
mov ecx, edi
test cx, ax
jne 0x100cb5b
push 0xa2
call esi
mov ecx, edi
test cx, ax
jne 0x100cb63
push 0xa3
call esi
mov ecx, edi
test cx, ax
jne 0x100cb6b
push 0x10
call esi
test di, ax
jne 0x100cb73
push 0x90
call esi
test al, 1
jne 0x100cb7b
push 0x91
call esi
test al, 1
jne 0x100cb83
push 0x14
call esi
test al, 1
jne 0x100cb8b
mov eax, dword [ebp + 8]
test eax, 0x1000000
jne 0x100b4b3
pop edi
and eax, 0x4000000
pop esi
or eax, ebx
pop ebx
pop ebp
ret 4
push 2
pop ebx
jmp 0x1009ec1
or ebx, 0x100
jmp 0x1009f3c
or ebx, 1
jmp 0x1009ed3
or ebx, 8
jmp 0x1009ee5
or ebx, 4
jmp 0x1009ef7
or ebx, 0x10
jmp 0x1009f04
or ebx, 0x20
jmp 0x1009f13
or ebx, 0x40
jmp 0x1009f22
or ebx, 0x80
jmp 0x1009f2e
Function at 0x100a218
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x100a265
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov dword [eax + 4], ecx
mov eax, dword [esi + 0x28]
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
test al, 2
jne 0x100c4db
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlDeleteCriticalSection]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
and dword [ebx + 0x10], 0
pop edi
pop esi
pop ebx
pop ebp
ret 4
push dword [esi + 0x34]
and eax, 0xfffffffd
mov dword [esi + 0x28], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
jmp 0x100a245
Function at 0x100a66f
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
push 0x14
pop ecx
lea eax, [esi + 1]
mul ecx
push edx
push eax
call fcn.01005077
test eax, eax
jl 0x100cdc5
mov eax, dword fs:[0x18]
mov ecx, dword [0x1038030]
mov eax, dword [eax + 0x30]
push edi
push dword [ebp - 4]
add ecx, 0x200000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0x100cdcf
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
push 0
push 1
lea eax, [ebp - 8]
push eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.0100a59b
mov ebx, eax
test ebx, ebx
jl 0x100cdd9
mov eax, dword [ebp - 8]
push dword [esi]
imul eax, eax, 0x14
add eax, edi
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 4]
add eax, edi
mov dword [esi + 0x18], eax
mov eax, dword fs:[0x18]
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], edi
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov dword [esi], edi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 8
mov eax, 0xc0000095
jmp 0x100a722
mov eax, 0xc0000017
jmp 0x100a721
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x100a71e

Function at 0x100b59d
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x1c], 0
push esi
je 0x100bc61
mov eax, 0xc0030001
pop esi
pop ebp
ret 0x18
mov ecx, dword [0x1038030]
push dword [ebp + 0x18]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
add ecx, 0x240000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
je 0x100cd64
push edi
push dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
cmp dword [ebp + 0x18], 0x64
jne 0x100bcb3
cmp dword [0x10383cc], edi
jne 0x100bcb3
mov dword [0x10383cc], esi
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0xc]
add eax, 0x1c
push dword [ebp + 0x10]
push eax
call fcn.0100bcd9
pop edi
test eax, eax
jne 0x100b5ad
jmp 0x100cd6e
mov eax, 0xc0000017
jmp 0x100b5b2
push esi
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [0x10383cc], 0
jmp 0x100cd64
Function at 0x100b708
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x2c]
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x100b71f
mov byte [eax], 0
mov eax, dword [ebp + 0x30]
cmp eax, esi
jne 0x1010242
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x100b734
mov byte [eax], 0
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x100b73d
mov dword [eax], esi
movzx edi, byte [ebp + 0x10]
xor ebx, ebx
inc ebx
mov dword [ebp + 0x34], ebx
push ebx
push dword [ebp + 0x28]
lea eax, [ebp + 0x34]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push ebx
push edi
push esi
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.0100b5bc
cmp eax, esi
jl 0x100b781
cmp dword [ebp + 0x34], esi
je 0x100b788
cmp word [ebp - 0x14], bx
jne 0x100b747
jmp 0x101024a
pop edi
pop esi
pop ebx
leave
ret 0x34
mov eax, 0xc0000001
jmp 0x100b781
mov byte [eax], 0
jmp 0x100b72a
cmp dword [ebp + 0x2c], esi
je 0x101025a
lea eax, [ebp - 0x10]
push eax
call fcn.01014324
jmp 0x101026c
cmp dword [ebp + 0x30], esi
je 0x101026a
lea eax, [ebp - 0x10]
push eax
call fcn.010142ce
jmp 0x101026c
xor eax, eax
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp - 4]
cmp ecx, esi
je 0x1010278
mov dword [ecx], edx
mov cx, word [ebp - 6]
cmp cx, si
je 0x10102e5
cmp eax, esi
jne 0x10102e5
cmp dword [ebp - 0x10], esi
jne 0x10102d4
cmp word [ebp - 0xa], 0x12
jne 0x100b747
test edx, 0x4000000
je 0x1010392
mov al, byte [0x1038415]
test al, al
je 0x1010346
mov dx, cx
shr dx, 8
test dl, dl
je 0x1010346
push 2
lea eax, [ebp + 0x10]
push eax
push dword [0x1038330]
mov byte [ebp + 0x10], dl
mov byte [ebp + 0x11], cl
jmp 0x1010370
cmp word [ebp - 0xa], 0x1b
je 0x10102e5
cmp cx, 0xa
jne 0x1010392
cmp dword [ebp - 0x10], esi
je 0x100b747
mov ecx, dword [ebp + 0x2c]
cmp ecx, esi
je 0x10102fd
cmp eax, esi
jne 0x101037d
mov ecx, dword [ebp + 0x30]
cmp ecx, esi
je 0x1010308
cmp eax, esi
jne 0x1010385
push esi
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
movzx cx, al
cmp cx, word [ebp - 0xa]
jne 0x100b747
mov ecx, dword [ebp - 4]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x1038e70]
test ecx, eax
je 0x100b747
not eax
and eax, ecx
test al, 0x1f
jne 0x100b747
jmp 0x101038e
mov edx, dword [0x1038330]
mov byte [ebp + 0x13], cl
test al, al
je 0x101036a
movsx ax, cl
movzx eax, ax
push eax
push edx
call fcn.010232b1
test eax, eax
je 0x101036a
mov edx, 0x4e4
push ebx
lea eax, [ebp + 0x13]
push eax
push edx
call fcn.01024167
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jmp 0x1010398
mov byte [ecx], bl
mov cx, word [ebp - 0xa]
jmp 0x1010392
movsx ax, byte [ebp - 0xa]
mov byte [ecx], bl
jmp 0x1010375
mov cx, word [ebp - 6]
mov eax, dword [ebp + 0xc]
mov word [eax], cx
xor eax, eax
jmp 0x100b781
Function at 0x1012cce
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
test byte [0x10382cc], 0x20
jne 0x1012e4f
push dword [0x1038260]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1012e4f
mov eax, dword [0x1038258]
test byte [eax], 1
push esi
push edi
je 0x1012d3a
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x1012e47
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
push eax
push edi
call fcn.01012935
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1012e47
push ebx
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1012e46
mov esi, dword [0x1038258]
push ebx
push ebx
push dword [esi + 0x50]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push dword [esi + 0x58]
mov eax, dword [esi + 0x40]
push eax
push dword [esi + 0x44]
push 4
push eax
push dword [0x1038268]
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x1012e3c
push dword [0x1038268]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1012e25
push dword [0x1038268]
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1012e1c
push dword [ebp - 8]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 4]
call edi
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call edi
mov edi, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [ebp - 0x10]
call edi
push 0xcc0020
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ebx
push ebx
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0x28]
push eax
push 0x18
push dword [ebp - 8]
call edi
push dword [esi + 0x58]
push dword [esi + 0x40]
push dword [esi + 0x44]
push dword [ebp - 0x20]
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_GetDIBits]
push dword [ebp - 0xc]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 8]
call dword [sym.imp.GDI32.dll_DeleteObject]
push ebx
push ebx
push dword [0x1038260]
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
push dword [esi + 0x50]
call dword [sym.imp.ntdll.dll_NtReleaseMutant]
pop ebx
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
leave
ret
Function at 0x10151cb
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x101533d
cmp word [ebx + 0x18], 0
je 0x101533d
mov cx, word [ebp + 0x10]
test cx, cx
jne 0x10151f9
xor eax, eax
jmp 0x1015342
cmp word [ebx + 0x10], 0
je 0x1015220
movsx eax, word [ebx + 0x12]
mov eax, dword [ebx + eax*4 + 0x28]
cmp word [eax], cx
jne 0x1015220
mov edi, dword [ebp + 0xc]
movzx ecx, cx
lea esi, [eax + 2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1015362
xor esi, esi
mov dword [ebp + 8], esi
cmp dword [ebp + 0x14], esi
je 0x1015252
movzx eax, word [ebx + 0x14]
push 1
push eax
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.01014a02
movzx eax, ax
cmp ax, 0xffff
je 0x1015252
push eax
push ebx
call fcn.010148b1
mov dword [ebp + 8], eax
movzx eax, word [ebx + 0x10]
movzx ecx, word [ebx + 0x18]
inc word [ebx + 0x12]
cmp ax, cx
jge 0x101526a
inc eax
mov word [ebx + 0x10], ax
jmp 0x10152ba
movzx eax, word [ebx + 0x12]
cmp ax, cx
jl 0x1015279
xor eax, eax
mov word [ebx + 0x12], ax
inc word [ebx + 0x16]
movzx eax, word [ebx + 0x16]
cmp ax, cx
jl 0x101528c
xor eax, eax
mov word [ebx + 0x16], ax
movsx eax, word [ebx + 0x12]
push dword [ebx + eax*4 + 0x28]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ax, word [ebx + 0x14]
cmp ax, word [ebx + 0x12]
jne 0x10152ba
mov eax, 0xffffffff
mov word [ebx + 0x14], ax
movzx eax, word [ebx + 0x14]
cmp ax, 0xffff
je 0x10152e1
mov cx, word [ebp + 0x10]
cwde
mov eax, dword [ebx + eax*4 + 0x28]
cmp word [eax], cx
jne 0x10152e1
mov edi, dword [ebp + 0xc]
movzx ecx, cx
lea esi, [eax + 2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10152e7
push ebx
call fcn.010151aa
movsx eax, word [ebx + 0x12]
lea esi, [ebx + eax*4 + 0x28]
mov eax, dword [ebp + 8]
test eax, eax
je 0x10152fa
mov dword [esi], eax
jmp 0x1015362
movzx edi, word [ebp + 0x10]
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
lea edx, [edi + 2]
push edx
add ecx, 0xc0000
push ecx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [esi], eax
test eax, eax
jne 0x1015349
cmp word [ebx + 0x12], ax
jg 0x1015335
mov ax, word [ebx + 0x10]
mov word [ebx + 0x12], ax
dec word [ebx + 0x12]
dec word [ebx + 0x10]
mov eax, 0xc0000017
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov cx, word [ebp + 0x10]
mov word [eax], cx
mov eax, dword [esi]
push edi
push dword [ebp + 0xc]
inc eax
inc eax
push eax
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
or dword [ebx + 8], 2
jmp 0x10151f2
Function at 0x10153ea
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x10153fb
xor eax, eax
jmp 0x101547a
push esi
push edi
mov edi, dword [ebp + 0xc]
push dword [ebp + 0x18]
movzx eax, di
shr eax, 4
xor esi, esi
inc eax
push eax
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x101546a
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x101546a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x101546a
and edi, 0xf
jmp 0x101543e
dec edi
lea eax, [eax + esi*2]
movzx esi, word [eax]
inc eax
inc eax
test edi, edi
jne 0x101543a
cmp dword [ebp + 0x14], edi
jne 0x1015450
mov dword [ebx], eax
jmp 0x1015476
dec dword [ebp + 0x14]
cmp esi, dword [ebp + 0x14]
jbe 0x101545b
mov esi, dword [ebp + 0x14]
lea ecx, [esi + esi]
push ecx
push eax
push ebx
call dword [sym.imp.msvcrt.dll_memmove]
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x1015476
xor eax, eax
mov word [ebx + esi*2], ax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x101568b
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x14
add ecx, 0x80000
push ecx
push dword [eax + 0x18]
call edi
mov esi, eax
test esi, esi
jne 0x10156c6
mov eax, 0xc0000017
jmp 0x1015798
movzx edx, word [ebp + 0x10]
mov ecx, dword [0x1038030]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edx
add ecx, 0x80000
push ecx
push dword [eax + 0x18]
mov dword [ebp - 4], edx
call edi
mov dword [esi + 0xc], eax
test eax, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
jne 0x1015707
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x10156bc
mov ecx, dword [0x1038030]
push ebx
movzx ebx, word [ebp + 0x18]
push ebx
add ecx, 0x80000
push ecx
push dword [eax + 0x18]
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x1015756
push dword [esi + 0xc]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
mov eax, 0xc0000017
jmp 0x1015797
push dword [ebp - 4]
mov ax, word [ebp + 0x10]
push dword [ebp + 0xc]
mov edi, dword [sym.imp.msvcrt.dll_memmove]
push dword [esi + 0xc]
mov word [esi + 8], ax
mov ax, word [ebp + 0x18]
mov word [esi + 0xa], ax
call edi
push ebx
push dword [ebp + 0x14]
push dword [esi + 0x10]
call edi
mov eax, dword [ebp + 8]
add eax, 0x10
mov ecx, dword [eax]
mov dword [esi + 4], eax
mov dword [esi], ecx
mov dword [ecx + 4], esi
add esp, 0x18
mov dword [eax], esi
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret 0x14
Function at 0x101581d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [ecx], eax
push edi
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [eax + 4], ecx
push dword [esi + 0xc]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
push dword [esi + 0x10]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0
push dword [eax + 0x18]
call edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push 0
push dword [eax + 0x18]
call edi
pop edi
xor eax, eax
pop esi
pop ebp
ret 4