joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5069f0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e06b7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x65a640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
cmp dword [ebp + 0xc], 0
mov dword [ebp - 0x10], 0
je 0x506a45
mov dword [ebx], 0x600680
mov dword [ebx + 0x50], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea esi, [ebx + 4]
mov ecx, ebx
push 0
push esi
mov dword [ebp + 0xc], esi
call fcn.00416207
mov eax, dword [ebx]
push 8
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x50]
mov dword [ecx + ebx - 4], eax
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00484e40
mov esi, eax
add esp, 4
test esi, esi
je 0x506aa2
push 1
mov byte [ebp - 4], 2
call fcn.00513a4e
add esp, 4
mov dword [esi + 4], eax
jmp 0x506aa4
xor esi, esi
lea eax, [ebx + 4]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
lea ecx, [eax + 0x18]
mov dword [eax + 0x20], ecx
lea edx, [eax + 0x24]
mov dword [eax + 0x2c], edx
lea edi, [eax + 0x14]
mov dword [eax + 0x1c], edi
add eax, 0x28
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x10]
mov dword [esi], 0
mov esi, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [eax], 0
mov dword [ebx], 0
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], 0
mov dword [edx], 0
and ecx, 1
shl ecx, 2
mov eax, ebx
mov edx, ecx
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
or edx, 8
mov dword [esi + 0x38], 0
and al, 8
cmove edx, ecx
mov eax, edx
or eax, 0x10
and bl, 4
cmove eax, edx
mov dword [esi + 0x3c], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x517ec9
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x517ef0
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x517ef3
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageA]
push eax
push dword [esi]
call fcn.00517ea5
pop esi
leave
ret 8
Function at 0x52e2a8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0058971f
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 0x52e2e7
sub eax, 1
je 0x52e2e2
sub eax, 1
je 0x52e2de
xor eax, eax
leave
ret
push 3
jmp 0x52e2e9
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x530b0a
Capabilities:
Parse pe header

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

Function at 0x5382bf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x5382ed
cmp eax, edi
jge 0x5382e1
push esi
call fcn.00534efb
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x538310
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x5382f6
mov dword [esi + 8], edx
jmp 0x538325
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x53831b
xor dl, dl
jmp 0x538320
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x538310
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x53835e
mov dword [0x666828], str.zlib_corrupt
xor eax, eax
jmp 0x5383a0
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x538373
mov dword [0x666828], str.read_past_buffer
jmp 0x53835a
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x53838a
push edi
push esi
call fcn.0053ab10
pop ecx
pop ecx
test eax, eax
je 0x53835a
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.00541e20
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x550a4c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x65a640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x605f78
push esi
call fcn.0058ffde
pop ecx
pop ecx
test eax, eax
jne 0x550a7a
xor al, al
jmp 0x550af7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0055068e
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x550ab4
push dword [ebp - 0x210]
call fcn.0056b88b
xor al, al
jmp 0x550af5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x550aba
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x550ada
push edx
call fcn.00550983
pop ecx
test al, al
je 0x550aa5
push esi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 1
jbe 0x550ae8
mov bl, 1
push dword [ebp - 0x210]
call fcn.0056b88b
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0052ef51
leave
ret

Function at 0x57d7db
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00530290
mov eax, dword [0x65a640]
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.0058402d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x58f0b8
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x58f214
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005301a0
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 + 0x667608]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.005949a2
mov ecx, dword [esi*4 + 0x667608]
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 0x58f20d
cmp eax, dword [ecx + edi + 0x24]
jne 0x58f20d
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 0x58f20d
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005949a2
add esp, 0x14
test edx, edx
jl 0x58f20d
jg 0x58f183
test eax, eax
jb 0x58f20d
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x58f20d
jl 0x58f19d
cmp dword [ebp - 0x1008], eax
ja 0x58f20d
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x58f1bb
test ebx, ebx
je 0x58f1f4
cmp ecx, edi
jae 0x58f1f4
mov al, byte [ecx]
cmp al, 0xd
jne 0x58f1d5
lea eax, [edi - 1]
cmp ecx, eax
jae 0x58f1e1
cmp byte [ecx + 1], 0xa
jne 0x58f1e1
inc ecx
jmp 0x58f1e1
movzx eax, al
movsx eax, byte [eax + 0x65ac10]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x58f1bb
cmp edx, ebx
jne 0x58f1bb
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x58f212
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0052ef51
leave
ret

Function at 0x591535
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6087e4
push 0x6087dc
push str.FlsAlloc
push 0x1f
call fcn.00591203
mov esi, eax
add esp, 0x10
test esi, esi
je 0x591569
push dword [ebp + 8]
mov ecx, esi
call dword [0x5e5794]
call esi
jmp 0x59156f
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5915b3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6087f4
push 0x6087ec
push str.FlsGetValue
push 0x21
call fcn.00591203
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5915ea
push dword [ebp + 8]
mov ecx, esi
call dword [0x5e5794]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsGetValue]
Function at 0x5915f2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6087fc
push 0x6087f4
push str.FlsSetValue
push 0x22
call fcn.00591203
mov esi, eax
add esp, 0x10
test esi, esi
je 0x59162c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5e5794]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.DLL_TlsSetValue]
Function at 0x5961e7
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 + 0x667608]
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 0x596227
cmp byte [ebx], 0xa
jne 0x596227
or byte [edi + eax + 0x28], 4
jmp 0x59622c
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 0x59632b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x59630e
inc eax
cmp dl, 0xd
je 0x596258
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x59627e
cmp eax, ecx
jae 0x59628c
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 0x596240
jmp 0x59632b
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 0x596309
cmp dword [ebp - 0x10], 0
je 0x596309
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x667608]
test byte [eax + edi + 0x28], 0x48
je 0x5962e3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5962ce
mov byte [esi], dl
jmp 0x5962df
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x667608]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x59632b
cmp byte [ebp - 1], 0xa
jne 0x5962f2
cmp esi, ebx
jne 0x5962f2
mov byte [esi], 0xa
jmp 0x59632a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005949c0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x59632b
mov byte [esi], 0xd
jmp 0x59632a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x667608]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x596328
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x59632b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x596334
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 + 0x667608]
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 0x59637a
cmp word [ebx], dx
jne 0x59637a
or byte [eax + edi + 0x28], 4
jmp 0x59637f
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 0x5964e2
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 0x5964c2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5963c0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5963f6
cmp eax, edx
jae 0x596404
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 0x59639b
jmp 0x5964e2
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 0x5964bd
cmp dword [ebp - 0x18], 0
je 0x5964bd
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x667608]
test byte [eax + edi + 0x28], 0x48
je 0x596493
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 0x596457
mov word [esi], cx
jmp 0x59648e
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x667608]
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 + 0x667608]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x667608]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5964e2
pop eax
cmp word [ebp - 4], ax
jne 0x5964a3
cmp esi, ebx
jne 0x5964a3
mov word [esi], ax
jmp 0x5964df
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005949c0
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5964e2
push 0xd
pop eax
jmp 0x59649e
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x667608]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5964dc
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5964e2
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 0x59d281
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x65a640]
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 0x59d2cc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0059d614
test al, al
jne 0x59d2c6
sub edx, 2
cmp edx, edi
jne 0x59d2ac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x59d2ee
lea eax, [edi + 2]
cmp edx, eax
je 0x59d2ee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0059cf48
add esp, 0x10
jmp 0x59d3e8
push esi
lea ecx, [ebp - 0x255]
call fcn.0059d614
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 0x59d331
push dword [ebp - 0x25c]
jmp 0x59d2de
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 0x59d36e
cmp word [ebp - 0x226], 0
je 0x59d38f
cmp word [ebp - 0x226], ax
jne 0x59d36e
cmp word [ebp - 0x224], 0
je 0x59d38f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0059cf48
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x59d3db
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x59d348
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x59d3c3
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor eax, eax
jmp 0x59d3e8
push 0x59cb4a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00580400
add esp, 0x10
jmp 0x59d3b8
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.0052ef51
leave
ret
Function at 0x59e6fd
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 0x59e79a
push ebx
push esi
call fcn.0059e6b9
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.00593f57
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x59e747
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x59e799
push edi
push eax
call fcn.0058f567
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x59e767
call fcn.0058f52d
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x59e798
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00593f57
add esp, 0x20
test eax, eax
jne 0x59e786
push edi
call fcn.0058f52d
jmp 0x59e78e
push ebx
call fcn.0058f52d
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 0x59e79d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x59e7ae
pop esi
ret
push ebx
push edi
push esi
call fcn.0059e6b9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0058f567
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x59e7d6
push ebx
push esi
push edi
call fcn.00541e20
add esp, 0xc
push 0
call fcn.0058f52d
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x59f0c5
Capabilities:
Set environment variable

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

