joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402d98
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x15c]
mov esi, 0x405064
push ebx
sub esp, 0x17c
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x11c], 0
mov eax, dword [0x407040]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov eax, 0x10
mov ecx, eax
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x118]
mov eax, ecx
mov ecx, 0x3f
rep stosd dword es:[edi], eax
movzx edx, byte [ebp + eax - 0x15c]
mov byte [ebp + edx - 0x11c], al
inc eax
cmp eax, 0x40
jne 0x402dde
xor edx, edx
test byte [ebp + 0xc], 3
jne 0x402f76
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
shr edx, 2
cmp byte [ebx + eax - 1], 0x3d
lea edx, [edx + edx*2]
jne 0x402e13
dec edx
mov eax, dword [ebp + 0xc]
cmp byte [ebx + eax - 2], 0x3d
jne 0x402e1e
dec edx
lea eax, [edx + 0xf]
shr eax, 4
shl eax, 4
call fcn.00402954
mov ecx, 0
mov dword [ebp - 0x170], 0
sub esp, eax
test edx, edx
cmovns ecx, edx
mov edi, esp
xor eax, eax
mov dword [ebp - 0x174], esp
xor esi, esi
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x170]
cmp eax, dword [ebp + 0xc]
jb 0x402e6c
mov esi, dword [ebp - 0x174]
mov edi, ebx
mov ecx, edx
rep movsb byte es:[edi], byte [esi]
jmp 0x402f76
mov eax, dword [ebp - 0x170]
xor edi, edi
movzx eax, byte [ebx + eax]
cmp al, 0x3d
je 0x402e84
movzx edi, byte [ebp + eax - 0x11c]
mov dword [ebp - 0x178], 0
mov eax, dword [ebp - 0x170]
movzx eax, byte [ebx + eax + 1]
cmp al, 0x3d
je 0x402eab
movzx eax, byte [ebp + eax - 0x11c]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x17c], 0
mov eax, dword [ebp - 0x170]
movzx eax, byte [ebx + eax + 2]
cmp al, 0x3d
je 0x402ed2
movzx eax, byte [ebp + eax - 0x11c]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x170]
xor ecx, ecx
add dword [ebp - 0x170], 4
movzx eax, byte [ebx + eax + 3]
cmp al, 0x3d
je 0x402ef4
movzx eax, byte [ebp + eax - 0x11c]
mov ecx, eax
mov dword [ebp - 0x16c], esi
cmp edx, esi
ja 0x402f09
mov esi, dword [ebp - 0x16c]
jmp 0x402e50
mov eax, dword [ebp - 0x178]
shl edi, 0x12
inc dword [ebp - 0x16c]
shl eax, 0xc
add eax, edi
mov edi, dword [ebp - 0x17c]
shl edi, 6
add eax, edi
mov edi, dword [ebp - 0x174]
add eax, ecx
mov ecx, eax
shr eax, 0x10
mov byte [edi + esi], al
cmp edx, dword [ebp - 0x16c]
jbe 0x402efe
lea eax, [esi + 2]
mov dword [ebp - 0x178], eax
mov eax, edi
mov edi, dword [ebp - 0x16c]
mov byte [eax + edi], ch
lea eax, [esi + 2]
mov dword [ebp - 0x16c], eax
cmp edx, eax
jbe 0x402efe
lea eax, [esi + 3]
mov dword [ebp - 0x16c], eax
mov eax, dword [ebp - 0x174]
mov byte [eax + esi + 2], cl
jmp 0x402efe
mov eax, dword [ebp - 0x1c]
sub eax, dword [0x407040]
je 0x402f86
call fcn.00401770
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4031c4
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
test ebx, ebx
je 0x403201
cmp word [ebx + 0x24], 0
je 0x4031ff
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x28]
mov dword [esp], eax
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x4031fb
mov ebx, dword [ebx + 0x10]
jmp 0x403201
mov ebx, dword [ebx]
jmp 0x4031d4
xor ebx, ebx
add esp, 0x18
mov eax, ebx
pop ebx
ret 4

Function at 0x40320c
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [esp + 0x40]
cmp word [ebx], 0x5a4d
jne 0x40328b
mov edx, dword [ebx + 0x3c]
add edx, ebx
cmp dword [edx], 0x4550
jne 0x40328b
mov eax, dword [edx + 0x78]
xor esi, esi
add eax, ebx
mov ecx, dword [eax + 0x14]
mov ebp, dword [eax + 0x20]
mov edi, dword [eax + 0x1c]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x24]
add ebp, ebx
add ecx, ebx
mov dword [esp + 0x1c], ecx
cmp dword [esp + 0x14], esi
je 0x403289
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + esi*2]
lea eax, [ebx + eax*4]
mov eax, dword [eax + edi]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + esi*4]
add eax, ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x44]
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x403286
mov eax, dword [esp + 0x18]
add eax, ebx
jmp 0x40328b
inc esi
jmp 0x40324c
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x43cda1
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x43cdcf
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x43cded
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0043cd0b
jmp 0x43cded
mov eax, dword [esi + 0x14]
test eax, eax
je 0x43cded
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0043cd0b
test edi, edi
mov eax, edi
jne 0x43cdd7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x566af4]
test ecx, ecx
je 0x43cea0
jmp 0x43cda0
ret 8

