joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452f80
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
xor edx, edx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
setne dl
mov edi, ecx
xor eax, eax
lea edx, [edx*2 - 1]
add edx, dword [0x5aa93c]
mov dword [0x5aa93c], edx
sete al
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov dword [edi + 0x2a38c], eax
je 0x453093
cmp edx, 1
jne 0x453093
cmp dword [edi + 0x2a390], 0
je 0x453093
cmp dword [0x5aa968], 0
jne 0x45300b
lea eax, [esp + 8]
mov dword [0x5aa968], edx
push eax
call esi
mov dword [0x5aa978], eax
test eax, eax
je 0x45300b
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [0x5aa940], eax
mov dword [0x5aa944], ecx
cmp dword [0x5aa978], 0
je 0x453053
mov ecx, dword [0x5aa958]
mov eax, ecx
mov edx, dword [0x5aa95c]
or eax, edx
jne 0x453039
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [0x5aa958], ecx
mov dword [0x5aa95c], edx
mov dword [0x5aa970], ecx
mov dword [0x5aa974], edx
jmp 0x453093
movsd xmm0, qword [0x5aa980]
ucomisd xmm0, qword [0x581228]
lahf
test ah, 0x44
jp 0x45308b
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x581790]
mulsd xmm0, qword [0x581300]
movsd qword [0x5aa980], xmm0
cmp dword [0x5aa93c], 0
jne 0x45318a
cmp dword [edi + 0x2a390], 0
je 0x45318a
cmp dword [0x5aa968], 0
jne 0x4530e3
lea eax, [esp + 8]
mov dword [0x5aa968], 1
push eax
call esi
mov dword [0x5aa978], eax
test eax, eax
je 0x4530e3
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [0x5aa940], eax
mov dword [0x5aa944], ecx
cmp dword [0x5aa978], 0
je 0x45313a
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 8]
xorps xmm0, xmm0
mov edx, dword [esp + 0xc]
mov ecx, esi
sub ecx, dword [0x5aa958]
mov eax, edx
mov dword [0x5aa970], esi
sbb eax, dword [0x5aa95c]
add dword [0x5aa950], ecx
movlpd qword [0x5aa958], xmm0
adc dword [0x5aa954], eax
mov dword [0x5aa974], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.WINMM.dll_timeGetTime]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
addsd xmm1, qword [eax*8 + 0x581790]
mulsd xmm1, qword [0x581300]
movaps xmm0, xmm1
movsd qword [0x5aa948], xmm1
subsd xmm0, qword [0x5aa980]
addsd xmm0, qword [0x5aa960]
movsd qword [0x5aa960], xmm0
xorps xmm0, xmm0
movsd qword [0x5aa980], xmm0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x497440
Capabilities:
Read file on windows

Disassembly:
push ecx
cmp dword [0x5a9418], 0
push ebx
push ebp
push esi
push edi
mov ebx, ecx
je 0x49747c
push 0x576ca8
push str.autolog.dat
call fcn.0052537a
mov esi, eax
add esp, 8
test esi, esi
je 0x49747c
push str.GroundObjectTiles::Generate
push esi
call fcn.00446630
push esi
call fcn.00525539
add esp, 0xc
call fcn.0052ab4e
lea edi, [ebx + 0x108]
mov dword [ebx + 0x10c], 0x100
mov dword [edi], 0x100
push 0x1c0000
call fcn.004c8bda
mov ecx, dword [ebx + 0x10c]
add esp, 4
xor ebp, ebp
mov dword [ebx + 0x120], eax
test ecx, ecx
jle 0x497571
nop word [eax + eax]
xor eax, eax
cmp dword [edi], eax
jle 0x49755a
nop word [eax + eax]
xor esi, esi
mov ecx, dword [edi]
imul ecx, ebp
add ecx, eax
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [ebx + 0x120]
lea ecx, [ecx + edx*4]
mov byte [ecx + esi], 0
mov ecx, dword [edi]
imul ecx, ebp
add ecx, eax
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [ebx + 0x120]
lea ecx, [ecx + edx*4]
mov byte [ecx + esi + 1], 0
mov ecx, dword [edi]
imul ecx, ebp
add ecx, eax
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [ebx + 0x120]
lea ecx, [ecx + edx*4]
mov byte [ecx + esi + 2], 0
mov ecx, dword [edi]
imul ecx, ebp
add ecx, eax
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [ebx + 0x120]
lea ecx, [ecx + edx*4]
mov byte [ecx + esi + 3], 0
add esi, 4
cmp esi, 0x1c
jl 0x4974d2
inc eax
cmp eax, dword [edi]
jl 0x4974d0
mov ecx, dword [ebx + 0x10c]
inc ebp
cmp ebp, ecx
jl 0x4974c0
lea ebp, [ebx + 0x108]
jmp 0x497573
mov ebp, edi
mov eax, dword [edi]
imul eax, ecx
push eax
call fcn.004c8bda
mov dword [ebx + 0x194], eax
add esp, 4
mov eax, dword [ebx + 0x110]
test eax, eax
jne 0x4975ac
push 0x577c68
push str.dat_roads_256.raw
call fcn.0052537a
mov ecx, dword [ebx + 0x10c]
imul ecx, dword [ebp]
jmp 0x4975ca
cmp eax, 1
jne 0x4975e4
push 0x577c68
push str.dat_roads2_256.raw
call fcn.0052537a
mov ecx, dword [ebp]
imul ecx, dword [ebx + 0x10c]
mov esi, eax
push esi
push ecx
push 1
push dword [ebx + 0x194]
call fcn.00526e8c
push esi
call fcn.00525539
add esp, 0x1c
cmp dword [0x5a9418], 0
je 0x497619
push 0x576ca8
push str.autolog.dat
call fcn.0052537a
mov esi, eax
add esp, 8
test esi, esi
je 0x497619
push str.Done_n
push esi
call fcn.00446630
push esi
call fcn.00525539
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
Function at 0x4ac0d0
Capabilities:
Check http status code

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [0x5aa2a4]
push edi
call fcn.004694a0
mov edi, dword [esp + 0x2c]
xor ebx, ebx
cmp edi, 0xc8
mov byte [esp + 0x1c], 0x13
setne bl
lea ebx, [ebx*2 + 1]
cmp edi, 0xc9
jne 0x4ac10e
mov ebx, 2
jmp 0x4ac11c
cmp edi, 0xcb
mov eax, 4
cmove ebx, eax
mov edx, dword [esi + 0x2b8]
cmp dword [edx + 0x14c], 0
je 0x4ac15a
mov ebp, dword [edx + 0x144]
mov eax, dword [ebp + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4ac154
nop dword [eax + eax]
cmp dword [ecx + 4], 0x19
je 0x4ac203
mov eax, dword [eax + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4ac140
mov dword [edx + 0x148], ebp
cmp edi, 0xc8
jne 0x4ac1b3
mov ecx, dword [esi + 0x2c0]
push 0x87
add ecx, 0x140
call fcn.0044f240
test eax, eax
jne 0x4ac1b3
mov ecx, dword [0x5a943c]
lea edx, [esp + 0x14]
push 0
push 0
push edx
mov eax, dword [ecx]
push 5
mov byte [esp + 0x24], 0x40
call dword [eax + 4]
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [0x5a943c]
lea edx, [esp + 0x1c]
mov eax, dword [esi + 0x23a4]
push 0
push 0
mov byte [esp + 0x29], bl
mov dword [esp + 0x25], eax
mov eax, dword [ecx]
push edx
push 0xa
call dword [eax + 4]
mov dword [esi + 0x23bc], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
mov dword [edx + 0x148], eax
cmp dword [eax + 8], 0
je 0x4ac15a
mov ecx, dword [esi + 0x2c0]
add ecx, 0x140
cmp edi, dword [esi + 0x23bc]
je 0x4ac2c3
push 0x87
call fcn.0044f240
cmp edi, 0xc8
je 0x4ac29f
test eax, eax
je 0x4ac1cf
mov ecx, dword [esi + 0x2b8]
push 0x86
add ecx, 0x140
call fcn.0044f240
test eax, eax
je 0x4ac27d
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c8]
add ecx, 0x140
call fcn.0044f310
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
add ecx, 0x140
call fcn.0044f310
mov ecx, dword [esi + 0x2c0]
jmp 0x4ac1ca
test eax, eax
jne 0x4ac1cf
mov ecx, dword [esi + 0x2c0]
push dword [esi + 0x2fc]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x2c0]
jmp 0x4ac1ca
push dword [esi + 0x2fc]
call fcn.0044f310
mov ecx, dword [esi + 0x2c0]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c0]
add ecx, 0x140
call fcn.0044f310
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x2b8]
push dword [esi + 0x2c8]
add ecx, 0x140
call fcn.0044f310
mov ecx, dword [esi + 0x2b8]
mov eax, dword [ecx]
call dword [eax + 0x2c]
pop edi
mov dword [esi + 0x23bc], 0
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x4c9a5c
Capabilities:
Parse pe header

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

