joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b8657
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add dl, dl
jne 0x5b8674
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5b8665
add dl, dl
jne 0x5b867f
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5b86cb
xor eax, eax
add dl, dl
jne 0x5b868c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x5b8768
add dl, dl
jne 0x5b869b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5b86a6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5b86b1
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5b86bc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x5b86c6
push edi
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
jmp 0x5b866b
mov eax, 1
add dl, dl
jne 0x5b86d9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x5b86e4
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5b86d0
sub eax, 2
jne 0x5b8713
mov ecx, 1
add dl, dl
jne 0x5b86f9
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5b8704
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5b86f0
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5b866b
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x5b872a
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x5b8735
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x5b8721
cmp eax, 0x7d00
jae 0x5b8758
cmp eax, 0x500
jb 0x5b8753
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5b866b
cmp eax, 0x7f
ja 0x5b875b
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5b866b
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x5b8784
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5b866b
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret 8
Function at 0x10004150
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x10016f8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x118
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x138]
lea eax, [esp + 0x18]
push eax
mov eax, dword [ecx]
push 0x2001f
push ebx
push edx
push eax
mov dword [esp + 0x144], ebx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x100041c3
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, ebx
je 0x100041b7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
jmp 0x100041c7
mov eax, dword [esp + 0x10]
cmp esi, ebx
je 0x100041e3
cmp eax, ebx
mov dword [esp + 0x130], 0xffffffff
je 0x1000428a
jmp 0x10004283
lea ecx, [esp + 0x20]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ecx
push ebx
push ebx
lea edx, [esp + 0x20]
push ebx
lea ecx, [esp + 0x38]
push edx
push ecx
mov ebp, 0x100
push ebx
push eax
mov dword [esp + 0x34], ebp
call edi
test eax, eax
jne 0x10004246
lea edx, [esp + 0x28]
lea ecx, [esp + 0x10]
push edx
call fcn.10004150
mov esi, eax
cmp esi, ebx
jne 0x100042a7
lea eax, [esp + 0x20]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea edx, [esp + 0x38]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0x34], ebp
call edi
test eax, eax
je 0x1000420c
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10004259
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], ebx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x138]
push ecx
mov eax, dword [edx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebx
mov dword [esp + 0x130], 0xffffffff
je 0x1000428a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x124
ret 4
mov eax, dword [esp + 0x10]
mov dword [esp + 0x130], 0xffffffff
cmp eax, ebx
je 0x1000428a
jmp 0x10004283
Function at 0x10004730
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x1008
call fcn.100061f0
push esi
push 0
push 0
mov esi, dword [esp + 0x1018]
push 0
lea eax, [esp + 0x10]
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000477a
xor eax, eax
pop esi
add esp, 0x1008
ret 4
mov eax, dword [esp + 4]
cmp eax, 1
jne 0x100047cd
push 0
push 0
push 0
lea ecx, [esp + 0x14]
push 0
lea edx, [esp + 0x1c]
push ecx
push edx
push 0
push esi
mov dword [esp + 0x28], 0x1000
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x100047c1
mov al, byte [esp + 0xc]
test al, al
je 0x100047c1
mov eax, 1
pop esi
add esp, 0x1008
ret 4
xor eax, eax
pop esi
add esp, 0x1008
ret 4
xor ecx, ecx
pop esi
cmp ecx, eax
sbb eax, eax
neg eax
add esp, 0x1008
ret 4

Function at 0x10006470
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x10006534
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x10025044], eax
call fcn.10008bb0
test eax, eax
jne 0x10006494
ret 0xc
mov ecx, dword [0x10025044]
xor edx, edx
mov eax, ecx
mov dl, ch
and eax, 0xff
mov dword [0x10025050], edx
mov dword [0x1002504c], eax
shl eax, 8
add eax, edx
shr ecx, 0x10
mov dword [0x10025048], eax
mov dword [0x10025044], ecx
call fcn.100089d0
test eax, eax
jne 0x100064d6
call fcn.10008bf0
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10026778], eax
call fcn.10009c80
mov ecx, dword [0x10026778]
mov dword [0x10025030], eax
test ecx, ecx
je 0x10006525
test eax, eax
je 0x10006525
call fcn.10009670
call fcn.100074e0
call fcn.100099d0
call fcn.100098e0
call fcn.10006740
mov eax, dword [0x1002502c]
inc eax
mov dword [0x1002502c], eax
mov eax, 1
ret 0xc
call fcn.10008a30
call fcn.10008bf0
xor eax, eax
ret 0xc
test eax, eax
jne 0x10006574
mov eax, dword [0x1002502c]
test eax, eax
jle 0x1000656f
mov ecx, eax
mov eax, dword [0x1002507c]
dec ecx
test eax, eax
mov dword [0x1002502c], ecx
jne 0x10006558
call fcn.10006790
call fcn.10009880
call fcn.10008a30
call fcn.10008bf0
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x10006583
push 0
call fcn.10008b00
add esp, 4
mov eax, 1
ret 0xc
Function at 0x100067a0
Capabilities:
Terminate process

Disassembly:
push ebx
push ebp
push esi
call fcn.10006860
mov eax, dword [0x10025080]
mov ebp, dword [esp + 0x10]
cmp eax, 1
jne 0x100067c4
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x1002507c], 1
mov byte [0x10025078], bl
jne 0x1000681e
mov ecx, dword [0x10026770]
test ecx, ecx
je 0x1000680c
mov esi, dword [0x1002676c]
sub esi, 4
cmp esi, ecx
jb 0x1000680c
mov eax, dword [esi]
test eax, eax
je 0x10006805
call eax
mov ecx, dword [0x10026770]
sub esi, 4
cmp esi, ecx
jae 0x100067f7
push 0x1001f078
push 0x1001f070
call fcn.10006880
add esp, 8
push 0x1001f084
push 0x1001f07c
call fcn.10006880
add esp, 8
test ebx, ebx
je 0x1000683d
call fcn.10006870
pop esi
pop ebp
pop ebx
ret
push ebp
mov dword [0x10025080], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x100089d0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.10008c30
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x1001ff10], eax
je 0x10008a28
push 0x74
push 1
call fcn.1000a000
mov esi, eax
add esp, 8
test esi, esi
je 0x10008a28
mov eax, dword [0x1001ff10]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10008a28
push esi
call fcn.10008a60
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10008a80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x1001ff10]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10008aee
push 0x74
push 1
call fcn.1000a000
mov esi, eax
add esp, 8
test esi, esi
je 0x10008ae4
mov ecx, dword [0x1001ff10]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10008ae4
push esi
call fcn.10008a60
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.10006640
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x10008b00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x1001ff10]
cmp eax, 0xffffffff
je 0x10008baf
push esi
mov esi, dword [esp + 8]
test esi, esi
jne 0x10008b24
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10008ba0
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10008b34
push eax
call fcn.100060b0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10008b44
push eax
call fcn.100060b0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10008b54
push eax
call fcn.100060b0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10008b64
push eax
call fcn.100060b0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10008b74
push eax
call fcn.100060b0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10008b84
push eax
call fcn.100060b0
add esp, 4
mov eax, dword [esi + 0x50]
cmp eax, 0x100220b8
je 0x10008b97
push eax
call fcn.100060b0
add esp, 4
push esi
call fcn.100060b0
add esp, 4
mov eax, dword [0x1001ff10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret
Function at 0x10009c80
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x10025468]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x10009cc2
call edi
mov esi, eax
test esi, esi
je 0x10009cac
mov eax, 1
jmp 0x10009cbd
call ebp
mov ebx, eax
test ebx, ebx
je 0x10009dcf
mov eax, 2
mov dword [0x10025468], eax
cmp eax, 1
jne 0x10009d62
test esi, esi
jne 0x10009cdb
call edi
mov esi, eax
test esi, esi
je 0x10009dcf
cmp word [esi], 0
mov eax, esi
je 0x10009cf5
add eax, 2
cmp word [eax], 0
jne 0x10009ce3
add eax, 2
cmp word [eax], 0
jne 0x10009ce3
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x10009d54
push edi
call fcn.10006120
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x10009d54
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10009d46
push ebx
call fcn.100060b0
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x10009dcf
test ebx, ebx
jne 0x10009d73
call ebp
mov ebx, eax
test ebx, ebx
je 0x10009dcf
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x10009d8b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10009d7b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10009d7b
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.10006120
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10009dad
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10009e20
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x10022028
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x10009e44
add eax, 8
inc ebp
cmp eax, 0x100220b8
jb 0x10009e35
cmp ecx, dword [ebp*8 + 0x10022028]
jne 0x10009feb
mov eax, dword [0x10025038]
cmp eax, 1
je 0x10009fad
test eax, eax
jne 0x10009e70
cmp dword [0x1002503c], 1
je 0x10009fad
cmp ecx, 0xfc
je 0x10009feb
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10009eab
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10009ef4
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x1001a8d0
add ebx, ecx
push ebx
call fcn.1000ac40
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x1001a8b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x1002202c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.1000abb0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x10026660]
test eax, eax
je 0x10009fbe
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x10009fc8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x1002202c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x1000c6f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x41c
push ebx
mov ebx, dword [esp + 0x42c]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x1000c71c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x430]
mov eax, ecx
sar eax, 5
lea edi, [eax*4 + 0x10026660]
mov eax, ecx
and eax, 0x1f
mov dword [esp + 0x24], edi
mov edx, dword [edi]
lea esi, [eax + eax*8]
shl esi, 2
mov dword [esp + 0x14], esi
test byte [esi + edx + 4], 0x20
je 0x1000c757
push 2
push ebp
push ecx
call fcn.1000cf30
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000c8b9
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x1000c801
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x1000c7b2
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x1000c79f
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x1000c782
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000c8aa
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x1000c7fd
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x1000c77e
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x1000c899
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1000c855
cmp eax, 5
jne 0x1000c83e
call fcn.10007920
mov dword [eax], 9
call fcn.10007930
mov dword [eax], 5
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.100078a0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x1000c875
cmp byte [ebp], 0x1a
jne 0x1000c875
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
call fcn.10007920
mov dword [eax], 0x1c
call fcn.10007930
mov dword [eax], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
sub eax, ecx
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1000c7fd
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1000c8ea
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x1000c801
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x1000c801
Function at 0x1000c900
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x10025614]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edi
test eax, eax
jne 0x1000c948
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x1000c928
mov eax, 1
jmp 0x1000c943
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1000ca19
mov eax, 2
mov dword [0x10025614], eax
cmp eax, 1
jne 0x1000c968
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x1000ca2b
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x1000c983
mov ecx, dword [0x10025498]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov esi, eax
test esi, esi
jne 0x1000c9a2
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.10006120
mov edi, eax
add esp, 4
test edi, edi
jne 0x1000c9b6
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x1000ca10
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1000c9f4
mov edx, dword [esp + 0x24]
push eax
push eax
push 0xffffffffffffffff
push edi
push 1
push edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
je 0x1000ca10
push edi
call fcn.100060b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
push eax
push 0xffffffffffffffff
push edi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jne 0x1000ca20
push edi
call fcn.100060b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.100060b0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1000ca30
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x10025618]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x1000ca78
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000ca5c
mov eax, 1
jmp 0x1000ca73
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x1000cb58
mov eax, 2
mov dword [0x10025618], eax
cmp eax, 2
jne 0x1000ca98
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x1000cb6a
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x1000cab3
mov ecx, dword [0x10025498]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x1000cad2
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.10006120
mov esi, eax
add esp, 4
test esi, esi
jne 0x1000cae9
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1000cb4f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x1000cb30
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x1000cb4f
push esi
call fcn.100060b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x1000cb5f
push esi
call fcn.100060b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.100060b0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret