joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46d0ec
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00468b7c
xor eax, eax
push ebp
push 0x46d1ae
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.KERNEL32.DLL_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00469588
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0046973c
mov eax, dword [ebx]
call fcn.0046cf98
test al, al
jne 0x46d189
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00469588
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0046973c
mov eax, dword [ebx]
call fcn.0046cf98
test al, al
jne 0x46d189
mov eax, ebx
call fcn.00468a88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46d1b5
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00468ae8
lea eax, [ebp - 4]
call fcn.00468a88
pop eax
jmp eax

Function at 0x46ed70
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.KERNEL32.DLL_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x46f8a4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
push ebp
push 0x46f987
push dword fs:[eax]
mov dword fs:[eax], esp
sub dword [0x579ce4], 1
jae 0x46f977
call fcn.00466940
call fcn.00466594
call fcn.00465a50
call fcn.004653f8
push 0x400
call sub.KERNEL32.DLL_SetThreadLocale
call fcn.0046c2d0
mov byte [0x55b5e4], 2
mov dword [0x579360], 0x554c8a
mov dword [0x579364], 0x554cb4
mov byte [0x5793a6], 2
call fcn.0046ed70
mov dword [0x5793b0], eax
mov dword [0x57934c], 0x46af88
call fcn.0046697c
call fcn.00466998
mov word [0x5793b8], 0xd7b0
mov word [0x579694], 0xd7b0
mov word [0x579970], 0xd7b0
call sub.KERNEL32.DLL_GetCommandLineW
mov dword [0x579398], eax
call fcn.00463bfc
mov dword [0x579394], eax
call sub.KERNEL32.DLL_GetACP
mov dword [0x579ccc], eax
mov dword [0x579cd0], 0x4b0
call fcn.00554af8
mov dword [0x57938c], eax
call fcn.0046ed84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46f98e
pop eax
jmp eax
Function at 0x47e90c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x47e965
test eax, edx
je 0x47e968
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x47e923
movzx eax, word [eax]
sub eax, ecx
jmp 0x47e94a
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x47e94b
add ecx, 4
js 0x47e93b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x47e948
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x47e94a
xor eax, eax
ret
test eax, eax
je 0x47e974
test edx, edx
jne 0x47e914
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x484ab0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push 0x100
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x484ae9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00468c20
jmp 0x484af2
mov eax, ebx
mov edx, esi
call fcn.00468e78
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x484afc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoW
test eax, eax
jle 0x484b20
movzx eax, word [esp]
jmp 0x484b22
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x486818
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x48693f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00486620
mov esi, eax
mov eax, dword [0x562abc]
cmp byte [eax], 0
je 0x4868e5
mov eax, dword [0x562ad0]
call fcn.00466530
call fcn.0046583c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x4867e8]
call fcn.0046b978
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.KERNEL32.DLL_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x486958
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x486921
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x562b8c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x563130]
call fcn.0046c070
push eax
call sub.USER32.DLL_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.USER32.DLL_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486946
lea eax, [ebp - 4]
mov edx, dword [0x4867e8]
call fcn.0046ba9c
pop eax
jmp eax

Function at 0x488e04
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00468f68
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0046ed50
mov edi, eax
cmp edi, 0x104
jbe 0x488daf
mov eax, edi
add eax, eax
call fcn.00465634
mov esi, eax
jmp 0x488db1
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0046ed50
push esi
call sub.USER32.DLL_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x488dea
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x488dd4
mov eax, esp
cmp esi, eax
je 0x488df7
mov eax, esi
call fcn.00465650
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x488e30
cmp bl, 0
je 0x488e2c
cmp bl, 0x41
jl 0x488e27
cmp bl, 0x5a
jg 0x488e27
or bl, 0x20
xor al, bl
inc esi
jmp 0x488e0b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x488d70

Function at 0x489764
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00469588
add esp, 0x800
pop ebx
ret
Function at 0x48bf98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x48bfb6
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x48bfce
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x48bfc9
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x48bfd3
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x48c041
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x48c08a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x48bfff
inc dword [ebp - 0xc]
jmp 0x48c017
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x48c017
cmp dword [ebp - 0xc], 0
jle 0x48c017
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x48c039
xor eax, eax
jmp 0x48c035
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x48c034
mov eax, esi
jmp 0x48c08d
inc eax
cmp eax, ecx
jle 0x48c021
inc esi
cmp esi, dword [ebp - 8]
jl 0x48bfeb
jmp 0x48c08a
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x48c08a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x48c062
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x48c084
xor eax, eax
jmp 0x48c080
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x48c07f
mov eax, esi
jmp 0x48c08d
inc eax
cmp eax, ecx
jle 0x48c06c
inc esi
cmp esi, dword [ebp - 8]
jl 0x48c04a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x48c27c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x48c299
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x48c2a7
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x48c3c9
test ebx, ebx
jl 0x48c3c9
test esi, esi
jle 0x48c3c9
mov eax, dword [ebp - 8]
call fcn.004694ec
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004694ec
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x48c366
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x48c3c9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x48c34b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x48c31a
inc dword [ebp - 0x14]
jmp 0x48c32a
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x48c32a
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x48c335
or eax, 0xffffffff
jmp 0x48c34b
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x48c348
inc eax
jmp 0x48c34b
or eax, 0xffffffff
test eax, eax
jl 0x48c353
cmp esi, eax
jg 0x48c308
cmp esi, eax
jg 0x48c35e
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x48c3cc
inc edx
dec dword [ebp - 0x1c]
jne 0x48c304
jmp 0x48c3c9
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x48c3c9
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x48c3b0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x48c38f
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x48c39a
or eax, 0xffffffff
jmp 0x48c3b0
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x48c3ad
inc eax
jmp 0x48c3b0
or eax, 0xffffffff
test eax, eax
jl 0x48c3b8
cmp esi, eax
jg 0x48c378
cmp esi, eax
jg 0x48c3c3
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x48c3cc
inc edx
dec dword [ebp - 0x1c]
jne 0x48c374
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x49d6e8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x49d6f0
mov eax, edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4a0393
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4a0383
mov eax, ecx
pop ebx
ret
Function at 0x53db4c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov al, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov byte [ebp - 5], al
mov al, byte [edx]
mov bl, al
xor bl, byte [ebp + 0xc]
lock cmpxchg byte [edx], bl
jne 0x53db61
mov byte [ebp + 0xc], al
mov al, byte [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0xd]
movzx eax, al
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x53e0dc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov ax, word [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov word [ebp - 6], ax
mov ax, word [edx]
mov bx, ax
xor bx, word [ebp + 0xc]
lock cmpxchg word [edx], bx
jne 0x53e0f4
mov word [ebp + 0xc], ax
mov ax, word [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov word [ebp - 0xe], ax
mov ax, word [ebp - 0xe]
movzx eax, ax
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x53e63c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edx]
mov ebx, eax
xor ebx, dword [ebp + 0xc]
lock cmpxchg dword [edx], ebx
jne 0x53e651
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add esp, 0xc
pop ebx
pop ebp
ret

Function at 0x53f8fc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 4]
mov eax, dword [edi]
mov ecx, edx
mov ebx, eax
xor ebx, dword [ebp - 0x18]
xor ecx, dword [ebp - 0x14]
lock cmpxchg8b qword [edi]
jne 0x53f925
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x541904
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x2c
mov ebx, dword [esp + 0x44]
call fcn.005428c8
test bh, 0xc0
jne 0x541927
mov eax, dword [0x560ef4]
mov ecx, 0xc000
and ecx, dword [eax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
mov ecx, eax
shr ecx, 8
mov esi, 3
cmp ecx, 6
ja 0x54194b
sar eax, 6
mov esi, dword [eax + 0x560888]
mov edi, dword [esp + 0x40]
test bh, 1
je 0x541974
lea eax, [esp + 0x4c]
mov dword [esp + 0x20], eax
mov al, byte [0x5608a8]
and al, byte [esp + 0x48]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x541987
mov dword [esp], edi
call sub.KERNEL32.DLL_GetFileAttributesW
sub esp, 4
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x5419a0
cmp al, 2
je 0x5419a7
cmp al, 1
jne 0x541a9f
mov eax, 0x40000000
jmp 0x5419ac
mov eax, SysReAllocStringLen
jmp 0x5419ac
mov eax, 0xc0000000
mov edx, ebx
and edx, 0x70
add edx, 0xfffffff0
shr edx, 4
cmp edx, 3
mov ebp, 3
cmovb ebp, edx
xor edx, edx
cmp eax, 0x80000000
sete dl
test bl, 4
cmove edx, ebp
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], 0
mov ebp, ebx
shr ebp, 7
not ebp
and ebp, 1
mov dword [esp + 0x28], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x18], 0
call sub.KERNEL32.DLL_CreateFileW
sub esp, 0x1c
mov esi, eax
cmp esi, 0xffffffff
je 0x541a7c
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov dword [esp], esi
call fcn.005414c8
mov ecx, edi
or ecx, 0x2000
test eax, eax
cmove ecx, edi
and ecx, 0xfffff8ff
mov dword [esp], esi
mov dword [esp + 4], ecx
call fcn.00542a88
mov edi, eax
cmp edi, 0xffffffff
jne 0x541aad
mov dword [esp], 4
call fcn.00542e64
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edi, 0xffffffff
jmp 0x541aad
call sub.KERNEL32.DLL_GetLastError
movzx eax, ax
test bh, 1
mov ecx, 0x50
mov edx, 2
cmovne edx, ecx
cmp eax, 0x6e
cmovne edx, eax
mov dword [esp], edx
jmp 0x541aa6
mov dword [esp], 1
call fcn.00542e64
mov edi, eax
call fcn.00542918
mov eax, edi
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x541e4c
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x560e24], eax
jbe 0x541e89
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x5803d0]
call sub.KERNEL32.DLL_ReadFile
add esp, 0xc
cmp eax, 1
jne 0x541e90
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
jmp 0x541ea6
call sub.KERNEL32.DLL_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
jne 0x541ea2
add esp, 0xc
ret
sub esp, 0xc
push ecx
call fcn.00542e64
add esp, 0x10
add esp, 0xc
ret
Function at 0x541ec4
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [0x560e24], eax
jbe 0x541f01
sub esp, 0xc
lea ecx, [esp + 0x14]
push 0
push ecx
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push dword [eax*4 + 0x5803d0]
call sub.KERNEL32.DLL_WriteFile
add esp, 0xc
cmp eax, 1
jne 0x541f12
mov eax, dword [esp + 8]
add esp, 0xc
ret
sub esp, 0xc
push 6
call fcn.00542e64
add esp, 0x10
add esp, 0xc
ret
call fcn.00542f04
add esp, 0xc
ret

Function at 0x543d28
Capabilities:
Delete file

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_DeleteFileA
sub esp, 4
cmp eax, 1
jne 0x543d45
xor eax, eax
add esp, 0xc
ret
add esp, 0xc
jmp fcn.00542f04
Function at 0x546a88
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x21c
mov dword [esp + 0x18], edx
mov esi, ecx
mov eax, dword [esi + 4]
lea ebp, [esp + 0x1c]
mov dword [esp + 8], ebp
mov dword [esp], eax
mov dword [esp + 0xc], pe_nt_image_headers32
mov dword [esp + 4], 0x1001
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00540ff8
mov word [esp + eax + 0x1c], 0x5f
mov edi, dword [esi + 4]
mov dword [esp], ebp
call fcn.00540ff8
lea ecx, [esp + eax + 0x1c]
mov edx, pe_nt_image_headers32
sub edx, eax
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp], edi
mov dword [esp + 4], 0x1002
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0x10
mov dword [esp], ebp
call fcn.00540ff8
mov word [esp + eax + 0x1c], 0x2e
mov edi, dword [esi]
mov dword [esp], ebp
call fcn.00540ff8
lea eax, [esp + eax + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 8], 0xa
call fcn.00549edc
mov edi, dword [esi + 0x24]
test edi, edi
je 0x546b7c
mov dword [esp], edi
call fcn.00540ff8
mov ebx, eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00540ff8
mov ecx, ebp
mov ebp, eax
mov dword [esp], ecx
call fcn.00540ff8
add ebp, ebx
lea eax, [eax + ebp + 3]
lea ebp, [esp + 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.0054036c
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
jne 0x546bd1
jmp 0x546c19
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00540ff8
mov ebx, eax
mov edi, ebp
mov dword [esp], ebp
call fcn.00540ff8
mov ebp, eax
lea eax, [ebx + ebp + 3]
mov dword [esp], eax
call fcn.00540354
mov ebx, eax
mov dword [esi + 0x24], ebx
test ebx, ebx
je 0x546c19
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00540ff8
lea eax, [ebp + eax + 3]
mov dword [esp + 8], eax
mov dword [esp], ebx
mov dword [esp + 4], 0
call fcn.00540e93
mov ebp, edi
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00540eac
mov edi, dword [esi + 0x24]
mov dword [esp], edi
call fcn.00540ff8
mov word [edi + eax], 0x3d
mov eax, dword [esi + 0x24]
mov dword [esp + 4], ebp
mov dword [esp], eax
call fcn.00540eac
mov esi, dword [esi + 0x24]
mov dword [esp], esi
call fcn.00540ff8
mov word [esi + eax], 0xa
mov eax, 1
jmp 0x546c1b
xor eax, eax
add esp, 0x21c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x548674
Capabilities:
Get geographical location

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
push 0
push dword [edi + 4]
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00540354
add esp, 0x10
mov dword [edi + 4], eax
push esi
push eax
push 0xe
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi]
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00540354
add esp, 0x10
mov dword [edi], eax
test edi, edi
je 0x5486e7
push esi
push eax
push 0xf
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
jmp 0x5486f6
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
xor ecx, ecx
and ecx, ebx
mov dword [esp + 8], ecx
push 0
push dword [edi + 8]
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00540354
add esp, 0x10
mov dword [edi + 8], eax
push esi
push eax
push 0x10
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
push 0
push dword [edi + 0xc]
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00540354
add esp, 0x10
mov dword [edi + 0xc], eax
push esi
push eax
push 0x50
push ebp
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ecx, ecx
test eax, eax
setne cl
and ecx, ebx
mov ebx, ebp
mov ebp, ecx
push 0
push dword [edi + 0x10]
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
mov esi, eax
inc esi
sub esp, 0xc
push esi
call fcn.00540354
add esp, 0x10
mov dword [edi + 0x10], eax
push esi
push eax
push 0x51
push ebx
call sub.KERNEL32.DLL_GetLocaleInfoA
xor ebx, ebx
test eax, eax
setne bl
and ebx, ebp
and ebx, dword [esp + 8]
sub esp, 0xc
push 4
call fcn.00540354
add esp, 0x10
mov esi, eax
test esi, esi
je 0x5487e0
push 4
push esi
push 0x11
push dword [esp + 0x2c]
call sub.KERNEL32.DLL_GetLocaleInfoA
sub esp, 0xc
test eax, eax
je 0x5487ef
push esi
call fcn.00549814
add esp, 0x10
mov word [edi + 0x14], ax
sub esp, 0xc
push esi
call fcn.00540364
add esp, 0x10
mov eax, 1
jmp 0x5487fa
sub esp, 0xc
push 0xe
call sub.KERNEL32.DLL_SetLastError
add esp, 0xc
jmp 0x5487f8
push esi
call fcn.00540364
add esp, 0x10
xor eax, eax
and ebx, eax
mov eax, ebx
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret