joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100780c
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x34]
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x1007873
cmp word [ebp + 0x10], 1
je 0x1007832
cmp word [ebp + 0x10], 2
je 0x1007832
cmp dword [esi + 0x24], edi
je 0x1007873
cmp dword [esi + 0x10], edi
jne 0x1007842
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [esi + 0x10], eax
mov esi, dword [esi + 0x10]
cmp esi, edi
je 0x1007873
mov eax, dword [ebp + 0xc]
neg eax
push edi
sbb eax, eax
lea ecx, [ebp + 0xc]
and eax, ecx
push eax
xor eax, eax
cmp dword [ebp + 0xc], edi
push edi
setne al
movzx eax, ax
push eax
push edi
push dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1007ac5
Capabilities:
Persist via windows service
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1011248]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x101133c
lea ecx, [ebp - 0x210]
call fcn.010047db
push 0x64
push dword [0x1011360]
lea ecx, [ebp - 0x210]
call fcn.010068e7
push 0x1001ba0
lea ecx, [ebp - 0x214]
call fcn.01007a20
mov edi, dword [ebp - 0x210]
push dword [edi - 0xc]
lea ecx, [ebp - 0x214]
push edi
call fcn.01007931
lea eax, [ebp - 0x218]
push eax
push 2
push 0
push dword [ebp - 0x214]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1007bb1
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x1007ba5
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
inc eax
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push 0
push 0x1001b7c
push dword [ebp - 0x218]
call esi
test eax, eax
jne 0x1007ba4
push 4
lea eax, [ebp - 0x210]
push eax
push 4
push 0
push 0x1001b5c
push dword [ebp - 0x218]
mov dword [ebp - 0x210], 7
call esi
pop esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x214]
add ecx, 0xfffffff0
call fcn.0100445c
lea ecx, [edi - 0x10]
call fcn.0100445c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0100e7c7
leave
ret
Function at 0x1008efa
Capabilities:
Enumerate devices by category

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x100342c
push 3
xor edi, edi
push edi
push 0x10033ec
mov esi, ecx
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
cmp ebx, edi
push 0x1c
pop eax
mov word [esi + 0xe], ax
jge 0x1008f4f
push ebx
push edi
push edi
lea ecx, [esi + 4]
call fcn.01007ddc
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x1008f48
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, ebx
jmp 0x10090ed
push edi
push edi
lea ebx, [esi + 4]
push edi
mov ecx, ebx
call fcn.01007ddc
push 0x1c
pop eax
mov word [esi + 0xe], ax
mov ecx, ebx
cmp dword [ebp - 4], edi
jne 0x1008f8c
mov esi, 0x80004003
push esi
push 6
push edi
call fcn.01007ddc
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x1008f85
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x10090ed
push edi
push 6
push 1
call fcn.01007ddc
mov eax, dword [ebp - 4]
push edi
lea edx, [ebp - 8]
push edx
push 0x10033fc
mov dword [ebp - 8], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
cmp eax, edi
push 0x37
pop ecx
mov word [esi + 0xe], cx
mov dword [ebp - 0xc], eax
mov ecx, ebx
jge 0x1008fe6
push eax
push edi
push edi
call fcn.01007ddc
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x1008fd1
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x1008fde
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0xc]
jmp 0x10090ed
push edi
push edi
push edi
call fcn.01007ddc
push 0x37
pop eax
mov word [esi + 0xe], ax
mov ecx, ebx
cmp dword [ebp - 8], edi
jne 0x1009020
mov esi, 0x80004003
push esi
push 6
push edi
call fcn.01007ddc
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x1008f78
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x1008f78
push edi
push 6
push 1
call fcn.01007ddc
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [esi + 0x4a4]
push ecx
push 1
mov dword [ebp - 0x10], edi
mov edx, dword [eax]
push eax
call dword [edx + 0xc]
cmp eax, edi
push 0x38
pop ecx
mov word [esi + 0xe], cx
mov dword [ebp - 0xc], eax
mov ecx, ebx
jl 0x1008fbc
push edi
push edi
push edi
call fcn.01007ddc
push 0x38
pop eax
mov word [esi + 0xe], ax
mov ecx, ebx
cmp dword [esi + 0x4a4], edi
je 0x1008ffc
push edi
push 6
push 1
call fcn.01007ddc
mov eax, dword [esi + 0x4a4]
mov edx, dword [eax]
lea ecx, [esi + 0x4a8]
push ecx
push 0x100343c
push edi
push edi
push eax
mov dword [ebp - 0x14], ecx
call dword [edx + 0x20]
cmp eax, edi
push 0x39
pop ecx
mov word [esi + 0xe], cx
mov dword [ebp - 0xc], eax
mov ecx, ebx
jl 0x1008fbc
push edi
push edi
push edi
call fcn.01007ddc
push 0x39
pop eax
mov word [esi + 0xe], ax
mov eax, dword [ebp - 0x14]
mov ecx, ebx
cmp dword [eax], edi
je 0x1008ffc
push edi
push 6
push 1
call fcn.01007ddc
mov eax, dword [ebp - 8]
cmp eax, edi
je 0x10090de
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
cmp eax, edi
je 0x10090eb
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100a33b
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2a0
mov eax, dword [0x1011248]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x101133c
push esi
lea ecx, [ebp - 0x248]
call fcn.010047db
push 0x6c
push dword [0x1011360]
lea ecx, [ebp - 0x248]
call fcn.010068e7
push esi
lea ecx, [ebp - 0x24c]
call fcn.010047db
push 0x64
push dword [0x1011360]
lea ecx, [ebp - 0x24c]
call fcn.010068e7
call fcn.0100b610
push eax
push dword [ebp - 0x24c]
xor ebx, ebx
push dword [ebp - 0x248]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
push 0x206
mov word [ebp - 0x244], ax
lea eax, [ebp - 0x242]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1003008
push esi
lea eax, [ebp - 0x244]
push eax
call fcn.01008907
push 0xe
pop ecx
mov esi, 0x1002fd0
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x25c], ebx
lea edi, [ebp - 0x258]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x29c]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x2a0]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x244]
push eax
mov dword [ebp - 0x2a0], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x25c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x258]
call esi
mov ecx, dword [ebp - 0x24c]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 0x248]
add ecx, 0xfffffff0
call fcn.0100445c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e7c7
leave
ret
Function at 0x100be3a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi], 0x100319c
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
lea ecx, [esi + 0x5c]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
call fcn.01004d37
push 2
lea eax, [ebp + 8]
push eax
push 0x25
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
cmp word [ebp + 8], 0x31
sete al
mov byte [esi + 0x2c], al
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100c6b6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5f4
mov eax, dword [0x1011248]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov edi, 0x1fe
push edi
push eax
mov word [ebp - 0x3f0], ax
lea eax, [ebp - 0x3ee]
push eax
mov dword [ebp - 0x5f4], ecx
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x100
push esi
lea eax, [ebp - 0x3f0]
push eax
push 0x6d
push dword [0x1011360]
call dword [sym.imp.USER32.dll_LoadStringW]
xor eax, eax
push 0x1ea
push eax
mov word [ebp - 0x1f0], ax
lea eax, [ebp - 0x1ee]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1f0]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
push edi
push eax
mov word [ebp - 0x5f0], ax
lea eax, [ebp - 0x5ee]
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x1f0]
push eax
lea eax, [ebp - 0x3f0]
push eax
lea eax, [ebp - 0x5f0]
push esi
push eax
call fcn.01007748
mov ecx, dword [ebp - 0x5f4]
add esp, 0x1c
lea eax, [ebp - 0x5f0]
push eax
call fcn.0100c12d
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100e7c7
leave
ret
Function at 0x100c797
Capabilities:
Create process on windows
Create process suspended
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x1011248]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
push 0x101133c
lea ecx, [ebp - 0x248]
call fcn.010047db
push dword [ebp + 8]
lea ecx, [ebp - 0x248]
push dword [0x1011360]
call fcn.010068e7
mov ebx, dword [ebp - 0x248]
push ebx
mov ecx, esi
call fcn.0100c12d
mov esi, 0x104
push esi
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x1003008
push esi
lea eax, [ebp - 0x244]
push eax
call fcn.01008907
push 0xe
pop ecx
mov esi, 0x1002fd0
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
xor esi, esi
mov dword [ebp - 0x258], esi
lea edi, [ebp - 0x254]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x40
stosd dword es:[edi], eax
lea eax, [ebp - 0x298]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x29c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x244]
push eax
mov dword [ebp - 0x29c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x258]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x254]
call esi
lea ecx, [ebx - 0x10]
call fcn.0100445c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100e7c7
leave
ret 4
Function at 0x100ccf2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1011248]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
lea ecx, [ebp - 0x1f4]
call fcn.01007a20
mov esi, dword [ebp - 0x1f4]
xor edi, edi
cmp dword [esi - 0xc], edi
jne 0x100cd6d
xor eax, eax
push 0x1ea
mov word [ebp - 0x1f0], ax
lea eax, [ebp - 0x1ee]
push edi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1f0]
push eax
push 0xf6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x1f4]
call fcn.01006e1c
mov esi, dword [ebp - 0x1f4]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1fc]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetDiskFreeSpaceExW]
test eax, eax
je 0x100cdb1
cmp dword [ebp - 0x1f8], edi
jbe 0x100cda2
lea ecx, [esi - 0x10]
call fcn.0100445c
xor eax, eax
inc eax
jmp 0x100cdbb
cmp dword [ebp - 0x1fc], 0x100000
jbe 0x100cdb1
xor edi, edi
inc edi
lea ecx, [esi - 0x10]
call fcn.0100445c
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0100e7c7
leave
ret 4
Function at 0x100d840
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x24]
cmp eax, 1
jne 0x100d853
pop ebp
jmp fcn.0100ce29
test eax, eax
jne 0x100d85d
pop ebp
jmp fcn.0100cdd0
cmp eax, 2
jne 0x100d868
pop ebp
jmp fcn.0100d3c9
xor eax, eax
pop ebp
ret 0x10

