joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10078d40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x10078d73
push esi
call fcn.10087100
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x10078d6c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x10078df9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x10078de2
mov eax, dword [esi + 8]
test eax, eax
je 0x10078d97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x10078dde
cmp eax, 2
je 0x10078de2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10078d8a
cmp eax, 3
je 0x10078dbd
cmp eax, 1
jne 0x10078d8a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x10078d8a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x10078d8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.10078e20
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x10078e08
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.10078e20
add esp, 4
pop esi
ret

Function at 0x100796a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x100796c1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x100796c1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x100796c1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10079b10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x10079b1b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x10079c1e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x100f4f10]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100f4f10]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100f4f10]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100f4f10]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100f4f10]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x100f4f10]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x100f4f10]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100f4f10]
xor eax, edx
inc ecx
dec edi
jne 0x10079b36
pop edi
test esi, esi
je 0x10079c40
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x100f4f10]
xor eax, edx
inc ecx
dec esi
jne 0x10079c22
pop esi
pop ebx
not eax
ret
Function at 0x10095150
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
push esi
push edi
mov eax, dword [ebp]
mov edi, dword [ebp + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10095253
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x100951d6
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x10095236
mov eax, dword [ebp + 0x34]
mov edx, dword [ebx - 4]
push eax
mov ecx, edi
push 4
push 0x1000
add ecx, edx
push esi
push ecx
call dword [ebp + 0x1c]
add esp, 0x14
test eax, eax
je 0x1009525e
mov eax, dword [ebx - 4]
mov ecx, esi
mov edx, ecx
add edi, eax
xor eax, eax
mov dword [ebx - 8], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x10095232
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
add ecx, eax
push ecx
push edx
call fcn.10095130
add esp, 8
test eax, eax
je 0x1009525e
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebx]
push eax
mov eax, dword [ebx - 4]
mov edx, edi
push 4
push 0x1000
add edx, eax
push ecx
push edx
call dword [ebp + 0x1c]
add esp, 0x14
test eax, eax
je 0x1009525e
mov ecx, dword [ebx - 4]
mov esi, dword [ebx + 4]
mov eax, edi
mov edi, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [ebx]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov edi, dword [esp + 0x24]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add ebx, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x10095183
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10095270
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [edi]
mov cx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov ecx, dword [edi + 0x3c]
push ecx
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.100953c0
push esi
push edi
mov dword [esp + 0x28], eax
call fcn.100953d0
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x24]
mov eax, 1
add esp, 0x10
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
add esi, 0x28
cmp word [ecx + 6], ax
mov dword [esp + 0x10], eax
jbe 0x1009538b
mov ecx, dword [edi + 0x3c]
mov eax, dword [esi + 8]
push ecx
push eax
mov dword [esp + 0x34], eax
call fcn.100953c0
push esi
push edi
mov ebx, eax
call fcn.100953d0
mov edx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x10095335
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, ebx
ja 0x10095335
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.10095400
add esp, 8
test eax, eax
je 0x100953ab
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], eax
jmp 0x1009536a
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x20]
test eax, 0x2000000
je 0x10095353
test ecx, 0x2000000
je 0x10095353
or ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x1009535e
or eax, ecx
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
sub ebp, edx
add ebp, eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x100952d1
mov eax, 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.10095400
add esp, 8
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x1009d0e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x1014349c]
xor edx, edx
cmp eax, edx
jne 0x1009d106
xor eax, eax
mov byte [eax + 0x1014339c], al
inc eax
cmp eax, 0x100
jl 0x1009d0ee
mov dword [0x1014349c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x1014339c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x1009d197
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x1009d16a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x1009d138
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x1009d210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x1009d263
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x1009d24a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100a3c10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100d145e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.100a4530
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x100f6e44
call fcn.100c2d5f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x100a3ca3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.100c2d5f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x100a3c9c
push 0
mov ecx, eax
call fcn.1009ad10
mov dword [esi + 0xc], eax
jmp 0x100a3ca5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x100a3ca5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x100c53ec
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x100c5424
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100c3479
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100c3451
jmp 0x100c5430
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x100c6ade
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x100c6b20
call fcn.100cc5b0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x100c6b20
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x100c6b17
xor eax, eax
jmp 0x100c6b28
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.100c6b2e
pop edi
pop esi
pop ebx
ret 4
Function at 0x1005e620
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x1005e691
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x1005e691
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.DLL_FlushInstructionCache]
test eax, eax
jne 0x1005e67a
jmp 0x1005e691
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x1005ed60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x100a56a0], 0
je 0x1005ed79
mov eax, dword [0x100a56a0]
jmp 0x1005ef1b
mov dword [0x100a56a0], 0x100a5678
push 0x28
push 0
push 0x100a5678
call fcn.10046230
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [0x100a5678], eax
push 0x100a2798
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov dword [0x100a567c], eax
cmp dword [0x100a567c], 0
jne 0x1005edbf
xor eax, eax
jmp 0x1005ef1b
push 0x100a27a8
mov eax, dword [0x100a567c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100a5680], eax
push 0x100a27c0
mov ecx, dword [0x100a567c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100a5684], eax
push 0x100a27d0
mov edx, dword [0x100a567c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100a5688], eax
push 0x100a27e0
mov eax, dword [0x100a567c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100a568c], eax
push 0x100a27f0
mov ecx, dword [0x100a567c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100a5690], eax
push 0x100a2800
mov edx, dword [0x100a567c]
push edx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100a5694], eax
push 0x100a2814
mov eax, dword [0x100a567c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100a5698], eax
push 0x100a2828
mov ecx, dword [0x100a567c]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x100a569c], eax
push 8
push 0
lea edx, [ebp - 8]
push edx
call fcn.10046230
add esp, 0xc
mov word [ebp - 8], 7
cmp dword [0x100a5680], 0
je 0x1005ee9d
lea eax, [ebp - 8]
push eax
call dword [0x100a5680]
cmp dword [0x100a5680], 0
je 0x1005eeb4
mov ecx, dword [ebp - 8]
and ecx, 0xffff
cmp ecx, 7
jge 0x1005eecf
mov edx, dword [0x100a567c]
push edx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov dword [0x100a567c], 0
xor eax, eax
jmp 0x1005ef1b
cmp dword [0x100a5684], 0
je 0x1005eee8
push 0
push 0
mov eax, dword [0x100a5678]
push eax
call dword [0x100a5684]
cmp dword [0x100a568c], 0
je 0x1005ef16
cmp dword [0x100a5688], 0
je 0x1005ef16
call dword [0x100a568c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [0x100a5688]
mov eax, dword [0x100a56a0]
mov esp, ebp
pop ebp
ret
Function at 0x1005f670
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009b178
push 0x1004d448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffd0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], 0
jne 0x1005f6ad
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x5a4d
je 0x1005f6e5
push 0xc1
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x34]
jmp 0x1005f849
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx], 0x4550
je 0x1005f71d
push 0xbf
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x38]
jmp 0x1005f849
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0x14]
test ecx, ecx
jne 0x1005f74b
push 0xc0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
jmp 0x1005f849
mov edx, dword [ebp - 0x24]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x24]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x28], 0
jmp 0x1005f770
mov eax, dword [ebp - 0x28]
add eax, 1
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x24]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x28], edx
jae 0x1005f823
push 0x100a2838
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
add ecx, eax
push ecx
call fcn.1004b780
add esp, 8
test eax, eax
jne 0x1005f81e
mov edx, dword [ebp - 0x28]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x20]
cmp dword [eax + edx + 0xc], 0
je 0x1005f7bf
mov ecx, dword [ebp - 0x28]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x20]
cmp dword [edx + ecx + 0x10], 0
jne 0x1005f7c1
jmp 0x1005f823
mov eax, dword [ebp - 0x28]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0x30
jb 0x1005f7ee
mov edx, dword [ebp - 0x30]
cmp dword [edx + 4], 0x727444
je 0x1005f7f0
jmp 0x1005f823
mov eax, dword [ebp - 0x30]
cmp dword [eax + 8], 0
jne 0x1005f804
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
mov dword [ecx + 8], eax
push 0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
jmp 0x1005f849
jmp 0x1005f767
mov dword [ebp - 4], 0xffffffff
jmp 0x1005f83c
push 0xc0
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100b097a
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.100b09f9
jae 0x100b0986
xor ecx, ecx
call fcn.100b09f9
jae 0x100b09b0
xor eax, eax
call fcn.100b09f9
jae 0x100b09c1
mov al, 0x10
call fcn.100b09f9
adc al, al
jae 0x100b09a2
jne 0x100b09ee
stosb byte es:[edi], al
jmp 0x100b0987
call fcn.100b0a05
dec ecx
loop 0x100b09cd
mov eax, ebp
call fcn.100b0a03
jmp 0x100b09ef
lodsb al, byte [esi]
shr eax, 1
je 0x100b0a15
adc ecx, 2
mov ebp, eax
jmp 0x100b09ef
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.100b0a03
cmp eax, 0x7d00
jae 0x100b09ed
cmp eax, 0x500
jae 0x100b09ee
cmp eax, 0x7f
ja 0x100b09ef
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100b0987
pop ebp
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x3d7a2aa6
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, str.__c
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0x247c07d3
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219
Function at 0x10009650
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10
call fcn.100765e0
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
test edi, edi
je 0x10009716
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10009716
lea eax, [ebp + 8]
mov ecx, ebx
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.10009a70
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebx]
jne 0x10009716
push esi
push 0x10
call fcn.10076018
mov esi, eax
mov dword [ebp + 0xc], esi
mov eax, dword [ebp + 0x10]
push 0x14
mov dword [esi + 4], 0
mov dword [esi], 1
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], eax
call fcn.10076018
add esp, 8
mov dword [ebp + 0xc], eax
mov ecx, eax
call fcn.1000abb0
mov dword [esi + 4], eax
test eax, eax
je 0x100096e6
mov ecx, dword [ebp + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [esi + 4]
push edi
call fcn.1000aeb0
push dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
lea eax, [ebp - 0x10]
mov dword [esi], 1
push eax
mov ecx, ebx
mov dword [ebp - 4], esi
call fcn.1000a120
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000a520
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000a579
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000a579
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x1000a56a
cmp esi, edx
jae 0x1000a579
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x1000a558
cmp esi, edx
jae 0x1000a579
cmp word [esi], 0
je 0x1000a579
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000afb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.100765e0
movzx eax, word [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1000b011
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x1000b011
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x1000b011
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x1000b01a
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x1000b03c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push ebx
push eax
call fcn.10082cf0
add esp, 0xc
mov dword [ebp + 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
xor edi, edi
test eax, eax
je 0x1000b064
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1000b0ae
mov ebx, dword [ebp + 8]
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
test edi, edi
je 0x1000b0ac
lea eax, [ebp - 4]
mov dword [edi], vtable.Gdiplus::Bitmap.0
push eax
push ebx
mov dword [ebp - 4], 0
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromStream]
mov dword [edi + 8], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], eax
jmp 0x1000b0ae
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1000b0c2
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret