joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + ecx + 0x7c], 0
jne 0x4013e1
xor eax, eax
jmp 0x4015c4
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + ecx + 0x78], 0
jne 0x4013fa
xor eax, eax
jmp 0x4015c4
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx + 0x78]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0x14], 0
jmp 0x40144c
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x18]
sub eax, 1
cmp dword [ebp - 8], eax
ja 0x4015c1
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + edx]
cmp ecx, 0x47
jne 0x4015bc
mov edx, 1
shl edx, 0
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + edx]
cmp ecx, 0x65
jne 0x4015bc
mov edx, 1
shl edx, 1
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + edx]
cmp ecx, 0x74
jne 0x4015bc
mov edx, 1
imul eax, edx, 3
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax]
cmp edx, 0x50
jne 0x4015bc
mov eax, 1
shl eax, 2
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax]
cmp edx, 0x72
jne 0x4015bc
mov eax, 1
imul ecx, eax, 5
mov edx, dword [ebp - 4]
movsx eax, byte [edx + ecx]
cmp eax, 0x6f
jne 0x4015bc
mov ecx, 1
imul edx, ecx, 6
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + edx]
cmp ecx, 0x63
jne 0x4015bc
mov edx, 1
imul eax, edx, 7
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax]
cmp edx, 0x41
jne 0x4015bc
mov eax, 1
shl eax, 3
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax]
cmp edx, 0x64
jne 0x4015bc
mov eax, 1
imul ecx, eax, 9
mov edx, dword [ebp - 4]
movsx eax, byte [edx + ecx]
cmp eax, 0x64
jne 0x4015bc
mov ecx, 1
imul edx, ecx, 0xa
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + edx]
cmp ecx, 0x72
jne 0x4015bc
mov edx, 1
imul eax, edx, 0xb
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + eax]
cmp edx, 0x65
jne 0x4015bc
mov eax, 1
imul ecx, eax, 0xc
mov edx, dword [ebp - 4]
movsx eax, byte [edx + ecx]
cmp eax, 0x73
jne 0x4015bc
mov ecx, 1
imul edx, ecx, 0xd
mov eax, dword [ebp - 4]
movsx ecx, byte [eax + edx]
cmp ecx, 0x73
jne 0x4015bc
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x20]
movzx ecx, word [eax + edx*2]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + ecx*4]
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
jmp 0x4015c1
jmp 0x401443
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x401ca3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401ce2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401ce2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401ce2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401ce2
cmp dword [ecx + 0x74], 0xe
jbe 0x401ce2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401846
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x401874
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40186b
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x401863
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401895
mov esp, ebp
pop ebp
ret

