joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014121
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x100142e7
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1002f4c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x100142e7
test cl, 0x48
je 0x10014187
mov al, byte [eax + 5]
cmp al, 0xa
je 0x10014187
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100141d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x100141c1
call fcn.1000cd87
mov dword [eax], 9
call fcn.1000cd90
mov dword [eax], esi
jmp 0x100141d1
cmp eax, 0x6d
je 0x100142e7
push eax
call fcn.1000cd99
pop ecx
or eax, 0xffffffff
jmp 0x100142e9
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x100142e2
test edx, edx
je 0x100141fc
cmp byte [ebx], 0xa
jne 0x100141fc
or al, 4
jmp 0x100141fe
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x100142dc
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x100142cc
cmp al, 0xd
je 0x10014232
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x100142be
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1001424c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x10014247
add dword [ebp + 0x10], 2
jmp 0x100142a0
mov dword [ebp + 0x10], eax
jmp 0x100142ba
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10014274
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100142ba
cmp dword [ebp - 0xc], 0
je 0x100142ba
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10014295
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x100142a0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x100142bd
cmp ebx, dword [ebp + 0xc]
jne 0x100142a5
cmp byte [ebp - 1], 0xa
jne 0x100142a5
mov byte [ebx], 0xa
jmp 0x100142bd
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.100120d0
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x100142be
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10014216
jmp 0x100142dc
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x100142dc
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x100142e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001528b
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x100152f6
push 0x3d
push dword [ebp + 8]
call fcn.1000bd42
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x100152f6
cmp dword [ebp + 8], esi
je 0x100152f6
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x1002dff4]
cmp eax, dword [0x1002dff8]
jne 0x100152dc
mov edi, eax
call fcn.1001522a
mov dword [0x1002dff4], eax
cmp eax, ebx
jne 0x10015335
cmp dword [ebp + 0xc], ebx
je 0x100152fe
cmp dword [0x1002dffc], ebx
je 0x100152fe
call fcn.100143e7
test eax, eax
je 0x10015335
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x10015439
push 4
call fcn.1000b344
cmp eax, ebx
pop ecx
mov dword [0x1002dff4], eax
je 0x100152f6
mov dword [eax], ebx
cmp dword [0x1002dffc], ebx
jne 0x10015335
push 4
call fcn.1000b344
cmp eax, ebx
pop ecx
mov dword [0x1002dffc], eax
je 0x100152f6
mov dword [eax], ebx
mov ebx, dword [0x1002dff4]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.100151dd
mov edi, eax
test edi, edi
pop ecx
jl 0x1001538e
cmp dword [ebx], 0
je 0x1001538e
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.1000b0e1
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x10015376
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x100153c4
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x1001536d
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.1000bb5b
test eax, eax
pop ecx
pop ecx
je 0x100153c4
jmp 0x100153bf
cmp dword [ebp - 4], 0
jne 0x10015432
test edi, edi
jge 0x1001539e
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.1000bb5b
test eax, eax
pop ecx
pop ecx
je 0x100152f6
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x1002dff4], eax
cmp dword [ebp + 0xc], 0
je 0x1001541b
push dword [ebp + 8]
call fcn.1000bad0
inc eax
inc eax
push eax
call fcn.1000b344
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1001541b
push dword [ebp + 8]
push esi
call fcn.1000e340
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x10015414
or dword [ebp - 8], 0xffffffff
push esi
call fcn.1000b0e1
pop ecx
cmp dword [ebp - 4], 0
je 0x1001542a
push dword [ebp + 8]
call fcn.1000b0e1
pop ecx
mov eax, dword [ebp - 8]
jmp 0x100152f9
push esi
call fcn.1000b0e1
pop ecx
xor eax, eax
jmp 0x100152f9
Function at 0x10015977
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x1002ad84]
xor eax, dword [ebp + 0x7c]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.10015947
and byte [esi + 0xc], 0
mov eax, 0x10000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
call fcn.1000b730
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x100159dc
cmp dword [ebp - 0x1c], 5
jb 0x100159f4
jmp 0x100159f0
cmp dword [ebp - 0x10], 1
jne 0x100159f4
cmp dword [ebp - 0x1c], 4
ja 0x100159f0
jne 0x100159f4
cmp dword [ebp - 0x18], 0
jbe 0x100159f4
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x1002603c
call fcn.100158f7
test eax, eax
jge 0x10015a15
mov byte [0x1002c0d8], 1
mov ecx, dword [ebp + 0x74]
xor ecx, dword [ebp + 0x7c]
mov eax, esi
pop esi
call fcn.1000b6b0
add ebp, 0x78
leave
ret

Function at 0x10019492
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x100194d5
call fcn.1001e59b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x100194d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x100194f0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.100185f9
test ebx, ebx
mov esi, eax
je 0x100194ee
test edi, edi
je 0x100194ee
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1001a253
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x1001a28a
call fcn.1001e59b
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1001a29b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x1001a2d4
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x1001a2b9
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x1001a2c1
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x1001a2d2
test ax, ax
jne 0x1001a2d2
test si, si
je 0x1001a2d4
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x1001a2e3
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x1001a535
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x1002118d
call fcn.1000b704
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.1001e59b
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x1001a583
call fcn.1001e59b
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1001a594
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x1001a5a0
or eax, 0xffffffff
jmp 0x1001a6a3
mov ecx, esi
call fcn.1001a07d
mov dword [ebp - 0x14], eax
call fcn.10017923
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x1001a5e3
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x1001a5e3
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1001a5e3
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.10018b25
push dword [ebp - 0x14]
call fcn.1001787b
push edi
push eax
push ebx
mov ecx, esi
call fcn.1001a328
xor ebx, ebx
cmp eax, ebx
je 0x1001a657
test byte [esi + 0x38], 0x10
je 0x1001a625
push 4
pop edi
mov ecx, esi
call fcn.1001979c
test ah, 1
je 0x1001a61d
push 5
pop edi
push edi
mov ecx, esi
call fcn.1001731f
cmp dword [esi + 0x1c], ebx
je 0x1001a657
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.1001989b
jmp 0x1001a657
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x1001a66b
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x1001a684
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x1001a684
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.1001a0b7
cmp dword [esi + 0x54], ebx
je 0x1001a6a0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x1001a716
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x54], ebx
jne 0x1001a736
cmp dword [edi + 0x50], 0
jne 0x1001a736
movzx eax, bx
mov dword [edi + 0x50], eax
call fcn.1001e59b
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1001a6dd
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8
Function at 0x1001b924
Capabilities:
Get disk information

Disassembly:
mov eax, 0x100212d2
call fcn.1000b704
sub esp, 0x14c
mov eax, dword [0x1002ad84]
xor eax, dword [ebp + 4]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x1001b96e
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
jmp 0x1001ba03
push ebx
call fcn.100162d8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
xor esi, esi
push edi
mov dword [ebp - 4], esi
call fcn.1001b8e2
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x1001b9f5
push esi
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
push esi
push esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x1001b9f8
test byte [ebp + 8], 2
jne 0x1001b9c3
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp + 8], 4
jne 0x1001b9f5
lea eax, [ebp - 0x158]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x1001b9f5
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x12c]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
lea ecx, [ebx - 0x10]
call fcn.10001c20
mov eax, esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop esi
call fcn.1000b6b0
leave
ret 8

Function at 0x1001c188
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x1002ad84]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x1001c1da
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x1001c1da
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001c1e6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.1000b6b0
leave
ret 8
Function at 0x1001c73e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1002ad84]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x1001c78e
push dword [ebp + 8]
call fcn.1001f032
mov esi, eax
test esi, esi
je 0x1001c7b6
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x1001c7b6
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x100248f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.1000b6b0
leave
ret 0xc

