joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8f8627a
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
push 4
pop ebx
mov dword [ebp - 4], ebx
test esi, esi
jne 0x8f8629b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x8f86313
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
cmp edi, 2
jne 0x8f862ea
mov eax, dword [ebp + 0x14]
push ebx
push esi
push ebx
push 0
push dword [ebp + 0xc]
mov dword [esi], eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x8f862f3
push esi
push dword [ebp + 0xc]
push 0x8f72790
call fcn.08f876b8
add esp, 0xc
push esi
jmp 0x8f8630a
test edi, edi
jne 0x8f862f8
cmp dword [ebp + 0x10], ebx
jne 0x8f862f8
xor eax, eax
inc eax
jmp 0x8f86312
push edi
push dword [ebp + 0xc]
push 0x8f72748
call fcn.08f876b8
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x8f86349
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
je 0x8f86387
push esi
push dword [ebp + 0xc]
push 0x8f72790
call fcn.08f876b8
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x8f8638a
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x8f86394
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
cmp eax, 0xffffffff
jne 0x8f863c3
cmp dword [ebp + 0x14], 0
je 0x8f863c1
mov eax, dword [ebp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x8f863ad
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
jmp 0x8f863c3
xor eax, eax
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x8f863f1
push eax
push dword [ebp + 0x10]
push 0x8f72790
call fcn.08f876b8
add esp, 0xc
xor eax, eax
jmp 0x8f863f4
xor eax, eax
inc eax
pop ebp
ret 0x14
Function at 0x8f8641d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], 4
mov dword [ebp - 8], esi
mov eax, dword [0x8f8c004]
mov edi, 0x8f8c004
cmp eax, edi
je 0x8f8645f
test byte [eax + 0x1c], 2
je 0x8f8645f
cmp byte [eax + 0x19], 5
jb 0x8f8645f
push 0x8f72670
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x8f864a8
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f8651f
test byte [eax + 0x1c], 2
je 0x8f8651f
cmp byte [eax + 0x19], 2
jb 0x8f8651f
push ebx
push 0x8f72670
push 0xf
jmp 0x8f86514
cmp dword [ebp - 4], 4
je 0x8f864dc
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f864d5
test byte [eax + 0x1c], 2
je 0x8f864d5
cmp byte [eax + 0x19], 2
jb 0x8f864d5
push 0x8f72670
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
mov ebx, 0x3f1
jmp 0x8f8651f
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
mov ebx, eax
test ebx, ebx
je 0x8f8651f
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f8651f
test byte [eax + 0x1c], 2
je 0x8f8651f
cmp byte [eax + 0x19], 2
jb 0x8f8651f
push ebx
push 0x8f72670
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x8f8652d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x8f8c1c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, dword [0x8f8c004]
mov esi, 0x8f8c004
cmp eax, esi
je 0x8f86570
test byte [eax + 0x1c], 2
je 0x8f86570
cmp byte [eax + 0x19], 5
jb 0x8f86570
push 0x8f72670
push 0x30
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
xor eax, eax
xor ebx, ebx
push 0x7e
mov word [ebp - 0x84], ax
lea eax, [ebp - 0x82]
push ebx
push eax
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x88], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
push 0x20019
push ebx
push 0x8f7283c
push 0x80000002
mov dword [ebp - 0x90], 0x7e
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x8f865fe
mov eax, dword [0x8f8c004]
cmp eax, esi
je 0x8f865f7
test byte [eax + 0x1c], 2
je 0x8f865f7
cmp byte [eax + 0x19], 2
jb 0x8f865f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x8f8c004]
push 0x8f72670
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
xor eax, eax
jmp 0x8f86695
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x94]
push eax
push ebx
push ebx
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x8f8665a
mov eax, dword [0x8f8c004]
cmp eax, esi
je 0x8f86683
test byte [eax + 0x1c], 2
je 0x8f86683
cmp byte [eax + 0x19], 2
jb 0x8f86683
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x8f8c004]
push 0x8f72670
push 0x32
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
jmp 0x8f86683
xor esi, esi
inc esi
cmp dword [ebp - 0x94], esi
jne 0x8f86683
lea eax, [ebp - 0x84]
push 0x8f72818
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x8f86683
mov dword [ebp - 0x8c], esi
push dword [ebp - 0x88]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x8c]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.08f82466
leave
ret
Function at 0x8f869cf
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
xor eax, eax
push 0x38
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, dword [0x8f8c004]
mov esi, 0x8f8c004
push 0x3c
mov ebx, 0x8f72a1c
pop edi
cmp eax, esi
je 0x8f86a20
test byte [eax + 0x1c], 2
je 0x8f86a20
cmp byte [eax + 0x19], 5
jb 0x8f86a20
push ebx
push edi
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], 0x500
mov dword [ebp - 0x34], 0x8f724d4
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x8f86aba
mov eax, dword [0x8f8c004]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
je 0x8f86a7d
test byte [eax + 0x1c], 2
je 0x8f86a7d
cmp byte [eax + 0x19], 2
jb 0x8f86a7d
call edi
push eax
mov eax, dword [0x8f8c004]
push ebx
push 0x3d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
and dword [ebp - 0x34], 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x8f86aba
call edi
mov dword [ebp - 4], eax
mov eax, dword [0x8f8c004]
cmp eax, esi
je 0x8f86aba
test byte [eax + 0x1c], 2
je 0x8f86aba
cmp byte [eax + 0x19], 2
jb 0x8f86aba
push dword [ebp - 4]
push ebx
push 0x3e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x8f87399
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov eax, dword [0x8f8c004]
mov edi, 0x8f8c004
mov ebx, 0x8f72ac0
cmp eax, edi
je 0x8f873d9
test byte [eax + 0x1c], 2
je 0x8f873d9
cmp byte [eax + 0x19], 5
jb 0x8f873d9
push ebx
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x8f873e8
push 0x57
pop eax
jmp 0x8f8753c
cmp dword [esi], 0x14
jne 0x8f873e0
and dword [esi + 4], 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x8f87437
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f87430
test byte [eax + 0x1c], 2
je 0x8f87430
cmp byte [eax + 0x19], 2
jb 0x8f87430
push esi
push ebx
push 0xb
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
mov eax, esi
jmp 0x8f8753c
push eax
call fcn.08f83725
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x8f87471
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f8746a
test byte [eax + 0x1c], 2
je 0x8f8746a
cmp byte [eax + 0x19], 2
jb 0x8f8746a
push dword [ebp + 0xc]
push ebx
push 0xc
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
push 8
jmp 0x8f873e2
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x8f874b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f87531
test byte [eax + 0x1c], 2
je 0x8f87531
cmp byte [eax + 0x19], 2
jb 0x8f87531
push dword [ebp - 4]
push ebx
push 0xd
jmp 0x8f874f3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x8f71628
push dword [ebp - 0xc]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x8f87500
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov eax, dword [0x8f8c004]
cmp eax, edi
je 0x8f87531
test byte [eax + 0x1c], 2
je 0x8f87531
cmp byte [eax + 0x19], 2
jb 0x8f87531
push dword [ebp - 4]
push ebx
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
jmp 0x8f87531
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x1c]
xor ecx, ecx
inc ecx
and edx, ecx
mov dword [esi + 0x10], edx
mov dx, word [eax + 0x12]
mov word [esi + 8], dx
mov dx, word [eax + 0x10]
mov word [esi + 0xa], dx
mov dx, word [eax + 0x16]
mov word [esi + 0xc], dx
mov ax, word [eax + 0x14]
mov word [esi + 0xe], ax
mov dword [esi + 4], ecx
push dword [ebp - 0xc]
call fcn.08f837bd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x8f87548
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x8f8c1c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, dword [0x8f8c004]
mov esi, 0x8f8c004
mov edi, 0x8f72ac0
cmp eax, esi
je 0x8f8758c
test byte [eax + 0x1c], 2
je 0x8f8758c
cmp byte [eax + 0x19], 5
jb 0x8f8758c
push edi
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d19
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x8f875f0
mov eax, dword [0x8f8c004]
cmp eax, esi
je 0x8f875ec
test byte [eax + 0x1c], 2
je 0x8f875ec
cmp byte [eax + 0x19], 2
jb 0x8f875ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [0x8f8c004]
push edi
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.08f72d3f
xor eax, eax
jmp 0x8f875fa
cmp dword [ebp - 0x114], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.08f82466
leave
ret

Function at 0x8f8760d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x8f72610
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x8f87638
xor eax, eax
leave
ret
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x8f72ad0
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x8f87665
cmp dword [ebp - 0x10], 4
je 0x8f87669
and dword [ebp - 8], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret

Function at 0x8f876b8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x8f8c1c4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [0x8f8f4c4], 0
jne 0x8f87708
call fcn.08f8760d
mov dword [0x8f8c4e4], eax
mov dword [0x8f8f4c4], 1
cmp dword [0x8f8c4e4], 0
jle 0x8f877a6
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.08f8767c
test eax, eax
jl 0x8f877a6
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x8f8773a
sub eax, edx
sar eax, 1
mov ecx, 0x3fd
cmp eax, ecx
jae 0x8f8776a
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x8f8775a
sub eax, edx
sar eax, 1
jmp 0x8f8776c
mov eax, ecx
add eax, eax
cmp word [ebp + eax - 0x806], 0xa
je 0x8f87799
push 0xd
pop ecx
mov word [ebp + eax - 0x804], cx
push 0xa
pop ecx
mov word [ebp + eax - 0x802], cx
xor ecx, ecx
mov word [ebp + eax - 0x800], cx
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.08f82466
leave
ret
Function at 0x401e50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
mov edx, dword [esp + 0x5c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edx
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
pop edi
add esp, 0x54
ret

Function at 0x402000
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [esp + 8]
ret 8

Function at 0x402030
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
ret 8

Function at 0x40a561
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.0040a5e0
jae 0x40a56d
xor ecx, ecx
call fcn.0040a5e0
jae 0x40a597
xor eax, eax
call fcn.0040a5e0
jae 0x40a5a8
mov al, 0x10
call fcn.0040a5e0
adc al, al
jae 0x40a589
jne 0x40a5d5
stosb byte es:[edi], al
jmp 0x40a56e
call fcn.0040a5ec
dec ecx
loop 0x40a5b4
mov eax, ebp
call fcn.0040a5ea
jmp 0x40a5d6
lodsb al, byte [esi]
shr eax, 1
je 0x40a5fc
adc ecx, 2
mov ebp, eax
jmp 0x40a5d6
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0040a5ea
cmp eax, 0x7d00
jae 0x40a5d4
cmp eax, 0x500
jae 0x40a5d5
cmp eax, 0x7f
ja 0x40a5d6
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40a56e
pop ebp
ret 8

Function at 0x1e6d798
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1e6d7a2
pushal
call 0x1e6d7a8
pop ebp
sub ebp, 0x10
sub ebp, 0x145d798
jmp 0x1e6d7be
mov eax, 0x145d798
add eax, ebp
add eax, 0x4c
mov ecx, 0x611
mov edx, 0x3c15fcba
xor byte [eax], dl
inc eax
dec ecx
jne 0x1e6d7d5
jmp 0x1e6d7e8
xor dword [edi + 0x31], esi
xor eax, dword [esi + 0x3bbababa]
jnp 0x1e6d835
mov edx, 0x77b9baba
add dh, byte [esi + 0xbababa]
xchg edx, eax
mov edx, 0x584dbaba
mov ecx, 0xb63b3172
mov edx, 0x7fb9baba
ljmp 0xbe33
inc esi
xor edx, dword [esi - 0x6129c862]
mov edx, 0xbab23f31
mov edx, 0xb62f31ba
mov edx, 0x3731baba
stosb byte es:[edi], al
mov edx, 0x537bbaba
mov eax, 0x7839b88b
mov esi, 0x4e3fb5f3
inc ebp
inc ebp
inc ebp
xor dword [esi - 0x6121c862], edx
mov esi, 0x31bab678
sahf
mov esi, 0xd2bababa
push es
push ss
mov ah, 0xba
shl byte [esi - 0x70], cl
lea edi, [ebx - 0x14616945]
push edx
mov edi, 0x53bababa
in eax, dx
mov eax, 0xde37baba
sahf
inc esi
xor edx, dword [esi + 0x4556319e]
iretd
Function at 0x405f8b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415108]
jne 0x405f95
repz ret
jmp fcn.0040b76c