Function at 0x100e0d4
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1011248]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0100e015
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x100e147
cmp dword [ebp - 0x94], 5
jb 0x100e168
jmp 0x100e164
cmp dword [ebp - 0x88], 1
jne 0x100e168
cmp dword [ebp - 0x94], 4
ja 0x100e164
jne 0x100e168
cmp dword [ebp - 0x90], 0
jbe 0x100e168
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100326c
call fcn.010037be
test eax, eax
jge 0x100e189
mov byte [0x101127c], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0100e7c7
leave
ret

Function at 0x100e3d6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1011420], 0
push esi
jne 0x100e344
call fcn.0100e23b
test eax, eax
je 0x100e387
mov eax, dword [0x1011420]
cmp eax, 1
jne 0x100e365
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x100e387
pop esi
ret
push eax
call dword [0x1011428]
test eax, eax
jne 0x100e3cf
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x100e38b
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1011420]
call dword [0x1011428]
mov edi, eax
test edi, edi
je 0x100e3b0
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x100e3cc
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1011420]
call dword [0x1011424]
add edi, 0x10
cmp edi, esi
jb 0x100e3b8
mov eax, edi
pop edi
pop esi
ret
jmp 0x100e331

Function at 0x100eeed
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1011248]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x101126c]
cmp eax, 0xffffffff
jne 0x100ef60
and dword [0x101126c], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [0x1011780], ax
test ax, ax
je 0x100ef5b
push 0x10
lea ecx, [ebp - 0x24]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100ef5b
test dword [ebp - 0x16], 0x800
je 0x100ef5b
movzx eax, word [0x1011780]
push eax
call fcn.0100eeb9
test eax, eax
je 0x100ef5b
mov dword [0x101126c], 1
mov eax, dword [0x101126c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0100e7c7
leave
ret
Function at 0x1014516
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x101f430
call fcn.010146f4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x102c360
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x10142cd
cmp eax, esi
jne 0x10142c0
xor esi, esi
inc esi
mov ebx, esi
jmp 0x10142d0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10142a7
xor esi, esi
inc esi
mov eax, dword [0x102c35c]
cmp eax, esi
jne 0x10142e3
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1014312
mov eax, dword [0x102c35c]
test eax, eax
jne 0x101430c
mov dword [0x102c35c], esi
push 0x100123c
push 0x1001230
call fcn.0101420c
pop ecx
pop ecx
test eax, eax
je 0x1014312
jmp 0x101443a
mov dword [0x10296ec], esi
mov eax, dword [0x102c35c]
cmp eax, esi
jne 0x1014336
push 0x100122c
push 0x1001220
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x102c35c], 2
test ebx, ebx
jne 0x1014342
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x102c364], 0
je 0x1014366
push 0x102c364
call fcn.01014669
pop ecx
test eax, eax
je 0x1014366
push 0
push 2
push 0
call dword [0x102c364]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x10143c2
test al, al
je 0x1014380
cmp dword [ebp - 0x1c], 0
jne 0x10143c2
mov al, byte [esi]
test al, al
je 0x1014390
cmp al, 0x20
ja 0x1014390
inc esi
mov dword [ebp - 0x20], esi
jmp 0x1014380
test byte [ebp - 0x3c], 1
je 0x101439c
movzx eax, word [ebp - 0x38]
jmp 0x101439f
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x10296e8], eax
cmp dword [0x10296dc], 0
jne 0x1014416
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x10143d1
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x10143e4
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x101436d
cmp dword [0x10296ec], 0
jne 0x1014425
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10296e8]
jmp 0x1014446
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01014739
ret
call fcn.010148df
jmp 0x101426d
Function at 0x101a3ee
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x2000000
push 0
push 0x10036a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101a44e
push edi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x101a44e
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x101a44e
xor eax, eax
inc eax
jmp 0x101a450
xor eax, eax
leave
ret 0x10

