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

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x6f872c]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x5bb9be
xor eax, eax
jmp 0x5bbb28
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x2239820]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x5bb9fc
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.005b991f
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x5bba96
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x5bbaf9
jmp 0x5bba20
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x5bba5b
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x5bba4c
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x5bba2c
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x5bbaba
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x5bbac3
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x5bba1e
jmp 0x5bbac3
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x5bbaba
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x5bbac3
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x5bbb23
cmp dword [ebp - 0x68], eax
je 0x5bbaf6
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x5bbaeb
call fcn.005c0f8a
mov dword [eax], 9
call fcn.005c0f93
mov dword [eax], esi
jmp 0x5bbb1e
push dword [ebp - 0x68]
call fcn.005c0f9c
pop ecx
jmp 0x5bbb1e
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x5bbb0b
cmp byte [edi], 0x1a
jne 0x5bbb0b
xor eax, eax
jmp 0x5bbb26
call fcn.005c0f8a
mov dword [eax], 0x1c
call fcn.005c0f93
and dword [eax], 0
or eax, 0xffffffff
jmp 0x5bbb26
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.005bbd6d
add ebp, 0x3a4
leave
ret
Function at 0x5bc263
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x5bc291
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
test eax, eax
je 0x5bc296
cmp eax, 1
je 0x5bc296
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x5bc29a
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6f872c]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x5bc32c
push ebx
call fcn.005bc263
test eax, eax
pop ecx
jne 0x5bc301
call fcn.005c0f93
mov dword [eax], 0xf
call fcn.005c0f8a
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.005bbd6d
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.kernel32.dll_GetFullPathNameA]
jmp 0x5bc33b
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x5bc2e8
inc eax
cmp eax, 0x104
ja 0x5bc2e8
test edi, edi
mov ecx, edi
jne 0x5bc378
cmp eax, dword [ebp + 0xa0]
jg 0x5bc35b
mov eax, dword [ebp + 0xa0]
push eax
call fcn.005ba845
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x5bc390
call fcn.005c0f8a
mov dword [eax], 0xc
jmp 0x5bc2e8
cmp eax, dword [ebp + 0xa0]
jle 0x5bc390
call fcn.005c0f8a
mov dword [eax], 0x22
jmp 0x5bc2e8
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.005c1a40
pop ecx
pop ecx
jmp 0x5bc2ea
Function at 0x5bc411
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push 0x128
push 0x6c1360
call fcn.005be1d0
mov eax, dword [0x6f872c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x124]
xor ebx, ebx
mov dword [ebp - 0x130], ebx
or dword [ebp - 0x12c], 0xffffffff
push eax
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x5bc521
mov eax, edi
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x134], esi
cmp esi, 0x104
jle 0x5bc4d2
mov dword [ebp - 4], ebx
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.005b89a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x138], edi
jmp 0x5bc4bf
or dword [ebp - 4], 0xffffffff
cmp esi, ebx
je 0x5bc521
push edi
inc esi
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
cmp esi, ebx
je 0x5bc521
mov al, byte [edi]
cmp al, 0x5c
je 0x5bc4e0
cmp al, 0x2f
jne 0x5bc4e5
cmp al, byte [edi + 1]
je 0x5bc51b
mov byte [ebp - 0x128], 0x3d
movzx eax, byte [edi]
push eax
call fcn.005c7f2b
pop ecx
mov byte [ebp - 0x127], al
mov byte [ebp - 0x126], 0x3a
mov byte [ebp - 0x125], bl
push edi
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x5bc521
mov dword [ebp - 0x12c], ebx
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.005c0f9c
pop ecx
cmp dword [ebp - 0x130], ebx
je 0x5bc53d
push edi
call fcn.005ba857
pop ecx
mov eax, dword [ebp - 0x12c]
lea esp, [ebp - 0x144]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005bbd6d
call fcn.005be20b
ret
Function at 0x5c1587
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.005b89a0
mov eax, dword [0x6f872c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.005b8d14
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x5c16bc
push 2
push esi
push dword [ebp + 8]
call fcn.005b8d14
add esp, 0xc
cmp eax, ebx
je 0x5c16bc
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x5c165c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.005c85b0
push 0x8000
push dword [ebp + 8]
call fcn.005ca0fb
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x5c1612
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.005bb982
add esp, 0xc
cmp eax, 0xffffffff
je 0x5c1632
sub edi, eax
test edi, edi
jg 0x5c160a
jmp 0x5c164a
call fcn.005c0f93
cmp dword [eax], 5
jne 0x5c1647
call fcn.005c0f8a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.005ca0fb
pop ecx
pop ecx
jmp 0x5c16a4
jge 0x5c16a4
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005b8d14
push dword [ebp + 8]
call fcn.005c1308
add esp, 0x10
push eax
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x5c16a4
call fcn.005c0f8a
mov dword [eax], 0xd
call fcn.005c0f93
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.005b8d14
add esp, 0xc
mov eax, esi
pop edi
jmp 0x5c16be
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005bbd6d
leave
ret
Function at 0x5c4c46
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x5c4c74
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x5c4c7b
cmp ebx, dword [eax + 4]
jae 0x5c4c7b
xor eax, eax
jmp 0x5c4e6b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x5c4c8c
xor eax, eax
inc eax
jmp 0x5c4e6a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x5c4ca2
cmp ecx, edx
jae 0x5c4de7
cmp dword [eax + 4], 0
je 0x5c4cab
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x5c4c93
cmp dword [ebp + 8], 0
je 0x5c4ccd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x5c4de7
cmp eax, esi
jae 0x5c4de7
mov eax, dword [0x2235608]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x5c4cf2
cmp dword [esi*4 + 0x2235610], edi
je 0x5c4deb
inc esi
cmp esi, eax
jl 0x5c4ce0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x5c4e67
cmp dword [ebp - 8], 0x1000000
jne 0x5c4e67
test byte [ebp - 0xc], 0xcc
je 0x5c4d70
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x5c4e67
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x5c4e67
cmp word [eax + 0x18], 0x10b
jne 0x5c4e67
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x5c4e67
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x5c4d70
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x5c4d70
test byte [ecx + 0x27], 0x80
jne 0x5c4de7
push 1
push 0x2235650
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x5c4c84
mov ecx, dword [0x2235608]
test ecx, ecx
mov edx, ecx
jle 0x5c4da4
lea eax, [ecx*4 + 0x223560c]
cmp dword [eax], edi
je 0x5c4da4
dec edx
sub eax, 4
test edx, edx
jg 0x5c4d98
test edx, edx
jne 0x5c4dd5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x5c4db1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x5c4dc9
lea eax, [edx*4 + 0x2235610]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x5c4db7
cmp ecx, 0x10
jge 0x5c4dd5
inc ecx
mov dword [0x2235608], ecx
push 0
push 0x2235650
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x5c4c84
xor eax, eax
jmp 0x5c4e6a
test esi, esi
jle 0x5c4c84
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x2235650
call ebx
test eax, eax
jne 0x5c4c84
cmp dword [esi*4 + 0x2235610], edi
je 0x5c4e41
mov eax, dword [0x2235608]
lea esi, [eax - 1]
test esi, esi
jl 0x5c4e2f
cmp dword [esi*4 + 0x2235610], edi
je 0x5c4e2b
dec esi
jns 0x5c4e1f
test esi, esi
jge 0x5c4e3f
cmp eax, 0x10
jge 0x5c4e3a
inc eax
mov dword [0x2235608], eax
lea esi, [eax - 1]
jmp 0x5c4e41
je 0x5c4e59
xor ecx, ecx
test esi, esi
jl 0x5c4e59
lea eax, [ecx*4 + 0x2235610]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x5c4e47
push 0
push 0x2235650
call ebx
jmp 0x5c4c84
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5c6537
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x6f872c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x6f9000]
je 0x5c656e
inc eax
cmp eax, 0x13
jb 0x5c655f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x6f9000]
jne 0x5c6691
mov eax, dword [0x223538c]
cmp eax, 1
je 0x5c666c
cmp eax, edx
jne 0x5c659e
cmp dword [0x6f8714], 1
je 0x5c666c
cmp ecx, 0xfc
je 0x5c6691
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5c65d4
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.005c1a40
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.005c03e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x5c6608
mov eax, edi
push eax
call fcn.005c03e0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x6ab588
push edi
call fcn.005b87f0
add esp, 0x10
push edi
call fcn.005c03e0
push dword [esi + 0x6f9004]
mov ebx, eax
call fcn.005c03e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.005b89a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.005c1a40
push edi
push ebx
call fcn.005c1a50
push 0x6c5808
push ebx
call fcn.005c1a50
push dword [esi + 0x6f9004]
push ebx
call fcn.005c1a50
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.005cb9eb
add esp, 0x2c
jmp 0x5c6691
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x6f9004]
push dword [esi]
call fcn.005c03e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.005bbd6d
add ebp, 0x90
leave
ret