Function at 0x1001c85c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx + 0x50], 0
push esi
push edi
je 0x1001c89e
push dword [ebp + 8]
call fcn.1001f032
mov esi, eax
test esi, esi
je 0x1001c8f2
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x1001c8f2
mov edi, dword [ebp + 0x14]
lea eax, [edi + edi + 1]
push eax
call fcn.100160ad
mov esi, eax
xor eax, eax
test edi, edi
pop ecx
jbe 0x1001c8d5
mov ecx, dword [ebp + 0x10]
add ecx, eax
mov dl, byte [ecx]
and dl, 0xf
add dl, 0x41
mov byte [esi + eax*2], dl
mov cl, byte [ecx]
shr cl, 4
add cl, 0x41
mov byte [esi + eax*2 + 1], cl
inc eax
cmp eax, edi
jb 0x1001c8b4
and byte [esi + eax*2], 0
push esi
push dword [ebp + 0xc]
mov ecx, ebx
push dword [ebp + 8]
call fcn.1001c7c6
push esi
mov edi, eax
call fcn.100160d8
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x1001dc4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x1001dc61
mov edi, dword [esi + 0xc]
jmp 0x1001dc8b
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x1001dc8b
call fcn.1001bb75
call fcn.1001e59b
cmp dword [eax + 0x1038], 0
je 0x1001dca3
push edi
mov ecx, ebx
call fcn.1001d060
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.1001db6a
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x58]
test eax, eax
je 0x1001dcc1
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x58], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x1001dccd
mov edi, eax
mov dword [ebx + 0x58], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1001f0e1
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x1002119f
call fcn.1000b704
mov eax, 0x1014
call fcn.1000b360
mov eax, dword [0x1002ad84]
xor eax, dword [ebp + 4]
push ebx
push edi
xor edi, edi
mov dword [ebp - 0x1c], edi
cmp dword [ecx + 0x50], edi
mov dword [ebp - 0x10], eax
je 0x1001f1b8
push dword [ebp + 0xc]
call fcn.1001f032
cmp eax, edi
mov dword [ebp - 0x14], eax
jne 0x1001f127
push dword [ebp + 0x14]
jmp 0x1001f1e9
push esi
call fcn.100162d8
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp + 0xc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 0x14]
call esi
cmp eax, edi
mov dword [ebp - 0x18], eax
jne 0x1001f189
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
lea ecx, [ebp + 0xc]
call fcn.10002bb0
push eax
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call esi
push 0xffffffffffffffff
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], eax
call fcn.10006ce0
mov ebx, dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x18], edi
mov ecx, dword [ebp + 8]
pop esi
jne 0x1001f1a6
lea eax, [ebp + 0xc]
push eax
call fcn.100038a0
jmp 0x1001f1ae
push dword [ebp + 0x14]
call fcn.100030e0
lea ecx, [ebx - 0x10]
call fcn.10001c20
jmp 0x1001f1f1
cmp dword [ebp + 0x14], edi
jne 0x1001f1c4
mov dword [ebp + 0x14], 0x10022515
push dword [ecx + 0x64]
lea eax, [ebp - 0x1020]
push 0x1000
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1020]
push eax
mov ecx, dword [ebp + 8]
call fcn.100030e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
xor ecx, dword [ebp + 4]
pop edi
pop ebx
call fcn.1000b6b0
leave
ret 0x10
Function at 0x1001f20f
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1002119f
call fcn.1000b704
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esi], edi
mov dword [ebx], edi
cmp dword [ecx + 0x50], edi
je 0x1001f2a1
push dword [ebp + 8]
call fcn.1001f032
cmp eax, edi
mov dword [ebp + 0x14], eax
jne 0x1001f244
xor eax, eax
jmp 0x1001f313
lea ecx, [ebp + 0x10]
push ecx
push edi
lea ecx, [ebp - 0x10]
push ecx
push edi
push dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
call edi
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx], eax
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x1001f287
push eax
call fcn.100160ad
pop ecx
lea ecx, [ebp + 0x10]
push ecx
push eax
mov dword [esi], eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call edi
mov dword [ebp + 8], eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 8], ebx
je 0x1001f310
push dword [esi]
call fcn.100160d8
pop ecx
mov dword [esi], ebx
jmp 0x1001f23d
push edi
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.1001f0e1
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx - 0xc]
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp + 8], eax
jne 0x1001f2ce
add ecx, 0xfffffff0
call fcn.10001c20
jmp 0x1001f23d
shr eax, 1
push eax
mov dword [ebx], eax
call fcn.100160ad
cmp dword [ebp + 8], edi
pop ecx
mov dword [esi], eax
jle 0x1001f305
mov eax, dword [ebp + 0xc]
add eax, edi
mov cl, byte [eax + 1]
dec cl
shl cl, 4
add cl, byte [eax]
mov eax, edi
cdq
sub eax, edx
mov edx, dword [esi]
sub cl, 0x41
sar eax, 1
inc edi
inc edi
cmp edi, dword [ebp + 8]
mov byte [eax + edx], cl
jl 0x1001f2e0
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.10001c20
xor eax, eax
inc eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x1001f324
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1002ad84]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x1001f381
push 0x100249a4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.1000b6b0
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1001f350
jmp 0x1001f374