joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47cac0
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x1c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll__fileno_1
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll__read
mov ebp, eax
cmp eax, 0xffffffff
je 0x47cb00
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x47cad1
add esp, 0x1c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret 8

Function at 0x48e640
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ecx + 4]
test eax, eax
je 0x48e660
mov edx, dword [ecx]
mov dword [esp], edx
call eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, dword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea esi, [esp + 0x1c]
nop
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [edi + 8]
mov dword [esp], eax
call sub.msvcrt.dll__read
test eax, eax
jle 0x48e6a0
add esi, eax
sub ebx, eax
jne 0x48e670
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 0xffffffff
jne 0x48e6ac
call ebp
cmp dword [eax], 4
je 0x48e670
mov dword [esp], str.random_device_could_not_be_read
call fcn.004b5410
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 4]
mov dword [ecx], fcn.0048e890
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, dword [eax - 4]
test eax, eax
mov eax, dword [ecx + 4]
jg 0x48e6e8
mov dword [eax - 4], 1
ret 4
lock add dword [eax - 4], 1
ret 4
Function at 0x4b4080
Capabilities:
Acquire debug privileges
Get memory capacity
Get system information on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea ebx, [ebp - 0x58]
push ecx
sub esp, 0x78
mov edi, dword [ecx + 4]
call fcn.0040dfd0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp], 0
call esi
sub esp, 4
mov dword [esp], 1
call esi
sub esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x64]
mov dword [esp + 4], 0x28
mov dword [esp + 8], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0x60]
sub esp, 0xc
mov dword [esp + 8], eax
mov dword [esp + 4], str.SeDebugPrivilege
mov dword [esp], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x58], 1
sub esp, 0xc
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x54], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov eax, dword [ebp - 0x64]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], 1
call esi
mov esi, dword [edi]
sub esp, 4
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp + 8], esi
mov ecx, 0x51707c
mov dword [esp + 0xc], eax
mov eax, dword [0x517080]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0049ddb0
mov edx, 0x6dd
mov dword [ebp - 0x58], 0x40
sub esp, 0x10
mov word [0x5170ac], dx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
sub esp, 4
shrd eax, edx, 0x14
cmp eax, 0x7ff
ja 0x4b41d4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push eax
cmp dword [ebp - 0x44], 1
jbe 0x4b420c
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call fcn.004037c0
mov dword [esp + 0xc], 0
mov dword [esp + 8], str.Ero:
mov dword [esp + 4], str.Wrod_2019
mov dword [esp], 0
call dword [sym.imp.USER32.dll_MessageBoxA]
sub esp, 0x10
call fcn.00402f40
lea esp, [ebp - 0x10]
xor eax, eax
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
Function at 0x408927
Capabilities:
Encode data using xor

Disassembly:
mov edi, reloc.ntdsapi.dll_DsBindA
sub edx, eax
call fcn.00408964
sub edx, 0x62dddae3
add edx, 0x909c1db1
xor dword [esi], edi
add eax, 0xe46524a
and edx, edx
inc esi
add eax, 0x2aa4d9c8
cmp esi, ecx
jne fcn.00408927
inc edx
sub eax, eax
ret
Function at 0x10001020
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1000f570]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push edi
push str.CreateEventW
push 0x1000e82c
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov al, byte [eax]
cmp al, 0xe8
je 0x1000110c
cmp al, 0xe9
je 0x1000110c
cmp al, 0xeb
je 0x1000110c
mov eax, dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov al, byte [eax]
cmp al, 0xe8
je 0x1000110c
cmp al, 0xe9
je 0x1000110c
cmp al, 0xeb
je 0x1000110c
mov ecx, dword [ebp + 8]
push 0
mov dword [0x10010cfc], ecx
call esi
cmp byte [eax + 0xe367], 0x8b
lea esi, [eax + 0xe367]
jne 0x1000110c
cmp byte [esi + 1], 0xf8
jne 0x1000110c
push ebx
mov ebx, section..text
lea edx, [ebp - 0x14]
sub ebx, esi
push edx
sub ebx, 5
push 0x1000e840
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x74726956
mov dword [ebp - 0x10], 0x506c6175
mov dword [ebp - 0xc], 0x65746f72
mov word [ebp - 8], 0x7463
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
push 0x40
push 5
push esi
call eax
test eax, eax
je 0x1000110b
mov dl, byte [ebp - 0x16]
mov al, byte [ebp - 0x15]
mov byte [esi], 0xe8
mov byte [esi + 1], bl
mov byte [esi + 2], bh
mov byte [esi + 3], dl
mov byte [esi + 4], al
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.10008acb
mov esp, ebp
pop ebp
ret 4

