joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100060a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b606
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8028
push 0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x10006119
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x1000617c
mov dword [ebp - 4], 1
lea edi, [ebp - 0x218]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10006144
sub edi, ecx
sar edi, 1
je 0x1000617c
push edi
mov ecx, esi
call fcn.10007b10
push edi
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.10023dc5
lea eax, [edi + 1]
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10022a24
mov esp, ebp
pop ebp
ret 4

Function at 0x100061a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b606
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x8026
push 0
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x10006219
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
jmp 0x1000627c
mov dword [ebp - 4], 1
lea edi, [ebp - 0x218]
mov dword [esi], vtable.CStringBufferW.0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10006244
sub edi, ecx
sar edi, 1
je 0x1000627c
push edi
mov ecx, esi
call fcn.10007b10
push edi
lea eax, [ebp - 0x218]
push eax
push dword [esi + 8]
push dword [esi + 0xc]
call fcn.10023dc5
lea eax, [edi + 1]
add esp, 0x10
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10022a24
mov esp, ebp
pop ebp
ret 4
Function at 0x10008ea0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov eax, dword [ebx + 0xc]
push eax
push eax
push dword [ebp + 8]
mov edi, ecx
push edi
push str.Start_:_hRoot0x_X__wCharKey_s__wStrValueName_s__wStrValue_s
push str.CSetupRegW::SetRegEntry
push 8
call fcn.1000d610
mov edx, dword [ebp + 8]
add esp, 0x1c
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
sub esp, 0x14
mov ecx, edi
call fcn.10009900
test eax, eax
je 0x10008f0c
xor ecx, ecx
cmp eax, 5
setne cl
push eax
push str.End_:_return_FALSE__RegCreateKeyExW_returned_0x_X_
push str.CSetupRegW::SetRegEntry
add ecx, 2
push ecx
call fcn.1000d610
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0xc]
test ecx, ecx
je 0x10008f25
mov eax, dword [ebx + 4]
test eax, eax
je 0x10008f25
lea eax, [eax*2 + 1]
push eax
push ecx
jmp 0x10008f2c
push 1
push 0x100458b4
push 1
push 0
push str.AutoUpdateHelperPath
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, eax
test ecx, ecx
je 0x10008f6d
xor eax, eax
cmp ecx, 5
setne al
push ecx
push str.End_:_return_FALSE__RegSetValueExW_returned_0x_X_
push str.CSetupRegW::SetRegEntry
add eax, 2
push eax
call fcn.1000d610
add esp, 0x10
xor eax, eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::SetRegEntry
push 8
call fcn.1000d610
add esp, 0xc
mov eax, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10009130
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1004f430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
push dword [edi + 0xc]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
push esi
push ebx
push str.Start_:_root0x_X__key_s__valueName_s__wStrValue_s
push str.CSetupRegW::GetStringFromRegistryValue
push 8
call fcn.1000d610
add esp, 0x1c
cmp dword [ebp + 0x18], 0
mov ecx, 0x101
mov eax, 0x201
cmovne eax, ecx
cmp dword [ebp + 0x1c], 0
lea ecx, [ebp + 0x14]
push ecx
push eax
push 0
je 0x100091a5
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x100091ae
mov edx, esi
mov ecx, ebx
call fcn.10009850
mov ecx, eax
test ecx, ecx
jne 0x100092ea
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ecx
lea eax, [ebp + 8]
push eax
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 8], 3
mov esi, eax
jne 0x10009205
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp esi, 5
setne cl
push str.End_:_return_FALSE__RegQueryValueExW_dwordTypeREG_BINARY_
push str.CSetupRegW::GetStringFromRegistryValue
add ecx, 2
push ecx
call fcn.1000d610
add esp, 0xc
jmp 0x10009309
cmp esi, 0xea
je 0x1000922a
test esi, esi
je 0x1000922a
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
xor eax, eax
push str.End_:_return_FALSE__RegQueryValueExW_returned_0x_X_
cmp esi, 5
jmp 0x100092f5
mov ebx, dword [ebp + 0xc]
push 2
lea eax, [ebx*2 + 2]
push eax
call fcn.1002487c
mov esi, eax
add esp, 8
test esi, esi
je 0x100092b4
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0x18], ebx
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100092a7
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0xc]
ja 0x100092a7
xor ecx, ecx
push ecx
mov word [esi + eax*2], cx
push esi
lea ecx, [ebp - 0x1c]
call fcn.10007560
lea eax, [ebp - 0x1c]
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.100078d0
push esi
call fcn.100247b2
add esp, 4
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0xffffffff
call fcn.100075d0
jmp 0x100092b4
push esi
call fcn.100247b2
mov ecx, edi
call fcn.10007ae0
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push str.End_:_return_TRUE
push str.CSetupRegW::GetStringFromRegistryValue
push 8
call fcn.1000d610
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push ecx
xor eax, eax
push str.End_:_return_FALSE__RegOpenKeyExW_returned_0x_X_
cmp ecx, 5
setne al
push str.CSetupRegW::GetStringFromRegistryValue
add eax, 2
push eax
call fcn.1000d610
add esp, 0x10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x1000a320
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003bc28
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x1004f430]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [ebp + 8], 0
je 0x1000a40d
cmp dword [ebp + 0xc], 0
je 0x1000a40d
test esi, esi
je 0x1000a40d
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.10007560
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.100084e0
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000a39a
cmp dword [ebp - 0x18], 0
je 0x1000a39a
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000a3a3
lea eax, [ebp - 0x1c]
push eax
call fcn.1000a430
push 0x30
push 0x100467e8
push esi
call fcn.10024acd
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1000a3e6
push edi
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.10024cee
push edi
mov esi, eax
call fcn.10024e1f
add esp, 0x14
push edi
call fcn.10024fc4
add esp, 4
test esi, esi
jle 0x1000a3e6
mov esi, 1
jmp 0x1000a3e8
xor esi, esi
lea ecx, [ebp - 0x1c]
call fcn.100075d0
lea ecx, [ebp - 0x2c]
call fcn.100075d0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x1000a430
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x1005235c], 0
mov eax, dword [ebp + 8]
push edi
mov edi, dword [eax + 0xc]
jne 0x1000a470
test edi, edi
je 0x1000a470
push esi
push edi
mov esi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000a468
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
mov eax, esi
pop esi
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x1000b250
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003be98
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x34], eax
jb 0x1000b2a0
mov esi, dword [esi]
mov eax, dword [0x10052568]
test al, 1
jne 0x1000b2c9
or eax, 1
push 0x10052570
mov dword [0x10052568], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x1003e570
call fcn.100231a9
add esp, 4
cmp dword [0x1005256c], 0
jne 0x1000b318
push 0x10052570
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x1005256c], 0
jne 0x1000b30d
call fcn.10010f80
test eax, eax
je 0x1000b303
push 0x1005256c
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x1000b30d
mov dword [0x1005256c], 0x80000001
push 0x10052570
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x34]
push eax
push 1
push 0
push esi
push dword [0x1005256c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b3ba
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push str.IsTbccint
push dword [ebp - 0x34]
call edi
cmp eax, 0xea
je 0x1000b360
test eax, eax
jne 0x1000b3ba
mov eax, dword [ebp - 0x30]
add eax, 2
push eax
mov dword [ebp - 0x30], eax
call fcn.1001edc0
push dword [ebp - 0x30]
mov esi, eax
push 0
push esi
call fcn.10027fa0
add esp, 0x10
lea eax, [ebp - 0x30]
push eax
push esi
lea eax, [ebp - 0x38]
push eax
push 0
push str.IsTbccint
push dword [ebp - 0x34]
call edi
test eax, eax
jne 0x1000b3b1
cmp dword [ebp - 0x38], 1
jne 0x1000b3b1
test esi, esi
je 0x1000b3b1
cmp dword [ebp - 0x30], 2
jbe 0x1000b3b1
push esi
lea ecx, [ebp - 0x2c]
call fcn.1000bcc0
push esi
call fcn.1002354a
add esp, 4
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x1000b3c8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
cmp edx, 8
lea eax, [ebp - 0x2c]
cmovae eax, ecx
lea edi, [ebp - 0x2c]
lea ebx, [ebp - 0x2c]
lea esi, [eax + esi*2]
cmovae edi, ecx
cmovae ebx, ecx
cmp edi, esi
je 0x1000b407
sub ebx, edi
nop
movzx eax, word [edi]
push eax
call fcn.10023af3
mov word [ebx + edi], ax
add edi, 2
add esp, 4
cmp edi, esi
jne 0x1000b3f0
push 4
push 0x100468bc
push dword [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.1000d460
test eax, eax
sete bl
cmp dword [ebp - 0x18], 8
jb 0x1000b430
push dword [ebp - 0x2c]
call fcn.10022a1f
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10022a24
mov esp, ebp
pop ebp
ret 4
Function at 0x10010260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1003c368
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x1004f430]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
push esi
mov eax, dword [0x1004f430]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], vtable.CBaseOpenProcessMessage.0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x60], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp + 0xc], 0
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
setne byte [esp + 0x18]
mov dword [esp + 0x1c], eax
xor eax, eax
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x64], 1
call fcn.10013380
lea ecx, [esp + 0x20]
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x68], 2
call fcn.100128e0
test eax, eax
sete bl
mov byte [esp + 0x60], 1
cmp dword [esp + 0x4c], 8
jb 0x1001033f
push dword [esp + 0x38]
call fcn.10022a1f
add esp, 4
test bl, bl
jne 0x10010381
push 0xc
call fcn.10023233
mov esi, eax
add esp, 4
test esi, esi
je 0x10010381
mov dword [esi], vtable.CBaseOpenProcessResponse.0
mov eax, dword [esi]
lea ecx, [esp + 0x20]
mov eax, dword [eax + 8]
push ecx
mov ecx, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call eax
test al, al
jne 0x10010383
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
cmp dword [esp + 0x34], 8
jb 0x10010396
push dword [esp + 0x20]
call fcn.10022a1f
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.10022a24
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10011370
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x90
lea eax, [ebp - 0x94]
push 0
push eax
mov edi, ecx
mov esi, 3
call fcn.10027fa0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
jb 0x100114d6
push ebx
push edi
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x100114d5
lea eax, [ebp - 0x9c]
push eax
push 0x18
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100114ce
mov ecx, dword [ebp - 0x9c]
call fcn.100114f0
test eax, eax
je 0x10011410
mov esi, 2
jmp 0x100114c2
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
push 0x19
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x100114c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100114c2
push dword [ebp - 0xa0]
push 0
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x100114c2
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0xa0]
push edi
push 0x19
push dword [ebp - 0x9c]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x100114bb
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
dec al
movzx eax, al
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
mov eax, dword [eax]
cmp eax, 0x2000
jb 0x100114bb
cmp eax, 0x3000
jae 0x100114a3
mov esi, 4
jmp 0x100114bb
cmp eax, 0x4000
jae 0x100114b1
mov esi, 5
jmp 0x100114bb
cmp eax, 0x5000
sbb esi, esi
add esi, 7
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.10022a24
mov esp, ebp
pop ebp
ret
Function at 0x100128e0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003c7fb
mov eax, dword fs:[0]
push eax
mov eax, 0x20030
call fcn.10031cc0
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push 0xffffffffffffffff
push eax
mov word [ebp - 0x2002c], ax
lea eax, [ecx + 4]
push eax
lea ecx, [ebp - 0x2002c]
mov dword [ebp - 0x20030], 0
mov dword [ebp - 0x20018], 7
mov dword [ebp - 0x2001c], 0
call fcn.10003380
mov dword [ebp - 0x20014], 0
sub esp, 8
lea ecx, [ebp - 0x20030]
mov dword [ebp - 4], 0
call fcn.1001e370
test eax, eax
je 0x10012a2c
cmp dword [ebp - 0x20030], 0
je 0x10012a2c
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x20038], 0
lea eax, [eax*2 + 2]
jb 0x100129a0
mov esi, dword [esi]
push 0
lea ecx, [ebp - 0x20038]
push ecx
push eax
push esi
push dword [ebp - 0x20014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10012a2c
xor eax, eax
push 0x1fffc
push eax
mov word [ebp - 0x20010], ax
lea eax, [ebp - 0x2000e]
push eax
mov dword [ebp - 0x20034], 0
call fcn.10027fa0
add esp, 0xc
cmp dword [ebp - 0x20030], 0
je 0x10012a2c
push 0
lea eax, [ebp - 0x20034]
push eax
push 0xffff
lea eax, [ebp - 0x20010]
push eax
push dword [ebp - 0x20014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012a2c
lea eax, [ebp - 0x20010]
push eax
mov ecx, edi
call fcn.1000bcc0
cmp dword [edi + 0x10], 0
je 0x10012a2c
mov esi, 1
jmp 0x10012a2e
xor esi, esi
mov eax, dword [ebp - 0x20014]
test eax, eax
je 0x10012a3f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20018], 8
jb 0x10012a56
push dword [ebp - 0x2002c]
call fcn.10022a1f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10022a24
mov esp, ebp
pop ebp
ret 8
Function at 0x1001e8c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19010
call fcn.10031cc0
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x19010], edx
mov dword [ebp - 0x19008], 0
jb 0x1001e8f4
mov ecx, dword [ecx]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1900c], ebx
cmp ebx, 0xffffffff
jne 0x1001e92c
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10022a24
mov esp, ebp
pop ebp
ret
push edi
xor edi, edi
mov dword [esi], edi
push 0x18fff
lea eax, [ebp - 0x19003]
push 0
push eax
mov byte [ebp - 0x19004], 0
call fcn.10027fa0
add esp, 0xc
lea eax, [ebp - 0x19008]
push 0
push eax
push 0x19000
lea eax, [ebp - 0x19004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001e999
cmp dword [ebp - 0x19008], 0
jne 0x1001e9a7
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x19010]
mov ecx, dword [ebp - 4]
mov dword [eax], edi
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.10022a24
mov esp, ebp
pop ebp
ret
cmp dword [esi], 0
jbe 0x1001e9a7
push edi
call fcn.1002354a
add esp, 4
mov eax, dword [esi]
add eax, dword [ebp - 0x19008]
push eax
call fcn.1001edc0
mov ebx, eax
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x1001e9d1
push eax
push edi
push ebx
call fcn.100280b0
push edi
call fcn.1002354a
add esp, 0x10
push dword [ebp - 0x19008]
lea eax, [ebp - 0x19004]
push eax
mov eax, dword [esi]
add eax, ebx
push eax
call fcn.100280b0
mov eax, dword [ebp - 0x19008]
add esp, 0xc
add dword [esi], eax
mov edi, ebx
mov ebx, dword [ebp - 0x1900c]
jmp 0x1001e931
Function at 0x100348e9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004f430]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1002a904
mov dword [ebp - 0x14], eax
cmp dword [0x10052298], edi
jne 0x100349da
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10034967
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10034aba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x10034aba
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10034aba
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10052298], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x1005229c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x100522a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100522a8], eax
test eax, eax
je 0x100349d7
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100522a4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100349ff
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100349f2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10034a14
push 4
pop eax
jmp 0x10034abc
cmp dword [ebp - 0x14], edi
je 0x10034a14
push dword [0x10052298]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x100349f9
mov eax, dword [0x100522a4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10034a72
cmp dword [0x100522a8], esi
je 0x10034a72
push eax
call ebx
push dword [0x100522a8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10034a72
test eax, eax
je 0x10034a72
call ecx
test eax, eax
je 0x10034a67
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10034a67
test byte [ebp - 8], 1
jne 0x10034a72
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10034aa2
mov eax, dword [0x1005229c]
cmp eax, esi
je 0x10034a9f
push eax
call ebx
test eax, eax
je 0x10034a9f
call eax
mov edi, eax
test edi, edi
je 0x10034a9f
mov eax, dword [0x100522a0]
cmp eax, esi
je 0x10034a9f
push eax
call ebx
test eax, eax
je 0x10034a9f
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10052298]
call ebx
test eax, eax
je 0x10034aba
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x10034abc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022a24
leave
ret
Function at 0x10036eb6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1002d4cf
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x10036eee
xor eax, eax
jmp 0x10036f1a
cmp esi, dword [ebp - 4]
je 0x10036f17
cmp dword [ebp + 0xc], 0
je 0x10036f17
push dword [edi + 0x9c]
call fcn.10036ac4
push dword [edi + 0x9c]
mov esi, eax
call fcn.1002ad5a
pop ecx
pop ecx
cmp esi, eax
je 0x10036eea
xor eax, eax
inc eax
pop edi
pop esi
leave
ret