Function at 0x401899
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x401905
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x401932
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x401921
xor ecx, eax
xor edx, ebx
dec edi
jne 0x401912
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x401958
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x4018f9
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x401984
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4027a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402809
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.004022d0
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret
Function at 0x411bbf
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 0x411bed
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x411c0b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411b25
jmp 0x411c0b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x411c0b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00411b25
test edi, edi
mov eax, edi
jne 0x411bf5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404e07
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f35
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404f0f
test eax, eax
jne 0x404e38
cmp dword [0x4085d4], 1
je 0x404f0f
cmp edx, 0xfc
je 0x404f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.00405720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403300
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.00403300
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405697
add esp, 0x2c
pop edi
jmp 0x404f35
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x7a5bf4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x235bc
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]
Function at 0x6e3280
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1da000]
push edi
or ebp, 0xffffffff
jmp 0x6e32a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6e32a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e3298
mov eax, 1
add ebx, ebx
jne 0x6e32bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6e32cc
jne 0x6e32eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e32eb
dec eax
add ebx, ebx
jne 0x6e32d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6e32b0
add ebx, ebx
jne 0x6e32e7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6e333d
xor ecx, ecx
sub eax, 3
jb 0x6e3303
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6e3372
sar eax, 1
mov ebp, eax
jmp 0x6e330e
add ebx, ebx
jne 0x6e330e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e32dc
inc ecx
add ebx, ebx
jne 0x6e331c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6e32dc
add ebx, ebx
jne 0x6e3329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6e331e
jne 0x6e333a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6e331e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6e335c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6e334e
jmp 0x6e329e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6e335c
add edi, ecx
jmp 0x6e329e
pop esi
mov edi, esi
mov ecx, 0x6639
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6e337a
cmp byte [edi], 0xa
jne 0x6e337a
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 al, bl
loop 0x6e337f
lea edi, [esi + 0x2da000]
mov eax, dword [edi]
or eax, eax
je 0x6e33f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2e7b64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2e7ca4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6e33ac
mov ecx, edi
jns 0x6e33db
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2e7ca8]
or eax, eax
je 0x6e33f1
mov dword [ebx], eax
add ebx, 4
jmp 0x6e33c9
call dword [esi + 0x2e7cb8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6e3428
cmp al, 0xef
ja 0x6e341b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6e33fd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6e340a
mov ebp, dword [esi + 0x2e7cac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6e345c
sub esp, 0xffffff80
jmp 0x4abab3
Function at 0x405ac0
Capabilities:
Accept command line arguments
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x405b10
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x405b30
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x405b87
xor ecx, ecx
xor edx, edx
jmp 0x405b69
cmp ax, 0x5c
jne 0x405bf0
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x405b87
cmp ax, 9
je 0x405b75
cmp ax, 0x20
jne 0x405b50
test ecx, ecx
je 0x405bdb
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x405b69
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x405c10
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404360
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x405bd8
cmp ax, 0x20
je 0x405bd8
jmp 0x405b87
cmp ax, 0x22
jne 0x405b79
and edx, 1
jne 0x405b79
xor ecx, 1
jmp 0x405b5d
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x405ba0
Function at 0x405b30
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x405b10
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call 0x405b30
mov dword [esp], eax
call sub.ucrtbase.dll_exit
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x405b87
xor ecx, ecx
xor edx, edx
jmp 0x405b69
cmp ax, 0x5c
jne 0x405bf0
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x405b87
cmp ax, 9
je 0x405b75
cmp ax, 0x20
jne 0x405b50
test ecx, ecx
je 0x405bdb
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x405b69
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x405c10
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00404360
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x405bd8
cmp ax, 0x20
je 0x405bd8
jmp 0x405b87
cmp ax, 0x22
jne 0x405b79
and edx, 1
jne 0x405b79
xor ecx, 1
jmp 0x405b5d
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x405ba0
Function at 0x19ce108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.019ce258
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 0x19ce12e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x19ce11a
add dl, dl
jne 0x19ce139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x19ce18c
xor eax, eax
add dl, dl
jne 0x19ce146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x19ce22d
add dl, dl
jne 0x19ce155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19ce160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19ce16b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19ce176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x19ce182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x19ce125
mov eax, 1
add dl, dl
jne 0x19ce19a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x19ce1a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x19ce191
sub eax, ebx
mov ebx, 1
jne 0x19ce1d8
mov ecx, 1
add dl, dl
jne 0x19ce1be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x19ce1c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x19ce1b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x19ce125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x19ce1ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x19ce1fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x19ce1e6
cmp eax, 0x7d00
jae 0x19ce21d
cmp eax, 0x500
jb 0x19ce218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x19ce125
cmp eax, 0x7f
ja 0x19ce220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x19ce125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x19ce24e
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 0x19ce125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x402914
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402951
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402971
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404a0c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b38
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040478c
test esi, esi
jne 0x402b6e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040487c
jmp 0x402b8c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029ec
mov edi, eax
test esi, esi
je 0x402b8c
cmp dword [ebx], 0
je 0x402b8c
dec esi
jmp 0x402b75
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4038bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x479020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403954
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403934
xor eax, eax
push ebp
push 0x40392d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403970
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403934
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x479020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x479020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404610
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47c04c], 0
je 0x404671
cmp word [0x47c220], 0xd7b2
jne 0x404639
cmp dword [0x47c228], 0
jbe 0x404639
mov eax, 0x47c21c
call dword [0x47c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x479090
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404698
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x479030], 0
jne 0x40468d
push 0
push 0x479088
push 0x479090
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406950
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4069b6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404a0c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403324
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4069a0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4069bd
lea eax, [ebp - 0x10]
call fcn.0040478c
ret

Function at 0x409414
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404c5c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40942d
test al, 0x10
jne 0x409431
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40c5c8
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_1
test eax, eax
jle 0x40c601
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040487c
jmp 0x40c60a
mov eax, ebx
mov edx, esi
call fcn.004047e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c614
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_1
test eax, eax
jle 0x40c635
mov al, byte [esp]
jmp 0x40c637
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ce08
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40cc80
mov eax, dword [0x47b624]
cmp byte [eax], 0
je 0x40ce84
mov eax, dword [0x47b3a0]
call fcn.00402f80
call fcn.00402894
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00409784
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40cecc
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ceba
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47b330]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47c668]
call fcn.00405e64
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret