joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406763
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406682
mov dword [esp + 0x14], eax
test bl, 8
je 0x4067a5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x4295e8], eax
jmp 0x406924
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x4067c2
test eax, eax
je 0x406913
test bl, 2
je 0x4068dc
push esi
push 0x424a70
call fcn.00406b64
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x4067e5
push str..
push 0x424a70
call ebp
jmp 0x4067eb
push esi
call fcn.00406d5a
xor eax, eax
cmp word [esi], ax
jne 0x4067fc
cmp word [0x424a70], 0x5c
jne 0x406804
push 0x4082a8
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x424a70
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4068c5
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x40684e
cmp word [esp + 0x4a], 0
je 0x4068a7
cmp word [esp + 0x4a], ax
jne 0x40684e
cmp word [esp + 0x4c], 0
je 0x4068a7
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.00406b64
test byte [esp + 0x1c], 0x10
je 0x406875
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x4068a7
push ebx
push esi
call fcn.00406763
jmp 0x4068a7
push edi
push esi
call fcn.004065cf
test eax, eax
jne 0x40689f
test edi, edi
je 0x406897
push esi
push 0xfffffffffffffff1
call fcn.00405d93
xor eax, eax
push eax
push esi
call fcn.00406287
jmp 0x4068a7
inc dword [0x4295e8]
jmp 0x4068a7
push esi
push 0xfffffffffffffff2
call fcn.00405d93
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406830
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406923
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
cmp dword [esp + 0x18], ecx
je 0x406913
push esi
call fcn.00406619
test eax, eax
je 0x406923
push esi
call fcn.004065a0
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004065cf
test eax, eax
jne 0x40691b
test edi, edi
je 0x406913
push esi
push 0xfffffffffffffff1
call fcn.00405d93
xor eax, eax
push eax
push esi
call fcn.00406287
jmp 0x406923
inc dword [0x4295e8]
jmp 0x406923
push esi
push 0xffffffffffffffe5
call fcn.00405d93
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
push 0
cmove eax, ecx
push eax
push dword [esp + 0x14]
push ecx
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc
Function at 0x4069c1
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x800
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406322
mov edi, dword [ebp + 0x14]
test eax, eax
jne 0x406a33
push esi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp + 0x18]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
mov word [edi + 0x7fe], ax
pop esi
jne 0x406a33
cmp dword [ebp + 0x18], 1
je 0x406a38
cmp dword [ebp + 0x18], 2
je 0x406a38
xor eax, eax
mov word [edi], ax
pop edi
leave
ret 0x14

Function at 0x406a3d
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

Function at 0x406aa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp - 8], 0x73006e
mov dword [ebp - 4], 0x61
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
add word [ebp - 4], dx
lea eax, [ebp - 8]
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406aea
test edi, edi
jne 0x406aad
mov word [esi], ax
jmp 0x406aec
mov eax, esi
pop edi
pop esi
leave
ret 8

Function at 0x406be7
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406c09
mov ecx, esi
and ecx, 0xfffffffe
push ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

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

Disassembly:
cmp dword [0x4270c4], 0
push esi
jne 0x406ec0
xor ecx, ecx
push 8
mov edx, ecx
pop esi
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
sub esi, 1
jne 0x406e97
mov dword [ecx*4 + 0x4270c0], edx
inc ecx
cmp ecx, 0x100
jl 0x406e92
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
not ecx
test edx, edx
je 0x406eea
mov esi, dword [esp + 0xc]
movzx eax, byte [esi]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4270c0]
inc esi
sub edx, 1
jne 0x406ed2
not ecx
mov eax, ecx
pop esi
ret 0xc
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 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x69927bf6
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x126d4364
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x6bad16b1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 1
jne 0x6bad16fd
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [0x6bb8a3a4], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6bad1684
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
leave
mov eax, 1
ret 0xc

