joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10096f7
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], 0x1009888
mov dword [ebp - 0x21c], 0x100986c
mov dword [ebp - 0x218], 0x100984c
mov dword [ebp - 0x214], 0x1009824
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 0x10097a5
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 0x10097d0
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x10097a5
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 0x1009738
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.010098ad
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.010015a8
leave
ret

Function at 0x10098ad
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 0x1009962
cmp dword [eax + 0x1f8], ebx
jne 0x1009962
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 0x100c9aa
cmp word [esi + edi*2 - 4], bx
jne 0x100c9b8
cmp word [esi], 0x5c
je 0x100c9c0
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 0x100c9ff
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 0x100cab4
jmp 0x100ca0b
push edi
push 0x100ca70
jmp 0x100ca0b
cmp word [esi + 2], 0x3f
jne 0x1009932
cmp word [esi + 4], 0x3f
jne 0x1009932
cmp word [esi + 6], 0x5c
jne 0x1009932
cmp word [esi + 0xa], 0x3a
jne 0x1009932
cmp word [esi + 0xc], 0x5c
jne 0x1009932
push 4
pop eax
jmp 0x1009934
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100ca2c
mov edi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 1
push 0x70
call edi
push 0x100aba8
push 1
push 0x70
call edi
add esp, 0x1c
jmp 0x1009962
Function at 0x1009a8f
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, 0x1009b08
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 0x100f918
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 0x100f98a
mov eax, dword [0x1038e48]
mov dx, word [ebp - 0x13c]
add eax, ecx
cmp dx, word [eax + 8]
jne 0x100f973
mov dx, word [ebp - 0x138]
cmp dx, word [eax + 0xa]
jne 0x100f973
test byte [ebp - 0x134], 4
je 0x100f966
test byte [eax], 1
je 0x100f973
or dword [eax], esi
inc dword [ebp - 0x1ec]
jmp 0x100f973
test byte [eax], 2
je 0x100f973
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 0x100f92d
inc dword [ebp - 0x1f0]
lea eax, [ebp - 0x1e8]
push eax
push dword [ebp - 0x1f0]
push ebx
call edi
test eax, eax
jne 0x100f91d
cmp dword [ebp - 0x1ec], 2
jb 0x1009af6
xor edi, edi
xor ebx, ebx
inc edi
cmp dword [ebp - 0x1f4], ebx
jbe 0x100f9c8
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 0x100fa56
cmp eax, esi
jae 0x100fa56
push 0x100fae4
sub esi, eax
push esi
lea eax, [ebp + eax - 0x10c]
push eax
call fcn.01022802
cmp eax, ebx
jge 0x100fa1f
push eax
push 0x1012060
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push edi
push 0x70
call esi
push 0x100aba8
push edi
push 0x70
call esi
add esp, 0x1c
jmp 0x1009af6
push ebx
push ebx
push 3
push ebx
push edi
push SysAllocStringLen
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x1038f24], eax
cmp eax, 0xffffffff
jne 0x100fa4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100fab8
jmp 0x100fa02
mov eax, edi
jmp 0x1009af8
mov esi, dword [sym.imp.ntdll.dll_DbgPrintEx]
push 0x100fa78
push edi
push 0x70
call esi
push 0x100aba8
push edi
push 0x70
call esi
add esp, 0x18
jmp 0x1009af6
Function at 0x1009e0a
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 0x100a33d
push 0xa5
call esi
mov ecx, edi
test cx, ax
jne 0x100cad3
push 0xa2
call esi
mov ecx, edi
test cx, ax
jne 0x100cadb
push 0xa3
call esi
mov ecx, edi
test cx, ax
jne 0x100cae3
push 0x10
call esi
test di, ax
jne 0x100caeb
push 0x90
call esi
test al, 1
jne 0x100caf3
push 0x91
call esi
test al, 1
jne 0x100cafb
push 0x14
call esi
test al, 1
jne 0x100cb03
mov eax, dword [ebp + 8]
test eax, 0x1000000
jne 0x100b42b
pop edi
and eax, 0x4000000
pop esi
or eax, ebx
pop ebx
pop ebp
ret 4
push 2
pop ebx
jmp 0x1009e31
or ebx, 0x100
jmp 0x1009eac
or ebx, 1
jmp 0x1009e43
or ebx, 8
jmp 0x1009e55
or ebx, 4
jmp 0x1009e67
or ebx, 0x10
jmp 0x1009e74
or ebx, 0x20
jmp 0x1009e83
or ebx, 0x40
jmp 0x1009e92
or ebx, 0x80
jmp 0x1009e9e
Function at 0x100a188
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 0x100a1d5
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 0x100c453
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 0x100a1b5
Function at 0x100a5df
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 0x100cd45
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 0x100cd4f
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.0100a50b
mov ebx, eax
test ebx, ebx
jl 0x100cd59
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 0x100a692
mov eax, 0xc0000017
jmp 0x100a691
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 0x100a68e