Function at 0x4df807
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x4df82a
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x4df818
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4ef958
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.0053227a
mov eax, dword [eax + 0x14]
test eax, eax
je 0x4ef99b
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push 2
push ecx
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x4ef99b
sub eax, 1
je 0x4ef996
sub eax, 1
je 0x4ef992
xor eax, eax
leave
ret
push 3
jmp 0x4ef99d
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x52dcfa
Capabilities:
Parse pe header

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

Function at 0x53a7e4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x56b38c
push 0x56b384
push str.FlsAlloc
push 0x1f
call fcn.0053a4b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53a818
push dword [ebp + 8]
mov ecx, esi
call dword [0x55e444]
call esi
jmp 0x53a81e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x53a862
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x56b39c
push 0x56b394
push str.FlsGetValue
push 0x21
call fcn.0053a4b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53a899
push dword [ebp + 8]
mov ecx, esi
call dword [0x55e444]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x53a8a1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x56b3a4
push 0x56b39c
push str.FlsSetValue
push 0x22
call fcn.0053a4b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x53a8db
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x55e444]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x53df43
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004c9530
mov eax, dword [0x592c80]
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.00538ccb
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x53df85
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x53e0e1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00553e60
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 + 0x5a8ec0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0053f110
mov ecx, dword [esi*4 + 0x5a8ec0]
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 0x53e0da
cmp eax, dword [ecx + edi + 0x24]
jne 0x53e0da
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 0x53e0da
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0053f110
add esp, 0x14
test edx, edx
jl 0x53e0da
jg 0x53e050
test eax, eax
jb 0x53e0da
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x53e0da
jl 0x53e06a
cmp dword [ebp - 0x1008], eax
ja 0x53e0da
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x53e088
test ebx, ebx
je 0x53e0c1
cmp ecx, edi
jae 0x53e0c1
mov al, byte [ecx]
cmp al, 0xd
jne 0x53e0a2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x53e0ae
cmp byte [ecx + 1], 0xa
jne 0x53e0ae
inc ecx
jmp 0x53e0ae
movzx eax, al
movsx eax, byte [eax + 0x593000]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x53e088
cmp edx, ebx
jne 0x53e088
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x53e0df
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c8873
leave
ret
Function at 0x53e28a
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 + 0x5a8ec0]
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 0x53e2ca
cmp byte [ebx], 0xa
jne 0x53e2ca
or byte [edi + eax + 0x28], 4
jmp 0x53e2cf
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 0x53e3ce
mov dl, byte [eax]
cmp dl, 0x1a
je 0x53e3b1
inc eax
cmp dl, 0xd
je 0x53e2fb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x53e321
cmp eax, ecx
jae 0x53e32f
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 0x53e2e3
jmp 0x53e3ce
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 0x53e3ac
cmp dword [ebp - 0x10], 0
je 0x53e3ac
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x5a8ec0]
test byte [eax + edi + 0x28], 0x48
je 0x53e386
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x53e371
mov byte [esi], dl
jmp 0x53e382
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5a8ec0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x53e3ce
cmp byte [ebp - 1], 0xa
jne 0x53e395
cmp esi, ebx
jne 0x53e395
mov byte [esi], 0xa
jmp 0x53e3cd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0053f12e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x53e3ce
mov byte [esi], 0xd
jmp 0x53e3cd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x5a8ec0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x53e3cb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x53e3ce
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x53e3d7
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 + 0x5a8ec0]
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 0x53e41d
cmp word [ebx], dx
jne 0x53e41d
or byte [eax + edi + 0x28], 4
jmp 0x53e422
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 0x53e585
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 0x53e565
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x53e463
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x53e499
cmp eax, edx
jae 0x53e4a7
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 0x53e43e
jmp 0x53e585
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 0x53e560
cmp dword [ebp - 0x18], 0
je 0x53e560
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x5a8ec0]
test byte [eax + edi + 0x28], 0x48
je 0x53e536
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 0x53e4fa
mov word [esi], cx
jmp 0x53e531
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x5a8ec0]
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 + 0x5a8ec0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x5a8ec0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x53e585
pop eax
cmp word [ebp - 4], ax
jne 0x53e546
cmp esi, ebx
jne 0x53e546
mov word [esi], ax
jmp 0x53e582
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0053f12e
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x53e585
push 0xd
pop eax
jmp 0x53e541
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x5a8ec0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x53e57f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x53e585
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 0x543b57
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x592c80]
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 0x543ba2
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00543eea
test al, al
jne 0x543b9c
sub edx, 2
cmp edx, edi
jne 0x543b82
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x543bc4
lea eax, [edi + 2]
cmp edx, eax
je 0x543bc4
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0054381e
add esp, 0x10
jmp 0x543cbe
push esi
lea ecx, [ebp - 0x255]
call fcn.00543eea
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 0x543c07
push dword [ebp - 0x25c]
jmp 0x543bb4
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 0x543c44
cmp word [ebp - 0x226], 0
je 0x543c65
cmp word [ebp - 0x226], ax
jne 0x543c44
cmp word [ebp - 0x224], 0
je 0x543c65
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0054381e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x543cb1
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x543c1e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x543c99
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x543cbe
push 0x543420
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0052a660
add esp, 0x10
jmp 0x543c8e
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.004c8873
leave
ret
Function at 0x544fd3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x545070
push ebx
push esi
call fcn.00544f8f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0053f3a6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x54501d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54506f
push edi
push eax
call fcn.00537be5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x54503d
call fcn.00537bab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x54506e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0053f3a6
add esp, 0x20
test eax, eax
jne 0x54505c
push edi
call fcn.00537bab
jmp 0x545064
push ebx
call fcn.00537bab
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x545073
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x545084
pop esi
ret
push ebx
push edi
push esi
call fcn.00544f8f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00537be5
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x5450ac
push ebx
push esi
push edi
call fcn.004f12d0
add esp, 0xc
push 0
call fcn.00537bab
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x54599b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00545321

Function at 0x545e86
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00545d5a

Function at 0x54877d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005398e8
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 0x5487ec
cmp esi, dword [ebp - 4]
je 0x5487e7
cmp dword [ebp + 0xc], 0
je 0x5487e7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5487c4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005482cf
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5487ee
xor eax, eax
inc eax
jmp 0x5487ee
xor eax, eax
pop edi
pop esi
leave
ret