joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x100013b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10060c38
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push edi
mov eax, dword [0x1007c060]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
xor eax, eax
mov edi, edx
mov dword [esp + 0xc], eax
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx]
mov edx, dword [eax]
push eax
push ecx
push edx
push ecx
lea ebx, [esp + 0x30]
call fcn.10007dd0
add esp, 0x10
cmp dword [esp + 0x38], 8
jb 0x1000140a
mov eax, dword [esp + 0x24]
push eax
call fcn.1004a7e9
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0x10
ret
Function at 0x100015b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x100626ab
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x1007c060]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
push ebp
push esi
mov eax, dword [0x1007c060]
xor eax, esp
push eax
lea eax, [esp + 0x460]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x470]
xor eax, eax
cmp dword [edi + 0x14], 0xc8
mov dword [esp + 0x10], eax
jbe 0x1000161b
mov dword [ebp + 0x14], eax
xor ecx, ecx
mov dword [ebp + 0x18], 7
push eax
mov word [ebp + 4], cx
mov eax, 0x1006a9e0
jmp 0x10001774
push 0x40e
push eax
lea eax, [esp + 0x56]
xor edx, edx
push eax
mov word [esp + 0x58], dx
call fcn.1004e1c0
add esp, 0xc
push 0x208
lea ecx, [esp + 0x50]
push ecx
mov ebx, str.cachekvstore
xor ecx, ecx
call fcn.10025e24
lea edx, [esp + 0x30]
push edi
push edx
call fcn.10001430
mov esi, 8
add esp, 8
cmp dword [eax + 0x18], esi
jb 0x10001668
mov eax, dword [eax + 4]
jmp 0x1000166b
add eax, 4
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push eax
lea eax, [esp + 0x50]
push eax
call ebx
cmp dword [esp + 0x48], esi
jb 0x1000168c
mov ecx, dword [esp + 0x34]
push ecx
call fcn.1004a7e9
add esp, 4
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1000173e
lea esi, [esp + 0x30]
call fcn.10001590
mov dword [esp + 0x468], 0
cmp dword [esp + 0x44], 0
mov esi, 8
je 0x10001720
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x48], esi
jae 0x100016cd
lea eax, [esp + 0x34]
push 0x208
push eax
lea eax, [esp + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push str.cachekvstore
lea ecx, [esp + 0x50]
push ecx
call ebx
lea edx, [esp + 0x14]
push edi
push edx
call fcn.10001430
add esp, 8
cmp dword [eax + 0x18], esi
jb 0x10001702
mov eax, dword [eax + 4]
jmp 0x10001705
add eax, 4
push eax
lea eax, [esp + 0x50]
push eax
call ebx
cmp dword [esp + 0x2c], esi
jb 0x10001720
mov ecx, dword [esp + 0x18]
push ecx
call fcn.1004a7e9
add esp, 4
mov dword [esp + 0x468], 0xffffffff
cmp dword [esp + 0x48], esi
jb 0x1000173e
mov edx, dword [esp + 0x34]
push edx
call fcn.1004a7e9
add esp, 4
xor eax, eax
mov dword [ebp + 0x18], 7
mov dword [ebp + 0x14], 0
mov word [ebp + 4], ax
lea eax, [esp + 0x4c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10001760
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x50]
mov esi, ebp
call fcn.10004f40
mov eax, ebp
mov ecx, dword [esp + 0x460]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.1004a172
add esp, 0x45c
ret
Function at 0x100027d0
Capabilities:
Create thread

Disassembly:
push 0x10080418
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [0x1007e1e4], 0
je 0x1000280d
push 0
push 0
push 0
push 0x10002500
push 0x20000
push 0
mov dword [0x1007e1e4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x1000a8b0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x1006259b
mov eax, dword fs:[0]
push eax
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007c060]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
xor ebp, ebp
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp ecx, ebp
je 0x1000a9e4
mov ebx, 0xf
mov eax, ecx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebp
mov byte [esp + 0x38], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000a901
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x3c]
call fcn.10004c30
mov dword [esp + 0x90], ebp
mov esi, 1
mov eax, str.Softwareprojonepodlpkeyrule_secClass_
mov dword [esp + 0x14], esi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
lea ecx, [eax + 1]
lea ebx, [ebx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1000a940
sub eax, ecx
push eax
push str.Softwareprojonepodlpkeyrule_secClass_
lea ecx, [esp + 0x20]
call fcn.10004c30
lea eax, [esp + 0x34]
mov dword [esp + 0x90], esi
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0x18], 3
call fcn.1000a830
mov esi, eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x98], 2
lea ecx, [esp + 0x58]
mov dword [esp + 0x1c], 7
call fcn.1000a830
mov edi, 8
add esp, 8
cmp dword [esi + 0x18], edi
jb 0x1000a9aa
mov esi, dword [esi + 4]
jmp 0x1000a9ad
add esi, 4
cmp dword [eax + 0x18], edi
jb 0x1000a9b7
mov eax, dword [eax + 4]
jmp 0x1000a9ba
add eax, 4
mov edx, dword [esp + 0x98]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push esi
push eax
push 0x80000002
mov dword [esp + 0x2c], edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov esi, eax
neg esi
sbb esi, esi
inc esi
jmp 0x1000a9e9
xor esi, esi
lea edi, [esi + 8]
test bl, 8
je 0x1000aa17
and ebx, 0xfffffff7
cmp dword [esp + 0x68], edi
jb 0x1000aa04
mov edx, dword [esp + 0x54]
push edx
call fcn.1004a7e9
add esp, 4
xor eax, eax
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], ebp
mov word [esp + 0x54], ax
test bl, 4
je 0x1000aa4e
and ebx, 0xfffffffb
cmp dword [esp + 0x84], edi
jb 0x1000aa35
mov ecx, dword [esp + 0x70]
push ecx
call fcn.1004a7e9
add esp, 4
xor edx, edx
mov dword [esp + 0x84], 7
mov dword [esp + 0x80], ebp
mov word [esp + 0x70], dx
mov edi, 0x10
test bl, 2
je 0x1000aa7f
and ebx, 0xfffffffd
cmp dword [esp + 0x30], edi
jb 0x1000aa6e
mov eax, dword [esp + 0x1c]
push eax
call fcn.1004a7e9
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x1c], 0
test bl, 1
je 0x1000aa97
cmp dword [esp + 0x4c], edi
jb 0x1000aa97
mov ecx, dword [esp + 0x38]
push ecx
call fcn.1004a7e9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x80
ret 4
Function at 0x1000c560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10064f78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1007c060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
and dword [esp + 0x14], 0xfffffe00
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], 1
call fcn.1000c280
add esp, 8
test al, al
je 0x1000c629
cmp byte [esp + 0x14], 7
jne 0x1000c629
push str.value_bool
lea edx, [esp + 0x10]
push edx
mov ecx, 0x1006ac12
call fcn.1003b8e7
mov ecx, eax
call fcn.1003bd20
test al, al
je 0x1000c629
push str.value_bool
lea eax, [esp + 0x10]
push eax
mov ecx, 0x1006ac12
call fcn.1003b8e7
mov esi, eax
call fcn.1003af06
mov edx, dword [esp + 0x3c]
cmp eax, 1
sete cl
lea esi, [esp + 0xc]
mov byte [edx], cl
mov dword [esp + 0x30], 0xffffffff
call fcn.1003ac21
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
lea esi, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.1003ac21
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x1000c650
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10064f78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x1007c060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
and dword [esp + 0x14], 0xfffffe00
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea eax, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], 1
call fcn.1000c280
add esp, 8
test al, al
je 0x1000c713
cmp byte [esp + 0x14], 7
jne 0x1000c713
push str.value_number
lea edx, [esp + 0x10]
push edx
mov ecx, 0x1006ac20
call fcn.1003b8e7
mov ecx, eax
call fcn.1003bd20
test al, al
je 0x1000c713
push str.value_number
lea eax, [esp + 0x10]
push eax
mov ecx, 0x1006ac20
call fcn.1003b8e7
mov esi, eax
call fcn.1003af06
mov ecx, dword [esp + 0x3c]
lea esi, [esp + 0xc]
mov dword [ecx], eax
mov dword [esp + 0x30], 0xffffffff
call fcn.1003ac21
mov al, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret
lea esi, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.1003ac21
xor al, al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x2c
ret

Function at 0x1000cac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
push str.Softwareprojonepodlp_smprule_
push 0x80000002
mov dword [esp + 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1000cb0a
cmp dword [esp + 4], 4
jne 0x1000cb0a
mov eax, dword [esp + 8]
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
add esp, 0xc
ret
xor eax, eax
xor ecx, ecx
test eax, eax
setne cl
mov al, cl
add esp, 0xc
ret
Function at 0x1000cb20
Capabilities:
Set registry value

Disassembly:
sub esp, 0x28
push ebx
lea eax, [esp + 0xb]
xor ebx, ebx
push eax
mov dword [esp + 0x10], ebx
push esi
mov byte [esp + 0x13], bl
call fcn.1000c560
add esp, 8
test edi, edi
je 0x1000cb44
mov eax, edi
jmp 0x1000cb65
lea ecx, [esp + 0x10]
push esi
push ecx
call fcn.10001430
add esp, 8
cmp dword [eax + 0x18], 8
mov ebx, 1
jb 0x1000cb62
mov eax, dword [eax + 4]
jmp 0x1000cb65
add eax, 4
xor edx, edx
cmp byte [esp + 0xb], dl
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
setne dl
push eax
push str.Softwareprojonepodlp_smprule_
push 0x80000002
mov dword [esp + 0x24], edx
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test bl, 1
je 0x1000cba5
cmp dword [esp + 0x28], 8
jb 0x1000cba5
mov edx, dword [esp + 0x14]
push edx
call fcn.1004a7e9
add esp, 4
pop ebx
add esp, 0x28
ret
Function at 0x1000f2b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push 0x1006b0f8
call fcn.1000cac0
add esp, 4
test al, al
je 0x1000f323
push str.PersonMode
call fcn.1000cac0
add esp, 4
test al, al
jne 0x1000f323
lea eax, [esp]
push eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push str.dlpOnline
push str.Softwareprojonepodlpdlpcore_
push 0x80000002
mov dword [esp + 0x18], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1000f311
cmp dword [esp + 4], 4
jne 0x1000f311
cmp dword [esp + 8], eax
je 0x1000f323
call fcn.10034d10
test eax, eax
je 0x1000f323
mov eax, 1
add esp, 0xc
ret
xor eax, eax
add esp, 0xc
ret
Function at 0x100171c0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x10061898
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x1007c060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
push 0xffffffffffffffff
mov word [esp + 0x14], ax
mov eax, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
call fcn.10003de0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10017216
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea ecx, [esp + 0x10]
call fcn.10014110
xor ecx, ecx
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push 0xffffffffffffffff
mov word [esi + 4], cx
push edi
mov ecx, esi
call fcn.10003de0
cmp dword [esp + 0x24], 8
jb 0x1001725f
mov edx, dword [esp + 0x10]
push edx
call fcn.1004a7e9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret

Function at 0x10018260
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100606d8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x1007c060]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov cx, word [esp + 0x14]
mov word [esi], cx
push 0xffffffffffffffff
lea ecx, [esi + 4]
push eax
lea edx, [esp + 0x20]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], eax
push edx
mov byte [ecx + 4], al
call fcn.10003c80
cmp dword [esp + 0x30], 0x10
jb 0x100182bf
mov eax, dword [esp + 0x1c]
push eax
call fcn.1004a7e9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 0x20

Function at 0x10018e50
Capabilities:
Create thread

Disassembly:
mov eax, 0x1010
call fcn.10055c00
mov eax, dword [0x1007c060]
xor eax, esp
mov dword [esp + 0x1008], eax
cmp dword [0x1007e874], 0
push esi
je 0x10018ee4
push str._EncLogThread
push 0x45
push str..enclog.cpp
push str._s._d:_s
lea eax, [esp + 0x18]
push 0x800
push eax
mov dword [0x1007e874], 0
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x18
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0x10018c60
push 0
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x10018edd
mov eax, dword [esp + 4]
lea edx, [esp + 8]
push edx
push eax
push str.thread__d_created:__s
call fcn.10023eb9
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x100c]
pop esi
xor ecx, esp
call fcn.1004a172
add esp, 0x1010
ret
Function at 0x1001b0b0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x10064741
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007c060]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov edx, 0xfffffeff
mov byte [esi + 8], bl
and dword [esi + 8], edx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp]
sub esp, 0x18
mov ecx, esp
mov byte [ecx + 8], 1
and dword [ecx + 8], edx
cdq
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], esp
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx], eax
mov dword [ecx + 4], edx
push 0x1006bedc
push esi
mov ecx, 0x1006bedf
mov dword [esp + 0x60], 2
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x58], bl
call fcn.1003aca4
mov eax, dword [ebp + 4]
sub esp, 0x18
mov ecx, esp
cdq
mov byte [ecx + 8], 1
and dword [ecx + 8], 0xfffffeff
mov dword [esp + 0x30], esp
mov dword [ecx + 0xc], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx], eax
mov dword [ecx + 4], edx
push str.mode
push esi
mov ecx, 0x1006bee4
mov dword [esp + 0x60], 3
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x58], bl
call fcn.1003aca4
add ebp, 8
lea eax, [esp + 0x1c]
push ebp
push eax
call fcn.100014b0
mov dword [esp + 0x48], 4
sub esp, 0x10
mov ebp, esp
mov byte [ebp + 8], 4
or dword [ebp + 8], 0x100
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
cmp dword [eax + 0x18], 0x10
mov edi, dword [eax + 0x14]
mov dword [esp + 0x30], esp
jb 0x1001b1d0
mov eax, dword [eax + 4]
jmp 0x1001b1d3
add eax, 4
push eax
call fcn.1003a4d4
add esp, 4
mov dword [ebp], eax
push str.proc
push esi
mov ecx, 0x1006beec
mov byte [esp + 0x60], 5
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x58], 4
call fcn.1003aca4
mov edi, 0x10
mov byte [esp + 0x40], bl
cmp dword [esp + 0x34], edi
jb 0x1001b21c
mov ecx, dword [esp + 0x20]
push ecx
call fcn.1004a7e9
add esp, 4
mov eax, dword [esp + 0x48]
sub esp, 0x18
mov ebp, esp
mov byte [ebp + 8], 4
or dword [ebp + 8], 0x100
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
mov ecx, dword [eax + 0x38]
mov dword [esp + 0x30], esp
cmp dword [eax + 0x3c], edi
jb 0x1001b24a
mov eax, dword [eax + 0x28]
jmp 0x1001b24d
add eax, 0x28
push eax
mov edi, ecx
call fcn.1003a4d4
add esp, 4
mov dword [ebp], eax
push str.hash4k
push esi
mov ecx, 0x1006bef6
mov dword [esp + 0x60], 6
call fcn.1003b8e7
mov edi, eax
mov byte [esp + 0x58], bl
call fcn.1003aca4
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8
Function at 0x1001d600
Capabilities:
Create thread

Disassembly:
cmp dword [0x1007e938], 0
je 0x1001d63d
push 0x1008044c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0x1001cc20
push 0x10000
push 0
mov dword [0x1007e938], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x100242d3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
cmp edi, esi
je 0x10024309
push dword [ebp + 0xc]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.10023eb9
add esp, 0xc
mov eax, edi
pop edi
pop esi
leave
ret 8
Function at 0x100252d5
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x1007c060]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa88], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa8c], edx
test esi, esi
je 0x100254fa
test eax, eax
jne 0x10025326
test ecx, ecx
je 0x100254fa
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x1002537c
cmp ax, 0x5c
je 0x1002537c
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.1004e1c0
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x828]
push eax
call edi
lea esi, [ebp - 0x828]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100254fa
test al, 0x10
je 0x100254fa
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x1006c7f0
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa90], eax
cmp eax, 0xffffffff
je 0x100254fa
mov dword [ebp - 0xa7c], 1
push 0x1006c7f4
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100254bf
push 0x1006c7f8
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100254bf
cmp dword [ebp - 0xa78], 0xffffffff
je 0x100254bf
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test byte [ebp - 0xa78], 0x10
je 0x1002549f
cmp dword [ebp - 0xa80], 0
je 0x10025463
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x100254dc
cmp dword [ebp + 0xc], 0
je 0x100254bf
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push dword [ebp - 0xa80]
push dword [ebp - 0xa88]
push dword [ebp - 0xa84]
push dword [ebp + 0xc]
push eax
call fcn.100252d5
push 2
pop ecx
cmp eax, ecx
jne 0x100254bf
mov dword [ebp - 0xa7c], ecx
jmp 0x100254e6
cmp dword [ebp - 0xa84], 0
je 0x100254bf
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x100254dc
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100253df
jmp 0x100254e6
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x100254fc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a172
leave
ret 0x18