joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100146f9
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10014735
push eax
mov ebx, eax
call fcn.100018ba
inc eax
push eax
call fcn.10027390
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10014746
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 4], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push 0x80000004
push 0
push 0x1003f309
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x1001477b
mov eax, 0x1003f2d1
push eax
push 4
mov ebx, 0x148
call fcn.10027f90
add esp, 0x34
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x10014876
push 0
mov ebx, 0x104
call fcn.10028dc0
add esp, 4
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x1003f309
push dword [ebp - 0x10]
mov ecx, 3
call fcn.10001925
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x100147db
push ebx
call fcn.1002738a
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x100147ee
mov eax, 0x1003f2d1
push eax
push 1
mov ebx, 0x24c
call fcn.10028e60
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x10014814
push ebx
call fcn.1002738a
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x10014876
push 0
mov ebx, 0x104
call fcn.10028dc0
add esp, 4
mov dword [ebp - 0x10], eax
push dword [ebp - 4]
push 0x1003f309
push dword [ebp - 0x10]
mov ecx, 3
call fcn.10001925
add esp, 0xc
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1001485e
push ebx
call fcn.1002738a
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10014872
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 0x10000
push 1
mov ebx, 0x184
call fcn.10027f50
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x100148ab
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0x10000
push dword [ebp - 8]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x100148e8
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push dword [ebp - 0xc]
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10014908
mov eax, 0x1003f2d1
push eax
push 2
mov ebx, 0x134
call fcn.100280d0
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x10014926
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10014937
push ebx
call fcn.1002738a
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10014947
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x10016986
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x100169bf
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push 8
push dword [ebp - 0x10]
call fcn.100017a8
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.10027f50
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10016a11
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10016a3d
push 6
call fcn.10027396
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x10016a50
mov eax, 0x1003f2d1
push eax
push 1
mov ebx, 0x170
call fcn.100285d0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x10016a6e
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10016a7f
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x1001f3b4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 0x18
call fcn.10027390
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 6
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
cmp dword [0x10046fe7], 0
jne 0x1001f48e
mov ebx, dword [0x10046ef7]
call fcn.1000100e
mov eax, 0
cmp eax, ecx
jl 0x1001f416
push 1
call fcn.10027396
add esp, 4
shl eax, 2
add ebx, eax
mov dword [ebp - 0x10], ebx
mov eax, 0x1003f2b3
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10001530
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1001f442
push ebx
call fcn.1002738a
add esp, 4
lea eax, [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call fcn.100017e5
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x1001f463
push ebx
call fcn.1002738a
add esp, 4
mov eax, dword [ebp - 0x1c]
mov dword [0x10046fe7], eax
push htons
push 0
push 0x1000c521
push 1
mov ebx, 0x9dc
call fcn.10027840
add esp, 0x10
mov dword [0x10046feb], eax
push 1
lea eax, [ebp - 4]
push eax
push 1
push 0
push 1
push 0
push dword [0x10046feb]
push dword [0x10046fe7]
call fcn.10009608
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x1001f4ee
push 6
call fcn.10027396
add esp, 4
mov dword [ebp - 8], eax
push 1
lea eax, [ebp - 4]
push eax
call fcn.1000c175
cmp dword [ebp - 8], 0
je 0x1001f547
push 2
push dword [ebp - 8]
call fcn.1001ed84
cmp dword [ebp + 0x1c], 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x1001f53e
push 1
push 0xffffffff
push dword [ebp + 0x18]
push dword [ebp - 8]
call fcn.1000c202
lea eax, [ebp - 8]
push eax
call fcn.1000c479
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x1001f558
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.1002738a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10026789
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
and eax, 1
leave
ret

Function at 0x100282c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10028329
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.10027630
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x10028cd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x10028cee
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x10028ce3
pop esi
ret

Function at 0x10028d20
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x10028db2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x10028da4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x10028d9c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x10028d65
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x1002c3c8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b4a8
push 0x1002d864
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualQuery]
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x38], ecx
cmp word [ecx], 0x5a4d
jne 0x1002c44e
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
je 0x1002c426
xor al, al
or dword [ebp - 4], 0xffffffff
jmp 0x1002c454
mov edx, dword [eax + 0xd8]
lea esi, [edx + ecx]
cmp dword [ebp + 0xc], esi
jb 0x1002c41e
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp dword [ebp + 0xc], eax
jae 0x1002c41e
mov al, 1
jmp 0x1002c420
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002c4b3
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x1004a225]
test esi, esi
je 0x1002c4d7
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call dword [sym.imp.kernel32.dll_VirtualProtect]
mov esi, dword [esi + 4]
jmp 0x1002c4bb
pop esi
pop ecx
ret