Function at 0x59f69b
Capabilities:
Print debug messages

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

Function at 0x5a1882
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.005908cf
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 0x5a18f1
cmp esi, dword [ebp - 4]
je 0x5a18ec
cmp dword [ebp + 0xc], 0
je 0x5a18ec
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x5a18c9
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.005a13d4
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x5a18f3
xor eax, eax
inc eax
jmp 0x5a18f3
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x5a1958
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x65a640]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.005908cf
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.005908cf
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x5a19cf
cmp word [ecx], dx
je 0x5a19cf
mov eax, dword [0x60cf9c]
push edi
dec eax
push eax
push 0x60ce88
call fcn.005a18f7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x5a1a42
cmp word [eax], dx
je 0x5a1a42
mov eax, dword [edi]
test eax, eax
je 0x5a19f3
cmp word [eax], dx
je 0x5a19f3
lea eax, [ebp - 0x10]
push eax
call fcn.005a12da
jmp 0x5a19fc
lea eax, [ebp - 0x10]
push eax
call fcn.005a1375
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x5a1a6c
mov eax, dword [0x60ce84]
push dword [ebp - 0x14]
dec eax
push eax
push 0x60cb78
call fcn.005a18f7
add esp, 0xc
test al, al
je 0x5a1a6c
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x5a1a37
cmp word [eax], di
je 0x5a1a37
lea eax, [ebp - 0x10]
push eax
call fcn.005a12da
pop ecx
jmp 0x5a1a6e
lea eax, [ebp - 0x10]
push eax
call fcn.005a1375
jmp 0x5a1a34
mov eax, dword [edi]
test eax, eax
je 0x5a1a59
cmp word [eax], dx
je 0x5a1a59
lea eax, [ebp - 0x10]
push eax
call fcn.005a1271
pop ecx
jmp 0x5a1a6c
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x5a1b37
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.005a177c
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5a1b37
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.DLL_IsValidCodePage]
test eax, eax
je 0x5a1b37
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_IsValidLocale]
test eax, eax
je 0x5a1b37
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5a1ac4
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.005918c3
test ebx, ebx
je 0x5a1b32
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.005918c3
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x5a1b37
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x5a1b37
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.005a9dc4
add esp, 0x10
xor eax, eax
inc eax
jmp 0x5a1b39
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052ef51
leave
ret
Function at 0x5a2be7
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x65a640]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x5a2c2a
call fcn.0056b58b
mov dword [eax], 0xf
call fcn.0056b59e
mov dword [eax], 0xd
call fcn.0056b43d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052ef51
leave
ret
test eax, eax
jne 0x5a2c31
inc eax
jmp 0x5a2c1e
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x5a2c1c
xor eax, eax
cmp ecx, 1
setne al
jmp 0x5a2c1e