joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411840
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x46900c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
je 0x411874
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411874
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x411883
jmp 0x4119e0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x210], edx
mov eax, dword [ebp - 0x210]
movsx ecx, byte [eax]
test ecx, ecx
je 0x4118de
mov edx, dword [ebp - 0x210]
movsx eax, byte [edx]
cmp eax, 0x2f
je 0x4118c1
mov ecx, dword [ebp - 0x210]
movsx edx, byte [ecx]
cmp edx, 0x5c
jne 0x4118cd
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
jmp 0x411898
mov edx, dword [ebp - 0x214]
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp + 0xc]
je 0x411964
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.0042c730
add esp, 0xc
mov ecx, dword [ebp - 0x214]
sub ecx, dword [ebp + 0xc]
mov dword [ebp - 0x218], ecx
cmp dword [ebp - 0x218], 0x104
jae 0x41192f
jmp 0x411934
call fcn.0042938a
mov edx, dword [ebp - 0x218]
mov byte [ebp + edx - 0x20c], 0
lea eax, [ebp - 0x20c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00411840
add esp, 8
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
mov eax, 1
imul ecx, eax, 0
mov dword [ebp - 0x220], ecx
cmp dword [ebp - 0x220], 0x104
jae 0x411980
jmp 0x411985
call fcn.0042938a
mov edx, dword [ebp - 0x220]
mov byte [ebp + edx - 0x108], 0
cmp dword [ebp + 8], 0
je 0x4119ac
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00412370
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00412350
add esp, 8
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4119e0
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004291f2
mov esp, ebp
pop ebp
ret
Function at 0x416ed0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov byte [0x46b49b], 0
mov byte [0x46b271], 0
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop ebp
ret

Function at 0x417090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x46900c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov word [ebp - 0xc], ax
xor ecx, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 0x10]
imul edx, dword [ebp + 0x14]
shl edx, 2
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
push eax
call fcn.00429464
add esp, 4
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], 0x28
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov ecx, 1
mov word [ebp - 0x34], cx
mov edx, 0x20
mov word [ebp - 0x32], dx
mov dword [ebp - 0x30], 0
mov eax, 0x4d42
mov word [ebp - 0x18], ax
mov dword [ebp - 0xe], 0x36
mov ecx, dword [ebp - 0x4c]
add ecx, dword [ebp - 0xe]
mov dword [ebp - 0x16], ecx
push 0
lea edx, [ebp - 0x40]
push edx
mov eax, dword [ebp - 0x44]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.GDI32.dll_GetDIBits]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov ecx, dword [ebp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x48], eax
push 0
lea edx, [ebp - 8]
push edx
push 0xe
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 8]
push edx
push 0x28
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.00429203
add esp, 4
cmp dword [ebp - 0x50], 0
jne 0x4171e2
mov dword [ebp - 0x58], 0
jmp 0x4171ef
mov dword [ebp - 0x44], 0x8123
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004291f2
mov esp, ebp
pop ebp
ret
Function at 0x41b710
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.0041b770
mov dword [0x46b614], 0
cmp dword [ebp + 8], 4
je 0x41b73b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x588], ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
push 0x41b8f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x580], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x41b770
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, 1
mov ecx, 0x46b614
xchg dword [ecx], eax
push 1
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x57c]
push eax
call dword [sym.imp.USER32.dll_KillTimer]
push 2
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x57c]
push edx
call dword [sym.imp.USER32.dll_KillTimer]
push 0x7d0
push 1
mov eax, dword [ebp - 0xc]
add eax, 0x580
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x580], 0
je 0x41b85d
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x580]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
jne 0x41b840
push 0x1388
push 1
mov edx, dword [ebp - 0xc]
add edx, 0x580
push edx
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x580]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
jne 0x41b840
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x580]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x580]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x580], 0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004291f2
mov esp, ebp
pop ebp
ret

