joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408912
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x4085d8
add ecx, eax
add eax, eax
call fcn.0040893e
xor dword [edi], esi
sub eax, ecx
mov eax, 0x8f9daf34
inc edi
add ecx, 0xbd148bf4
cmp edi, edx
jne fcn.00408912
add eax, 0x344fa247
and ecx, eax
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x100062fa
pop dword [ebp - 0x3c]
mov eax, 0x4b0a829d
sub eax, 0x3b0a1fa3
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x3a7a8
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x4dd3
xor ebx, ebx
add ebx, eax
mov edx, 0x25e1b010
add edx, 0xea1fd5f0
add edx, dword [ebp - 0x3c]
mov edi, 0x35101149
sub edi, 0x344626c8
mov dword [ebp - 0x30], 0x56f81d1e
mov esi, dword [edx]
add dword [ebp - 0x24], ecx
xor esi, edi
mov dword [ebp - 0x28], 0xef5895f4
mov dword [ebx], esi
add dword [ebp - 0xc], esi
add ebx, 0xbb0b5278
add ebx, 0x44f4ad8c
add edx, 0xa8fac63c
sub edx, 0xa8fac638
loop 0x10006350
add eax, 0x2df88b9b
sub eax, 0x2df7617c
xor ebx, ebx
add ebx, eax
add eax, 0x18237d
add eax, 0xffe7dc88
mov ecx, 0x10000000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x40987c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
jmp 0x409925
cmp dword [esi + 0x10], 0x1000
jne 0x409911
test byte [esi + 0x15], 1
jne 0x409911
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4098d0
cmp eax, 2
je 0x4098d0
cmp eax, 0x10
je 0x4098d0
cmp eax, 0x20
jne 0x4098e5
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4098e5
mov bl, 1
xor ebp, ebp
jmp 0x4098f6
mov eax, dword [esi]
add eax, ebp
call fcn.00409874
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4098e9
test bl, bl
je 0x409911
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4098a8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5cad4157
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x727f1d7f
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x1031d79
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x106b508]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
push edi
push 1
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.API_MS_Win_Core_Heap_L1_1_0.dll_HeapSetInformation]
test eax, eax
jne 0x1031dc7
mov esi, dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
call esi
push eax
push 0x100439c
push edi
push 0x5e
call fcn.010638ae
add esp, 0x10
call esi
jmp 0x1031e5e
push ebx
push edi
push 0x64
push esi
mov ebx, 0x106b6a0
push 0x106b010
mov ecx, ebx
call fcn.01030feb
mov esi, 0x1004394
lea edi, [ebp - 0xc]
lea eax, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
push eax
push dword [ebp - 0x10]
movsw word es:[edi], word [esi]
call fcn.0102cb61
mov esi, eax
call dword [sym.imp.API_MS_Win_Core_ProcessEnvironment_L1_1_0.dll_GetCommandLineW]
test esi, esi
je 0x1031e51
mov edi, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x100437c
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x1031e6e
push 0x100436c
push esi
call edi
pop ecx
pop ecx
test eax, eax
je 0x1031e81
push 2
push 0x1004364
push esi
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1031e41
mov dword [0x106b700], 1
lea eax, [ebp - 0xc]
push eax
push esi
call fcn.0102cb61
mov esi, eax
test esi, esi
jne 0x1031e06
mov ecx, ebx
call fcn.01031cd6
mov eax, dword [0x106b6e4]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0106300f
leave
ret 0x10
mov ecx, ebx
call fcn.01030f80
mov esi, eax
test esi, esi
jl 0x1031e9b
push 0
push 0x67
jmp 0x1031e94
push 0
mov ecx, ebx
call fcn.01030c40
mov esi, eax
test esi, esi
jl 0x1031e9b
push 0
push 0x66
mov ecx, ebx
call fcn.0102cce4
mov eax, esi
jmp 0x1031e5d
Function at 0x1062fdc
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1064de8
call fcn.01063024
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.API_MS_Win_Core_ProcessThreads_L1_1_0.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x106bdbc
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1062d97
cmp eax, esi
jne 0x1062d8a
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1062d9a
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1062d71
xor esi, esi
inc esi
mov eax, dword [0x106bdb8]
cmp eax, esi
jne 0x1062dad
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1062ddc
mov eax, dword [0x106bdb8]
test eax, eax
jne 0x1062dd6
mov dword [0x106bdb8], esi
push 0x10015b0
push 0x10015a4
call fcn.01062cd3
pop ecx
pop ecx
test eax, eax
je 0x1062ddc
jmp 0x1062f00
mov dword [0x106ba60], esi
mov eax, dword [0x106bdb8]
cmp eax, esi
jne 0x1062e00
push 0x10015a0
push 0x1001568
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x106bdb8], 2
cmp dword [ebp - 0x20], ebx
jne 0x1062e0d
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x106bdc8], ebx
je 0x1062e2e
push 0x106bdc8
call fcn.01063379
pop ecx
test eax, eax
je 0x1062e2e
push ebx
push 2
push ebx
call dword [0x106bdc8]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1062f00
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x1062e98
cmp cx, bx
je 0x1062e53
cmp dword [ebp - 0x1c], ebx
jne 0x1062e98
movzx ecx, word [eax]
cmp cx, bx
je 0x1062e68
cmp cx, 0x20
ja 0x1062e68
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x1062e53
test byte [ebp - 0x40], 1
je 0x1062e74
movzx ecx, word [ebp - 0x3c]
jmp 0x1062e77
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x106ba5c], eax
cmp dword [0x106ba50], ebx
jne 0x1062edd
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x1062ea9
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1062e3d
cmp dword [0x106ba60], ebx
jne 0x1062eeb
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x106ba5c]
jmp 0x1062f0c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01063069
ret
call fcn.010fd000
jmp 0x1062d34
Function at 0x10640cc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x106b508]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x218], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 7
xor eax, eax
and dword [esi], eax
pop ecx
lea edi, [ebp - 0x234]
rep stosd dword es:[edi], eax
or dword [ebp - 0x238], 0xffffffff
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x1064161
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jg 0x1064155
mov dword [ebp - 0x210], eax
jmp 0x1064224
and eax, 0xffff
or eax, 0x80070000
jmp 0x106414a
push 0x102ba50
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01063ffb
mov dword [ebp - 0x210], eax
test eax, eax
jl 0x1064224
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10641bf
mov esi, dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_GetProcAddress]
push 0x102ba40
push ebx
call esi
mov dword [ebp - 0x234], eax
test eax, eax
jne 0x10641db
push 0x102ba2c
push ebx
call esi
mov dword [ebp - 0x220], eax
test eax, eax
jne 0x10641fd
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
test eax, eax
jle 0x10641d3
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x210], eax
jmp 0x1064218
push 0x102ba1c
push ebx
call esi
mov dword [ebp - 0x230], eax
test eax, eax
je 0x10641bf
push 0x102ba0c
push ebx
call esi
mov dword [ebp - 0x224], eax
jmp 0x10641bb
mov eax, dword [ebp - 0x218]
mov edi, dword [ebp - 0x214]
push 8
mov dword [eax], ebx
pop ecx
lea esi, [ebp - 0x238]
xor ebx, ebx
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x1064223
push ebx
call dword [sym.imp.API_MS_Win_Core_LibraryLoader_L1_1_0.dll_FreeLibrary]
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x210]
pop edi
xor ecx, ebp
pop esi
call fcn.0106300f
leave
ret 8
Function at 0x10645e5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x106b508]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x20e
xor ebx, ebx
push esi
lea eax, [ebp - 0x420]
push ebx
push eax
mov dword [ebp - 0x428], ebx
call sub.msvcrt.dll_memset
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
mov dword [ebp - 0x430], ebx
call sub.msvcrt.dll_memset
or dword [ebp - 0x424], 0xffffffff
add esp, 0x18
push ebx
lea eax, [ebp - 0x430]
push eax
push esi
lea eax, [ebp - 0x420]
push eax
push ebx
push ebx
push 0x4d0008
push edi
mov dword [ebp - 0x42c], ebx
call dword [sym.imp.API_MS_Win_Core_IO_L1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x1064682
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jg 0x1064676
mov edi, eax
jmp 0x1064774
and eax, 0xffff
or eax, 0x80070000
jmp 0x106466f
push 0x100bae0
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.0106455b
mov edi, eax
cmp edi, ebx
jl 0x1064774
movzx eax, word [ebp - 0x420]
shr eax, 1
push eax
lea eax, [ebp - 0x41e]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01064595
mov edi, eax
cmp edi, ebx
jl 0x1064774
push 0x102ba68
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01063ffb
mov edi, eax
cmp edi, ebx
jl 0x1064774
lea eax, [ebp - 0x42c]
push eax
push esi
lea eax, [ebp - 0x210]
push eax
call fcn.01064090
mov edi, eax
cmp edi, ebx
jl 0x1064774
mov esi, dword [ebp - 0x42c]
cmp esi, ebx
je 0x1064774
lea eax, [ebp - 0x424]
push eax
push 0x11
call fcn.010643f6
mov edi, eax
cmp edi, ebx
jl 0x1064760
xor edi, edi
lea esi, [ebp + esi*2 - 0x212]
lea eax, [edi + 0x31]
mov word [esi], ax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1064749
inc edi
cmp di, 3
jb 0x1064728
jmp 0x1064753
mov dword [ebp - 0x428], 1
xor eax, eax
cmp dword [ebp - 0x428], ebx
sete al
mov edi, eax
cmp dword [ebp - 0x424], 0xffffffff
je 0x1064774
push dword [ebp - 0x424]
call fcn.0106450e
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0106300f
leave
ret 4
Function at 0x106478c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 8]
push eax
push 0x18
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push 0x70000
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.API_MS_Win_Core_IO_L1_1_0.dll_DeviceIoControl]
test eax, eax
jne 0x10647e5
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jg 0x10647d9
mov esi, eax
jmp 0x1064886
and eax, 0xffff
or eax, 0x80070000
jmp 0x10647d2
mov esi, dword [ebp - 0xc]
push 4
add esi, 0x1ff
push 0x3000
and esi, 0xfffffe00
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, ebx
jne 0x106481f
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jle 0x1064873
and eax, 0xffff
or eax, 0x80070000
jmp 0x1064873
push ebx
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1064855
call dword [sym.imp.API_MS_Win_Core_ErrorHandling_L1_1_0.dll_GetLastError]
cmp eax, ebx
jle 0x1064847
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, 0x80310000
jne 0x1064875
xor esi, esi
jmp 0x1064875
push ebx
push dword [ebp - 4]
push edi
call fcn.01064b52
xor esi, esi
cmp eax, 2
je 0x1064875
inc esi
cmp eax, esi
jne 0x1064875
push dword [ebp + 8]
call fcn.010645e5
mov esi, eax
cmp edi, ebx
je 0x1064886
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x109e4d5
Capabilities:
Encode data using xor