Function at 0x40bc3f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040a405
and dword [ebp - 4], 0
cmp dword [0x462354], 0
mov ebx, eax
jne 0x40bcf0
push 0x401b50
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bda1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b44
push edi
call esi
test eax, eax
je 0x40bda1
push eax
call fcn.0040a393
mov dword [esp], 0x401b34
push edi
mov dword [0x462354], eax
call esi
push eax
call fcn.0040a393
mov dword [esp], 0x401b20
push edi
mov dword [0x462358], eax
call esi
push eax
call fcn.0040a393
mov dword [esp], 0x401b04
push edi
mov dword [0x46235c], eax
call esi
push eax
call fcn.0040a393
pop ecx
mov dword [0x462364], eax
test eax, eax
je 0x40bcf0
push 0x401aec
push edi
call esi
push eax
call fcn.0040a393
pop ecx
mov dword [0x462360], eax
mov eax, dword [0x462360]
cmp eax, ebx
je 0x40bd48
cmp dword [0x462364], ebx
je 0x40bd48
push eax
call fcn.0040a40e
push dword [0x462364]
mov esi, eax
call fcn.0040a40e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bd48
test edi, edi
je 0x40bd48
call esi
test eax, eax
je 0x40bd3f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bd3f
test byte [ebp - 0xc], 1
jne 0x40bd48
or dword [ebp + 0x10], 0x200000
jmp 0x40bd81
mov eax, dword [0x462358]
cmp eax, ebx
je 0x40bd81
push eax
call fcn.0040a40e
pop ecx
test eax, eax
je 0x40bd81
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bd81
mov eax, dword [0x46235c]
cmp eax, ebx
je 0x40bd81
push eax
call fcn.0040a40e
pop ecx
test eax, eax
je 0x40bd81
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x462354]
call fcn.0040a40e
pop ecx
test eax, eax
je 0x40bda1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bda3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40701c
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 0x407028
push 0x407024
push 0x407020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x407028]
push dword [0x407024]
push dword [0x407020]
mov dword [0x407014], esp
call fcn.004014df
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x402c00
pop dword [ebp - 4]
mov eax, 0x402c00
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x4a2deb5
sub dword [ebp - 0x14], 0xb650996a
mov dword [ebp - 0x10], 0x9ed6efd3
add dword [ebp - 0x10], 0x935c5c72
mov dword [ebp - 0xc], 0xc4331b45
add dword [ebp - 0xc], 0x881928e9
mov dword [ebp - 8], 0x3835511a
add dword [ebp - 8], 0xc7caaee6
lea eax, [ebp - 0x14]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x794aba74
sub dword [ebp - 0x14], 0x4d8511e
mov dword [ebp - 0x10], 0x1e60cfad
add dword [ebp - 0x10], 0x230b91c8
mov dword [ebp - 0xc], 0xb719bcb
add dword [ebp - 0xc], 0x57fdd0a1
mov dword [ebp - 8], 0xd533d661
add dword [ebp - 8], 0x2acc299f
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0xe736aaa8
add eax, 0x1909d62c
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x36162
push 0
call eax
mov ecx, 0x3f7243bb
sub ecx, 0x3f71fe24
xor edx, edx
add edx, eax
mov esi, 0x8848adc6
sub esi, 0x88079dc6
add esi, dword [ebp - 4]
mov ebx, 0x1f065fb3
sub ebx, 0x9b32d542
mov edi, dword [esi]
xor edi, ebx
mov dword [edx], edi
add edx, 0xbfd6a554
sub edx, 0xbfd6a550
add esi, 4
loop 0x402d1a
add eax, 0x158aecf3
sub eax, 0x1589e3c4
xor ebx, ebx
add ebx, eax
add eax, 0x14a7dc20
sub eax, 0x14a7dc1b
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0xf96580
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00f966d0
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 0xf965a6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf96592
add dl, dl
jne 0xf965b1
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf96604
xor eax, eax
add dl, dl
jne 0xf965be
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xf966a5
add dl, dl
jne 0xf965cd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf965d8
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf965e3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf965ee
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xf965fa
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xf9659d
mov eax, 1
add dl, dl
jne 0xf96612
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xf9661d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf96609
sub eax, ebx
mov ebx, 1
jne 0xf96650
mov ecx, 1
add dl, dl
jne 0xf96636
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf96641
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf9662d
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf9659d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xf96667
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xf96672
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xf9665e
cmp eax, 0x7d00
jae 0xf96695
cmp eax, 0x500
jb 0xf96690
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf9659d
cmp eax, 0x7f
ja 0xf96698
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xf9659d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xf966c6
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 0xf9659d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10