joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10140d00
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019271f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101f9014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
lea esi, [edi + 0x94]
cmp esi, ebx
je 0x10140d63
push esi
mov ecx, edi
call fcn.10142050
add esi, 0x94
add edi, 0x94
cmp esi, ebx
jne 0x10140d43
mov edi, dword [ebp - 0x10]
mov ebx, dword [edi + 4]
jmp 0x10140d65
mov edi, eax
lea esi, [ebx - 0x94]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10007d90
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10007d90
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10007d90
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10007d90
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10007d90
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10007d90
mov eax, dword [ebp - 0x14]
add dword [edi + 4], 0xffffff6c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10141750
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019291f
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x101f9014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 4
lea ecx, [esi + 0x7c]
call fcn.10007d90
mov byte [ebp - 4], 3
lea ecx, [esi + 0x64]
call fcn.10007d90
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.10007d90
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.10007d90
mov byte [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.10007d90
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.10007d90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10145420
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x101f9014]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x101454a2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x101454a2
test ecx, ecx
je 0x1014549e
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x10145460
xor eax, eax
jmp 0x101454a7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x101454b1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101669b4
add esp, 0xc
ret 0xc
Function at 0x101474a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016a458
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101f9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
cmp esi, 0xffffffff
jne 0x101474d8
xor al, al
jmp 0x10147557
and esi, 0xffffb1af
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x101474e8
mov eax, dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push eax
call ebx
test eax, eax
je 0x101474fa
mov al, 1
jmp 0x10147557
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.10147ad0
test al, al
je 0x10147544
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push eax
call ebx
test eax, eax
je 0x10147544
mov bl, 1
jmp 0x10147546
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007d90
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 - 0x10]
xor ecx, ebp
call fcn.101669b4
mov esp, ebp
pop ebp
ret

Function at 0x10147580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1016a458
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x101f9014]
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, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x101475b6
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1014761a
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10147ad0
test al, al
je 0x1014760b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007d90
mov eax, edi
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.101669b4
mov esp, ebp
pop ebp
ret
Function at 0x10147640
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10193540
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x101f9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10147677
mov eax, dword [esi]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call edi
test eax, eax
je 0x1014768b
mov al, 1
jmp 0x10147812
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x10147695
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x101476c0
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10007df0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.10147580
mov ebx, eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007d90
cmp ebx, 0xffffffff
jne 0x10147708
xor al, al
jmp 0x10147812
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x10147712
mov edx, dword [esi]
mov ecx, edx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10147740
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10007df0
mov dword [ebp - 4], 1
xor edx, edx
lea ecx, [ebp - 0x28]
call fcn.101474a0
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007d90
test bl, bl
je 0x10147701
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10147789
mov eax, dword [esi]
push eax
call edi
test eax, eax
jne 0x10147684
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 2
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.10147ad0
test al, al
je 0x101477d3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call edi
test eax, eax
je 0x101477d3
mov bl, 1
jmp 0x10147801
cmp dword [esi + 0x14], 8
jb 0x101477db
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x44]
call fcn.10007450
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x44]
mov edx, dword [ebp - 0x2c]
call fcn.101474a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.10007d90
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007d90
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 - 0x10]
xor ecx, ebp
call fcn.101669b4
mov esp, ebp
pop ebp
ret
Function at 0x10147830
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x101f9014]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
mov ebx, dword [esp + 0x218]
lea eax, [esp + 4]
push esi
push edi
push 0x20c
push 0
push eax
mov edi, edx
mov esi, ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [edi + 0x14], 8
jb 0x1014786e
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x10147876
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x101478d6
xor eax, eax
lea edx, [esp + 0xc]
mov word [esp + 0x216], ax
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x101478a0
sub edx, esi
lea eax, [esp + 0xc]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.10007df0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.101669b4
add esp, 0x210
ret
mov ecx, dword [esp + 0x218]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.101669b4
add esp, 0x210
ret
Function at 0x1014b150
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x101f9014]
xor eax, esp
mov dword [esp + 0x114], eax
push esi
mov esi, ecx
mov dword [esp + 4], 0x114
push 0x110
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov byte [esi], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1014b1e7
cmp dword [esp + 8], 6
jb 0x1014b1e7
mov byte [esi], 1
mov ecx, dword [esp + 0x118]
pop esi
xor ecx, esp
call fcn.101669b4
add esp, 0x118
ret

Function at 0x1014b200
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10193ad0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x101f9014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0xc
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x28]
push str.wintrust.dll
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10007df0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.1013e4f0
mov ecx, eax
call fcn.1013e5b0
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.10007d90
push 0xb
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x40]
push str.crypt32.dll
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
call fcn.10007df0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x40]
push eax
call fcn.1013e4f0
mov ecx, eax
call fcn.1013e5b0
mov esi, eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.10007d90
test ebx, ebx
je 0x1014b35d
test esi, esi
je 0x1014b35d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CryptCATAdminCalcHashFromFileHandle
push ebx
call esi
push str.CryptCATAdminAcquireContext
push ebx
mov dword [edi + 4], eax
call esi
push str.CryptCATAdminEnumCatalogFromHash
push ebx
mov dword [edi + 8], eax
call esi
push str.CryptCATCatalogInfoFromContext
push ebx
mov dword [edi + 0xc], eax
call esi
push str.CryptCATAdminReleaseCatalogContext
push ebx
mov dword [edi + 0x10], eax
call esi
push str.CryptCATAdminReleaseContext
push ebx
mov dword [edi + 0x14], eax
call esi
push str.WTHelperProvDataFromStateData
push ebx
mov dword [edi + 0x18], eax
call esi
push str.WTHelperGetProvSignerFromChain
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.WinVerifyTrust
push ebx
mov dword [edi + 0x20], eax
call esi
push str.CertNameToStrW
push dword [ebp - 0x10]
mov dword [edi + 0x24], eax
call esi
mov dword [edi + 0x28], 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
Function at 0x1014edc0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019280f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x101f9014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, dword [ebp + 8]
mov ecx, edi
push esi
mov dword [ebp - 0x10], edi
call fcn.100074c0
mov dword [ebp - 4], 0
lea eax, [esi + 0x18]
push eax
lea ecx, [edi + 0x18]
call fcn.100074c0
mov byte [ebp - 4], 1
lea eax, [esi + 0x30]
push eax
lea ecx, [edi + 0x30]
call fcn.100074c0
mov byte [ebp - 4], 2
lea eax, [esi + 0x48]
push eax
lea ecx, [edi + 0x48]
call fcn.100074c0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x64]
mov al, byte [esi + 0x60]
mov byte [edi + 0x60], al
lea eax, [esi + 0x64]
push eax
call fcn.100074c0
mov byte [ebp - 4], 4
lea eax, [esi + 0x7c]
push eax
lea ecx, [edi + 0x7c]
call fcn.100074c0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10150a90
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x101f9014]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x10150af5
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10150ad0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10150af5
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.101669b4
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.101669b4
add esp, 8
ret 4
Function at 0x10150ca0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10194728
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x101f9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
test ecx, ecx
je 0x10150ce9
mov dword [ecx], 0
mov dword [eax], 0
cmp dword [edi], 0xffffffff
je 0x10150e3b
mov eax, dword [ebp + 0xc]
mov ecx, 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x1c], 0
cmp eax, 0x100000
lea eax, [ebp - 0x1c]
push eax
cmova ebx, ecx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
cmp dword [edi + 0x1c], 0
je 0x10150e06
test eax, eax
je 0x10150e06
mov edx, dword [ebp - 0x1c]
cmp edx, ebx
jae 0x10150e09
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi]
mov dword [ebp - 0x24], eax
cmp ecx, 0xffffffff
je 0x10150d8b
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10150d7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x10150d8b
mov eax, dword [ebp - 0x14]
xor ecx, ecx
add ecx, esi
adc eax, 0
jmp 0x10150d99
xorps xmm0, xmm0
movlpd qword [ebp - 0x38], xmm0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x38]
push 0
push dword [ebp - 0x24]
push eax
push ecx
sub esp, 0x18
lea eax, [edi + 4]
mov ecx, esp
mov dword [ebp - 0x24], esp
push eax
call fcn.100074c0
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x1c]
mov eax, dword [ecx]
mov dword [ebp - 4], 0xffffffff
call dword [eax + 0x18]
mov esi, dword [ebp - 0x20]
test eax, eax
jne 0x10150e06
push eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push ebx
add eax, esi
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, eax
xor edx, edx
test ecx, ecx
mov eax, 0x80004005
cmovne eax, edx
mov edx, dword [ebp - 0x1c]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
test ecx, ecx
je 0x10150d44
jmp 0x10150e09
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
add dword [ecx], edx
test eax, eax
jne 0x10150e32
test edx, edx
je 0x10150e2e
mov eax, dword [ebp + 0xc]
add esi, edx
sub eax, edx
mov dword [ebp - 0x20], esi
mov dword [ebp + 0xc], eax
mov ecx, 0x100000
jne 0x10150d00
mov al, 1
jmp 0x10150e3d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10150e3b
mov dword [ecx], eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101669b4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10153430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10194ba0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x101f9014]
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, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x10153517
cmp byte [eax + 0x54], 0
je 0x10153517
add eax, 0x1c
lea ecx, [ebp - 0x38]
push eax
call fcn.100aeb30
push 0
mov edx, edi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.1012c060
add esp, 4
mov byte [ebp - 4], 1
lea edi, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
mov eax, dword [esi]
cmovae edi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 8
jb 0x101534b2
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x101534fc
push 2
push 0
push 0
push esi
mov dword [ebp - 0x30], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x30]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.100075a0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0xffffffff
call fcn.100aeb80
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.101669b4
mov esp, ebp
pop ebp
ret 4
Function at 0x101680d0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10196916
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x101f9014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0xa8]
call fcn.100074a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xa8]
push eax
call fcn.10168250
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x10168147
mov byte [ebp - 0xc1], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10007410
mov al, byte [ebp - 0xc1]
jmp 0x10168233
push 0x101fd520
lea edx, [ebp - 0xa8]
push edx
lea eax, [ebp - 0xc0]
push eax
call fcn.1012e2f0
add esp, 0xc
mov byte [ebp - 4], 1
push 0x80
push 0
lea ecx, [ebp - 0x90]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xc0]
call fcn.100073a0
push eax
push 0x40
lea edx, [ebp - 0x90]
push edx
push 0x1019e460
mov ecx, 0x101fd598
call fcn.100073a0
push eax
mov ecx, 0x101fd580
call fcn.100073a0
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 2
imul ecx, eax, 0
movzx edx, word [ebp + ecx - 0x90]
test edx, edx
jne 0x101681f6
mov byte [ebp - 0xc2], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.10007410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10007410
mov al, byte [ebp - 0xc2]
jmp 0x10168233
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp + 8]
call fcn.100073b0
mov byte [ebp - 0xc3], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xc0]
call fcn.10007410
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10007410
mov al, byte [ebp - 0xc3]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101669b4
mov esp, ebp
pop ebp
ret
Function at 0x10009810
Capabilities:
Get geographical location

Disassembly:
push 0xa0
mov eax, 0x100c95ed
call fcn.100c74ca
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x2c]
and dword [ebp - 4], 0
push 6
mov dword [ebp - 0xa4], eax
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xac], ebx
call fcn.10054044
push 8
pop ecx
xor eax, eax
mov byte [ebp - 4], 1
lea edi, [ebp - 0x64]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x64]
call fcn.10053b49
and dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 3
call fcn.100570f0
mov esi, eax
mov dword [ebp - 0xa8], esi
mov eax, dword [ebp - 0xa4]
mov ecx, eax
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x10009894
mov ecx, dword [eax]
mov eax, dword [eax + 0x10]
lea edx, [ebp - 0x44]
mov edi, dword [esi]
add eax, ecx
push edx
lea edx, [ebp - 0x2c]
push edx
mov edi, dword [edi + 4]
push eax
push ecx
mov ecx, edi
call dword [0x100e97d8]
mov ecx, esi
call edi
test al, al
je 0x10009a08
push str.userId
lea ecx, [ebp - 0x2c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 4]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.firstName
lea ecx, [ebp - 0x2c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x1c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.lastName
lea ecx, [ebp - 0x2c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x34]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.email
lea ecx, [ebp - 0x2c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x4c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.countryCode
lea ecx, [ebp - 0x2c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x64]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.displayName
lea ecx, [ebp - 0x2c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x7c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
call fcn.100090b6
push str.accountType
lea ecx, [ebp - 0x2c]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.100556b6
push eax
lea ecx, [ebx + 0x94]
call fcn.1000fbd8
lea ecx, [ebp - 0xa0]
call fcn.100090b6
test esi, esi
je 0x10009a18
push esi
lea ecx, [ebp - 0xa8]
call fcn.1000fbd8
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x10009a2c
inc eax
push eax
push dword [ebp - 0x44]
call fcn.1000fbd8
pop ecx
pop ecx
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.100542df
lea ecx, [ebp - 0x2c]
call fcn.100543b8
call fcn.100c7417
ret 4