Function at 0x100b515
Capabilities:
Get number of processors

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x1c], 0
push esi
je 0x100bbd9
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 0x100cce4
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 0x100bc2b
cmp dword [0x10383cc], edi
jne 0x100bc2b
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.0100bc51
pop edi
test eax, eax
jne 0x100b525
jmp 0x100ccee
mov eax, 0xc0000017
jmp 0x100b52a
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 0x100cce4
Function at 0x100b680
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 0x100b697
mov byte [eax], 0
mov eax, dword [ebp + 0x30]
cmp eax, esi
jne 0x10101f6
mov eax, dword [ebp + 0x34]
cmp eax, esi
je 0x100b6ac
mov byte [eax], 0
mov eax, dword [ebp + 0x38]
cmp eax, esi
je 0x100b6b5
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.0100b534
cmp eax, esi
jl 0x100b6f9
cmp dword [ebp + 0x34], esi
je 0x100b700
cmp word [ebp - 0x14], bx
jne 0x100b6bf
jmp 0x10101fe
pop edi
pop esi
pop ebx
leave
ret 0x34
mov eax, 0xc0000001
jmp 0x100b6f9
mov byte [eax], 0
jmp 0x100b6a2
cmp dword [ebp + 0x2c], esi
je 0x101020e
lea eax, [ebp - 0x10]
push eax
call fcn.010142dc
jmp 0x1010220
cmp dword [ebp + 0x30], esi
je 0x101021e
lea eax, [ebp - 0x10]
push eax
call fcn.01014286
jmp 0x1010220
xor eax, eax
mov ecx, dword [ebp + 0x38]
mov edx, dword [ebp - 4]
cmp ecx, esi
je 0x101022c
mov dword [ecx], edx
mov cx, word [ebp - 6]
cmp cx, si
je 0x1010299
cmp eax, esi
jne 0x1010299
cmp dword [ebp - 0x10], esi
jne 0x1010288
cmp word [ebp - 0xa], 0x12
jne 0x100b6bf
test edx, 0x4000000
je 0x1010346
mov al, byte [0x1038415]
test al, al
je 0x10102fa
mov dx, cx
shr dx, 8
test dl, dl
je 0x10102fa
push 2
lea eax, [ebp + 0x10]
push eax
push dword [0x1038330]
mov byte [ebp + 0x10], dl
mov byte [ebp + 0x11], cl
jmp 0x1010324
cmp word [ebp - 0xa], 0x1b
je 0x1010299
cmp cx, 0xa
jne 0x1010346
cmp dword [ebp - 0x10], esi
je 0x100b6bf
mov ecx, dword [ebp + 0x2c]
cmp ecx, esi
je 0x10102b1
cmp eax, esi
jne 0x1010331
mov ecx, dword [ebp + 0x30]
cmp ecx, esi
je 0x10102bc
cmp eax, esi
jne 0x1010339
push esi
call dword [sym.imp.USER32.dll_VkKeyScanW]
movzx eax, ax
movzx cx, al
cmp cx, word [ebp - 0xa]
jne 0x100b6bf
mov ecx, dword [ebp - 4]
shr eax, 8
movzx eax, al
mov eax, dword [eax*4 + 0x1038e70]
test ecx, eax
je 0x100b6bf
not eax
and eax, ecx
test al, 0x1f
jne 0x100b6bf
jmp 0x1010342
mov edx, dword [0x1038330]
mov byte [ebp + 0x13], cl
test al, al
je 0x101031e
movsx ax, cl
movzx eax, ax
push eax
push edx
call fcn.010232d9
test eax, eax
je 0x101031e
mov edx, 0x4e4
push ebx
lea eax, [ebp + 0x13]
push eax
push edx
call fcn.0102418f
mov ecx, dword [ebp + 0xc]
mov word [ecx], ax
jmp 0x101034c
mov byte [ecx], bl
mov cx, word [ebp - 0xa]
jmp 0x1010346
movsx ax, byte [ebp - 0xa]
mov byte [ecx], bl
jmp 0x1010329
mov cx, word [ebp - 6]
mov eax, dword [ebp + 0xc]
mov word [eax], cx
xor eax, eax
jmp 0x100b6f9
Function at 0x1012c86
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
test byte [0x10382cc], 0x20
jne 0x1012e07
push dword [0x1038260]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1012e07
mov eax, dword [0x1038258]
test byte [eax], 1
push esi
push edi
je 0x1012cf2
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x1012dff
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.010128ed
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x1012dff
push ebx
push 2
call dword [sym.imp.USER32.dll_GetClipboardData]
xor ebx, ebx
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x1012dfe
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 0x1012df4
push dword [0x1038268]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
call edi
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x1012ddd
push dword [0x1038268]
call edi
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1012dd4
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 0x1015183
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 0x10152f5
cmp word [ebx + 0x18], 0
je 0x10152f5
mov cx, word [ebp + 0x10]
test cx, cx
jne 0x10151b1
xor eax, eax
jmp 0x10152fa
cmp word [ebx + 0x10], 0
je 0x10151d8
movsx eax, word [ebx + 0x12]
mov eax, dword [ebx + eax*4 + 0x28]
cmp word [eax], cx
jne 0x10151d8
mov edi, dword [ebp + 0xc]
movzx ecx, cx
lea esi, [eax + 2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x101531a
xor esi, esi
mov dword [ebp + 8], esi
cmp dword [ebp + 0x14], esi
je 0x101520a
movzx eax, word [ebx + 0x14]
push 1
push eax
movzx eax, word [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push ebx
call fcn.010149ba
movzx eax, ax
cmp ax, 0xffff
je 0x101520a
push eax
push ebx
call fcn.01014869
mov dword [ebp + 8], eax
movzx eax, word [ebx + 0x10]
movzx ecx, word [ebx + 0x18]
inc word [ebx + 0x12]
cmp ax, cx
jge 0x1015222
inc eax
mov word [ebx + 0x10], ax
jmp 0x1015272
movzx eax, word [ebx + 0x12]
cmp ax, cx
jl 0x1015231
xor eax, eax
mov word [ebx + 0x12], ax
inc word [ebx + 0x16]
movzx eax, word [ebx + 0x16]
cmp ax, cx
jl 0x1015244
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 0x1015272
mov eax, 0xffffffff
mov word [ebx + 0x14], ax
movzx eax, word [ebx + 0x14]
cmp ax, 0xffff
je 0x1015299
mov cx, word [ebp + 0x10]
cwde
mov eax, dword [ebx + eax*4 + 0x28]
cmp word [eax], cx
jne 0x1015299
mov edi, dword [ebp + 0xc]
movzx ecx, cx
lea esi, [eax + 2]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x101529f
push ebx
call fcn.01015162
movsx eax, word [ebx + 0x12]
lea esi, [ebx + eax*4 + 0x28]
mov eax, dword [ebp + 8]
test eax, eax
je 0x10152b2
mov dword [esi], eax
jmp 0x101531a
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 0x1015301
cmp word [ebx + 0x12], ax
jg 0x10152ed
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 0x10151aa
Function at 0x10153a2
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 0x10153b3
xor eax, eax
jmp 0x1015432
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 0x1015422
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1015422
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1015422
and edi, 0xf
jmp 0x10153f6
dec edi
lea eax, [eax + esi*2]
movzx esi, word [eax]
inc eax
inc eax
test edi, edi
jne 0x10153f2
cmp dword [ebp + 0x14], edi
jne 0x1015408
mov dword [ebx], eax
jmp 0x101542e
dec dword [ebp + 0x14]
cmp esi, dword [ebp + 0x14]
jbe 0x1015413
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 0x101542e
xor eax, eax
mov word [ebx + esi*2], ax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x1015643
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 0x101567e
mov eax, 0xc0000017
jmp 0x1015750
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 0x10156bf
push esi
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x1015674
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 0x101570e
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 0x101574f
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 0x10157d5
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
Function at 0x101aee0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101af1f
cmp dword [ebp - 8], 2
jne 0x101af1f
movzx eax, word [ebp - 4]
push 1
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101af1f
inc esi
mov eax, esi
pop esi
leave
ret 4

Function at 0x101af2b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101af71
cmp dword [ebp - 4], 4
jne 0x101af71
mov eax, dword [ebp - 8]
cmp eax, 4
jbe 0x101af71
push 1
push esi
add eax, 0xfffffffc
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101af71
inc esi
mov eax, esi
pop esi
leave
ret 4

Function at 0x101af7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x101afd3
cmp dword [ebp - 8], 2
jne 0x101afd3
mov eax, 0x104
cmp word [ebp - 4], ax
ja 0x101afd3
movzx ecx, word [ebp - 4]
xor eax, eax
cmp dword [ebp + 0xc], esi
push 1
setne al
push esi
inc eax
imul eax, ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x101afd3
inc esi
mov eax, esi
pop esi
leave
ret 8