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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp], eax
call sym.___wine_dbg_get_channel_flags
movzx eax, al
bt eax, esi
jae 0x10012878
mov edi, dword [0x100220a4]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], edi
je 0x10012787
test byte [0x100131b0], 8
jne 0x10012820
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100131c0], 8
jne 0x100127e0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10012729
cmp esi, 3
jbe 0x10012798
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov ecx, ebx
mov edi, eax
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
and edx, 0x80808080
je 0x1001273a
mov esi, edx
mov dword [esp + 0xc], edi
shr esi, 0x10
test edx, 0x8080
mov dword [esp + 4], 1
cmove edx, esi
lea esi, [ecx + 2]
mov dword [esp], ebx
cmove ecx, esi
mov eax, edx
add al, dl
sbb ecx, 3
sub ecx, ebx
mov dword [esp + 8], ecx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x1001c680]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10012729
mov dword [esp], 0x100131c0
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x10012700
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10012700
mov dword [esp], 0x100131b0
call sym.___wine_dbg_get_channel_flags
test al, 8
je 0x100126eb
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x100126f3
mov eax, 0xffffffff
jmp 0x10012787
Function at 0x10012950
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x100220c0]
test eax, eax
je 0x10012a08
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10012990
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1001297c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x10012a3d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x100220c0], eax
sub esp, 8
test eax, eax
jne 0x1001296d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1001297e
Function at 0x10012a50
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x10012be0
mov eax, dword [esi]
test eax, eax
je 0x10012bc8
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x1c], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov dword [ebp - 0x14], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x10012bec
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10012bb8
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0xc]
not eax
pop ebx
pop esi
shr eax, 0x1f
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x10012b7c
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10012ab6
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10012be2
Function at 0x1000b197
Capabilities:
Parse pe header

Disassembly:
push esi
mov esi, ecx
test si, si
jne 0x1000b24c
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x1000b24c
mov edx, dword [esi + 0x3c]
test dl, 3
jne 0x1000b24c
cmp dword [edx + esi], 0x4550
jne 0x1000b24c
cmp dword [edx + esi + 0x74], 6
jb 0x1000b24c
push ebx
mov ebx, dword [edx + esi + 0x50]
push edi
mov edi, dword [edx + esi + 0xa8]
lea eax, [ebx - 1]
lea ecx, [edi - 1]
cmp ecx, eax
jae 0x1000b24a
mov eax, dword [edx + esi + 0xac]
mov ecx, ebx
sub ecx, edi
cmp eax, ecx
ja 0x1000b24a
xor edx, edx
add edi, esi
push 0x1c
pop ecx
div ecx
mov edx, eax
test edx, edx
je 0x1000b24a
imul ecx, edx, 0x1c
add ecx, 0x14
add ecx, edi
lea ecx, [ecx - 0x1c]
dec edx
cmp dword [ecx - 8], 2
lea edi, [ecx - 0x14]
jne 0x1000b228
cmp dword [ecx], ebx
jae 0x1000b228
mov eax, ebx
sub eax, dword [ecx]
cmp dword [ecx - 4], eax
jbe 0x1000b22e
test edx, edx
jne 0x1000b20e
jmp 0x1000b24a
push 0x1c
push edi
call dword [sym.imp.kernel32.dll_VirtualLock]
test eax, eax
je 0x1000b24a
mov eax, dword [edi + 0x14]
push dword [edi + 0x10]
add eax, esi
push eax
call dword [sym.imp.kernel32.dll_VirtualLock]
pop edi
pop ebx
pop esi
ret

Function at 0x1000c446
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x1000c455
pop dword [ebp - 0x10]
mov eax, 0x1ac9e433
sub eax, 0xac91fde
sub dword [ebp - 0x10], eax
push 0x40
push 0x1000
push 0x3d355
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x10]
call dword [eax]
mov ecx, 0x658fc689
sub ecx, 0x658f6d9b
mov edi, eax
mov esi, 0xe7cf261
sub esi, 0xfe7b6c61
add esi, dword [ebp - 0x10]
mov ebx, 0xb654b351
add ebx, 0xc2adbb1
sub dword [ebp - 4], 0xbbdb7b50
mov edx, dword [esi]
sub dword [ebp - 4], esi
xor edx, ebx
sub dword [ebp - 8], 0xb8ad8242
mov dword [edi], edx
xor dword [ebp - 8], 0xe18e7cbc
add edi, 0x6842e5e3
add edi, 0x97bd1a21
add esi, 0xdd2b8a35
add esi, 0x22d475cf
loop 0x1000c4af
add eax, 0xee4dac83
add eax, 0x11b3aa08
mov ebx, eax
add eax, 0xc19c4bfa
sub eax, 0xc19c4bf5
mov ecx, 0xe8a269d9
add ecx, 0x275d9627
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x4021d0
Capabilities:
Create process on windows
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [0x413e18]
push edi
mov edx, 1
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esi + 8], edx
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
add ecx, 4
push edx
lea edx, [esp + 0x10]
push edx
xor edi, edi
mov dword [esp + 0x14], str.http:__launch.mygame.ph_package_LauncherSetup_PH.exe
mov dword [esp + 0x18], str.LauncherSetup.exe
call eax
test eax, eax
jne 0x40223f
mov dword [esi + 8], 4
mov dword [esi + 0xc], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x3c
lea ecx, [esp + 0x28]
push edi
push ecx
call fcn.00406a80
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x3c
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], edx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], 5
mov dword [esp + 0x2c], 0x40
mov dword [esi + 8], 2
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4022a1
mov dword [esi + 8], 5
mov dword [esi + 0xc], edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x5c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esp + 0x10]
push 0x20
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esi + 0xc], edi
pop edi
mov dword [esi + 8], 3
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x403562
Capabilities:
Terminate process

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

Disassembly:
jmp 0x49e511
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49e522
pop esi
ret
push ebx
push edi
push esi
call fcn.0049e3f8
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403f1c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49e54a
push ebx
push esi
push edi
call fcn.004055d3
add esp, 0xc
push 0
call fcn.004060eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405691
Capabilities:
Parse pe header

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

Function at 0x442a37
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.004036de
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 0x442a76
sub eax, 1
je 0x442a71
sub eax, 1
je 0x442a6d
xor eax, eax
leave
ret
push 3
jmp 0x442a78
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x4892ea
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d6b
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.00405d12
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4983e5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x498541
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405e61
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 + 0x4d1968]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040320b
mov ecx, dword [esi*4 + 0x4d1968]
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 0x49853a
cmp eax, dword [ecx + edi + 0x24]
jne 0x49853a
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 0x49853a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040320b
add esp, 0x14
test edx, edx
jl 0x49853a
jg 0x4984b0
test eax, eax
jb 0x49853a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x49853a
jl 0x4984ca
cmp dword [ebp - 0x1008], eax
ja 0x49853a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4984e8
test ebx, ebx
je 0x498521
cmp ecx, edi
jae 0x498521
mov al, byte [ecx]
cmp al, 0xd
jne 0x498502
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49850e
cmp byte [ecx + 1], 0xa
jne 0x49850e
inc ecx
jmp 0x49850e
movzx eax, al
movsx eax, byte [eax + 0x4ce388]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4984e8
cmp edx, ebx
jne 0x4984e8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49853f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00402fef
leave
ret
Function at 0x498c80
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 + 0x4d1968]
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 0x498cc0
cmp byte [ebx], 0xa
jne 0x498cc0
or byte [edi + eax + 0x28], 4
jmp 0x498cc5
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 0x498dc4
mov dl, byte [eax]
cmp dl, 0x1a
je 0x498da7
inc eax
cmp dl, 0xd
je 0x498cf1
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x498d17
cmp eax, ecx
jae 0x498d25
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 0x498cd9
jmp 0x498dc4
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 0x498da2
cmp dword [ebp - 0x10], 0
je 0x498da2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4d1968]
test byte [eax + edi + 0x28], 0x48
je 0x498d7c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x498d67
mov byte [esi], dl
jmp 0x498d78
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d1968]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x498dc4
cmp byte [ebp - 1], 0xa
jne 0x498d8b
cmp esi, ebx
jne 0x498d8b
mov byte [esi], 0xa
jmp 0x498dc3
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401915
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x498dc4
mov byte [esi], 0xd
jmp 0x498dc3
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4d1968]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x498dc1
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x498dc4
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x498e20
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 + 0x4d1968]
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 0x498e66
cmp word [ebx], dx
jne 0x498e66
or byte [eax + edi + 0x28], 4
jmp 0x498e6b
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 0x498fce
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 0x498fae
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x498eac
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x498ee2
cmp eax, edx
jae 0x498ef0
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 0x498e87
jmp 0x498fce
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 0x498fa9
cmp dword [ebp - 0x18], 0
je 0x498fa9
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4d1968]
test byte [eax + edi + 0x28], 0x48
je 0x498f7f
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 0x498f43
mov word [esi], cx
jmp 0x498f7a
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4d1968]
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 + 0x4d1968]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4d1968]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x498fce
pop eax
cmp word [ebp - 4], ax
jne 0x498f8f
cmp esi, ebx
jne 0x498f8f
mov word [esi], ax
jmp 0x498fcb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401915
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x498fce
push 0xd
pop eax
jmp 0x498f8a
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4d1968]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x498fc8
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x498fce
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 0x49cac7
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 0x49cb12
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049cf7f
test al, al
jne 0x49cb0c
sub edx, 2
cmp edx, edi
jne 0x49caf2
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49cb34
lea eax, [edi + 2]
cmp edx, eax
je 0x49cb34
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049c6c0
add esp, 0x10
jmp 0x49cc2e
push esi
lea ecx, [ebp - 0x255]
call fcn.0049cf7f
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 0x49cb77
push dword [ebp - 0x25c]
jmp 0x49cb24
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 0x49cbb4
cmp word [ebp - 0x226], 0
je 0x49cbd5
cmp word [ebp - 0x226], ax
jne 0x49cbb4
cmp word [ebp - 0x224], 0
je 0x49cbd5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049c6c0
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49cc21
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49cb8e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49cc09
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49cc2e
push 0x49c0a8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040543e
add esp, 0x10
jmp 0x49cbfe
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.00402fef
leave
ret

Function at 0x4a2590
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00404232
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 0x4a25ff
cmp esi, dword [ebp - 4]
je 0x4a25fa
cmp dword [ebp + 0xc], 0
je 0x4a25fa
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4a25d7
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004a1fb8
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4a2601
xor eax, eax
inc eax
jmp 0x4a2601
xor eax, eax
pop edi
pop esi
leave
ret