Function at 0x418180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x4181a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4181a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418198
mov eax, 1
add ebx, ebx
jne 0x4181bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4181b0
jne 0x4181cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181b0
xor ecx, ecx
sub eax, 3
jb 0x4181e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418252
mov ebp, eax
add ebx, ebx
jne 0x4181eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4181f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41821c
inc ecx
add ebx, ebx
jne 0x418208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4181fd
jne 0x418219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41823c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41822d
jmp 0x41819e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41823c
add edi, ecx
jmp 0x41819e
pop esi
mov edi, esi
mov ecx, 0x3b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41825a
cmp byte [edi], 0
jne 0x41825a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41825f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x4182ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x180b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41828c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18118]
or eax, eax
je 0x4182c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4182a9
call dword [esi + 0x1811c]
popal
jmp 0x40a630
Function at 0x401a82
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43014c]
jne 0x401a8c
repz ret
jmp fcn.0040252b

Function at 0x40b0be
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43014c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00404144
and dword [ebp - 0x14], 0
cmp dword [0x432bf8], 0
mov dword [ebp - 0x18], eax
jne 0x40b171
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b219
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b219
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x432bf8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x432bfc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x432c00], eax
call edi
push eax
call esi
mov dword [0x432c08], eax
test eax, eax
je 0x40b171
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x432c04], eax
mov eax, dword [0x432c04]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b1ca
cmp dword [0x432c08], ecx
je 0x40b1ca
push eax
call esi
push dword [0x432c08]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b1ca
test ebx, ebx
je 0x40b1ca
call edi
test eax, eax
je 0x40b1c1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b1c1
test byte [ebp - 8], 1
jne 0x40b1ca
or dword [ebp + 0x10], 0x200000
jmp 0x40b1fd
mov eax, dword [0x432bfc]
cmp eax, dword [ebp - 0x18]
je 0x40b1fd
push eax
call esi
test eax, eax
je 0x40b1fd
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b1fd
mov eax, dword [0x432c00]
cmp eax, dword [ebp - 0x18]
je 0x40b1fd
push eax
call esi
test eax, eax
je 0x40b1fd
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x432bf8]
call esi
test eax, eax
je 0x40b219
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b21b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a82
leave
ret
Function at 0x4220f0
Capabilities:
Get geographical location

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x42217e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
cmp dword [esp + 0x18], 0x2d
jne 0x42213c
push 0
push str.tabukojugacefofehevugijumapo_lezegiyoritatureguhikihubumuw_xaxeharufutogokurulumifadasovac_vubecifuwibugawiculedodov_cezotoburosuhipijavor
call edi
push str.fidodekodinifobuyox
push str.mayuretubayazihexe
push str.fetodidibamonasuyifiluhib
push str.vizuzecizeyasufuhizosusi
call ebx
push 0
call ebp
call fcn.00422040
mov ecx, dword [esp + 0x14]
xor byte [esi + ecx], al
cmp dword [esp + 0x18], 0xf
jne 0x422174
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push str.lavenoxatorav
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
inc esi
cmp esi, dword [esp + 0x18]
jl 0x422112
pop edi
pop ebp
pop ebx
cmp dword [esp + 0xc], 0x2d
pop esi
jne 0x42219a
mov dword [0x433908], 0xa62e7790
mov dword [0x43390c], 0xffffffff
ret
Function at 0x422560
Capabilities:
Access the windows event log
Set file attributes

Disassembly:
mov eax, dword [0x4338fc]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov ebp, 0x1519a5
lea esp, [esp]
mov dword [0x433564], 0x8e46a7b8
cmp eax, 0x3dc
jne 0x4225aa
push 0
push str.gajaracuvegipozatoxesom
call esi
push str.kimezufiyutodojaxejuweg
push 0
push 0
call edi
mov eax, dword [0x4338fc]
dec ebp
jne 0x422580
mov edi, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
xor esi, esi
mov ebp, 0xec58acac
lea ebx, [ebx]
cmp eax, 0x997
jne 0x4225d2
push 0
push 0
call edi
mov eax, dword [0x4338fc]
cmp esi, 0x846373
jne 0x4225e9
mov eax, dword [0x431ad0]
add eax, 0xa231
mov dword [0x4338fc], eax
cmp eax, 0x141
jne 0x422600
mov dword [0x433138], ebp
mov dword [0x43313c], 0xffffffff
inc esi
cmp esi, 0x123c962
jl 0x4225c0
call fcn.004221e0
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x40103c
Capabilities:
Terminate process

