joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x41111b]
shl eax, 2
mov dword [0x41111f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00406990
pop edx
call fcn.00405d2c
call fcn.00406994
push 0
call fcn.00407640
pop ecx
push 0x4110c4
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x411123], eax
push 0
jmp fcn.0040e224

Function at 0x40583b
Capabilities:
Encode data using xor

Disassembly:
sbb eax, 0x2a7cd40d
rcl ecx, cl
mov dh, 0xdf
pop edi
not bh
dec ecx
cmp edx, dword [ebp - 0x48cdecff]
fbld tbyte [edi]
test bl, al
lcall 0x54, 0x59ded66d
adc al, 0xa3
mov eax, 0x83f469b3
xor dword [ebp - 0x60b9ce34], esi
push ecx
nop
out dx, al
sub al, 0xe2
movq mm2, qword [edi + 0x2c]
cmpsd dword [esi], dword es:[edi]
mov ecx, 0x8cf3966b
loopne 0x4057ed
mov esp, 0xbabfeadd
mov ah, 0xd0
sbb byte [edx + 0x38], ch
sbb cl, byte [edx]
jle 0x405824
mov cl, 0x9a
and al, byte [edi - 0x765880e1]
sbb byte [eax - 0x4a], bl
ret
push ebx
pushal
in eax, 0x23
ror byte [ebp + 0x14], 0x59
das
mov dword [0xdad6db4f], eax
pop ss
jl 0x4057e3
shrd eax, ecx, cl
invalid