Disassembly:
test byte [eax + 0x11], ah
pop ss
mov byte [eax], 1
outsb dx, byte [esi]
mov byte [eax], 0x8c
mov dword [eax], 0x66a56
lea ecx, [eax + 0x28]
pop esi
cmp dword [ecx - 8], 0x4bf06163
je 0x109e4fc
or dword [ebx - 0x7f961fef], ecx
add dword [edx], eax
mov edx, dword [ecx]
loopne 0x109e560
add byte [ecx], 2
add byte [ebx + 0x7400f479], al
or cl, byte [ebx - 0xa03fdaf]
jns 0x109e4f2
add byte [edx + ecx - 0x75], dh
push ecx
add bh, ah
cmc
add cl, al
adc byte [ebx - 0x6f8afe12], al
salc
push dword [eax - 0x17fc2f64]
dec esi
add dword [eax - 0x77], edi
in eax, 0x42
push ecx
push ebx
jno 0x109e56b
push edi
mov eax, dword [esi - 0x3fee73ff]
xor dword [ebp + edi + 0x23], ebp
push eax
pop ecx
je 0x109e593
mov word [ecx], ss
sal byte [ecx], 0x6c
cmp eax, 0x74595023
mov eax, dword gs:[esi + eax*2]
mov eax, dword [esi + eax*2]
jl 0x109e503
add byte [esi - 0x7d], bl
cmp byte [eax], al
jne 0x109e5a2
pop ecx
mov eax, dword [esi + 0xc008f2]
jnp 0x109e523
add byte [ebx], dl
push eax
push eax
call 0x3ecae0a5
mov dh, 0x11
add ebp, eax
sub ecx, dword fs:[ebx]
sub ecx, dword [ebx]
sar dword [ebx + ecx*4 - 0x7a], 1
inc edx
or dl, byte [edi]
add dh, byte [edi]
add eax, 0x90070217
nop
dec ebp
pop ecx
pop ecx
push dword [esi + 0x7c]
je 0x109e551
and al, byte [edi + 1]
pop ss
add dword [edi], edx
mov al, byte [0xe2036100]
or al, 0xc0
test byte [ebp + eax*2 + 0x61], dh
add eax, dword [eax - 0x75]
xchg byte [eax + 0x2d4400e0], dl
invalid
push eax
call 0x22cc7c3
cwde
aam 0
aam 0xd0
add bh, bh
mov dh, 0x99
add dword [eax + ebp*8], eax
leave
mov al, byte [0xff193000]
mov dh, 0xf2
or eax, 0x4a819702
push 6
pop eax
lea ebx, [esi + 0x9043a0]
xor dword [ebp + 0x7e], esp
sub byte [ecx + 0x1d12437f], al
or cl, byte [ebx - 0x1eebbfef]
push es
movmskps ebp, xmm0
xchg ecx, eax
xor dword [ecx], esp
add al, 0x33
call 0xc10a4662
or byte [ebp - 4], al
test byte [ebx + 0x1613807f], al
mov eax, dword [edi - 4]
sar dword [ecx + 0x61], 1
xor dword [edx], eax
pop es
push eax
call 0xb20ba75d
add ebx, eax
xor byte [ebx + eax*4], al
invalid
Function at 0x9fc058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x9fc1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9fc07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9fc06a
add dl, dl
jne 0x9fc089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9fc0dc
xor eax, eax
add dl, dl
jne 0x9fc096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9fc17d
add dl, dl
jne 0x9fc0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9fc0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9fc0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9fc0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9fc0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9fc075
mov eax, 1
add dl, dl
jne 0x9fc0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9fc0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9fc0e1
sub eax, ebx
mov ebx, 1
jne 0x9fc128
mov ecx, 1
add dl, dl
jne 0x9fc10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9fc119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9fc105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9fc075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9fc13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9fc14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9fc136
cmp eax, 0x7d00
jae 0x9fc16d
cmp eax, 0x500
jb 0x9fc168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9fc075
cmp eax, 0x7f
ja 0x9fc170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9fc075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9fc19e
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 0x9fc075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x84], 0
call fcn.00401a4a
mov esi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, esi
or al, 0x40
push eax
lea eax, [0x404561]
lea edx, [fcn.00401ac0]
sub eax, edx
push eax
push fcn.00401ac0
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x401337
push esi
call fcn.00401922
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.00401976
mov eax, esi
add eax, 0x1d600
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov edi, dword [ebp - 0x88]
mov eax, esi
mov ecx, edi
or cl, 1
cdq
idiv ecx
mov ebx, eax
add ebx, edi
push ebx
lea edi, [0x4060e4]
mov ebx, esi
dec ebx
and edi, ebx
push edi
call fcn.00401ac0
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401a4a
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x118], 0
xor edi, edi
mov dword [ebp - 0x114], 0xa
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x10e]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringA
movsx edi, byte [ebp - 0x10e]
sub edi, 0x41
lea eax, [ebp - 0x120]
push eax
call sub.USER32.DLL_GetCursorPos
call sub.KERNEL32.dll_GetLastError
mov eax, edi
pop edi
leave
ret