joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ac86c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4ac8ce
call fcn.004ac81c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004a62e4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004a62e4
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4ac94c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4d2500], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4aca26
cmp dword [0x4d24fc], 0
jne 0x4aca26
cmp dword [0x4d2708], 0
je 0x4ac9e0
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004ac6fc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4ac9c6
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004ac6fc
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4ac9c6
lea ebx, [ebp - 0x84]
jmp 0x4ac9c7
inc ebx
call fcn.004ac908
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4aca61
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4d2504
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004a62e4
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4d2507
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4aca61
cmp dword [0x4d24fc], 0
je 0x4aca40
cmp dword [0x4d24fc], 0xffffffff
je 0x4aca61
push esi
call dword [0x4d24fc]
pop ecx
mov eax, dword [0x4d2500]
test eax, eax
je 0x4aca61
cmp dword [0x4d2500], 0xffffffff
je 0x4aca61
cmp byte [eax], 0
je 0x4aca61
push esi
push eax
call fcn.004ac86c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ad284
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x82ac40], 0
jne 0x4ad305
cmp dword [0x82ac60], 0
jne 0x4ad2b4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x82ac60], eax
test eax, eax
jne 0x4ad2b4
push str.GetEnvironmentStrings_failed
call fcn.004aca78
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x82ac60]
jmp 0x4ad2c8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004a62e4
pop ecx
mov edi, eax
test eax, eax
jne 0x4ad2c0
lea edi, [ebp + 1]
push edi
call fcn.004a5b98
pop ecx
mov ebx, eax
mov dword [0x82ac44], ebx
test ebx, ebx
jne 0x4ad2f2
xor eax, eax
jmp 0x4ad3c8
push edi
mov edx, dword [0x82ac60]
push edx
push ebx
call fcn.004a6164
add esp, 0xc
jmp 0x4ad325
xor esi, esi
mov ebx, dword [0x82ac40]
jmp 0x4ad31f
push eax
call fcn.004a62e4
pop ecx
test eax, eax
jne 0x4ad31b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4ad30f
lea ebx, [esi + 4]
push 4
mov dword [0x82ac48], ebx
inc ebx
push ebx
call fcn.004a5354
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4ad348
xor eax, eax
jmp 0x4ad3c8
cmp dword [0x82ac40], 0
jne 0x4ad379
xor esi, esi
mov ebx, dword [0x82ac44]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4ad36a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004a62e4
pop ecx
mov edi, eax
test eax, eax
jne 0x4ad360
jmp 0x4ad3aa
xor esi, esi
mov ebx, dword [0x82ac40]
mov eax, dword [esp]
mov edi, eax
jmp 0x4ad3a4
push eax
call fcn.004a62e4
pop ecx
test eax, eax
je 0x4ad399
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4ad39d
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4ad388
mov eax, dword [0x82ac40]
test eax, eax
je 0x4ad3ba
push eax
call fcn.004a5ba8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x82ac40], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b39e8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x4b3a16
mov eax, ebx
call fcn.004b44a0
cmp dword [ebx + 0x3c], 0
je 0x4b3a0f
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x4b3a87
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x4b3a79
cmp dword [ebx + 8], 0
je 0x4b3a38
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x4b3a4a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b3a79
cmp dword [ebx + 8], 0
je 0x4b3a2b
cmp eax, 3
je 0x4b3a5d
dec eax
jne 0x4b3a2b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b3a2b
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x4b3a2b
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x4b3aa5
cmp dword [ebx + 0x10], 0xcc
je 0x4b3aa5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b3ab0
pop ebx
ret
Function at 0xb8b478
Capabilities:
Decompress data using aplib

