joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10019022
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
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.1000e9fb
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.1000e9fb
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 0x10019099
cmp word [ecx], dx
je 0x10019099
mov eax, dword [0x10020994]
push edi
dec eax
push eax
push 0x10020880
call fcn.10018fc1
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001910c
cmp word [eax], dx
je 0x1001910c
mov eax, dword [edi]
test eax, eax
je 0x100190bd
cmp word [eax], dx
je 0x100190bd
lea eax, [ebp - 0x10]
push eax
call fcn.100189a4
jmp 0x100190c6
lea eax, [ebp - 0x10]
push eax
call fcn.10018a3f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x10019136
mov eax, dword [0x1002087c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10020570
call fcn.10018fc1
add esp, 0xc
test al, al
je 0x10019136
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10019101
cmp word [eax], di
je 0x10019101
lea eax, [ebp - 0x10]
push eax
call fcn.100189a4
pop ecx
jmp 0x10019138
lea eax, [ebp - 0x10]
push eax
call fcn.10018a3f
jmp 0x100190fe
mov eax, dword [edi]
test eax, eax
je 0x10019123
cmp word [eax], dx
je 0x10019123
lea eax, [ebp - 0x10]
push eax
call fcn.10018959
pop ecx
jmp 0x10019136
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 0x10019201
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10018e46
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10019201
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10019201
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10019201
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001918e
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10011d77
test ebx, ebx
je 0x100191fc
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10011d77
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10019201
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 0x10019201
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1001ac97
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10019203
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10004ca6
leave
ret
Function at 0x1001b1b1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1001b12d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001b320
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001b320
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001b2d5
jg 0x1001b20d
test eax, eax
je 0x1001b2cb
push 1
push 0x1000
call fcn.10011740
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001b230
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001b2c2
push 0x8000
push ebx
call fcn.1001b05e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001b259
jg 0x1001b254
cmp ecx, 0x1000
jb 0x1001b259
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10010fa6
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001b29e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1001b254
jl 0x1001b285
test ecx, ecx
jne 0x1001b246
push dword [ebp - 0xc]
push ebx
call fcn.1001b05e
push esi
call fcn.100111c2
add esp, 0xc
xor ebx, ebx
jmp 0x1001b32e
cmp byte [edi + 0x24], 0
je 0x1001b2b5
cmp dword [edi + 0x20], 5
jne 0x1001b2b5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001b2c0
mov ebx, dword [edi + 0x18]
jmp 0x1001b2c2
xor ebx, ebx
push esi
call fcn.100111c2
pop ecx
jmp 0x1001b32e
test ecx, ecx
jg 0x1001b297
jl 0x1001b2d5
test eax, eax
jae 0x1001b297
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100132bc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001b2f5
cmp byte [edi + 0x1c], 0
je 0x1001b297
jmp 0x1001b326
push ebx
call fcn.10016deb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001b297
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001b32e
cmp byte [edi + 0x1c], 0
je 0x1001b32b
mov ebx, dword [edi + 0x18]
jmp 0x1001b32e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100132bc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001c720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001c74d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001c74d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4253a9
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x42e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor edi, edi
cmp dword [ebp + 0xc], 0x19f
mov dword [ebp - 0x408], eax
jne 0x4253d9
push edi
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
xor ebx, ebx
cmp dword [ebp + 0xc], edi
jle 0x42544b
push esi
lea esi, [ebp - 0x40c]
mov dword [ebp - 0x40c], edi
call fcn.0042539e
mov eax, dword [ebp - 0x408]
mov cl, byte [ebp - 0x40c]
add eax, ebx
xor byte [eax], cl
cmp dword [ebp + 0xc], 0xf
jne 0x425444
push edi
push dword [ebp - 0x408]
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.Cogi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push str.Rodohuvoboco_jalajo_sezafowebazobe_dolarocuviveg
push edi
push edi
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
inc ebx
cmp ebx, dword [ebp + 0xc]
jl 0x4253e1
pop esi
cmp dword [ebp + 0xc], 0x2d
pop edi
pop ebx
jne 0x425464
or dword [0x43e844], 0xffffffff
mov dword [0x43e840], 0xa62e7790
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401006
leave
ret
Function at 0x1000ed74
Capabilities:
Terminate process

Disassembly:
push 8
push 0x10025fc0
call fcn.10010328
push 8
call fcn.1001017b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x1002f860], esi
jne 0x1000eda8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1002f85c], esi
mov al, byte [ebp + 0x10]
mov byte [0x1002f858], al
cmp dword [ebp + 0xc], edi
jne 0x1000edf2
cmp dword [0x100300b0], edi
je 0x1000ede2
mov eax, dword [0x100300ac]
sub eax, 4
mov dword [0x100300ac], eax
cmp eax, dword [0x100300b0]
jb 0x1000ede2
mov eax, dword [eax]
cmp eax, edi
je 0x1000edc3
call eax
jmp 0x1000edc3
push 0x10029020
mov eax, 0x1002901c
call fcn.1000ecd4
pop ecx
push 0x10029028
mov eax, 0x10029024
call fcn.1000ecd4
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.1000ee23
cmp dword [ebp + 0x10], edi
jne 0x1000ee31
mov dword [0x1002f860], esi
push dword [ebp + 8]
call fcn.1000ec92
xor edi, edi
xor esi, esi
inc esi
call fcn.10010363
ret