Function at 0x6bad1706
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6bad169b
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
leave
ret 8
Function at 0x6badceb0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6baddaf0
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6baddaf0
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6badcf10
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6bb8a378]
test esi, esi
jle 0x6badd020
mov edi, dword [0x6bb8a37c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6badcf44
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6badcfc5
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x6badcf30
mov dword [esp], eax
mov ebx, eax
call fcn.6badd670
mov edi, eax
test eax, eax
je 0x6badd047
mov eax, dword [0x6bb8a37c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6badd780
mov edx, dword [0x6bb8a37c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6badd027
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6badcfbe
sub eax, 4
and eax, 0xfffffffb
jne 0x6badcfcc
add dword [0x6bb8a378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x6bb8a37c]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6badcfbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6badceb0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6badcf4e
mov eax, dword [0x6bb8a37c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6badceb0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6badceb0
lea esi, [esi]
nop
Function at 0x6badd2c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6bb8a388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6bb8a380]
sub esp, 4
test ebx, ebx
je 0x6badd315
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6badd30e
test esi, esi
je 0x6badd30e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6badd2f0
mov dword [esp], 0x6bb8a388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4035f3
Capabilities:
Terminate process

Disassembly:
jmp 0x455384
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x455395
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058fd
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 0x40371a
Capabilities:
Query environment variable

Disassembly:
jmp 0x49ca91
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49caa2
pop esi
ret
push ebx
push edi
push esi
call fcn.0049c978
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49caca
push ebx
push esi
push edi
call fcn.004056f5
add esp, 0xc
push 0
call fcn.00406221
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4057ae
Capabilities:
Parse pe header

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

Function at 0x442327
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.00403779
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x442366
sub eax, 1
je 0x442361
sub eax, 1
je 0x44235d
xor eax, eax
leave
ret
push 3
jmp 0x442368
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x488757
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d98
mov eax, dword [0x4ce040]
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.00405e34
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x493c69
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x493dc5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f8d
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4d1a98]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040328d
mov ecx, dword [esi*4 + 0x4d1a98]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x493dbe
cmp eax, dword [ecx + edi + 0x24]
jne 0x493dbe
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x493dbe
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040328d
add esp, 0x14
test edx, edx
jl 0x493dbe
jg 0x493d34
test eax, eax
jb 0x493dbe
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x493dbe
jl 0x493d4e
cmp dword [ebp - 0x1008], eax
ja 0x493dbe
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x493d6c
test ebx, ebx
je 0x493da5
cmp ecx, edi
jae 0x493da5
mov al, byte [ecx]
cmp al, 0xd
jne 0x493d86
lea eax, [edi - 1]
cmp ecx, eax
jae 0x493d92
cmp byte [ecx + 1], 0xa
jne 0x493d92
inc ecx
jmp 0x493d92
movzx eax, al
movsx eax, byte [eax + 0x4ce3a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x493d6c
cmp edx, ebx
jne 0x493d6c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x493dc3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040305d
leave
ret
Function at 0x494504
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4d1a98]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x494544
cmp byte [ebx], 0xa
jne 0x494544
or byte [edi + eax + 0x28], 4
jmp 0x494549
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x494648
mov dl, byte [eax]
cmp dl, 0x1a
je 0x49462b
inc eax
cmp dl, 0xd
je 0x494575
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x49459b
cmp eax, ecx
jae 0x4945a9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x49455d
jmp 0x494648
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 0x494626
cmp dword [ebp - 0x10], 0
je 0x494626
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d1a98]
test byte [eax + edi + 0x28], 0x48
je 0x494600
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4945eb
mov byte [esi], dl
jmp 0x4945fc
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d1a98]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x494648
cmp byte [ebp - 1], 0xa
jne 0x49460f
cmp esi, ebx
jne 0x49460f
mov byte [esi], 0xa
jmp 0x494647
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401942
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x494648
mov byte [esi], 0xd
jmp 0x494647
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d1a98]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x494645
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x494648
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4946a4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4d1a98]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4946ea
cmp word [ebx], dx
jne 0x4946ea
or byte [eax + edi + 0x28], 4
jmp 0x4946ef
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x494852
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x494832
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x494730
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x494766
cmp eax, edx
jae 0x494774
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x49470b
jmp 0x494852
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49482d
cmp dword [ebp - 0x18], 0
je 0x49482d
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d1a98]
test byte [eax + edi + 0x28], 0x48
je 0x494803
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4947c7
mov word [esi], cx
jmp 0x4947fe
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d1a98]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4d1a98]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d1a98]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x494852
pop eax
cmp word [ebp - 4], ax
jne 0x494813
cmp esi, ebx
jne 0x494813
mov word [esi], ax
jmp 0x49484f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401942
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x494852
push 0xd
pop eax
jmp 0x49480e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d1a98]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x49484c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x494852
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x49b047
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4ce040]
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 0x49b092
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049b4ff
test al, al
jne 0x49b08c
sub edx, 2
cmp edx, edi
jne 0x49b072
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49b0b4
lea eax, [edi + 2]
cmp edx, eax
je 0x49b0b4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049ac40
add esp, 0x10
jmp 0x49b1ae
push esi
lea ecx, [ebp - 0x255]
call fcn.0049b4ff
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x49b0f7
push dword [ebp - 0x25c]
jmp 0x49b0a4
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 0x49b134
cmp word [ebp - 0x226], 0
je 0x49b155
cmp word [ebp - 0x226], ax
jne 0x49b134
cmp word [ebp - 0x224], 0
je 0x49b155
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049ac40
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49b1a1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49b10e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49b189
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49b1ae
push 0x49a628
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405556
add esp, 0x10
jmp 0x49b17e
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.0040305d
leave
ret

Function at 0x4a0b10
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004042f5
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 0x4a0b7f
cmp esi, dword [ebp - 4]
je 0x4a0b7a
cmp dword [ebp + 0xc], 0
je 0x4a0b7a
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a0b57
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a0538
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a0b81
xor eax, eax
inc eax
jmp 0x4a0b81
xor eax, eax
pop edi
pop esi
leave
ret