Function at 0x5c7d1a
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x6c5aa8
call fcn.005be1d0
mov eax, dword [0x6f872c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x5c7dc0
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.005b89a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x5c7dad
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x5c7dc0
push edi
inc esi
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x5c7ddb
cmp byte [edi + 1], 0x3a
jne 0x5c7ddb
movzx eax, byte [edi]
push eax
call fcn.005ba77c
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x5c7deb
push edi
call fcn.005ba857
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005bbd6d
call fcn.005be20b
ret
Function at 0x5cb9eb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x2235808], ebx
push esi
push edi
jne 0x5cba6b
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5cbaa6
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x2235808], eax
je 0x5cbaa6
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x223580c], eax
call esi
cmp dword [0x2235334], 2
mov dword [0x2235810], eax
jne 0x5cba6b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x2235818], eax
je 0x5cba6b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x2235814], eax
mov eax, dword [0x2235814]
test eax, eax
je 0x5cbab0
call eax
test eax, eax
je 0x5cba97
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x2235818]
test eax, eax
je 0x5cba97
test byte [ebp - 8], 1
jne 0x5cbab0
cmp dword [0x2235340], 4
jb 0x5cbaaa
or byte [ebp + 0x12], 0x20
jmp 0x5cbacf
xor eax, eax
jmp 0x5cbadf
or byte [ebp + 0x12], 4
jmp 0x5cbacf
mov eax, dword [0x223580c]
test eax, eax
je 0x5cbacf
call eax
mov ebx, eax
test ebx, ebx
je 0x5cbacf
mov eax, dword [0x2235810]
test eax, eax
je 0x5cbacf
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x2235808]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5cc668
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6c69c0
call fcn.005be1d0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x2235824], edi
jne 0x5cc6ac
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x5cc697
mov dword [0x2235824], ebx
jmp 0x5cc6ac
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x5cc6ac
mov dword [0x2235824], 2
mov eax, dword [0x2235824]
cmp eax, ebx
jne 0x5cc6cc
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x5cc78f
cmp eax, 2
je 0x5cc6d5
cmp eax, edi
jne 0x5cc6fd
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x5cc6e8
mov eax, dword [0x22357a0]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x5cc704
xor eax, eax
jmp 0x5cc78f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.005b89a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x5cc737
cmp esi, edi
jne 0x5cc74d
push dword [ebp - 0x20]
call fcn.005ba845
pop ecx
mov esi, eax
cmp esi, edi
je 0x5cc6fd
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
test eax, eax
je 0x5cc780
cmp dword [ebp + 0x14], edi
jne 0x5cc76a
push edi
push edi
jmp 0x5cc770
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x5cc78c
push esi
call fcn.005ba857
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.005be20b
ret
Function at 0x5cc798
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6c69d0
call fcn.005be1d0
xor esi, esi
cmp dword [0x2235828], esi
jne 0x5cc7dc
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x5cc7c7
mov dword [0x2235828], edi
jmp 0x5cc7dc
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x5cc7dc
mov dword [0x2235828], 2
mov eax, dword [0x2235828]
cmp eax, 2
je 0x5cc8bd
cmp eax, esi
je 0x5cc8bd
cmp eax, 1
jne 0x5cc821
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x5cc80a
mov eax, dword [0x22357a0]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x5cc828
xor eax, eax
jmp 0x5cc8cf
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.005b89a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x5cc85e
cmp edi, esi
jne 0x5cc879
lea eax, [ebx + ebx]
push eax
call fcn.005ba845
pop ecx
mov edi, eax
cmp edi, esi
je 0x5cc821
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x5cc8ac
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x5cc896
push esi
push esi
jmp 0x5cc89c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x5cc8b8
push edi
call fcn.005ba857
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x5cc8cf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.005be20b
ret
Function at 0x5ccd95
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x5ccdae
or eax, 0xffffffff
jmp 0x5cce0f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x5cce0b
push 0x3d
push esi
call fcn.005ccf96
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x5cce0b
cmp esi, eax
je 0x5cce0b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x2235354]
sete cl
cmp eax, dword [0x2235358]
mov dword [ebp - 4], ecx
jne 0x5ccdf1
mov edi, eax
call fcn.005ccd34
mov dword [0x2235354], eax
cmp eax, ebx
jne 0x5cce4a
cmp dword [ebp + 0xc], ebx
je 0x5cce13
cmp dword [0x223535c], ebx
je 0x5cce13
call fcn.005cc314
test eax, eax
je 0x5cce4a
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x5cce1c
xor eax, eax
jmp 0x5cce0e
push 4
call fcn.005ba845
cmp eax, ebx
pop ecx
mov dword [0x2235354], eax
je 0x5cce0b
mov dword [eax], ebx
cmp dword [0x223535c], ebx
jne 0x5cce4a
push 4
call fcn.005ba845
cmp eax, ebx
pop ecx
mov dword [0x223535c], eax
je 0x5cce0b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x2235354]
sub edi, esi
push esi
call fcn.005ccce7
mov edi, eax
test edi, edi
pop ecx
jl 0x5cceb1
cmp dword [ebx], 0
je 0x5cceb1
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.005ba857
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x5cce91
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x5ccef2
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x5cce88
mov eax, edi
shl eax, 2
push eax
push dword [0x2235354]
call fcn.005baf72
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x5ccef2
jmp 0x5cceed
cmp dword [ebp - 4], 0
jne 0x5ccf59
test edi, edi
jge 0x5ccec1
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x2235354]
call fcn.005baf72
test eax, eax
pop ecx
pop ecx
je 0x5cce0b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x2235354], eax
cmp dword [ebp + 0xc], 0
je 0x5ccf44
push esi
call fcn.005c03e0
inc eax
inc eax
push eax
call fcn.005ba845
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x5ccf44
push esi
push edi
call fcn.005c1a40
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x5ccf3d
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.005ba857
pop ecx
cmp dword [ebp - 4], 0
je 0x5ccf51
push esi
call fcn.005ba857
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x5cce0e
push esi
call fcn.005ba857
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x5cce18