Disassembly:
mov dword [0x402475], eax
mov edx, eax
call dword [sym.imp.kernel32.dll_GetTickCount]
xor edi, edi
call dword [sym.imp.kernel32.dll_GetVersion]
xor esi, esi
push dword [0x403587]
call dword [sym.imp.winmm.dll_waveOutClose]
add eax, 6
test eax, 0xb
jne 0x401075
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov edx, eax
ret

Function at 0x4033a3
Capabilities:
Get graphical window text

Disassembly:
add esi, dword [0x56db2108]
mov ecx, dword [eax + ecx*2]
jnp 0x4033d1
call 0xf35c641c
mov esi, dword [eax]
sbb al, 0xf3
inc ebp
clc
mov esi, esp
cwde
inc ebp
clc
jmp 0x40338d
jnp 0x4033c0
jns 0x403381
jnp 0x403405
cld
mov eax, ecx
mov ecx, dword [ebx + 0x1c]
or dword [ebx + 0x84b8b0b], 0x24491d79
xor byte [eax], al
pop eax
add al, 0x23
inc eax
invalid
push 0xfffffffffffffff0
push 0xfffffffffffffff0
push 0x303303
out dx, eax
adc eax, 0x30358c
inc eax
push 0x30327f
xor byte [eax], al
inc eax
inc dword [0xf0403100]
mov dword [0x303594], eax
dec eax
push 0x3032d8
inc eax
inc dword [0xf0403100]
mov dword [0x303598], eax
mov bl, 0xf
je 0x4033e4
pcmpeqb mm3, mm4
invalid

Function at 0x403462
Capabilities:
Execute anti-debugging instructions

Disassembly:
push eax
mov edi, eax
mov esi, 0x4025b0
mov ecx, dword [0x403222]
shr ecx, 1
dec ecx
mov bl, byte [0x403226]
rdtsc
push eax
mov bh, byte [esi]
inc esi
mov byte [edi], bh
inc edi
mov al, byte [esi]
stosb byte es:[edi], al
add byte [edi - 1], bl
inc esi
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
loop 0x403482
rdtsc
pop edx
sub eax, edx
sub esp, 0x18
push 0
push dword [0x40245d]
call dword [sym.imp.Msacm32.dll_acmStreamOpen]
pop edx
sub edx, eax
push edx
push 0
push 0
push 0x4032fa
call dword [fcn.0040359c]
push 0x4032b5
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [fcn.00403590], eax
push 0
push 2
push 0x4032f8
push 0x4032c4
call dword [fcn.00403590]
pop edx
sub edx, eax
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403cf8
nop
sub eax, 0x403c9e
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x108e5058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.108e51a8
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 0x108e507e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108e506a
add dl, dl
jne 0x108e5089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108e50dc
xor eax, eax
add dl, dl
jne 0x108e5096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108e517d
add dl, dl
jne 0x108e50a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108e50b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108e50bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108e50c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108e50d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108e5075
mov eax, 1
add dl, dl
jne 0x108e50ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108e50f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108e50e1
sub eax, ebx
mov ebx, 1
jne 0x108e5128
mov ecx, 1
add dl, dl
jne 0x108e510e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108e5119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108e5105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108e5075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108e513f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108e514a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108e5136
cmp eax, 0x7d00
jae 0x108e516d
cmp eax, 0x500
jb 0x108e5168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108e5075
cmp eax, 0x7f
ja 0x108e5170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108e5075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108e519e
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 0x108e5075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x108ba058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x108ba1a8
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 0x108ba07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108ba06a
add dl, dl
jne 0x108ba089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108ba0dc
xor eax, eax
add dl, dl
jne 0x108ba096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x108ba17d
add dl, dl
jne 0x108ba0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108ba0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108ba0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108ba0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x108ba0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x108ba075
mov eax, 1
add dl, dl
jne 0x108ba0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x108ba0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108ba0e1
sub eax, ebx
mov ebx, 1
jne 0x108ba128
mov ecx, 1
add dl, dl
jne 0x108ba10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108ba119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108ba105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108ba075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x108ba13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x108ba14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x108ba136
cmp eax, 0x7d00
jae 0x108ba16d
cmp eax, 0x500
jb 0x108ba168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108ba075
cmp eax, 0x7f
ja 0x108ba170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x108ba075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x108ba19e
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 0x108ba075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406264
Capabilities:
Packed with generic packer