Function at 0x1002c4da
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetCurrentThreadId_1]
cmp dword [0x1004a231], eax
je 0x1002c4f0
mov eax, 0x10dd
pop ecx
ret
push ebx
push esi
mov esi, dword [0x1004a241]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x1002c53d
lea eax, [esp + 0xc]
push eax
mov eax, dword [esi + 0x10]
push dword [esi + 0x14]
movzx eax, byte [eax + 0x17]
push eax
push dword [esi + 0xc]
call dword [sym.imp.kernel32.dll_VirtualProtect]
cmp dword [esi + 4], ebx
jne 0x1002c52e
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x1002c52e
push eax
call fcn.1002c5a4
pop ecx
mov dword [esi + 0x10], ebx
mov edi, dword [esi]
push esi
call fcn.1002d93c
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1002c4ff
mov dword [0x1004a241], ebx
call fcn.1002c57d
mov esi, dword [0x1004a23d]
cmp esi, ebx
je 0x1002c56a
push dword [esi + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov edi, dword [esi]
push esi
call fcn.1002d93c
cmp edi, ebx
pop ecx
mov esi, edi
jne 0x1002c552
pop edi
mov dword [0x1004a23d], ebx
mov dword [0x1004a231], ebx
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x1002c827
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1004a235]
push esi
test eax, eax
push edi
jne 0x1002c891
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, dword [esp + 0xc]
cmp edi, eax
je 0x1002c88f
push 8
call fcn.1002d9a8
mov esi, eax
pop ecx
test esi, esi
jne 0x1002c853
push 8
pop edi
jmp 0x1002c86e
push edi
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1002c87f
call dword [sym.imp.kernel32.dll_GetLastError_1]
push esi
mov edi, eax
call fcn.1002d93c
pop ecx
and dword [0x1004a239], 0
mov dword [0x1004a235], edi
mov eax, edi
jmp 0x1002c891
mov dword [esi + 4], edi
mov eax, dword [0x1004a23d]
mov dword [esi], eax
mov dword [0x1004a23d], esi
xor eax, eax
pop edi
pop esi
ret 4
Function at 0x1002cb4e
Capabilities:
Allocate or change rwx memory
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp esi, 0x7ff80000
mov ebx, 0x10000
jbe 0x1002cb72
lea eax, [esi - 0x7ff80000]
mov dword [ebp + 8], eax
jmp 0x1002cb75
mov dword [ebp + 8], ebx
cmp esi, 0x80000000
jae 0x1002cb88
lea eax, [esi + 0x7ff80000]
mov dword [ebp - 4], eax
jmp 0x1002cb8f
mov dword [ebp - 4], 0xfff80000
mov eax, dword [0x1004a229]
mov ecx, dword [0x1004a225]
test eax, eax
jne 0x1002cba9
test ecx, ecx
je 0x1002cbbe
mov eax, ecx
mov dword [0x1004a229], eax
mov edx, dword [eax + 8]
test edx, edx
je 0x1002cbbe
cmp edx, dword [ebp + 8]
jb 0x1002cbbe
cmp edx, dword [ebp - 4]
jbe 0x1002cd17
mov eax, ecx
test ecx, ecx
mov dword [0x1004a229], eax
je 0x1002cbee
test eax, eax
je 0x1002cbe2
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x1002cbe2
cmp ecx, dword [ebp + 8]
jb 0x1002cbe2
cmp ecx, dword [ebp - 4]
jbe 0x1002cd17
mov eax, dword [eax + 4]
test eax, eax
mov dword [0x1004a229], eax
jne 0x1002cbcd
mov eax, esi
and eax, 0xffff
sub esi, eax
cmp esi, dword [ebp + 8]
mov edi, esi
jbe 0x1002cc56
cmp edi, 0x70000000
jb 0x1002cc13
cmp edi, 0x80000000
ja 0x1002cc13
mov edi, 0x6fff0000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push edi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x1002cc56
cmp dword [ebp - 0x10], ebx
jne 0x1002cc2e
cmp dword [ebp - 0x14], ebx
jae 0x1002cc3e
mov eax, dword [ebp - 0x1c]
lea edi, [eax - 0x10000]
cmp edi, dword [ebp + 8]
ja 0x1002cbfe
jmp 0x1002cc56
push 0x40
push 0x3000
push ebx
push edi
call dword [sym.imp.kernel32.dll_VirtualAlloc_1]
test eax, eax
mov dword [0x1004a229], eax
jne 0x1002cccd
cmp esi, dword [ebp - 4]
jae 0x1002cd3e
cmp esi, 0x70000000
jb 0x1002cc74
cmp esi, 0x80000000
ja 0x1002cc74
mov esi, 0x80010000
lea eax, [ebp - 0x20]
push 0x1c
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x1002cd3e
cmp dword [ebp - 0x10], ebx
jne 0x1002ccc2
cmp dword [ebp - 0x14], ebx
jb 0x1002ccc2
mov ecx, esi
and ecx, 0xffff
je 0x1002ccaa
mov eax, ebx
sub eax, ecx
sub dword [ebp - 0x14], eax
add dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x20]
push 0x40
push 0x3000
push ebx
push esi
call dword [sym.imp.kernel32.dll_VirtualAlloc_1]
test eax, eax
mov dword [0x1004a229], eax
jne 0x1002cccd
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
jmp 0x1002cc56
mov dword [eax], 0x52727464
mov eax, dword [0x1004a229]
xor ecx, ecx
mov dword [eax + 8], ecx
mov eax, dword [0x1004a229]
mov edx, dword [0x1004a225]
mov dword [eax + 4], edx
mov eax, dword [0x1004a229]
mov dword [0x1004a225], eax
add eax, 0xffe0
mov edx, 0x7fd
mov dword [eax + 0x18], ecx
mov ecx, eax
sub eax, 0x20
dec edx
jne 0x1002ccff
mov eax, dword [0x1004a229]
mov dword [eax + 8], ecx
mov eax, dword [0x1004a229]
mov esi, dword [eax + 8]
cmp esi, dword [ebp + 8]
jb 0x1002cd3e
cmp esi, dword [ebp - 4]
ja 0x1002cd3e
mov ecx, dword [esi + 0x18]
push 0x20
push 0xcc
push esi
mov dword [eax + 8], ecx
call fcn.1002d950
add esp, 0xc
mov eax, esi
jmp 0x1002cd40
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002cd45
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b4b8
push 0x1002d864
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x1002cdba
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x34]
cmp word [ecx], 0x5a4d
jne 0x1002cdb6
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x3c], eax
cmp dword [eax], 0x4550
jne 0x1002cdb6
cmp word [eax + 0x14], 0
jne 0x1002cdab
xor eax, eax
or dword [ebp - 4], 0xffffffff
jmp 0x1002cdbc
mov eax, ecx
jmp 0x1002cda5
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002cdcb
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_GetCurrentThreadId_1]
cmp dword [0x1004a231], eax
je 0x1002cdea
mov eax, 0x10dd
jmp 0x1002cec0
mov eax, dword [0x1004a235]
test eax, eax
jne 0x1002cec0
mov edi, dword [ebp + 8]
test edi, edi
jne 0x1002ce06
push 6
pop eax
jmp 0x1002cec0
cmp dword [edi], 0
jne 0x1002ce18
push 6
pop eax
mov dword [0x1004a235], eax
jmp 0x1002ceba
push 0x18
call fcn.1002d9a8
mov esi, eax
pop ecx
test esi, esi
jne 0x1002ce2b
push 8
pop edi
jmp 0x1002cea4
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.1002c360
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x1002ce99
cmp ecx, 0x17
ja 0x1002ce99
cmp dword [edi + 0x1c], eax
jne 0x1002ce99
lea eax, [ebp - 4]
mov dword [ebp - 4], edx
push eax
push 0x40
push ecx
push ebx
call dword [sym.imp.kernel32.dll_VirtualProtect]
test eax, eax
jne 0x1002ce6f
call dword [sym.imp.kernel32.dll_GetLastError_1]
mov edi, eax
jmp 0x1002cea4
mov eax, dword [ebp + 8]
mov dword [esi + 4], 1
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x1004a241]
mov dword [esi], eax
mov dword [0x1004a241], esi
xor eax, eax
jmp 0x1002cec0
cmp dword [0x1004a22d], edx
push 9
pop edi
jne 0x1002ceaa
mov dword [0x1004a235], edi
test esi, esi
je 0x1002ceb5
push esi
call fcn.1002d93c
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x1004a239], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x43534b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0042708b
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 0x435383
xor eax, eax
jmp 0x4353af
cmp esi, dword [ebp - 4]
je 0x4353ac
cmp dword [ebp + 0xc], 0
je 0x4353ac
push dword [edi + 0x9c]
call fcn.00434f59
push dword [edi + 0x9c]
mov esi, eax
call fcn.00424fcd
pop ecx
pop ecx
cmp esi, eax
je 0x43537f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x68b410
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, 0xa46de6
xor esi, eax
sub esi, eax
and esi, 0xffff
call 0x68b431
pop eax
sub eax, 0x135
add esi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
inc esi
push edi
mov ah, byte [esi]
xor ah, al
mov byte [edi], ah
inc esi
ror al, 1
inc edi
dec ecx
jne 0x68b441
pop eax
pop ecx
pop edi
pop esi
ret

Function at 0x68b5fa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0068b5c0
test eax, eax
jne 0x68b669
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x68b686
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0068b5c0
test eax, eax
je 0x68b680
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x68b68b
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x68b646
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4118ce
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x18c]
sub esp, 0x20c
mov eax, dword [0x5c8810]
xor eax, ebp
mov dword [ebp + 0x188], eax
mov eax, dword [ebp + 0x194]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x198]
push edi
mov esi, ecx
mov dword [ebp - 0x80], eax
lea eax, [esi + 4]
push eax
mov edi, 0x200
push edi
call ebx
push edi
lea eax, [ebp - 0x78]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, esi
call fcn.00411fa3
cmp dword [ebp - 0x7c], 0
mov eax, dword [ebp + 0x19c]
mov dword [esi + 0x20c], eax
lea eax, [esi + 0x410]
je 0x41194d
push dword [ebp - 0x7c]
push edi
push eax
call fcn.00531f88
add esp, 0xc
jmp 0x411951
push eax
push edi
call ebx
push str.cpuz156
push 0x40
push dword [esi + 0xb3c]
call fcn.00415470
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x40], 0x156
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd48]
mov dword [eax + 0x4c], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd4c]
mov dword [eax + 0x44], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd50]
mov dword [eax + 0x48], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd54]
mov dword [eax + 0x50], ecx
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xb3c]
mov ecx, esi
call fcn.0041173a
xor ebx, ebx
mov edi, eax
inc ebx
test edi, edi
jne 0x411a5c
cmp dword [ebp - 0x7c], 0x241
jne 0x411a5c
mov ecx, esi
call fcn.004116eb
push edi
push ebx
push ebx
mov ecx, esi
call fcn.004115ae
push str.cpuz152
push 0x40
push dword [esi + 0xb3c]
call fcn.00415470
mov eax, dword [esi + 0xb3c]
mov dword [eax + 0x40], 0x152
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd48]
mov dword [eax + 0x4c], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd58]
mov dword [eax + 0x44], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd5c]
mov dword [eax + 0x48], ecx
mov eax, dword [esi + 0xb3c]
mov ecx, dword [esi + 0xd54]
mov dword [eax + 0x50], ecx
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push dword [esi + 0xb3c]
mov ecx, esi
call fcn.0041173a
mov edi, eax
mov eax, dword [ebp - 0x80]
mov ecx, dword [ebp - 0x7c]
mov dword [eax], ecx
mov ecx, esi
call fcn.004116eb
test edi, edi
jne 0x411a7d
push edi
push ebx
push ebx
mov ecx, esi
call fcn.004115ae
xor eax, eax
jmp 0x411a86
and dword [esi + 0xd44], 0
mov eax, edi
mov ecx, dword [ebp + 0x188]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053081c
add ebp, 0x18c
leave
ret 0xc