Disassembly:
call 0xb8b5c8
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 0xb8b49e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb8b48a
add dl, dl
jne 0xb8b4a9
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb8b4fc
xor eax, eax
add dl, dl
jne 0xb8b4b6
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xb8b59d
add dl, dl
jne 0xb8b4c5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb8b4d0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb8b4db
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb8b4e6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xb8b4f2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xb8b495
mov eax, 1
add dl, dl
jne 0xb8b50a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xb8b515
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb8b501
sub eax, ebx
mov ebx, 1
jne 0xb8b548
mov ecx, 1
add dl, dl
jne 0xb8b52e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb8b539
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb8b525
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb8b495
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xb8b55f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xb8b56a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xb8b556
cmp eax, 0x7d00
jae 0xb8b58d
cmp eax, 0x500
jb 0xb8b588
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb8b495
cmp eax, 0x7f
ja 0xb8b590
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xb8b495
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xb8b5be
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 0xb8b495
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 0x4061e0
Capabilities:
Terminate thread
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov eax, dword [0x445b0c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, edi
je 0x406260
push esi
push edi
push edi
push 3
push edi
push edi
push 0x40000000
push edi
push 0x445a04
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], 0x1f40
mov dword [esp + 0x3c], edi
call fcn.00406450
add esp, 8
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40624d
lea eax, [esp + 0xc]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
push esi
mov dword [esp + 0x20], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call ebx
push 0x3e8
mov edx, dword [0x445b0c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov eax, dword [0x445b08]
cmp eax, edi
je 0x406281
mov eax, dword [0x445b08]
cmp eax, 0xffffffff
je 0x406281
mov eax, dword [0x445b08]
push eax
call ebx
mov dword [0x445b08], edi
mov eax, dword [0x445b0c]
cmp eax, edi
je 0x4062a9
mov eax, dword [0x445b0c]
cmp eax, 0xffffffff
je 0x4062a9
push 0xffffffffffffffff
mov ecx, dword [0x445b0c]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [0x445b0c], edi
call fcn.004063b0
mov dword [0x445b14], edi
pop edi
pop ebx
add esp, 0x14
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x66d62b36
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x34b04f61
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401207
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb18
mov eax, dword [0x4182f8]
xor edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [0x4182fc]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0xc], edx
mov esi, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x34], 0x9e3779b9
mov dword [ebp - 0x18], eax
call fcn.00401200
add dword [ebp - 0xc], 0x23f
cmp dword [0xae0444], 0x14
jne 0x401263
push edx
lea eax, [ebp - 0xb18]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov ecx, dword [0x418300]
mov edx, dword [0x418304]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x1c], 0x20
mov dword [ebp - 0x18], 2
add dword [ebp - 0x18], 3
mov eax, esi
mov dword [ebp - 8], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xae0444], 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0xae0440]
cmove eax, dword [ebp - 8]
and dword [ebp - 8], 0
cmp dword [0xae0444], 0x3eb
mov dword [0xae0440], eax
mov eax, dword [0xae0398]
cmove eax, dword [ebp - 8]
mov dword [0xae0398], eax
mov eax, dword [ebp - 0xc]
add eax, esi
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x10], eax
add dword [ebp - 0x10], edx
xor edx, edx
mov eax, dword [ebp - 4]
mov dword [0xae043c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
xor dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, eax
cmp dword [0xae0444], 0x213
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x40136d
push edx
push edx
push edx
lea eax, [ebp - 0x318]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CompareStringA]
lea eax, [ebp - 0x718]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x38]
push eax
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
mov ecx, dword [ebp - 0x10]
sub ebx, ecx
mov eax, ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 0xc]
shr edx, cl
add eax, ebx
mov ecx, dword [ebp - 4]
add edx, edi
xor ecx, eax
mov dword [ebp - 0x10], edx
cmp dword [0xae0444], 0xb03
mov dword [ebp - 4], ecx
jne 0x4013b0
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
xor ecx, edx
sub esi, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 0xc], eax
dec dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
jne 0x40127f
mov edi, dword [ebp - 0x24]
mov dword [edi], esi
mov dword [edi + 4], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b52a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417690]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407220
mov dword [ebp - 0x14], eax
cmp dword [0x43bc2c], esi
jne 0x40b61d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40b5aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40b6fd
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40b6fd
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40b6fd
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43bc2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43bc30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43bc34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43bc3c], eax
test eax, eax
je 0x40b61a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43bc38], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40b642
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40b635
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40b657
push 4
pop eax
jmp 0x40b6ff
cmp dword [ebp - 0x14], esi
je 0x40b657
push dword [0x43bc2c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40b63c
mov eax, dword [0x43bc38]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40b6b5
cmp dword [0x43bc3c], edi
je 0x40b6b5
push eax
call ebx
push dword [0x43bc3c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40b6b5
test eax, eax
je 0x40b6b5
call ecx
test eax, eax
je 0x40b6aa
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40b6aa
test byte [ebp - 8], 1
jne 0x40b6b5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40b6e5
mov eax, dword [0x43bc30]
cmp eax, edi
je 0x40b6e2
push eax
call ebx
test eax, eax
je 0x40b6e2
call eax
mov esi, eax
test esi, esi
je 0x40b6e2
mov eax, dword [0x43bc34]
cmp eax, edi
je 0x40b6e2
push eax
call ebx
test eax, eax
je 0x40b6e2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43bc2c]
call ebx
test eax, eax
je 0x40b6fd
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40b6ff
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403a7c
mov esp, ebp
pop ebp
ret
Function at 0x465de6
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.00465e65
jae 0x465df2
xor ecx, ecx
call fcn.00465e65
jae 0x465e1c
xor eax, eax
call fcn.00465e65
jae 0x465e2d
mov al, 0x10
call fcn.00465e65
adc al, al
jae 0x465e0e
jne 0x465e5a
stosb byte es:[edi], al
jmp 0x465df3
call fcn.00465e71
dec ecx
loop 0x465e39
mov eax, ebp
call fcn.00465e6f
jmp 0x465e5b
lodsb al, byte [esi]
shr eax, 1
je 0x465e81
adc ecx, 2
mov ebp, eax
jmp 0x465e5b
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00465e6f
cmp eax, 0x7d00
jae 0x465e59
cmp eax, 0x500
jae 0x465e5a
cmp eax, 0x7f
ja 0x465e5b
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x465df3
pop ebp
ret 8
Function at 0x401110
Capabilities:
Encode data using base64

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea esp, [esp]
mov al, byte [ebx]
cmp al, 0x20
je 0x40112a
cmp al, 9
jne 0x40112d
inc ebx
jmp 0x401120
mov eax, ebx
nop
movsx ecx, byte [eax]
inc eax
cmp dword [ecx*4 + 0x415350], 0x3f
jle 0x401130
mov edi, dword [esp + 0x1c]
sub eax, ebx
dec eax
mov ecx, eax
lea eax, [ecx + 3]
cdq
and edx, 3
add eax, edx
sar eax, 2
lea esi, [eax + eax*2]
cmp esi, edi
mov dword [esp + 0x14], esi
jle 0x401173
lea ecx, [edi*4]
mov eax, 0x55555556
imul ecx
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov eax, ebx
test ecx, ecx
jle 0x40120d
xor esi, esi
nop
movsx ebx, byte [eax]
movsx edx, byte [eax + 1]
mov bl, byte [ebx*4 + 0x415350]
mov edx, dword [edx*4 + 0x415350]
add bl, bl
sar edx, 4
add bl, bl
or dl, bl
mov byte [ebp], dl
inc esi
inc ebp
cmp esi, edi
jge 0x401234
mov dl, byte [eax + 2]
cmp dl, 0x3d
je 0x4011fb
movsx ebx, byte [eax + 1]
mov bl, byte [ebx*4 + 0x415350]
movsx edx, dl
mov edx, dword [edx*4 + 0x415350]
sar edx, 2
shl bl, 4
or dl, bl
mov byte [ebp], dl
inc esi
inc ebp
cmp esi, edi
jge 0x401234
movsx edx, byte [eax + 2]
mov dl, byte [edx*4 + 0x415350]
movsx ebx, byte [eax + 3]
shl dl, 6
or dl, byte [ebx*4 + 0x415350]
inc esi
mov byte [ebp], dl
inc ebp
cmp esi, edi
jge 0x401234
sub ecx, 4
add eax, 4
test ecx, ecx
jg 0x401180
mov esi, dword [esp + 0x14]
test cl, 3
je 0x40123e
movsx eax, byte [eax - 2]
cmp dword [eax*4 + 0x415350], 0x3f
jle 0x40123d
mov ecx, dword [esp + 0x18]
sub esi, 2
pop edi
mov byte [esi + ecx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
dec esi
mov ecx, dword [esp + 0x18]
pop edi
mov byte [esi + ecx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x401f80
Capabilities:
Create thread

Disassembly:
sub esp, 0x9c
mov eax, dword [0x4190cc]
xor eax, esp
mov dword [esp + 0x98], eax
push esi
mov esi, dword [esp + 0xa4]
push edi
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
xor ecx, ecx
cmp dword [esp + 0x1c], 2
push 0
sete cl
push 9
push 0
push 0
mov dword [0xc2bd08], ecx
call edi
push 0
push 9
push 0
push 0
mov dword [0xc2bce0], eax
call edi
push 0
push 0x10
push 0
push 0
mov dword [0xc2bd00], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 1
push 0
mov dword [esi + 0x21c], eax
call edi
push 0
push 0
push 1
push 0
mov dword [esi + 0x218], eax
call edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea edx, [esp + 8]
push edx
push 0
push 0
push 0x401df0
push 0
push 0
mov dword [0xc2bcec], eax
call edi
mov dword [0xc2bd04], eax
lea eax, [esp + 8]
push eax
push 0
push esi
push 0x4018d0
push 0
push 0
call edi
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
mov dword [0xc2bce4], eax
xor ecx, esp
mov eax, 1
call fcn.00408b84
add esp, 0x9c
ret 4
Function at 0x404770
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0x4190cc]
xor eax, esp
mov dword [esp + 0x210], eax
mov eax, dword [esp + 0x218]
push ebx
mov ebx, dword [esp + 4]
push ebp
mov ebp, dword [esp + 0x228]
push esi
mov esi, dword [esp + 0x228]
push edi
xor edi, edi
dec ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x230], ebp
cmp edi, ebp
jge 0x4048a6
jmp 0x4047cb
mov ebp, dword [esp + 0x230]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x200
lea edx, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4048d4
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4048a6
push ebx
lea ecx, [esp + 0x20]
push 0xa
push ecx
mov byte [esp + ebx + 0x28], 0
call 0x4098f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x404830
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push 0xd
push ecx
call 0x4098f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x404867
mov eax, ebp
lea edx, [esp + 0x1c]
mov ecx, esi
sub eax, edi
sub ecx, edx
cmp eax, ecx
mov ebp, eax
jl 0x404844
mov ebp, ecx
mov edx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
push 1
lea ecx, [esp + 0x20]
sub eax, ecx
push 0
inc eax
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, dword [esp + 0x10]
jmp 0x404873
mov ebx, dword [esp + 0x10]
sub ebp, edi
cmp ebp, ebx
jl 0x404873
mov ebp, ebx
mov ecx, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x20]
push eax
add ecx, edi
push ecx
call fcn.00408ba0
add esp, 0xc
add edi, ebp
test esi, esi
jne 0x40489b
cmp edi, dword [esp + 0x230]
jl 0x4047c0
mov ebp, dword [esp + 0x230]
mov esi, dword [esp + 0x18]
test edi, edi
jl 0x4048d7
jle 0x4048c1
lea esp, [esp]
mov al, byte [esi + edi - 1]
cmp al, 0xd
je 0x4048bc
cmp al, 0xa
jne 0x4048c1
dec edi
test edi, edi
jg 0x4048b0
mov byte [esi + edi], 0
cmp byte [esi], 0
jne 0x4048d7
test ebx, ebx
jne 0x4047b3
jmp 0x4048d7
or edi, 0xffffffff
mov ecx, dword [esp + 0x220]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00408b84
add esp, 0x214
ret 0xc