joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003780
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
call fcn.100038b0
movzx edx, al
test edx, edx
je 0x100037dc
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x4e20
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100037cf
push 0x1e61
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 4
Function at 0x10005070
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 4], 0xffffffff
push 0x1005ac48
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x4c], eax
push 0x1005ac58
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x54], eax
push 0x1005ac64
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
push 0x1005ac74
mov ecx, dword [ebp - 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x100050e8
jmp 0x100051e3
mov dword [ebp - 0x40], 0x1c
lea ecx, [ebp - 0x40]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Thread32First
test eax, eax
jne 0x1000510f
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100051e3
mov ecx, dword [ebp + 8]
push ecx
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jne 0x10005128
jmp 0x100051e3
mov dword [ebp - 0x24], 0x1c
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
call sub.KERNEL32.dll_Thread32First
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x34], eax
jne 0x100051ba
mov edx, dword [ebp - 0x38]
push edx
push 0
push 0x1f03ff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0
je 0x100051ba
mov dword [ebp - 0x5c], 0
push 0
push 4
lea eax, [ebp - 0x5c]
push eax
push 9
mov ecx, dword [ebp - 0x58]
push ecx
call dword [ebp - 0x50]
test eax, eax
jl 0x100051b0
mov edx, dword [ebp - 0x5c]
cmp edx, dword [ebp + 0xc]
jbe 0x100051b0
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp + 0x10]
jae 0x100051b0
push 0
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 0x58]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.100051f0
add esp, 0xc
movzx eax, al
test eax, eax
jne 0x10005153
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x10005b60
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x10005b8a
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], 0
mov eax, 1
jmp 0x10005b8c
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10005c50
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0xffffffff
je 0x10005c8d
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0xffffffff
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov esp, ebp
pop ebp
ret

Function at 0x10007ad0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push edi
mov dword [ebp - 0x30c], ecx
mov byte [ebp - 0x308], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x307]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x200], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1006f3c0
lea eax, [ebp - 0x308]
push eax
call fcn.10015570
add esp, 8
push 0x1005afd8
lea ecx, [ebp - 0x308]
push ecx
call fcn.10007a80
add esp, 8
lea edx, [ebp - 0x308]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
mov esp, ebp
pop ebp
ret 8

Function at 0x10007bf0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push edi
mov dword [ebp - 0x30c], ecx
mov byte [ebp - 0x308], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x307]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x200], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x1ff]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1006f3c0
lea eax, [ebp - 0x308]
push eax
call fcn.10015570
add esp, 8
push str.xConsole.ini
lea ecx, [ebp - 0x308]
push ecx
call fcn.10007a80
add esp, 8
lea edx, [ebp - 0x308]
push edx
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x100144fd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.100144c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10014598
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x1007187c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x10014598
cmp eax, 1
je 0x100145b9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10014598
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x10014565
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x10014594
xor eax, eax
inc eax
jmp 0x100145d8
cmp edi, eax
jae 0x1001459c
xor eax, eax
jmp 0x100145d8
cmp eax, esi
jae 0x100145a3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1007187c]
jmp 0x100145bc
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10015422
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x1001543f
call fcn.10016a37
mov dword [eax], 0x16
xor eax, eax
jmp 0x100154a9
push esi
push 0x8c
push 1
call fcn.10018a17
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10015494
push esi
call fcn.1001738c
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x10015472
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x1001538d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x100154a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.100147be
test ebx, ebx
pop ecx
je 0x100154a6
push ebx
call fcn.10016a49
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10015b59
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x10015c49
mov eax, 0x94
call fcn.100144c0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10015cbe
mov ecx, dword [esi + 0x10]
mov dword [0x1007187c], ecx
mov eax, dword [esi + 4]
mov dword [0x10071888], eax
mov edx, dword [esi + 8]
mov dword [0x1007188c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x10071880], esi
je 0x10015bc4
or esi, 0x8000
mov dword [0x10071880], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x10071884], eax
call fcn.10017af3
test eax, eax
pop ecx
je 0x10015cbe
call fcn.10017586
test eax, eax
jne 0x10015bf1
call fcn.10017b44
jmp 0x10015cbe
call fcn.1001ae92
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100732d0], eax
call fcn.1001ad70
mov dword [0x10071868], eax
call fcn.1001a851
test eax, eax
jl 0x10015c42
call fcn.1001acce
test eax, eax
jl 0x10015c3d
call fcn.1001aa9b
test eax, eax
jl 0x10015c3d
push 0
call fcn.1001615c
test eax, eax
pop ecx
jne 0x10015c3d
inc dword [0x10071864]
jmp 0x10015ccf
call fcn.1001aa4f
call fcn.1001736f
jmp 0x10015be7
test eax, eax
jne 0x10015c79
cmp dword [0x10071864], eax
jle 0x10015cbe
dec dword [0x10071864]
cmp dword [0x100718b8], eax
jne 0x10015c68
call fcn.100162ab
call fcn.1001aa4f
call fcn.1001736f
call fcn.10017b44
jmp 0x10015ccf
cmp eax, 2
jne 0x10015cc2
push 0x8c
push 1
call fcn.10018a17
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10015cbe
push esi
push dword [0x1006dab4]
call dword [0x100718cc]
test eax, eax
push esi
je 0x10015cb8
call fcn.1001738c
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10015ccf
call fcn.100147be
pop ecx
xor eax, eax
jmp 0x10015cd2
cmp eax, 3
jne 0x10015ccf
push 0
call fcn.10017557
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc

Function at 0x100161c6
Capabilities:
Terminate process

Disassembly:
push 8
push 0x1005d4c8
call fcn.1001635c
push 8
call fcn.10017aa8
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x100718bc], esi
jne 0x100161fa
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x100718b8], esi
mov al, byte [ebp + 0x10]
mov byte [0x100718b4], al
cmp dword [ebp + 0xc], edi
jne 0x10016244
cmp dword [0x100732c8], edi
je 0x10016234
mov eax, dword [0x100732c4]
sub eax, 4
mov dword [0x100732c4], eax
cmp eax, dword [0x100732c8]
jb 0x10016234
mov eax, dword [eax]
cmp eax, edi
je 0x10016215
call eax
jmp 0x10016215
push 0x1006c1a4
mov eax, 0x1006c198
call fcn.10016144
pop ecx
push 0x1006c1b0
mov eax, 0x1006c1a8
call fcn.10016144
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x10016275
cmp dword [ebp + 0x10], edi
jne 0x10016283
mov dword [0x100718bc], esi
push dword [ebp + 8]
call fcn.10016102
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x10016282
push 8
call fcn.100179f3
pop ecx
ret
call fcn.10016397
ret
Function at 0x1001af1a
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x1006d848]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1006dea0]
je 0x1001af4f
inc eax
cmp eax, 0x13
jb 0x1001af40
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1006dea0]
jne 0x1001b075
mov eax, dword [0x10071870]
cmp eax, 1
je 0x1001b04d
cmp eax, edx
jne 0x1001af7f
cmp dword [0x10071874], 1
je 0x1001b04d
cmp ecx, 0xfc
je 0x1001b075
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001afb5
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.10015570
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.10014d50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001afe9
mov eax, edi
push eax
call fcn.10014d50
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x1005dce0
push edi
call fcn.1001f0d0
add esp, 0x10
push edi
call fcn.10014d50
push dword [esi + 0x1006dea4]
mov ebx, eax
call fcn.10014d50
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100144c0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.10015570
push edi
push ebx
call fcn.10015580
push 0x1005dcc0
push ebx
call fcn.10015580
push dword [esi + 0x1006dea4]
push ebx
call fcn.10015580
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.1001fd7c
add esp, 0x2c
jmp 0x1001b075
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x1006dea4]
push dword [esi]
call fcn.10014d50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.10015e22
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x1001cc84
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x1006d848]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x1001ccb5
xor eax, eax
jmp 0x1001ce3e
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x10072f60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1001ccf1
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.100206d3
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1001cdcc
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x1001ce0a
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x1001cd55
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1001cd46
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x1001cd26
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001cd95
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x1001cd9e
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x1001cd17
jmp 0x1001cda0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x1001ce39
cmp dword [ebp - 0x6c], edi
je 0x1001ce0a
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x1001cdff
call fcn.10016a37
mov dword [eax], 9
call fcn.10016a40
mov dword [eax], esi
jmp 0x1001ce34
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001cdf4
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x1001cda0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x1001cda0
push dword [ebp - 0x6c]
call fcn.10016a49
pop ecx
jmp 0x1001ce34
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1001ce22
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x1001ce22
xor eax, eax
jmp 0x1001ce3c
call fcn.10016a37
mov dword [eax], 0x1c
call fcn.10016a40
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1001ce3c
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.10015e22
add ebp, 0x3a0
leave
ret
Function at 0x1001fd7c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10071d0c], ebx
push esi
push edi
jne 0x1001fdfc
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1001fe37
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1005f464
push edi
call esi
test eax, eax
mov dword [0x10071d0c], eax
je 0x1001fe37
push 0x1005f454
push edi
call esi
push 0x1005f440
push edi
mov dword [0x10071d10], eax
call esi
cmp dword [0x1007187c], 2
mov dword [0x10071d14], eax
jne 0x1001fdfc
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10071d1c], eax
je 0x1001fdfc
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10071d18], eax
mov eax, dword [0x10071d18]
test eax, eax
je 0x1001fe41
call eax
test eax, eax
je 0x1001fe28
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10071d1c]
test eax, eax
je 0x1001fe28
test byte [ebp - 8], 1
jne 0x1001fe41
cmp dword [0x10071888], 4
jb 0x1001fe3b
or byte [ebp + 0x12], 0x20
jmp 0x1001fe60
xor eax, eax
jmp 0x1001fe70
or byte [ebp + 0x12], 4
jmp 0x1001fe60
mov eax, dword [0x10071d10]
test eax, eax
je 0x1001fe60
call eax
mov ebx, eax
test ebx, ebx
je 0x1001fe60
mov eax, dword [0x10071d14]
test eax, eax
je 0x1001fe60
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10071d0c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002150f
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 0x100216e3
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x10072f60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x100216e3
test cl, 0x48
je 0x1002157a
cmp byte [eax + 5], 0xa
je 0x1002157a
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
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 0x100215cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x100215b4
call fcn.10016a37
mov dword [eax], 9
call fcn.10016a40
mov dword [eax], esi
jmp 0x100215c4
cmp eax, 0x6d
je 0x100216e3
push eax
call fcn.10016a49
pop ecx
or eax, 0xffffffff
jmp 0x100216e5
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x100216de
test eax, eax
je 0x100215f3
cmp byte [ebx], 0xa
jne 0x100215f3
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x100215fc
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
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 0x100216d8
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x100216c8
cmp al, 0xd
je 0x1002162e
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x100216ba
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x10021648
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x10021643
add dword [ebp + 0x10], 2
jmp 0x1002169c
mov dword [ebp + 0x10], eax
jmp 0x100216b6
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 0x10021670
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x100216b6
cmp dword [ebp - 0xc], 0
je 0x100216b6
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x10021691
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1002169c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x100216b9
cmp ebx, dword [ebp + 0xc]
jne 0x100216a1
cmp byte [ebp - 1], 0xa
jne 0x100216a1
mov byte [ebx], 0xa
jmp 0x100216b9
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001cb65
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x100216ba
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10021612
jmp 0x100216d8
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x100216d8
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x100216e5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10021c84
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1005f550
call fcn.1001635c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x10071d3c], edi
jne 0x10021cc8
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021cb3
mov dword [0x10071d3c], ebx
jmp 0x10021cc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10021cc8
mov dword [0x10071d3c], 2
mov eax, dword [0x10071d3c]
cmp eax, ebx
jne 0x10021ce8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x10021dab
cmp eax, 2
je 0x10021cf1
cmp eax, edi
jne 0x10021d19
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x10021d04
mov eax, dword [0x10071bc4]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x10021d20
xor eax, eax
jmp 0x10021dab
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.100144c0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x10021d53
cmp esi, edi
jne 0x10021d69
push dword [ebp - 0x20]
call fcn.100147ac
pop ecx
mov esi, eax
cmp esi, edi
je 0x10021d19
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x10021d9c
cmp dword [ebp + 0x14], edi
jne 0x10021d86
push edi
push edi
jmp 0x10021d8c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x10021da8
push esi
call fcn.100147be
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.10016397
ret