Function at 0x41b870
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x46900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x584], 0
je 0x41b8db
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x584]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 8], 0x103
jne 0x41b8be
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x584]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x584]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x584], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004291f2
mov esp, ebp
pop ebp
ret
Function at 0x424ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, 1
test eax, eax
je 0x424c06
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x38], 0
je 0x424b18
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00425720
jmp 0x424c1a
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
call fcn.00407860
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], edx
cmp dword [ebp + 0x10], 0
jl 0x424bac
jg 0x424b40
cmp dword [ebp + 0xc], 0
jbe 0x424bac
cmp dword [ebp - 8], 0
jl 0x424bac
jg 0x424b4e
cmp dword [ebp - 0xc], 0
jbe 0x424bac
mov ecx, dword [ebp + 0x10]
cmp ecx, dword [ebp - 8]
jg 0x424b6c
jl 0x424b60
mov edx, dword [ebp + 0xc]
cmp edx, dword [ebp - 0xc]
jae 0x424b6c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.004078e0
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.00403890
add esp, 0xc
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp + 8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x10]
sbb eax, dword [ebp - 8]
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
call fcn.00426230
cmp dword [ebp + 0x10], 0
jl 0x424bf6
jg 0x424bba
cmp dword [ebp + 0xc], 0
jbe 0x424bf6
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x424bf6
mov ecx, dword [ebp - 4]
call fcn.00425f10
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004360ad
add esp, 0x10
xor ecx, ecx
mov edx, dword [ebp + 0xc]
sub edx, eax
mov eax, dword [ebp + 0x10]
sbb eax, ecx
mov dword [ebp + 0xc], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
sbb edx, dword [ebp + 0x10]
jmp 0x424c1a
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00425720
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43b487
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43b4c6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43b4c6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43b4c6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43b4c6
cmp dword [ecx + 0x74], 0xe
jbe 0x43b4c6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4411f1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x458580
push 0x458578
push str.FlsAlloc
push 0x1f
call fcn.004410b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441225
push dword [ebp + 8]
mov ecx, esi
call dword [0x45244c]
call esi
jmp 0x44122b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44126f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x458590
push 0x458588
push str.FlsGetValue
push 0x21
call fcn.004410b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4412a6
push dword [ebp + 8]
mov ecx, esi
call dword [0x45244c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4412ae
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x458598
push 0x458590
push str.FlsSetValue
push 0x22
call fcn.004410b9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4412e8
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45244c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4433ec
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0044f640
mov eax, dword [0x46900c]
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.0043f538
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x44342e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x44358a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0044f490
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 + 0x46aea0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0044437a
mov ecx, dword [esi*4 + 0x46aea0]
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 0x443583
cmp eax, dword [ecx + edi + 0x24]
jne 0x443583
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 0x443583
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0044437a
add esp, 0x14
test edx, edx
jl 0x443583
jg 0x4434f9
test eax, eax
jb 0x443583
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x443583
jl 0x443513
cmp dword [ebp - 0x1008], eax
ja 0x443583
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x443531
test ebx, ebx
je 0x44356a
cmp ecx, edi
jae 0x44356a
mov al, byte [ecx]
cmp al, 0xd
jne 0x44354b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x443557
cmp byte [ecx + 1], 0xa
jne 0x443557
inc ecx
jmp 0x443557
movzx eax, al
movsx eax, byte [eax + 0x4692f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x443531
cmp edx, ebx
jne 0x443531
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x443588
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004291f2
leave
ret
Function at 0x443685
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 + 0x46aea0]
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 0x4436c5
cmp byte [ebx], 0xa
jne 0x4436c5
or byte [edi + eax + 0x28], 4
jmp 0x4436ca
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 0x4437c9
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4437ac
inc eax
cmp dl, 0xd
je 0x4436f6
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x44371c
cmp eax, ecx
jae 0x44372a
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 0x4436de
jmp 0x4437c9
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 0x4437a7
cmp dword [ebp - 0x10], 0
je 0x4437a7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x46aea0]
test byte [eax + edi + 0x28], 0x48
je 0x443781
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x44376c
mov byte [esi], dl
jmp 0x44377d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x46aea0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4437c9
cmp byte [ebp - 1], 0xa
jne 0x443790
cmp esi, ebx
jne 0x443790
mov byte [esi], 0xa
jmp 0x4437c8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00444398
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4437c9
mov byte [esi], 0xd
jmp 0x4437c8
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x46aea0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4437c6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4437c9
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4437d2
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 + 0x46aea0]
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 0x443818
cmp word [ebx], dx
jne 0x443818
or byte [eax + edi + 0x28], 4
jmp 0x44381d
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 0x443980
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 0x443960
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x44385e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x443894
cmp eax, edx
jae 0x4438a2
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 0x443839
jmp 0x443980
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 0x44395b
cmp dword [ebp - 0x18], 0
je 0x44395b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46aea0]
test byte [eax + edi + 0x28], 0x48
je 0x443931
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 0x4438f5
mov word [esi], cx
jmp 0x44392c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46aea0]
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 + 0x46aea0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46aea0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x443980
pop eax
cmp word [ebp - 4], ax
jne 0x443941
cmp esi, ebx
jne 0x443941
mov word [esi], ax
jmp 0x44397d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00444398
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x443980
push 0xd
pop eax
jmp 0x44393c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46aea0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x44397a
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x443980
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 0x4446c6
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46900c]
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 0x444711
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00444861
test al, al
jne 0x44470b
sub edx, 2
cmp edx, edi
jne 0x4446f1
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x444733
lea eax, [edi + 2]
cmp edx, eax
je 0x444733
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00444612
add esp, 0x10
jmp 0x44482d
push esi
lea ecx, [ebp - 0x255]
call fcn.00444861
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 0x444776
push dword [ebp - 0x25c]
jmp 0x444723
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 0x4447b3
cmp word [ebp - 0x226], 0
je 0x4447d4
cmp word [ebp - 0x226], ax
jne 0x4447b3
cmp word [ebp - 0x224], 0
je 0x4447d4
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00444612
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x444820
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x44478d
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x444808
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x44482d
push 0x444442
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00430160
add esp, 0x10
jmp 0x4447fd
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.004291f2
leave
ret

Function at 0x447bfd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0043fc47
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 0x447c6c
cmp esi, dword [ebp - 4]
je 0x447c67
cmp dword [ebp + 0xc], 0
je 0x447c67
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x447c44
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0044774f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x447c6e
xor eax, eax
inc eax
jmp 0x447c6e
xor eax, eax
pop edi
pop esi
leave
ret