joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1ce0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1ce01a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x1ce007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ce006a
add dl, dl
jne 0x1ce0089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ce00dc
xor eax, eax
add dl, dl
jne 0x1ce0096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x1ce017d
add dl, dl
jne 0x1ce00a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ce00b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ce00bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ce00c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1ce00d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1ce0075
mov eax, 1
add dl, dl
jne 0x1ce00ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1ce00f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ce00e1
sub eax, ebx
mov ebx, 1
jne 0x1ce0128
mov ecx, 1
add dl, dl
jne 0x1ce010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ce0119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ce0105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ce0075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1ce013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1ce014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1ce0136
cmp eax, 0x7d00
jae 0x1ce016d
cmp eax, 0x500
jb 0x1ce0168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ce0075
cmp eax, 0x7f
ja 0x1ce0170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1ce0075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x1ce019e
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 0x1ce0075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4068db
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068ff
xor eax, eax
test eax, eax
je 0x406912
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406912
xor ecx, ecx
jmp 0x406915
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a38
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43110c], 0
push esi
jne 0x406a6f
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a49
mov dword [ecx*4 + 0x431108], eax
inc ecx
cmp ecx, 0x100
jl 0x406a44
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406aa0
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431108]
xor eax, esi
inc ecx
dec edx
jne 0x406a82
pop edi
not eax
pop esi
ret 0xc

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x403602
Capabilities:
Terminate process

Disassembly:
jmp 0x45a7e4
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x45a7f5
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405957
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403729
Capabilities:
Query environment variable

Disassembly:
jmp 0x4a7984
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a7995
pop esi
ret
push ebx
push edi
push esi
call fcn.004a786b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fe4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a79bd
push ebx
push esi
push edi
call fcn.0040573b
add esp, 0xc
push 0
call fcn.004062b7
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405803
Capabilities:
Parse pe header