Function at 0x10008acb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000f570]
jne 0x10008ad5
repz ret
jmp fcn.10008d57
Function at 0x1000c8ba
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1000f570]
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.10008e5d
and dword [ebp - 0x14], 0
cmp dword [0x10010ce4], 0
mov dword [ebp - 0x18], eax
jne 0x1000c96d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1000ca15
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1000ca15
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10010ce4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10010ce8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10010cec], eax
call edi
push eax
call esi
mov dword [0x10010cf4], eax
test eax, eax
je 0x1000c96d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10010cf0], eax
mov eax, dword [0x10010cf0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1000c9c6
cmp dword [0x10010cf4], ecx
je 0x1000c9c6
push eax
call esi
push dword [0x10010cf4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1000c9c6
test ebx, ebx
je 0x1000c9c6
call edi
test eax, eax
je 0x1000c9bd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000c9bd
test byte [ebp - 8], 1
jne 0x1000c9c6
or dword [ebp + 0x10], 0x200000
jmp 0x1000c9f9
mov eax, dword [0x10010ce8]
cmp eax, dword [ebp - 0x18]
je 0x1000c9f9
push eax
call esi
test eax, eax
je 0x1000c9f9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1000c9f9
mov eax, dword [0x10010cec]
cmp eax, dword [ebp - 0x18]
je 0x1000c9f9
push eax
call esi
test eax, eax
je 0x1000c9f9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10010ce4]
call esi
test eax, eax
je 0x1000ca15
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1000ca17
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008acb
leave
ret
Function at 0x10001be0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10160580]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x11c], 0x5c
mov byte [ebp - 0x11b], 0x5a
mov byte [ebp - 0x11a], 0x50
mov byte [ebp - 0x119], 0x2e
mov byte [ebp - 0x118], 0x54
mov byte [ebp - 0x117], 0x58
mov byte [ebp - 0x116], 0x54
mov byte [ebp - 0x115], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.100f5ab0
add esp, 8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x10001d09
push 0
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
push eax
call fcn.10002264
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x124], 0
push 0
lea edx, [ebp - 0x124]
push edx
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x120], 0
je 0x10001d09
mov eax, dword [ebp - 0x120]
push eax
call fcn.10001070
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f5b98
mov esp, ebp
pop ebp
ret

Function at 0x10001d20
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x10160580]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x10161a58], 0
jne 0x10001d4d
call fcn.10001ef0
test eax, eax
jne 0x10001d4d
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x10161a58]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10001dd3
mov edx, dword [ebp + 8]
shr edx, 0x10
and edx, 0xffff
movzx eax, dx
test eax, eax
jne 0x10001d9c
mov ecx, dword [ebp + 8]
push ecx
push 0x1011acb0
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x220]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x1011acb4
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x10
push 0x1011ace0
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0xfffffffffffffffe
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100f5b98
mov esp, ebp
pop ebp
ret 4
Function at 0x1001484c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x10014893
call fcn.10006544
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10014893
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x100148af
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.1001434c
mov esi, eax
test edi, edi
je 0x100148ad
test ebx, ebx
je 0x100148ad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10014c8e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10116932
call fcn.100f6410
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x10014cb3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10014d05
call fcn.10009d0a
push eax
lea ecx, [ebp - 0x10]
call fcn.10002fd7
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.100f8c28
push eax
call fcn.100023ac
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10002887
mov eax, esi
call fcn.100f64e8
ret 8

Function at 0x1003f131
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.10006544
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1003f16a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.1003ed6e
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1003f1c8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x1003f1ec
cmp dword [edi + 0x74], 0
jne 0x1003f1ec
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.10006544
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1003f189
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x100411d5
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.10040e79
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x1004121f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10009c0b
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004df3
jmp 0x1004122a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10008efb
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10041230
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.10014958
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x1004126d
call fcn.10040e79
mov dword [esi + 0xc], 1
jmp 0x10041272
call fcn.10040e79
cmp dword [esi], 0
je 0x100412bb
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x10041293
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10009c0b
jmp 0x100412a5
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.1000317f
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10004df3
jmp 0x100412df
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x100412df
push dword [esi]
push dword [ebp + 8]
call fcn.10008efb
pop esi
pop ebp
ret 0xc

Function at 0x1007087e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x10070898
call fcn.10006544
mov esi, dword [eax + 0xc]
push dword [0x10165718]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100708b6
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x100708ae
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x100708e3
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x100708b0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.100707ac
mov esi, eax
jmp 0x100708d5

Function at 0x100bb802
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.100f013a
call fcn.10005f75
cmp dword [eax + 0x14], 0
jne 0x100bb81f
mov ecx, esi
pop esi
jmp fcn.100bb307
pop esi
ret
Function at 0x100be9ee
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.10065a25
call fcn.10005f75
cmp dword [eax + 0x14], 0
jne 0x100bea0b
mov ecx, esi
pop esi
jmp fcn.100be3c1
pop esi
ret

Function at 0x100d124b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x100d1263
mov edi, dword [esi + 0xc]
jmp 0x100d12a3
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100d127c
call fcn.10007be8
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x100d1291
call fcn.10007be8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x100d12a3
call fcn.10007be8
call fcn.10006544
cmp dword [eax + 0x3c], 0
je 0x100d12b8
push edi
mov ecx, ebx
call fcn.100d007d
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.100d1165
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x100d12d6
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x100d12e2
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x100f5b98
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10160580]
jne 0x100f5ba2
repz ret
jmp fcn.100fb998
Function at 0x1010716a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10160580]
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.100fbbcf
and dword [ebp - 0x14], 0
cmp dword [0x10167ee0], 0
mov dword [ebp - 0x18], eax
jne 0x1010721d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x101072c5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10142c3c
push ebx
call edi
test eax, eax
je 0x101072c5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x10142c2c
push ebx
mov dword [0x10167ee0], eax
call edi
push eax
call esi
push 0x10142c18
push ebx
mov dword [0x10167ee4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10167ee8], eax
call edi
push eax
call esi
mov dword [0x10167ef0], eax
test eax, eax
je 0x1010721d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10167eec], eax
mov eax, dword [0x10167eec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10107276
cmp dword [0x10167ef0], ecx
je 0x10107276
push eax
call esi
push dword [0x10167ef0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10107276
test ebx, ebx
je 0x10107276
call edi
test eax, eax
je 0x1010726d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1010726d
test byte [ebp - 8], 1
jne 0x10107276
or dword [ebp + 0x10], 0x200000
jmp 0x101072a9
mov eax, dword [0x10167ee4]
cmp eax, dword [ebp - 0x18]
je 0x101072a9
push eax
call esi
test eax, eax
je 0x101072a9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x101072a9
mov eax, dword [0x10167ee8]
cmp eax, dword [ebp - 0x18]
je 0x101072a9
push eax
call esi
test eax, eax
je 0x101072a9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10167ee0]
call esi
test eax, eax
je 0x101072c5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x101072c7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100f5b98
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x599008], 0x8088405
inc edx
mov dword [ebx + 0x599008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret