joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009a60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028be0
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x10036040]
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 dword [ebp - 0x10], esp
mov ebx, edx
mov dword [ebp - 0x150], ecx
xor esi, esi
mov dword [ebp - 0x148], esi
push 0x124
push esi
lea eax, [ebp - 0x13c]
push eax
call fcn.1000ea10
add esp, 0xc
mov dword [ebp - 0x140], 0x128
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x154], edi
cmp edi, 0xffffffff
jne 0x10009add
xor eax, eax
jmp 0x10009b8e
mov dword [ebp - 4], 0
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10009baa
nop word [eax + eax]
push dword [ebp - 0x150]
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10009b51
mov dword [ebp - 0x144], eax
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x138]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x10009b51
cmp ebx, dword [ebp - 0x144]
jne 0x10009b51
mov esi, dword [ebp - 0x138]
mov dword [ebp - 0x148], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x10009b85
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10009b00
mov dword [ebp - 4], 0xffffffff
jmp 0x10009b85
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.1000d0c5
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x14c], 1
push 0x100341a4
lea eax, [ebp - 0x14c]
push eax
call fcn.1000e7ee
int3

Function at 0x10009bd0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10036040]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0x28
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10009c62
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push 0x10031814
push 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x10009c62
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10009c62
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x514
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
Function at 0x10009c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, edx
mov dword [ebp - 8], ecx
push edi
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], 0x1e051f0e
call fcn.1000d62d
push ebx
mov edi, eax
push 0
push edi
mov dword [ebp - 0x14], edi
call fcn.1000ea10
add esp, 0x10
xor edx, edx
test ebx, ebx
jle 0x10009ce4
mov eax, dword [ebp - 8]
push esi
sub eax, edi
mov esi, edi
mov edi, eax
nop
mov al, byte [edi + esi]
lea esi, [esi + 1]
xor al, byte [ebp + edx - 4]
mov ecx, edx
xor edx, edx
mov byte [esi - 1], al
cmp ecx, 3
cmovne edx, ecx
inc edx
sub ebx, 1
jne 0x10009cc0
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
pop esi
push ebx
push edi
push dword [ebp - 8]
call fcn.10010080
push edi
call fcn.1000d0d3
add esp, 0x10
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009d00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10036040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov dword [ebp - 0x110], ecx
push 0
push eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0
call fcn.1000ea10
mov esi, dword [str.RCBolnzYimmvus2__13____424.234_4d.f.]
lea ecx, [ebp - 0x108]
mov eax, ecx
add esp, 0xc
mov edx, 0x104
sub esi, eax
nop dword [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10009d79
mov al, byte [esi + ecx]
test al, al
je 0x10009d79
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10009d60
test edx, edx
lea eax, [ecx - 1]
lea edx, [ebp - 0x108]
cmovne eax, ecx
lea ecx, [edx + 1]
mov byte [eax], 0
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10009d90
sub edx, ecx
lea ecx, [ebp - 0x108]
call fcn.10009c80
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x10009e0a
call edi
cmp eax, 0xe7
jne 0x10009df4
push 0x2710
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x10009e92
jmp 0x10009e01
call edi
cmp eax, 0xe7
jne 0x10009e92
cmp dword [0x1003ba6c], 0
jne 0x10009db0
mov ebx, dword [ebp - 0x110]
lea eax, [ebp - 0x10c]
push 0
push eax
push 0x114
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10009e8b
push 0x114
push 0
push ebx
call fcn.1000ea10
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push eax
push 0x114
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10009e8b
lea ecx, [ebx + 0x10]
mov edx, ecx
lea edi, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x10009e60
sub edx, edi
call fcn.10009c80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
Function at 0x10009eb0
Capabilities:
Check os version
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x10036040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov eax, edx
xor ebx, ebx
push esi
mov esi, eax
mov dword [ebp - 0x9c], eax
push edi
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10009ed5
sub esi, edx
push ecx
push 0
push 0x2000000
lea edi, [esi + 1]
mov dword [ebp - 0xa0], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10009f0c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
push 4
push 0x1000
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x1000a042
push 0
push dword [ebp - 0xa0]
push dword [ebp - 0x9c]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1000a033
push 0x100321bc
push 0x100321cc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xa0], eax
test eax, eax
je 0x1000a033
push 0x90
lea eax, [ebp - 0x94]
mov dword [ebp - 0x9c], ebx
push 0
push eax
call fcn.1000ea10
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10009ffc
cmp dword [ebp - 0x88], 2
jne 0x10009ffc
cmp dword [ebp - 0x94], 6
jb 0x10009ffc
push str.NtCreateThreadEx
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000a033
push 0
push 0
push 0
push 0
push 0
push edi
push dword [ebp - 0xa0]
lea ecx, [ebp - 0x9c]
push esi
push 0
push 0x1fffff
push ecx
call eax
mov eax, dword [ebp - 0x9c]
test eax, eax
jne 0x1000a01c
jmp 0x1000a033
push 0
push 0
push edi
push dword [ebp - 0xa0]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x9c], eax
test eax, eax
je 0x1000a033
push 0xd80
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
mov ecx, 1
cmovne ebx, ecx
push 0x8000
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d0c5
mov esp, ebp
pop ebp
ret
Function at 0x1000a060
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x1003ba64], 1
push esi
push edi
mov esi, edx
jne 0x1000a14a
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 0
push eax
push 1
push 0
push 0
or edi, 0xffffffff
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsA]
test eax, eax
je 0x1000a14a
mov edx, dword [ebp - 8]
xor ecx, ecx
test edx, edx
je 0x1000a142
mov eax, dword [ebp - 0xc]
nop dword [eax]
nop dword [eax + eax]
cmp dword [eax + 8], 0
movq xmm0, qword [eax]
movq qword [ebp - 0x1c], xmm0
je 0x1000a0df
inc ecx
add eax, 0xc
cmp ecx, edx
jb 0x1000a0c0
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x1c]
test esi, esi
je 0x1000a142
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0x10], 0
push eax
push 5
push edi
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationA]
test eax, eax
je 0x1000a139
mov ecx, dword [ebp - 4]
mov edx, 0x104
sub ecx, esi
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1000a12e
mov al, byte [ecx + esi]
test al, al
je 0x1000a12e
mov byte [esi], al
inc esi
sub edx, 1
jne 0x1000a115
test edx, edx
lea ecx, [esi - 1]
cmovne ecx, esi
mov byte [ecx], 0
push dword [ebp - 4]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1000b460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
xor eax, eax
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x16], ax
xorps xmm0, xmm0
mov word [ebp - 0x28], ax
or esi, 0xffffffff
lea eax, [ebp - 0x10]
movlpd qword [ebp - 0x54], xmm0
push eax
lea eax, [ebp - 0x58]
movlpd qword [ebp - 0x4c], xmm0
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push ecx
push 0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x26], xmm0
movlpd qword [ebp - 0x1e], xmm0
mov dword [ebp - 0x2c], 1
movups xmmword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1000b4d4
cmp dword [ebp - 0x10], esi
cmovne esi, dword [ebp - 0x10]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000b8f0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10028ccd
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10036040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 8], 0
je 0x1000b94f
mov ecx, dword [edi]
test ecx, ecx
je 0x1000b931
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [edi], 0
mov ecx, dword [edi + 4]
lea esi, [edi + 4]
test ecx, ecx
je 0x1000b947
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [esi], 0
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x1000b952
lea esi, [edi + 4]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x1000ba29
push 0
push 0
push 0
push 3
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
test eax, eax
js 0x1000ba23
push esi
push 0x1002a44c
push 1
push 0
push 0x1002a45c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x1000ba23
mov esi, dword [esi]
lea ecx, [ebp - 0x14]
push str.ROOTCIMV2
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x10], eax
call fcn.1000b560
mov dword [ebp - 4], 0
mov eax, dword [eax]
test eax, eax
je 0x1000b9c7
mov eax, dword [eax]
jmp 0x1000b9c9
xor eax, eax
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push esi
call dword [ebp - 0x10]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.1000b600
test esi, esi
js 0x1000ba23
push 0
push 0
push 3
push 3
push 0
push 0
push 0xa
push dword [edi]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
js 0x1000ba23
mov byte [edi + 8], 1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10014f72
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10014fb1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10014fb1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10014fb1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10014fb1
cmp dword [ecx + 0x74], 0xe
jbe 0x10014fb1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x10016d23
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ba04
push 0x1002b9fc
push str.FlsAlloc
push 0x1f
call fcn.10016b4e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016d57
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002a32c]
call esi
jmp 0x10016d5d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10016da1
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ba14
push 0x1002ba0c
push str.FlsGetValue
push 0x21
call fcn.10016b4e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016dd8
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002a32c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10016de0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ba1c
push 0x1002ba14
push str.FlsSetValue
push 0x22
call fcn.10016b4e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10016e1a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002a32c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001bfb6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001c053
push ebx
push esi
call fcn.1001bf7f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10018962
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001c000
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c052
push edi
push eax
call fcn.10015f26
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001c020
call fcn.10015eec
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001c051
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10018962
add esp, 0x20
test eax, eax
jne 0x1001c03f
push edi
call fcn.10015eec
jmp 0x1001c047
push ebx
call fcn.10015eec
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001c056
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1001c067
pop esi
ret
push ebx
push edi
push esi
call fcn.1001bf7f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10015f26
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1001c08f
push ebx
push esi
push edi
call fcn.10010080
add esp, 0xc
push 0
call fcn.10015eec
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1001c45f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1001c0a4

