joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005ede
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
push edi
push 0x10019e0
mov ebx, 0x80000002
push ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call esi
cmp eax, edi
je 0x1005f14
cmp eax, 0xea
jne 0x1005f48
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x1005f48
add eax, 0xd
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x1005f48
lea ecx, [ebp - 8]
push ecx
push eax
push 0x10019e0
push ebx
call esi
test eax, eax
push dword [ebp - 4]
je 0x1005f71
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, 0x10019c4
push eax
mov dword [ebp - 4], eax
push 0x1001958
call fcn.01003d75
mov esi, dword [ebp + 8]
pop ecx
pop ecx
push esi
call fcn.0100552e
test eax, eax
pop ecx
je 0x1005f78
push 1
push edi
push esi
jmp 0x1005f81
push 0x1001918
jmp 0x1005f56
cmp word [esi], di
jne 0x1005f86
push 1
push edi
push edi
push dword [ebp - 4]
jmp 0x1005fae
push esi
call fcn.010055a6
cmp eax, edi
pop ecx
jne 0x1005f97
push 1
push edi
push edi
jmp 0x1005fad
mov word [esi + eax*2], di
inc eax
cmp word [esi + eax*2], 0x20
je 0x1005f9b
push 1
lea eax, [esi + eax*2]
push edi
mov dword [ebp - 0xc], eax
push eax
push esi
push 0x100190c
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jae 0x1005ffb
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x1005fcb
mov eax, 0x1001908
push eax
push esi
push 0x10018a8
call fcn.01003d75
add esp, 0xc
push 0x10
push 0x1f4
call fcn.0100566d
pop ecx
push eax
push 0x1fc
call fcn.0100566d
pop ecx
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1006369
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x100e058]
push esi
push 0x40
mov dword [ebp - 4], eax
call fcn.01006b56
xor esi, esi
cmp eax, esi
pop ecx
je 0x100639a
mov ecx, eax
call fcn.01005177
mov dword [ebp - 0x108], eax
jmp 0x10063a0
mov dword [ebp - 0x108], esi
cmp dword [ebp - 0x108], esi
jne 0x10063b0
push 8
pop eax
jmp 0x100645d
push edi
lea eax, [ebp - 0x10c]
push eax
push 0x1001b40
push 0x80000002
mov dword [ebp - 0x110], 0xfe
mov dword [ebp - 0x114], 1
mov dword [ebp - 0x10c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x104]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor edi, edi
cmp esi, edi
jne 0x1006439
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x114]
push eax
push edi
push 0x1001c68
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, edi
jne 0x1006439
mov ecx, dword [ebp - 0x108]
lea eax, [ebp - 0x104]
push eax
push edi
call fcn.01005327
cmp dword [ebp - 0x10c], edi
pop edi
je 0x100644e
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x108]
push 1
call fcn.01003ffa
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
call fcn.010067e5
leave
ret
Function at 0x10067e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100e058]
jne 0x10067f6
test ecx, 0xffff0000
jne 0x10067f6
ret
jmp fcn.01006800

Function at 0x1006975
Capabilities:
Accept command line arguments

Disassembly:
push 0x60
push 0x1001e48
call fcn.0100818c
and dword [ebp - 4], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or dword [ebp - 4], 0xffffffff
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1006b36
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x10069d1
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1006b36
mov eax, dword [esi + 0x10]
mov dword [0x1010878], eax
mov eax, dword [esi + 4]
mov dword [0x1010884], eax
mov eax, dword [esi + 8]
mov dword [0x1010888], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x101087c], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x1010878], 2
je 0x1006a12
or byte [0x101087d], 0x80
mov eax, dword [0x1010884]
shl eax, 8
add eax, dword [0x1010888]
mov dword [0x1010880], eax
call fcn.01006914
mov dword [ebp - 0x1c], eax
push ebx
call fcn.01008130
pop ecx
test eax, eax
jne 0x1006a59
cmp dword [0x101085c], 1
jne 0x1006a46
call fcn.01007902
push 0x1c
call fcn.0100779c
push 0xff
call fcn.010075fb
pop ecx
pop ecx
mov dword [ebp - 4], 1
call fcn.01007f49
test eax, eax
jge 0x1006a71
push 0x1b
call fcn.010068e5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1012254], eax
call fcn.01007e1c
mov dword [0x1010854], eax
call fcn.01007d74
test eax, eax
jge 0x1006a97
push 8
call fcn.010068e5
pop ecx
call fcn.01007b1c
test eax, eax
jge 0x1006aa8
push 9
call fcn.010068e5
pop ecx
call fcn.01007655
mov dword [ebp - 0x28], eax
cmp eax, ebx
je 0x1006abb
push eax
call fcn.010068e5
pop ecx
call fcn.01007ab8
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1006acf
movzx eax, word [ebp - 0x40]
jmp 0x1006ad2
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push ebx
push 0x1000000
call fcn.0100646d
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1006af1
push esi
call fcn.01007735
call fcn.0100776d
jmp 0x1006b23
or dword [ebp - 4], 0xffffffff
mov eax, esi
jmp 0x1006b3b
mov eax, 0xff
call fcn.010081c7
ret
Function at 0x100779c
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x100e1f0]
je 0x10077be
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x10077ac
cmp esi, 0x13
je 0x10078fa
mov eax, dword [0x101085c]
cmp eax, 1
push ebx
je 0x10078c9
test eax, eax
jne 0x10077e7
cmp dword [0x100e060], 1
je 0x10078c9
cmp ecx, 0xfc
je 0x10078f9
push edi
push 6
pop ecx
mov esi, 0x10023c0
mov edi, 0x10108c0
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x10108da
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x10109de], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1007835
push 5
pop ecx
mov esi, 0x10023a8
mov edi, 0x10108da
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100783a
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x100786d
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100784e
sub eax, edx
push 3
lea eax, [eax + 0x101089f]
push 0x10023a4
push eax
call fcn.010095f0
add esp, 0xc
mov edx, 0x10108c0
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1007875
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x100e1f4]
mov esi, 0x10023a0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1007891
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x100789d
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002378
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0100a3a5
add esp, 0xc
pop edi
jmp 0x10078f9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10078f9
mov edx, dword [esi*8 + 0x100e1f4]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10078e1
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1007e1c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1010ce8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1007e68
call esi
mov edi, eax
cmp edi, ebx
je 0x1007e4e
mov dword [0x1010ce8], 1
jmp 0x1007e6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1007e63
push 2
pop eax
mov dword [0x1010ce8], eax
jmp 0x1007e68
mov eax, dword [0x1010ce8]
cmp eax, 1
jne 0x1007ee5
cmp edi, ebx
jne 0x1007e79
call esi
mov edi, eax
cmp edi, ebx
je 0x1007eee
cmp word [edi], bx
mov eax, edi
je 0x1007e8e
inc eax
inc eax
cmp word [eax], bx
jne 0x1007e80
inc eax
inc eax
cmp word [eax], bx
jne 0x1007e80
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x1007edc
call fcn.01009719
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1007edc
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1007ed9
push dword [ebp - 4]
call fcn.0100842e
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1007f3d
cmp eax, 2
je 0x1007ef2
cmp eax, ebx
je 0x1007ef2
xor eax, eax
jmp 0x1007f3f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1007eee
cmp byte [esi], bl
je 0x1007f0f
inc eax
cmp byte [eax], bl
jne 0x1007f05
inc eax
cmp byte [eax], bl
jne 0x1007f05
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.01009719
cmp eax, ebx
je 0x1007f36
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a3a5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1010d68], ebx
push esi
push edi
jne 0x100a427
push 0x10037a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100a462
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100379c
push edi
call esi
test eax, eax
mov dword [0x1010d68], eax
je 0x100a462
push 0x100378c
push edi
call esi
push 0x1003778
push edi
mov dword [0x1010d6c], eax
call esi
cmp dword [0x1010878], 2
mov dword [0x1010d70], eax
jne 0x100a427
push 0x100375c
push edi
call esi
test eax, eax
mov dword [0x1010d78], eax
je 0x100a427
push 0x1003744
push edi
call esi
mov dword [0x1010d74], eax
mov eax, dword [0x1010d74]
test eax, eax
je 0x100a46c
call eax
test eax, eax
je 0x100a453
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1010d78]
test eax, eax
je 0x100a453
test byte [ebp - 8], 1
jne 0x100a46c
cmp dword [0x1010884], 4
jb 0x100a466
or byte [ebp + 0x12], 0x20
jmp 0x100a48b
xor eax, eax
jmp 0x100a49b
or byte [ebp + 0x12], 4
jmp 0x100a48b
mov eax, dword [0x1010d6c]
test eax, eax
je 0x100a48b
call eax
mov ebx, eax
test ebx, ebx
je 0x100a48b
mov eax, dword [0x1010d70]
test eax, eax
je 0x100a48b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1010d68]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b296
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100b2c7
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100b2ce
cmp ebx, dword [ebp + 8]
jae 0x100b2ce
xor eax, eax
jmp 0x100b4be
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100b2df
xor eax, eax
inc eax
jmp 0x100b4bd
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100b2f5
cmp ecx, edx
jae 0x100b43a
cmp dword [eax + 4], 0
je 0x100b2fe
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100b2e6
cmp dword [ebp + 8], 0
je 0x100b320
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100b43a
cmp eax, esi
jae 0x100b43a
mov eax, dword [0x1010d80]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100b345
cmp dword [esi*4 + 0x1010d88], edi
je 0x100b43e
inc esi
cmp esi, eax
jl 0x100b333
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100b4ba
cmp dword [ebp - 8], 0x1000000
jne 0x100b4ba
test byte [ebp - 0xc], 0xcc
je 0x100b3c3
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100b4ba
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100b4ba
cmp word [eax + 0x18], 0x10b
jne 0x100b4ba
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100b4ba
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100b3c3
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100b3c3
test byte [ecx + 0x27], 0x80
jne 0x100b43a
push 1
push 0x1010dc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100b2d7
mov ecx, dword [0x1010d80]
test ecx, ecx
mov edx, ecx
jle 0x100b3f7
lea eax, [ecx*4 + 0x1010d84]
cmp dword [eax], edi
je 0x100b3f7
dec edx
sub eax, 4
test edx, edx
jg 0x100b3eb
test edx, edx
jne 0x100b428
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100b404
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100b41c
lea eax, [edx*4 + 0x1010d88]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100b40a
cmp ecx, 0x10
jge 0x100b428
inc ecx
mov dword [0x1010d80], ecx
push 0
push 0x1010dc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100b2d7
xor eax, eax
jmp 0x100b4bd
test esi, esi
jle 0x100b2d7
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1010dc8
call ebx
test eax, eax
jne 0x100b2d7
cmp dword [esi*4 + 0x1010d88], edi
je 0x100b494
mov eax, dword [0x1010d80]
lea esi, [eax - 1]
test esi, esi
jl 0x100b482
cmp dword [esi*4 + 0x1010d88], edi
je 0x100b47e
dec esi
jns 0x100b472
test esi, esi
jge 0x100b492
cmp eax, 0x10
jge 0x100b48d
inc eax
mov dword [0x1010d80], eax
lea esi, [eax - 1]
jmp 0x100b494
je 0x100b4ac
xor ecx, ecx
test esi, esi
jl 0x100b4ac
lea eax, [ecx*4 + 0x1010d88]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100b49a
push 0
push 0x1010dc8
call ebx
jmp 0x100b2d7
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100b4c7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x101212c]
mov eax, dword [0x100e058]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x100b6ad
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1012140]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x100b6ad
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x100b538
xor eax, eax
jmp 0x100b6c1
test al, 0x20
je 0x100b54b
push 2
push 0
push 0
push ecx
call fcn.0100c418
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100b60b
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x100b687
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x100b5ba
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100b5a8
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x100b584
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100b639
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x100b645
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x100b570
jmp 0x100b645
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100b639
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x100b645
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x100b6a5
cmp dword [ebp - 0x40c], eax
je 0x100b681
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x100b673
mov dword [0x101086c], 9
mov dword [0x1010870], eax
jmp 0x100b6be
push dword [ebp - 0x40c]
call fcn.0100c2e2
pop ecx
jmp 0x100b6be
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100b699
cmp byte [edi], 0x1a
je 0x100b531
mov dword [0x101086c], 0x1c
jmp 0x100b6b7
sub eax, dword [ebp - 0x420]
jmp 0x100b6c1
mov dword [0x101086c], 9
and dword [0x1010870], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.010067e5
leave
ret
Function at 0x100ba83
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100bb90
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100bb7f
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x1010878], 2
jne 0x100bb04
push 0x1003854
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x100bb04
push 0x100383c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x100bb04
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x100bb04
cmp dword [ebp - 4], esi
jbe 0x100bb04
mov esi, dword [ebp - 4]
mov edx, dword [0x1010878]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x100bb2d
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x100bb39
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x100bb4b
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x100bb7f
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100bb7f
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100bb7f
xor eax, eax
inc eax
jmp 0x100bb81
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100c65a
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1003c90
call fcn.0100818c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1010de0], edi
jne 0x100c69e
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c689
mov dword [0x1010de0], ebx
jmp 0x100c69e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100c69e
mov dword [0x1010de0], 2
mov eax, dword [0x1010de0]
cmp eax, ebx
jne 0x100c6be
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x100c780
cmp eax, 2
je 0x100c6c7
cmp eax, edi
jne 0x100c6ef
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x100c6da
mov eax, dword [0x1010d04]
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 0x100c6f6
xor eax, eax
jmp 0x100c780
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0100bb90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x100c729
cmp esi, edi
jne 0x100c73e
mov ecx, dword [ebp - 0x20]
call fcn.01009719
mov esi, eax
cmp esi, edi
je 0x100c6ef
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 0x100c771
cmp dword [ebp + 0x14], edi
jne 0x100c75b
push edi
push edi
jmp 0x100c761
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 0x100c77d
push esi
call fcn.0100842e
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.010081c7
ret
Function at 0x100c78e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1003ca0
call fcn.0100818c
xor esi, esi
cmp dword [0x1010de4], esi
jne 0x100c7d2
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c7bd
mov dword [0x1010de4], edi
jmp 0x100c7d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x100c7d2
mov dword [0x1010de4], 2
mov eax, dword [0x1010de4]
cmp eax, 2
je 0x100c8b1
cmp eax, esi
je 0x100c8b1
cmp eax, 1
jne 0x100c817
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x100c800
mov eax, dword [0x1010d04]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x100c81e
xor eax, eax
jmp 0x100c8c3
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0100bb90
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x100c854
cmp edi, esi
jne 0x100c86d
lea ecx, [ebx + ebx]
call fcn.01009719
mov edi, eax
cmp edi, esi
je 0x100c817
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100c8a0
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x100c88a
push esi
push esi
jmp 0x100c890
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x100c8ac
push edi
call fcn.0100842e
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x100c8c3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.010081c7
ret