Function at 0x406684
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x1004c83
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01002df0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1004ce9
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10062b8]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1004ced
xor eax, eax
jmp 0x1004cfa
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4059f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426d76
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x45190c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0x428da8
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x10], edx
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov dword [ebx + 0x24], edx
mov dword [ebx + 0x28], edx
or dword [ebx + 0x2c], 0xffffffff
mov dword [ebx + 0x30], edx
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], edx
mov dword [ebx + 0x48], edx
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x60], ecx
mov eax, dword [ecx + 4]
and dword [ebx + 0x8c], 0xffffffc0
and byte [ebx + 0x91], 0x80
or dword [ebx + 0x94], 0xffffffff
or dword [ebx + 0x98], 0xffffffff
mov dword [ebx + 0x64], eax
xor eax, eax
inc eax
mov dword [ebx + 0x68], edx
mov dword [ebx + 0x6c], edx
mov dword [ebx + 0x70], edx
mov dword [ebx + 0x74], edx
mov byte [ebx + 0x90], 0x4f
mov dword [ebx + 0x9c], eax
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], edx
mov dword [ebx + 0xa8], edx
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x405acb
mov eax, dword [ecx + 0x24]
mov dword [ebx + 0x78], eax
mov dword [ecx + 0x24], ebx
mov eax, dword [ebx + 0x5c]
lea edi, [ebx + 0x58]
push 1
push edx
push edi
mov dword [eax + 4], ebx
lea esi, [ebx + 0x54]
mov ecx, dword [ebx + 0x60]
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x18]
push 4
push dword [esi]
mov esi, dword [0x4280f8]
push 6
call esi
push 8
push dword [edi]
mov dword [ebx + 0x7c], eax
push 2
call esi
mov ecx, dword [ebx + 0x7c]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x88], eax
mov eax, ebx
mov dword [ebx + 0x84], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x417c8f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426234]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040d584
mov dword [ebp - 0x14], eax
cmp dword [0x4288c8], esi
jne 0x417d82
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x417d0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x417e62
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x417e62
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x417e62
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4288c8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4288cc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4288d0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4288d8], eax
test eax, eax
je 0x417d7f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4288d4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x417da7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x417d9a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x417dbc
push 4
pop eax
jmp 0x417e64
cmp dword [ebp - 0x14], esi
je 0x417dbc
push dword [0x4288c8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x417da1
mov eax, dword [0x4288d4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x417e1a
cmp dword [0x4288d8], edi
je 0x417e1a
push eax
call ebx
push dword [0x4288d8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x417e1a
test eax, eax
je 0x417e1a
call ecx
test eax, eax
je 0x417e0f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x417e0f
test byte [ebp - 8], 1
jne 0x417e1a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x417e4a
mov eax, dword [0x4288cc]
cmp eax, edi
je 0x417e47
push eax
call ebx
test eax, eax
je 0x417e47
call eax
mov esi, eax
test esi, esi
je 0x417e47
mov eax, dword [0x4288d0]
cmp eax, edi
je 0x417e47
push eax
call ebx
test eax, eax
je 0x417e47
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4288c8]
call ebx
test eax, eax
je 0x417e62
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x417e64
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ba4c
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x4096519f
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xf772142
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10001d70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x10001da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10001d96
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10008f20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002564d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1003300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x10008f89
mov dword [ebp - 4], eax
call fcn.10001d70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x10001da0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10008fab
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
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 0x1000bd60
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10025dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push esi
mov eax, dword [0x1003300c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x80000
mov dword [0x10034c40], 0x1002d7cc
mov dword [0x10034c48], 0x1002d924
push 0
mov dword [ebp - 0x14], 0x10034c40
mov dword [0x10034c5c], 1
mov dword [0x10034c58], 0x100
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
test ecx, ecx
je 0x1000bff8
lea eax, [ecx + 0x80000]
mov dword [0x10034c54], ecx
mov dword [0x10034c50], eax
mov edx, 0x7ff
mov eax, dword [0x10034c58]
mov dword [0x10034c4c], ecx
add eax, ecx
mov dword [ecx], eax
mov eax, dword [0x10034c58]
add ecx, eax
sub edx, 1
jne 0x1000bdf4
mov dword [ecx], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 0x10034c60
mov dword [ebp - 0x18], 0x10034c60
mov dword [ebp - 0x1c], 0x10034c60
mov dword [0x10034c60], 0x1002ce84
mov dword [0x10034c64], edx
mov dword [0x10034c68], edx
mov byte [ebp - 4], 1
mov dword [0x10034c60], 0x1002cfb8
mov dword [0x10034c6c], edx
mov dword [0x10034c74], edx
mov dword [0x10034c70], edx
mov dword [0x10034c78], 0x40
mov byte [ebp - 4], 2
mov dword [0x10034c78], 0x80
mov byte [ebp - 4], 5
mov dword [0x10034c7c], edx
mov byte [ebp - 4], 6
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10034c90
mov dword [ebp - 0x20], 0x10034c90
call esi
mov byte [ebp - 4], 7
mov dword [0x10034ca8], 0
mov byte [ebp - 4], 8
push 0x10034cb4
mov dword [ebp - 0x24], 0x10034cb4
call esi
mov byte [ebp - 4], 9
mov dword [0x10034ccc], 0x3e8
mov dword [ebp - 0x28], 0x10034ce0
mov dword [ebp - 0x2c], 0x10034ce0
mov dword [0x10034ce0], 0x1002ce84
mov dword [0x10034ce4], 0
mov dword [0x10034ce8], 0
mov byte [ebp - 4], 0xa
mov dword [0x10034ce0], 0x1002cfb8
mov dword [0x10034cec], 0
mov dword [0x10034cf4], 0
mov dword [0x10034cf0], 0
mov dword [0x10034cf8], 0x40
mov byte [ebp - 4], 0xb
mov dword [0x10034cf8], 0x80
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x3c]
mov dword [0x10034cd4], 0x3e80
mov dword [0x10034cd8], 1
mov dword [0x10034cdc], 0
lea eax, [eax*2 + 2]
mov dword [0x10034cd0], eax
mov byte [ebp - 4], 0xe
push 0x10034cfc
call esi
mov byte [ebp - 4], 0xf
push ecx
mov ecx, 0x10034d14
call fcn.1000b540
mov byte [ebp - 4], 0x10
mov dword [0x10034c80], 0
mov dword [0x10034d3c], 0
movsd xmm0, qword [0x1002de10]
movsd qword [0x10034c88], xmm0
xorps xmm0, xmm0
mov dword [0x10034d40], 0
mov dword [0x10034d44], 0
mov dword [0x10034d48], 0
mov dword [0x10034c84], 0
movq qword [0x10034cac], xmm0
mov dword [ebp - 4], 0xffffffff
mov eax, 0x10034c40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
call fcn.10015c6a
int3
Function at 0x1000ca70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esi + 0x14], 0
test ebx, ebx
jne 0x1000ca8f
pop esi
lea eax, [ebx + 1]
pop ebx
pop ebp
ret 0xc
mov eax, dword [ecx]
push edi
xor edi, edi
call dword [eax]
push dword [ebp + 0x10]
mov ecx, eax
movzx eax, bx
push eax
push ecx
mov dword [ebp + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x1000cb65
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x1000cb65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1000cb5c
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [esi + 0x14], 0
cmp dword [esi + 0x10], edi
jl 0x1000cb40
cmp edi, 1
jne 0x1000cb05
mov eax, dword [esi + 0xc]
mov cl, byte [ebx]
mov byte [eax], cl
inc dword [esi + 0x14]
jmp 0x1000cb57
cmp edi, 2
jne 0x1000cb18
mov eax, dword [esi + 0xc]
movzx ecx, word [ebx]
mov word [eax], cx
add dword [esi + 0x14], edi
jmp 0x1000cb57
cmp edi, 4
jne 0x1000cb29
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov dword [eax], ecx
add dword [esi + 0x14], edi
jmp 0x1000cb57
cmp edi, 8
jne 0x1000cb40
mov eax, dword [esi + 0xc]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [eax], ecx
mov dword [eax + 4], edx
add dword [esi + 0x14], edi
jmp 0x1000cb57
test edi, edi
jle 0x1000cb57
push edi
mov ecx, esi
call fcn.1000db10
push edi
push ebx
push eax
call fcn.10013970
add esp, 0xc
mov edi, 1
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1000f290
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10026260
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x1003300c]
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, ecx
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x224]
mov edi, dword [eax + 4]
push edx
or edi, 0x2001f
mov dword [ebp - 0x224], 0
push edi
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
test esi, esi
jne 0x1000f41b
mov eax, dword [ebp - 0x21c]
xor esi, esi
test eax, eax
je 0x1000f345
push eax
call ebx
mov esi, eax
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x224]
and edi, 0x300
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], edi
test esi, esi
jne 0x1000f41b
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x234]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x220], 0x100
push ecx
lea ecx, [ebp - 0x210]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x1000f3e7
nop
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x21c]
call fcn.1000f290
mov esi, eax
test esi, esi
jne 0x1000f41b
lea eax, [ebp - 0x234]
mov dword [ebp - 0x220], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 0x21c]
call edi
test eax, eax
je 0x1000f3a0
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1000f3fe
push eax
call ebx
mov dword [ebp - 0x21c], 0
push dword [ebp - 0x228]
mov ecx, dword [ebp - 0x22c]
mov dword [ebp - 0x218], 0
call fcn.1000f1b0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x1000f439
push eax
call ebx
mov dword [ebp - 0x21c], 0
mov eax, esi
mov dword [ebp - 0x218], 0
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.10012255
mov esp, ebp
pop ebp
ret 4
Function at 0x1000fb40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100263cb
mov eax, dword fs:[0]
push eax
sub esp, 0x42c
mov eax, dword [0x1003300c]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov byte [ebp - 4], 1
push 0x60
push 0
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x1000fbec
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x1000fbec
call fcn.1000ef30
mov edi, eax
jmp 0x1000fd21
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1000fc0f
call fcn.1000ef30
jmp 0x1000fd14
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1000fc2d
call fcn.1000ef30
jmp 0x1000fd14
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x1000fc4e
mov edi, 0x8007000e
jmp 0x1000fd16
mov byte [ebp - 4], 2
mov ecx, 2
mul ecx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], edx
test edx, edx
ja 0x1000fd65
jb 0x1000fc78
cmp eax, 0xffffffff
ja 0x1000fd65
cmp eax, 0x400
jbe 0x1000fc94
push eax
lea ecx, [ebp - 0x418]
call fcn.10012180
mov dword [ebp - 4], 1
jmp 0x1000fcc8
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x1000fcc8
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1000fcd9
mov edi, 0x8007000e
jmp 0x1000fd16
push edi
push eax
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x1000fcf4
call fcn.1000ef30
jmp 0x1000fd14
xor edx, edx
mov eax, dword [ebp - 0x418]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.10010970
mov edi, eax
test esi, esi
je 0x1000fd21
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], 0
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1000fd3e
lea ecx, [ebp - 0x418]
call fcn.10012170
mov dword [ebp - 4], 0xffffffff
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 - 0x14]
xor ecx, ebp
call fcn.10012255
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.10009710
int3
Function at 0x1001d1a6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a028
push 0x1002a020
push str.FlsAlloc
push 0x1e
call fcn.1001d0c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d1da
push dword [ebp + 8]
mov ecx, esi
call dword [0x100272b0]
call esi
jmp 0x1001d1e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d224
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002a038
push 0x1002a030
push str.FlsGetValue
push 0x20
call fcn.1001d0c4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d25b
push dword [ebp + 8]
mov ecx, esi
call dword [0x100272b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001e897
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001e934
push ebx
push esi
call fcn.1001e860
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001e7a9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001e8e1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e933
push edi
push eax
call fcn.1001c11b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001e901
call fcn.10019ff5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001e932
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001e7a9
add esp, 0x20
test eax, eax
jne 0x1001e920
push edi
call fcn.10019ff5
jmp 0x1001e928
push ebx
call fcn.10019ff5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x102f7058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x102f71a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x102f707e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102f706a
add dl, dl
jne 0x102f7089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102f70dc
xor eax, eax
add dl, dl
jne 0x102f7096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x102f717d
add dl, dl
jne 0x102f70a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102f70b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102f70bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102f70c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x102f70d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x102f7075
mov eax, 1
add dl, dl
jne 0x102f70ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x102f70f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102f70e1
sub eax, ebx
mov ebx, 1
jne 0x102f7128
mov ecx, 1
add dl, dl
jne 0x102f710e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102f7119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102f7105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102f7075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x102f713f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x102f714a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x102f7136
cmp eax, 0x7d00
jae 0x102f716d
cmp eax, 0x500
jb 0x102f7168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102f7075
cmp eax, 0x7f
ja 0x102f7170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x102f7075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x102f719e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x102f7075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10