Function at 0x1001ef04
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100165be
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001ef73
cmp esi, dword [ebp - 4]
je 0x1001ef6e
cmp dword [ebp + 0xc], 0
je 0x1001ef6e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1001ef4b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1001ea56
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1001ef75
xor eax, eax
inc eax
jmp 0x1001ef75
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1001efda
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10036040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100165be
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100165be
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1001f051
cmp word [ecx], dx
je 0x1001f051
mov eax, dword [0x1002edc4]
push edi
dec eax
push eax
push 0x1002ecb0
call fcn.1001ef79
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1001f0c4
cmp word [eax], dx
je 0x1001f0c4
mov eax, dword [edi]
test eax, eax
je 0x1001f075
cmp word [eax], dx
je 0x1001f075
lea eax, [ebp - 0x10]
push eax
call fcn.1001e95c
jmp 0x1001f07e
lea eax, [ebp - 0x10]
push eax
call fcn.1001e9f7
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1001f0ee
mov eax, dword [0x1002ecac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x1002e9a0
call fcn.1001ef79
add esp, 0xc
test al, al
je 0x1001f0ee
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1001f0b9
cmp word [eax], di
je 0x1001f0b9
lea eax, [ebp - 0x10]
push eax
call fcn.1001e95c
pop ecx
jmp 0x1001f0f0
lea eax, [ebp - 0x10]
push eax
call fcn.1001e9f7
jmp 0x1001f0b6
mov eax, dword [edi]
test eax, eax
je 0x1001f0db
cmp word [eax], dx
je 0x1001f0db
lea eax, [ebp - 0x10]
push eax
call fcn.1001e911
pop ecx
jmp 0x1001f0ee
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1001f1b9
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1001edfe
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1001f1b9
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1001f1b9
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1001f1b9
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1001f146
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.10016f20
test ebx, ebx
je 0x1001f1b4
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.10016f20
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001f1b9
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1001f1b9
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100144e6
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1001f1bb
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d0c5
leave
ret
Function at 0x406820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x406844
xor eax, eax
jmp 0x4068c4
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40685b
xor eax, eax
jmp 0x4068c4
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x4068a7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x4068a7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40687e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x4068b3
xor eax, eax
jmp 0x4068c4
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x4068c1
xor eax, eax
jmp 0x4068c4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x407660
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4163b0
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x478010]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push 0x4604e4
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x20]
mov eax, dword [edx + 0x24]
call eax
push 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x54]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x4794b4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x18], 0
jmp 0x4076d8
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x18], edx
jge 0x407727
imul eax, dword [ebp - 0x18], 0x28
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx + 0x3c]
lea eax, [eax + edx + 0xf8]
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x10]
push edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0xc]
push eax
mov ecx, dword [0x4794b4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
jmp 0x4076cf
push 0
push 4
mov edx, dword [ebp + 0x10]
add edx, 0x34
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0xa4]
add ecx, 8
push ecx
mov edx, dword [0x4794b4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x28]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0xb0], ecx
mov al, 1
jmp 0x407785
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14