Function at 0x1000fa53
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x1000fb43
mov eax, 0x94
call fcn.10013990
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000fbb8
mov ecx, dword [esi + 0x10]
mov dword [0x1002f820], ecx
mov eax, dword [esi + 4]
mov dword [0x1002f82c], eax
mov edx, dword [esi + 8]
mov dword [0x1002f830], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1002f824], esi
je 0x1000fabe
or esi, 0x8000
mov dword [0x1002f824], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1002f828], eax
call fcn.10011cf7
test eax, eax
pop ecx
je 0x1000fbb8
call fcn.10011bee
test eax, eax
jne 0x1000faeb
call fcn.10011d48
jmp 0x1000fbb8
call fcn.1001029e
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100300a0], eax
call fcn.10013866
mov dword [0x1002f870], eax
call fcn.10013347
test eax, eax
jl 0x1000fb3c
call fcn.100137c4
test eax, eax
jl 0x1000fb37
call fcn.10013591
test eax, eax
jl 0x1000fb37
push 0
call fcn.1000ed0a
test eax, eax
pop ecx
jne 0x1000fb37
inc dword [0x1002f86c]
jmp 0x1000fbc9
call fcn.10013545
call fcn.100119cb
jmp 0x1000fae1
test eax, eax
jne 0x1000fb73
cmp dword [0x1002f86c], eax
jle 0x1000fbb8
dec dword [0x1002f86c]
cmp dword [0x1002f85c], eax
jne 0x1000fb62
call fcn.1000ee59
call fcn.10013545
call fcn.100119cb
call fcn.10011d48
jmp 0x1000fbc9
cmp eax, 2
jne 0x1000fbbc
push 0x8c
push 1
call fcn.10013270
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000fbb8
push esi
push dword [0x1002d6b0]
call dword [0x1002fa04]
test eax, eax
push esi
je 0x1000fbb2
call fcn.100119e8
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x1000fbc9
call fcn.1000f100
pop ecx
xor eax, eax
jmp 0x1000fbcc
cmp eax, 3
jne 0x1000fbc9
push 0
call fcn.10011bb3
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10013b78
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x1002d9b4]
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 + 0x1002d788]
je 0x10013baf
inc eax
cmp eax, 0x13
jb 0x10013ba0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1002d788]
jne 0x10013cd2
mov eax, dword [0x1002f878]
cmp eax, 1
je 0x10013cad
cmp eax, edx
jne 0x10013bdf
cmp dword [0x1002f87c], 1
je 0x10013cad
cmp ecx, 0xfc
je 0x10013cd2
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 0x10013c15
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.1000fdc0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.1000ff80
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10013c49
mov eax, edi
push eax
call fcn.1000ff80
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10026c58
push edi
call fcn.10017180
add esp, 0x10
push edi
call fcn.1000ff80
push dword [esi + 0x1002d78c]
mov ebx, eax
call fcn.1000ff80
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.10013990
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.1000fdc0
push edi
push ebx
call fcn.1000fdd0
push 0x10026c38
push ebx
call fcn.1000fdd0
push dword [esi + 0x1002d78c]
push ebx
call fcn.1000fdd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10018c8a
add esp, 0x2c
jmp 0x10013cd2
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x1002d78c]
push dword [esi]
call fcn.1000ff80
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.1001549f
add ebp, 0x90
leave
ret
Function at 0x10018c8a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1002fcdc], ebx
push esi
push edi
jne 0x10018d0a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10018d45
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x1002fcdc], eax
je 0x10018d45
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x1002fce0], eax
call esi
cmp dword [0x1002f820], 2
mov dword [0x1002fce4], eax
jne 0x10018d0a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1002fcec], eax
je 0x10018d0a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1002fce8], eax
mov eax, dword [0x1002fce8]
test eax, eax
je 0x10018d4f
call eax
test eax, eax
je 0x10018d36
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1002fcec]
test eax, eax
je 0x10018d36
test byte [ebp - 8], 1
jne 0x10018d4f
cmp dword [0x1002f82c], 4
jb 0x10018d49
or byte [ebp + 0x12], 0x20
jmp 0x10018d6e
xor eax, eax
jmp 0x10018d7e
or byte [ebp + 0x12], 4
jmp 0x10018d6e
mov eax, dword [0x1002fce0]
test eax, eax
je 0x10018d6e
call eax
mov ebx, eax
test ebx, ebx
je 0x10018d6e
mov eax, dword [0x1002fce4]
test eax, eax
je 0x10018d6e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1002fcdc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10019064
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.10013990
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100190ff
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1002f820]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x100190ff
cmp eax, 1
je 0x10019120
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100190ff
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x100190cc
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x100190fb
xor eax, eax
inc eax
jmp 0x1001913f
cmp edi, eax
jae 0x10019103
xor eax, eax
jmp 0x1001913f
cmp eax, esi
jae 0x1001910a
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1002f820]
jmp 0x10019123
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001a6d2
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10027f78
call fcn.10010328
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1002fd14], edi
jne 0x1001a716
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001a701
mov dword [0x1002fd14], ebx
jmp 0x1001a716
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1001a716
mov dword [0x1002fd14], 2
mov eax, dword [0x1002fd14]
cmp eax, ebx
jne 0x1001a736
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1001a7f9
cmp eax, 2
je 0x1001a73f
cmp eax, edi
jne 0x1001a767
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x1001a752
mov eax, dword [0x1002fc74]
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 0x1001a76e
xor eax, eax
jmp 0x1001a7f9
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.10013990
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x1001a7a1
cmp esi, edi
jne 0x1001a7b7
push dword [ebp - 0x20]
call fcn.1000ff5f
pop ecx
mov esi, eax
cmp esi, edi
je 0x1001a767
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 0x1001a7ea
cmp dword [ebp + 0x14], edi
jne 0x1001a7d4
push edi
push edi
jmp 0x1001a7da
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 0x1001a7f6
push esi
call fcn.1000f100
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10010363
ret
Function at 0x1001a802
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10027f88
call fcn.10010328
xor esi, esi
cmp dword [0x1002fd18], esi
jne 0x1001a846
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001a831
mov dword [0x1002fd18], edi
jmp 0x1001a846
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1001a846
mov dword [0x1002fd18], 2
mov eax, dword [0x1002fd18]
cmp eax, 2
je 0x1001a927
cmp eax, esi
je 0x1001a927
cmp eax, 1
jne 0x1001a88b
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x1001a874
mov eax, dword [0x1002fc74]
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 0x1001a892
xor eax, eax
jmp 0x1001a939
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.10013990
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1001a8c8
cmp edi, esi
jne 0x1001a8e3
lea eax, [ebx + ebx]
push eax
call fcn.1000ff5f
pop ecx
mov edi, eax
cmp edi, esi
je 0x1001a88b
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 0x1001a916
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x1001a900
push esi
push esi
jmp 0x1001a906
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 0x1001a922
push edi
call fcn.1000f100
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1001a939
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.10010363
ret
Function at 0x1001b16d
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 0x1001b186
or eax, 0xffffffff
jmp 0x1001b1e7
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x1001b1e3
push 0x3d
push esi
call fcn.1001b36e
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1001b1e3
cmp esi, eax
je 0x1001b1e3
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x1002f840]
sete cl
cmp eax, dword [0x1002f844]
mov dword [ebp - 4], ecx
jne 0x1001b1c9
mov edi, eax
call fcn.1001b10c
mov dword [0x1002f840], eax
cmp eax, ebx
jne 0x1001b222
cmp dword [ebp + 0xc], ebx
je 0x1001b1eb
cmp dword [0x1002f848], ebx
je 0x1001b1eb
call fcn.1001a642
test eax, eax
je 0x1001b222
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x1001b1f4
xor eax, eax
jmp 0x1001b1e6
push 4
call fcn.1000ff5f
cmp eax, ebx
pop ecx
mov dword [0x1002f840], eax
je 0x1001b1e3
mov dword [eax], ebx
cmp dword [0x1002f848], ebx
jne 0x1001b222
push 4
call fcn.1000ff5f
cmp eax, ebx
pop ecx
mov dword [0x1002f848], eax
je 0x1001b1e3
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x1002f840]
sub edi, esi
push esi
call fcn.1001b0bf
mov edi, eax
test edi, edi
pop ecx
jl 0x1001b289
cmp dword [ebx], 0
je 0x1001b289
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.1000f100
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x1001b269
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x1001b2ca
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x1001b260
mov eax, edi
shl eax, 2
push eax
push dword [0x1002f840]
call fcn.1001403e
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x1001b2ca
jmp 0x1001b2c5
cmp dword [ebp - 4], 0
jne 0x1001b331
test edi, edi
jge 0x1001b299
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x1002f840]
call fcn.1001403e
test eax, eax
pop ecx
pop ecx
je 0x1001b1e3
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 [0x1002f840], eax
cmp dword [ebp + 0xc], 0
je 0x1001b31c
push esi
call fcn.1000ff80
inc eax
inc eax
push eax
call fcn.1000ff5f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x1001b31c
push esi
push edi
call fcn.1000fdc0
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 0x1001b315
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.1000f100
pop ecx
cmp dword [ebp - 4], 0
je 0x1001b329
push esi
call fcn.1000f100
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x1001b1e6
push esi
call fcn.1000f100
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x1001b1f0