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

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
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 sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x435ca0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x43a068]
test esi, esi
jle 0x435dc0
mov eax, dword [0x43a06c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x435cd4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x435d57
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x435cc0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x435de7
mov eax, dword [0x43a06c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x43a06c]
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 0x435dc7
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x435d50
lea edx, [eax - 0x40]
and edx, 0xffffffbf
jne 0x435d60
add dword [0x43a068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x43a06c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x435d50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, cs:[esi]
nop
xor esi, esi
jmp 0x435cde
mov eax, dword [0x43a06c]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, cs:[esi]
nop
Function at 0x436340
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x43a084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x43a07c]
sub esp, 4
test ebx, ebx
je 0x436395
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
mov esi, eax
sub esp, 4
call edi
test esi, esi
je 0x43638e
test eax, eax
jne 0x43638e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x436370
mov dword [esp], 0x43a084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4366f0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x436715
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x436720
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x436715
push esi
push ebx
mov ebx, dword [esp + 0xc]
movzx eax, word [ecx + 0x400014]
movzx esi, word [ecx + 0x400006]
sub ebx, 0x400000
lea eax, [edx + eax + 0x18]
test si, si
je 0x436768
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x43675e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x43676a
add ecx, 1
add eax, 0x28
cmp esi, ecx
jne 0x436750
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403ff0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x6c
mov eax, dword [0x42f080]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x439dd0
push 0x66
push edi
call esi
push 0x64
push 0x439d08
push 0x67
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x65
push edi
mov dword [esp + 0x20], 0x30
mov dword [esp + 0x24], 3
mov dword [esp + 0x28], 0x4045a0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], edi
call esi
push 0x7f00
push 0
mov dword [esp + 0x38], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x65
push dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], 6
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0x439d08
call esi
mov dword [esp + 0x44], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xca0000
push 0x439dd0
push 0x439d08
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
jne 0x4040e9
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0040acde
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 6
push 0x2e0
push 0xfa
push 0
push 0
push 0
push ebx
call esi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
lea ecx, [esp + 0x64]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x64]
push 5
push 0
push 0
push 0
add eax, 0xffffff06
push eax
push 0
push ebx
call esi
push dword [ebp + 0x14]
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, ebx
call fcn.00404240
push 4
call fcn.0040ad1d
add esp, 4
lea ecx, [esp + 0x14]
mov dword [eax], ebx
push ecx
push 0
push eax
push 0x4094e0
push 0
push 0
call fcn.004126a2
add esp, 0x18
mov dword [esp + 0x10], eax
test eax, eax
je 0x40421f
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x40422e
push ecx
push eax
call fcn.0040a686
add esp, 8
test eax, eax
jne 0x40422e
xorps xmm0, xmm0
push ebx
movlpd qword [esp + 0x14], xmm0
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x67
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x50]
push 0
push eax
call esi
test eax, eax
je 0x404207
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
push dword [esp + 0x50]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4041f6
lea eax, [esp + 0x48]
push eax
call edi
lea eax, [esp + 0x48]
push eax
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x54]
push eax
call esi
test eax, eax
jne 0x4041d1
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040acde
mov esp, ebp
pop ebp
ret 0x10
push 6
mov dword [esp + 0x18], 0
call fcn.0040a628
push 1
call fcn.0040a628
int3
Function at 0x407ab0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423070
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x42f080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.0040ad1d
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.00409cdf
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.00407a50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407b70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4236dd
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42f080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.004026d0
mov eax, dword [ebp + 8]
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x30]
mov dword [esi + 0x3c], 0
mov ebx, dword [eax + 4]
mov ecx, ebx
mov dword [ebp - 0x1c], ebx
mov eax, dword [ebx]
call dword [eax + 4]
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 1
push eax
call fcn.00407f00
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 0
test ebx, ebx
je 0x407c2d
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 8]
test eax, eax
je 0x407c2a
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov al, byte [ebp + 0xb]
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x407c46
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00402650
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4092e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
mov esi, 1
mov dword [ebp - 0x10], ebx
mov eax, esi
shl eax, cl
push edi
cmp edx, eax
ja 0x409452
lea eax, [edx - 1]
or eax, esi
bsr ecx, eax
mov eax, dword [ebx + 4]
push eax
mov dword [ebp + 8], eax
lea ecx, [ecx + 1]
shl esi, cl
lea ecx, [ebx + 0xc]
lea eax, [esi + esi]
push eax
call fcn.00407c60
lea eax, [esi - 1]
mov dword [ebx + 0x1c], esi
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 8]
mov esi, dword [esi]
mov edi, esi
cmp esi, eax
je 0x40942d
cmp dword [esi + 0x1c], 0xf
lea ecx, [esi + 8]
mov edi, dword [edi]
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], ecx
jbe 0x40935b
mov edx, dword [ecx]
mov dword [ebp - 4], edx
mov ecx, dword [ecx + 0x10]
xor edx, edx
mov dword [ebp - 8], ecx
mov ebx, 0x811c9dc5
test ecx, ecx
je 0x409388
mov eax, dword [ebp - 4]
mov edi, ecx
movzx ecx, byte [eax + edx]
inc edx
xor ecx, ebx
imul ebx, ecx, 0x1000193
cmp edx, edi
jb 0x409371
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0xc]
and edx, ebx
lea ecx, [ecx + edx*8]
mov dword [ebp - 4], ecx
cmp dword [ecx], eax
jne 0x4093a7
mov dword [ecx], esi
mov dword [ecx + 4], esi
jmp 0x409423
mov ebx, dword [ecx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.00409650
test al, al
jne 0x4093e1
mov ebx, dword [ebx]
cmp ebx, esi
je 0x4093d9
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], esi
jmp 0x409420
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
je 0x409403
mov ebx, dword [ebx + 4]
lea eax, [ebx + 8]
push eax
lea eax, [esi + 8]
push eax
call fcn.00409650
test al, al
je 0x409436
mov eax, dword [ebp - 4]
cmp dword [eax], ebx
jne 0x4093e8
mov edx, dword [esi + 4]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
mov dword [eax], esi
mov eax, dword [ebp + 8]
mov esi, edi
cmp edi, eax
jne 0x409345
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [esi + 4]
mov ebx, dword [ebx]
mov dword [edx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], ebx
mov eax, dword [ebx + 4]
mov dword [eax], esi
mov dword [ebx + 4], ecx
mov dword [edi + 4], edx
mov dword [esi + 4], eax
jmp 0x409420
push str.invalid_hash_bucket_count
call fcn.00409aee
int3
Function at 0x40ba9a
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040bba0
mov eax, dword [0x42f080]
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.0041710e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x419038
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x419194
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00422c40
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 + 0x4398d8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00418b7f
mov ecx, dword [esi*4 + 0x4398d8]
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 0x41918d
cmp eax, dword [ecx + edi + 0x24]
jne 0x41918d
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 0x41918d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418b7f
add esp, 0x14
test edx, edx
jl 0x41918d
jg 0x419103
test eax, eax
jb 0x41918d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41918d
jl 0x41911d
cmp dword [ebp - 0x1008], eax
ja 0x41918d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41913b
test ebx, ebx
je 0x419174
cmp ecx, edi
jae 0x419174
mov al, byte [ecx]
cmp al, 0xd
jne 0x419155
lea eax, [edi - 1]
cmp ecx, eax
jae 0x419161
cmp byte [ecx + 1], 0xa
jne 0x419161
inc ecx
jmp 0x419161
movzx eax, al
movsx eax, byte [eax + 0x42f338]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41913b
cmp edx, ebx
jne 0x41913b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x419192
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040acde
leave
ret

Function at 0x419631
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42776c
push 0x427764
push str.FlsAlloc
push 0x1f
call fcn.004194d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419665
push dword [ebp + 8]
mov ecx, esi
call dword [0x424214]
call esi
jmp 0x41966b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4196af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42777c
push 0x427774
push str.FlsGetValue
push 0x21
call fcn.004194d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4196e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x424214]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4196ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x427784
push 0x42777c
push str.FlsSetValue
push 0x22
call fcn.004194d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419728
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x424214]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x419a9b
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 + 0x4398d8]
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 0x419adb
cmp byte [ebx], 0xa
jne 0x419adb
or byte [edi + eax + 0x28], 4
jmp 0x419ae0
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 0x419bdf
mov dl, byte [eax]
cmp dl, 0x1a
je 0x419bc2
inc eax
cmp dl, 0xd
je 0x419b0c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x419b32
cmp eax, ecx
jae 0x419b40
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 0x419af4
jmp 0x419bdf
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 0x419bbd
cmp dword [ebp - 0x10], 0
je 0x419bbd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4398d8]
test byte [eax + edi + 0x28], 0x48
je 0x419b97
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x419b82
mov byte [esi], dl
jmp 0x419b93
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4398d8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x419bdf
cmp byte [ebp - 1], 0xa
jne 0x419ba6
cmp esi, ebx
jne 0x419ba6
mov byte [esi], 0xa
jmp 0x419bde
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418b9d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x419bdf
mov byte [esi], 0xd
jmp 0x419bde
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4398d8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419bdc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419bdf
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419be8
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 + 0x4398d8]
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 0x419c2e
cmp word [ebx], dx
jne 0x419c2e
or byte [eax + edi + 0x28], 4
jmp 0x419c33
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 0x419d96
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 0x419d76
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x419c74
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419caa
cmp eax, edx
jae 0x419cb8
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 0x419c4f
jmp 0x419d96
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 0x419d71
cmp dword [ebp - 0x18], 0
je 0x419d71
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4398d8]
test byte [eax + edi + 0x28], 0x48
je 0x419d47
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 0x419d0b
mov word [esi], cx
jmp 0x419d42
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4398d8]
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 + 0x4398d8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4398d8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x419d96
pop eax
cmp word [ebp - 4], ax
jne 0x419d57
cmp esi, ebx
jne 0x419d57
mov word [esi], ax
jmp 0x419d93
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418b9d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x419d96
push 0xd
pop eax
jmp 0x419d52
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4398d8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x419d90
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x419d96
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 0x41c2af
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42f080]
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 0x41c2fa
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041c44a
test al, al
jne 0x41c2f4
sub edx, 2
cmp edx, edi
jne 0x41c2da
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41c31c
lea eax, [edi + 2]
cmp edx, eax
je 0x41c31c
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041c1fb
add esp, 0x10
jmp 0x41c416
push esi
lea ecx, [ebp - 0x255]
call fcn.0041c44a
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 0x41c35f
push dword [ebp - 0x25c]
jmp 0x41c30c
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 0x41c39c
cmp word [ebp - 0x226], 0
je 0x41c3bd
cmp word [ebp - 0x226], ax
jne 0x41c39c
cmp word [ebp - 0x224], 0
je 0x41c3bd
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041c1fb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41c409
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41c376
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41c3f1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41c416
push 0x41c02b
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00420cd0
add esp, 0x10
jmp 0x41c3e6
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.0040acde
leave
ret

Function at 0x41f173
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041689d
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 0x41f1e2
cmp esi, dword [ebp - 4]
je 0x41f1dd
cmp dword [ebp + 0xc], 0
je 0x41f1dd
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41f1ba
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041ecc5
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41f1e4
xor eax, eax
inc eax
jmp 0x41f1e4
xor eax, eax
pop edi
pop esi
leave
ret