Disassembly:
cmp dword [ebp - 0x28], 0
je 0x406285
jl 0x406278
call 0x406285
dec dword [ebp - 0x28]
jne 0x40626c
jmp 0x406285
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jle 0x406295
adc ch, bl
inc ecx
jmp 0x4062c6
mov al, byte [ebx]
inc ebx
or al, al
jne 0x406297
dec ebx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jle 0x4062c6
mov al, 0x30
cmp dword [ebp - 0x24], 0
jne 0x4062a8
mov ah, al
mov al, byte [0x40c49b]
stosw word es:[edi], ax
jmp 0x4062c6
stosb byte es:[edi], al
cmp byte [ebp - 8], 0
je 0x4062c6
mov eax, dword [ebp - 0x24]
ja 0x406282
sub dword [eax + 0x22], edi
ja 0x40632b
add dword [ecx], ebp
add bh, al
ret

Function at 0x406285
Capabilities:
Packed with generic packer

Disassembly:
cmp dword [ebp - 0x28], 0
je 0x406285
jl 0x406278
call 0x406285
dec dword [ebp - 0x28]
jne 0x40626c
jmp 0x406285
inc dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x1c]
jle 0x406295
adc ch, bl
inc ecx
jmp 0x4062c6
mov al, byte [ebx]
inc ebx
or al, al
jne 0x406297
dec ebx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jle 0x4062c6
mov al, 0x30
cmp dword [ebp - 0x24], 0
jne 0x4062a8
mov ah, al
mov al, byte [0x40c49b]
stosw word es:[edi], ax
jmp 0x4062c6
stosb byte es:[edi], al
cmp byte [ebp - 8], 0
je 0x4062c6
mov eax, dword [ebp - 0x24]
ja 0x406282
sub dword [eax + 0x22], edi
ja 0x40632b
add dword [ecx], ebp
add bh, al
ret
Function at 0x4062b2
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
pushal
mov ecx, 0x4000
mov ebx, 0x180
xor ecx, ebx
push 0x7762e829
mov edx, 0x77227829
and dh, byte [edi + 0x5e]
xor edx, esi
xor ecx, edx
mov edi, dword [ecx]
xor ebx, ebx
add ebx, edi
mov edx, 0xffffffa6
sub ebx, edx
mov ecx, dword [ebx - 0x5a]
mov ebx, ecx
mov edx, ebx
mov edi, 0xffffffff
xor edx, edi
and edx, 0xcb7efe07
and ecx, 0x348101f8
or ecx, edx
mov edi, ecx
xchg edi, edx
mov ebx, 0xfffffffc
add esp, ebx
mov dword [esp], edx
mov edi, esp
add edi, 4
dec edi
mov edx, dword [edi - 3]
mov eax, 4
add esp, eax
mov ebx, edx
mov esi, ebx
sub esp, 4
mov ecx, esp
mov dword [ecx], esi
mov eax, 0x290100
mov ebx, 0x4002008c
xor eax, ebx
xor edx, eax
sub esi, esi
add esi, edx
and esi, esi
jne 0x406351
mov ecx, 0
mov edi, 0
xor ecx, edi
push ecx
pop edx
xor esi, esi
add esi, edx
mov edi, esi
push edi
xor edi, edi
add edi, edx
mov esi, 0xf4cdf616
xor edi, esi
xor edi, 0xb3209e9
and edi, 0xcb7edbf8
and edx, 0x34812407
or edx, edi
and edx, 0xffff
cmp edx, 0
jne 0x406397
mov esi, 0x36fbc047
xor esi, 0x36fbc047
push esi
pop edi
mov edx, edi
xchg ecx, edx
add esp, 0xfffffffc
mov edx, esp
mov dword [edx], ecx
mov ebx, 0x478bab55
xor ebx, 0xf19de07
xor edi, ebx
test edi, edi
jne 0x4063c6
mov esi, 0xffffff59
add esi, 0xa7
push esi
pop ecx
cmp ecx, 0
jne 0x4063f0
pop edx
mov edi, 0x60127953
xor edi, 0x60525357
mov ecx, 0x13f18b9a
mov esi, 0x13f18af8
xor esi, ecx
xor edi, esi
call edi
popal
pop ebp
jmp fcn.00408fac

Function at 0x4069dc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x406a24
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00406978
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406a2b
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406c2c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406cba
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406c77
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406ca4
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406c8b
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406c9a
lea edx, [ebp - 4]
call fcn.00406af0
test ebx, ebx
je 0x406c9a
dec ebx
jmp 0x406c7c
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406cc1
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x406cc8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00404dd0
add esp, 0x104
pop ebx
ret