Function at 0x101a572
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x2000000
xor edi, edi
push edi
push 0x10036a4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101a5e8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x10036c0
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101a5df
cmp dword [ebp - 0xc], 4
jne 0x101a5df
cmp dword [ebp - 0x10], edi
je 0x101a5df
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1021288], edi
xor eax, eax
jmp 0x101a627
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1021288], edi
jge 0x101a622
lea eax, [ebp - 0x34]
push eax
mov dword [0x1021288], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x101a622
cmp word [ebp - 0x14], 5
jb 0x101a622
call fcn.0101a459
test eax, eax
je 0x101a622
emms
mov dword [0x1021288], 1
mov eax, dword [0x1021288]
pop edi
leave
ret

Function at 0x101a62f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x102102c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x101a678
inc eax
jmp 0x101a6b5
xor eax, eax
inc eax
cmp dword [ebp - 0x88], eax
jne 0x101a6a9
cmp dword [ebp - 0x94], 4
ja 0x101a6a5
jne 0x101a6b5
cmp dword [ebp - 0x90], 0xa
jb 0x101a6b5
mov ecx, 0x55d
cmp word [ebp - 0x8c], cx
jb 0x101a6b5
xor eax, eax
jmp 0x101a6b5
xor eax, eax
cmp dword [ebp - 0x88], 2
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01014975
leave
ret
Function at 0x101a6c6
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x102102c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x101a723
cmp dword [ebp - 0x88], 2
jne 0x101a723
cmp dword [ebp - 0x94], 5
jb 0x101a723
xor eax, eax
inc eax
jmp 0x101a725
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01014975
leave
ret

Function at 0x101ad6c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [0x1029a28], eax
jne 0x101ae06
push ebx
push esi
push edi
mov esi, 0x1003878
xor edi, edi
push esi
inc edi
push eax
mov dword [0x1029a28], edi
mov dword [ebp - 4], eax
call fcn.0101ae5f
push esi
push 0
mov ebx, eax
call fcn.0101ae5f
add esp, 0x10
mov esi, eax
test ebx, ebx
je 0x101adb6
test esi, esi
je 0x101adb6
cmp ebx, esi
jne 0x101adb9
mov dword [ebp - 4], edi
test ebx, ebx
je 0x101adc4
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
test esi, esi
je 0x101add3
cmp esi, ebx
je 0x101add3
push esi
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push 0
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
cmp dword [ebp - 4], 0
pop ecx
je 0x101ae03
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x1003820
call esi
push 0x10037c0
call esi
push 0x1003768
call esi
push 0x1003738
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101aee9
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
mov dword [ebp - 0x14], eax
cmp edx, eax
jae 0x101b00c
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp edx, dword [ebp + 0x14]
jae 0x101aff0
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x101af42
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
mov dword [ebp + 0xc], edx
cmp edx, dword [ebp - 0x14]
jb 0x101af20
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18