joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10007f5e
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 0x10007ffb
push ebx
push esi
call fcn.10007f27
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.10007ebb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10007fa8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007ffa
push edi
push eax
call fcn.10006978
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10007fc8
call fcn.100069c6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10007ff9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10007ebb
add esp, 0x20
test eax, eax
jne 0x10007fe7
push edi
call fcn.100069c6
jmp 0x10007fef
push ebx
call fcn.100069c6
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 0x10008268
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fb50
push 0x1000fb48
push str.FlsAlloc
push 0x1f
call fcn.10008184
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000829c
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e128]
call esi
jmp 0x100082a2
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100082e6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fb60
push 0x1000fb58
push str.FlsGetValue
push 0x21
call fcn.10008184
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000831d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1000e128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10008325
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1000fb68
push 0x1000fb60
push str.FlsSetValue
push 0x22
call fcn.10008184
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1000835f
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1000e128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1000dd00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000dd2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000dd2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001040
Capabilities:
Enumerate services

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
push esi
push edi
mov edi, dword [esp + 0x1c]
push 0
push edi
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 3
push 0xb
push ebx
mov dword [esp + 0x30], 0
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10002d2f
add esp, 4
push 0
push edi
mov esi, eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
push esi
push 3
push 0xb
push ebx
call ebp
neg eax
pop edi
sbb eax, eax
and eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100015a0
Capabilities:
Create service
Start service

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100141f8
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push 0xf003f
xor ebp, ebp
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, ebp
jne 0x100015e2
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
push esi
push edi
lea eax, [esp + 0x10]
push eax
push ebx
mov dword [esp + 0x18], ebp
call fcn.10001040
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x10001611
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, ebp
jbe 0x1000168c
jmp 0x10001620
mov ecx, dword [esi]
push str.CAXALPT
push ecx
call fcn.1000b95e
add esp, 8
test eax, eax
jne 0x10001644
push str.CAXALPT
push ebx
call fcn.100010a0
add esp, 8
jmp 0x10001680
mov edx, dword [esi]
push str.PortTalk
push edx
call fcn.1000b95e
add esp, 8
test eax, eax
jne 0x10001668
push str.PortTalk
push ebx
call fcn.100010a0
add esp, 8
jmp 0x10001680
mov eax, dword [esi]
push str.PortLPT
push eax
call fcn.1000b95e
add esp, 8
test eax, eax
je 0x10001753
mov eax, dword [esp + 0x10]
inc edi
add esi, 0x24
cmp edi, eax
jb 0x10001620
call fcn.1000d02d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], ebp
call fcn.10001560
mov edi, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0x1c]
push str._s.SYS
push ecx
call fcn.10001520
add esp, 0x10
push 0xf01ff
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, ebp
mov ebp, dword [esp + 0x14]
jne 0x10001700
push 0
push 0
push 0
push 0
push 0
push ebp
push 1
push 3
push 1
push 0xf01ff
push edi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
je 0x10001712
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x1000173b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
cmp dword [esi + 0xc], 4
je 0x10001775
mov ecx, dword [esi]
push ecx
push ebx
call fcn.100010a0
add esp, 8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1000168c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10001c09
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x10001c1e
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x10001c30
xor eax, eax
jmp 0x10001c62
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x10001c54
cmp esi, eax
jae 0x10001c2c
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x10001c46
cmp esi, eax
jae 0x10001c2c
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret

Function at 0x1000370d
Capabilities:
Accept command line arguments
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, 1
push esi
jne 0x100037fa
mov eax, 0x94
call fcn.100036d0
mov esi, esp
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1000386f
mov ecx, dword [esi + 0x10]
mov dword [0x1001d5d0], ecx
mov eax, dword [esi + 4]
mov dword [0x1001d5dc], eax
mov edx, dword [esi + 8]
mov dword [0x1001d5e0], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
cmp ecx, 2
mov dword [0x1001d5d4], esi
je 0x10003778
or esi, 0x8000
mov dword [0x1001d5d4], esi
shl eax, 8
add eax, edx
push 1
mov dword [0x1001d5d8], eax
call fcn.10004e90
test eax, eax
pop ecx
je 0x1000386f
call fcn.10006f01
test eax, eax
jne 0x100037a5
call fcn.10004ee1
jmp 0x1000386f
call fcn.100076b8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1001ee30], eax
call fcn.10007596
mov dword [0x1001d5bc], eax
call fcn.10007077
test eax, eax
jl 0x100037f3
call fcn.100074f4
test eax, eax
jl 0x100037ee
call fcn.100072c1
test eax, eax
jl 0x100037ee
call fcn.10003a31
test eax, eax
jne 0x100037ee
inc dword [0x1001d5b8]
jmp 0x10003880
call fcn.10007275
call fcn.10006cf4
jmp 0x1000379b
test eax, eax
jne 0x1000382a
cmp dword [0x1001d5b8], eax
jle 0x1000386f
dec dword [0x1001d5b8]
cmp dword [0x1001d60c], eax
jne 0x10003819
call fcn.10003b7a
call fcn.10007275
call fcn.10006cf4
call fcn.10004ee1
jmp 0x10003880
cmp eax, 2
jne 0x10003873
push 0x88
push 1
call fcn.10006fbc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x1000386f
push esi
push dword [0x1001ab7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
push esi
je 0x10003869
call fcn.10006d12
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
or dword [esi + 4], 0xffffffff
mov dword [esi], eax
jmp 0x10003880
call fcn.10003650
pop ecx
xor eax, eax
jmp 0x10003883
cmp eax, 3
jne 0x10003880
push 0
call fcn.10006d96
pop ecx
xor eax, eax
inc eax
lea esp, [ebp - 4]
pop esi
pop ebp
ret 0xc
Function at 0x10003a96
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.10004e45
xor esi, esi
inc esi
cmp dword [0x1001d610], esi
pop ecx
jne 0x10003abe
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x1001d60c], esi
mov byte [0x1001d608], al
jne 0x10003b24
mov ecx, dword [0x1001ee28]
test ecx, ecx
je 0x10003b05
mov eax, dword [0x1001ee24]
sub eax, 4
cmp eax, ecx
jmp 0x10003afe
mov eax, dword [eax]
test eax, eax
je 0x10003af0
call eax
mov eax, dword [0x1001ee24]
sub eax, 4
cmp eax, dword [0x1001ee28]
mov dword [0x1001ee24], eax
jae 0x10003ae8
mov eax, 0x1001a06c
mov esi, 0x1001a074
cmp eax, esi
mov edi, eax
jae 0x10003b24
mov eax, dword [edi]
test eax, eax
je 0x10003b1d
call eax
add edi, 4
cmp edi, esi
jb 0x10003b15
mov eax, 0x1001a078
mov esi, 0x1001a080
cmp eax, esi
mov edi, eax
jae 0x10003b43
mov eax, dword [edi]
test eax, eax
je 0x10003b3c
call eax
add edi, 4
cmp edi, esi
jb 0x10003b34
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x10003b54
push 8
call fcn.10004db1
jmp 0x10003b66
push dword [ebp + 8]
mov dword [0x1001d610], 1
call fcn.100039ef
pop ecx
pop ebp
ret
Function at 0x10007740
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x1001a7a4]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1001aba8]
je 0x1000776d
inc eax
cmp eax, 0x12
jb 0x1000775e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1001aba8]
jne 0x100078a1
mov eax, dword [0x1001d5c4]
cmp eax, 1
je 0x1000787c
cmp eax, edx
jne 0x1000779d
cmp dword [0x1001d5c8], 1
je 0x1000787c
cmp ecx, 0xfc
je 0x100078a1
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100077d6
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.100085e0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.10003f10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x10007818
lea eax, [ebp - 0x10c]
push eax
call fcn.10003f10
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x10016c58
push edi
call fcn.10009f20
add esp, 0x10
push edi
call fcn.10003f10
push dword [esi + 0x1001abac]
mov ebx, eax
call fcn.10003f10
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.100036d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.100085e0
push edi
push ebx
call fcn.100085f0
push 0x10016c38
push ebx
call fcn.100085f0
push dword [esi + 0x1001abac]
push ebx
call fcn.100085f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.10009e1d
add esp, 0x2c
jmp 0x100078a1
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x1001abac]
push dword [esi]
call fcn.10003f10
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.1000398c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000986f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x1001a7a4]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x10009898
xor eax, eax
jmp 0x10009a06
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1001eac0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x100098cb
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.1000b25d
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1000999d
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x100099d8
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x10009926
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10009917
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x100098fa
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10009966
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x1000996f
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x100098eb
jmp 0x10009971
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x10009a01
cmp dword [ebp - 8], edi
je 0x100099d8
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x100099ca
call fcn.10004c8e
mov dword [eax], 9
call fcn.10004c97
mov dword [eax], esi
jmp 0x100099d3
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100099bf
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x10009971
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x10009971
push dword [ebp - 8]
call fcn.10004ca0
pop ecx
or eax, 0xffffffff
jmp 0x10009a04
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100099ed
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x100099ed
xor eax, eax
jmp 0x10009a04
call fcn.10004c8e
mov dword [eax], 0x1c
call fcn.10004c97
mov dword [eax], edi
jmp 0x100099d3
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.1000398c
leave
ret
Function at 0x10009e1d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1001d9a8], ebx
push esi
push edi
jne 0x10009e9d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10009ed8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001754c
push edi
call esi
test eax, eax
mov dword [0x1001d9a8], eax
je 0x10009ed8
push 0x1001753c
push edi
call esi
push 0x10017528
push edi
mov dword [0x1001d9ac], eax
call esi
cmp dword [0x1001d5d0], 2
mov dword [0x1001d9b0], eax
jne 0x10009e9d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x1001d9b8], eax
je 0x10009e9d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x1001d9b4], eax
mov eax, dword [0x1001d9b4]
test eax, eax
je 0x10009ee2
call eax
test eax, eax
je 0x10009ec9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1001d9b8]
test eax, eax
je 0x10009ec9
test byte [ebp - 8], 1
jne 0x10009ee2
cmp dword [0x1001d5dc], 4
jb 0x10009edc
or byte [ebp + 0x12], 0x20
jmp 0x10009f01
xor eax, eax
jmp 0x10009f11
or byte [ebp + 0x12], 4
jmp 0x10009f01
mov eax, dword [0x1001d9ac]
test eax, eax
je 0x10009f01
call eax
mov ebx, eax
test ebx, ebx
je 0x10009f01
mov eax, dword [0x1001d9b0]
test eax, eax
je 0x10009f01
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1001d9a8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000a32f
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.100036d0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000a3c4
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x1001d5d0]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x1000a3c4
cmp eax, 1
je 0x1000a3dc
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1000a3c4
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x1000a399
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1000a3c0
xor eax, eax
inc eax
jmp 0x1000a3f8
cmp esi, ebx
jae 0x1000a3c8
xor eax, eax
jmp 0x1000a3f8
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x1001d5d0]
jmp 0x1000a3de
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000b68b
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 0x1000b851
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x1001eac0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x1000b851
test cl, 0x48
je 0x1000b6f1
mov al, byte [eax + 5]
cmp al, 0xa
je 0x1000b6f1
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 0x1000b743
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1000b72b
call fcn.10004c8e
mov dword [eax], 9
call fcn.10004c97
mov dword [eax], esi
jmp 0x1000b73b
cmp eax, 0x6d
je 0x1000b851
push eax
call fcn.10004ca0
pop ecx
or eax, 0xffffffff
jmp 0x1000b853
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x1000b84c
test edx, edx
je 0x1000b766
cmp byte [ebx], 0xa
jne 0x1000b766
or al, 4
jmp 0x1000b768
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x1000b846
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x1000b836
cmp al, 0xd
je 0x1000b79c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1000b828
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x1000b7b6
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x1000b7b1
add dword [ebp + 0x10], 2
jmp 0x1000b80a
mov dword [ebp + 0x10], eax
jmp 0x1000b824
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 0x1000b7de
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1000b824
cmp dword [ebp - 0xc], 0
je 0x1000b824
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1000b7ff
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1000b80a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1000b827
cmp ebx, dword [ebp + 0xc]
jne 0x1000b80f
cmp byte [ebp - 1], 0xa
jne 0x1000b80f
mov byte [ebx], 0xa
jmp 0x1000b827
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10009750
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x1000b828
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x1000b780
jmp 0x1000b846
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x1000b846
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x1000b853
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001110f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x1001a7a4]
xor eax, dword [ebp + 4]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x10011161
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, esi
jne 0x10011161
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1001116d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.1000398c
leave
ret 8

Function at 0x10011bff
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1001a7a4]
xor eax, dword [ebp + 4]
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], eax
je 0x10011c4f
push dword [ebp + 8]
call fcn.1001353a
mov esi, eax
test esi, esi
je 0x10011c77
push edi
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
pop edi
jmp 0x10011c77
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push 0x10015b6c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
call fcn.1000398c
leave
ret 0xc

Function at 0x10011d24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x1001a7a4]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x800
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
jne 0x10011d81
push 0x10015594
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.1000398c
leave
ret
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x10011d50
jmp 0x10011d74