Disassembly:
jmp 0x44964d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x44968c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x44968c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x44968c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x44968c
cmp dword [ecx + 0x74], 0xe
jbe 0x44968c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x44713c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.00403788
mov eax, dword [eax + 0x14]
test eax, eax
je 0x44717f
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x44717f
sub eax, 1
je 0x44717a
sub eax, 1
je 0x447176
xor eax, eax
leave
ret
push 3
jmp 0x447181
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x45ad17
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45ad56
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45ad56
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45ad56
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45ad56
cmp dword [ecx + 0x74], 0xe
jbe 0x45ad56
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x49e76f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.00401da2
mov eax, dword [0x4d8040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405ebb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49e7b1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49e928
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406000
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4dbbc8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403288
mov ecx, dword [esi*4 + 0x4dbbc8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49e921
cmp eax, dword [edi + ecx + 0x24]
jne 0x49e921
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e921
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403288
add esp, 0x14
cmp edx, esi
jl 0x49e921
jg 0x49e87c
cmp eax, esi
jb 0x49e921
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x49e921
jl 0x49e89e
cmp dword [ebp - 0x1008], eax
ja 0x49e921
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x49e8c3
cmp ebx, esi
je 0x49e908
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x49e908
mov al, byte [ecx]
cmp al, 0xd
jne 0x49e8e9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49e8f5
cmp byte [ecx + 1], 0xa
jne 0x49e8f5
inc ecx
jmp 0x49e8f5
movzx eax, al
movsx eax, byte [eax + 0x4d85c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49e8cf
cmp edx, ebx
jne 0x49e8cf
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x49e926
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403062
leave
ret
Function at 0x49efcc
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x49efe6
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x49effd
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x49f055
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.004044bc
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x49f055
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x49f055
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x49f055
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x49f04f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x49f051
xor bl, bl
mov al, bl
jmp 0x49f057
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x49f098
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4dbbc8]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x49f0da
cmp byte [ebx], 0xa
jne 0x49f0da
or byte [edi + eax + 0x28], 4
jmp 0x49f0df
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49f1e2
mov cl, byte [eax]
cmp cl, 0x1a
je 0x49f1bd
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x49f10e
mov eax, dword [ebp - 8]
jmp 0x49f12e
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x49f14a
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x49f128
add eax, 2
mov cl, 0xa
jmp 0x49f12b
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x49f0f0
jmp 0x49f1e2
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f1b8
cmp dword [ebp - 0x10], 0
je 0x49f1b8
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x4dbbc8]
test byte [eax + edi + 0x28], 0x48
je 0x49f197
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x49f187
mov byte [esi], 0xa
jmp 0x49f1e1
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x4dbbc8]
mov byte [eax + edi + 0x2a], cl
jmp 0x49f1e1
cmp byte [ebp - 1], 0xa
jne 0x49f1a1
cmp esi, ebx
je 0x49f182
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49f1e2
mov byte [esi], 0xd
jmp 0x49f1e1
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x4dbbc8]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x49f1df
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x49f1e2
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49f23f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x4dbbc8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x49f283
push 0xa
pop esi
cmp word [ebx], si
jne 0x49f283
or byte [eax + edi + 0x28], 4
jmp 0x49f288
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x49f3f3
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x49f3cb
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x49f2d5
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x49f2ff
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x49f31e
push 0xa
pop ebx
cmp word [edx], bx
jne 0x49f2ec
push ebx
add eax, 4
pop edx
jmp 0x49f2f4
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x49f29a
jmp 0x49f3f3
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49f3c6
cmp dword [ebp - 0x14], 0
je 0x49f3c6
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x4dbbc8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x49f3a2
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x49f36a
mov word [esi], ax
jmp 0x49f3f0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x4dbbc8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4dbbc8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4dbbc8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x49f3f0
cmp word [ebp - 4], ax
jne 0x49f3ac
cmp esi, ebx
je 0x49f362
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x49f3f3
push 0xd
pop eax
jmp 0x49f362
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x4dbbc8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x49f3ed
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x49f3f3
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a5e7f
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d8040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a5eca
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a6335
test al, al
jne 0x4a5ec4
sub edx, 2
cmp edx, edi
jne 0x4a5eaa
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a5eec
lea eax, [edi + 2]
cmp edx, eax
je 0x4a5eec
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a5a6f
add esp, 0x10
jmp 0x4a5fe4
push esi
lea ecx, [ebp - 0x255]
call fcn.004a6335
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a5f2d
push dword [ebp - 0x25c]
jmp 0x4a5edc
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a5f6a
cmp word [ebp - 0x226], 0
je 0x4a5f8b
cmp word [ebp - 0x226], ax
jne 0x4a5f6a
cmp word [ebp - 0x224], 0
je 0x4a5f8b
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a5a6f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a5fd7
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a5f44
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a5fbf
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a5fe4
push 0x4a5457
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405592
add esp, 0x10
jmp 0x4a5fb4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403062
leave
ret

Function at 0x4ab670
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0040430e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ab6df
cmp esi, dword [ebp - 4]
je 0x4ab6da
cmp dword [ebp + 0xc], 0
je 0x4ab6da
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ab6b7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004ab09b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4ab6e1
xor eax, eax
inc eax
jmp 0x4ab6e1
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x402944
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 0x402981
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 0x4029a1
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404c30
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b68
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.004049c0
test esi, esi
jne 0x402b9e
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.00404ab0
jmp 0x402bbc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a1c
mov edi, eax
test esi, esi
je 0x402bbc
cmp dword [ebx], 0
je 0x402bbc
dec esi
jmp 0x402ba5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4032d4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x49b008], 0x8088405
inc edx
mov dword [ebx + 0x49b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403a5c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403af4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403ad4
xor eax, eax
push ebp
push 0x403acd
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 0x403b10
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 0x403ad4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x49b024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49e04c], 0
je 0x404821
cmp word [0x49e220], 0xd7b2
jne 0x4047e9
cmp dword [0x49e228], 0
jbe 0x4047e9
mov eax, 0x49e21c
call dword [0x49e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49b094
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 0x404848
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49b034], 0
jne 0x40483d
push 0
push 0x49b08c
push 0x49b094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404974
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.0040275c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49e04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40493c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc