joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009450
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x10009530
mov ecx, 0x10293e88
jmp 0x10001988
push 0xffffffffffffffff
push 0x101e86ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
push 0
lea edi, [esi + 4]
mov dword [esp + 0xc], esi
mov ecx, edi
call fcn.100324f9
mov dword [edi], 0x101f4108
add edi, 8
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea ecx, [esi + 0x38]
mov dword [esp + 0x14], 0
call fcn.100de130
lea ecx, [esi + 0x70]
mov byte [esp + 0x14], 1
call fcn.10001b81
lea ecx, [esi + 0xbc]
mov byte [esp + 0x14], 2
call fcn.10001663
mov ecx, esi
mov byte [esp + 0x14], 3
mov dword [esi], 0x101f4104
mov dword [esi + 0x30], 0
call fcn.10001519
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x34], 0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10011990
Capabilities:
Print debug messages

Disassembly:
mov eax, 0x1000
call fcn.10033d10
mov eax, dword [0x10298528]
test eax, eax
je 0x100119e0
mov ecx, dword [esp + 0x1004]
lea eax, [esp + 0x1008]
push eax
push ecx
lea edx, [esp + 8]
push 0xfff
push edx
mov byte [esp + 0x100f], 0
call fcn.10033e28
add esp, 0x10
lea eax, [esp]
mov byte [esp + 0xfff], 0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x1000
ret

Function at 0x10011a10
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x10298550]
test eax, eax
jne 0x10011b1f
push esi
push 0x10266994
mov dword [0x10298550], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x10011ab6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetupDiGetClassDevsW
push esi
call edi
push str.SetupDiDestroyDeviceInfoList
push esi
mov dword [0x1029852c], eax
call edi
push str.SetupDiEnumDeviceInterfaces
push esi
mov dword [0x10298530], eax
call edi
push str.SetupDiGetDeviceInterfaceDetailW
push esi
mov dword [0x10298534], eax
call edi
push str.CM_Query_And_Remove_SubTreeW
push esi
mov dword [0x10298538], eax
call edi
push str.CM_Request_Device_EjectW
push esi
mov dword [0x1029853c], eax
call edi
push str.CM_Get_DevNode_Status
push esi
mov dword [0x10298540], eax
call edi
push str.CM_Get_Parent
push esi
mov dword [0x10298544], eax
call edi
push str.CM_Get_DevNode_Registry_PropertyW
push esi
mov dword [0x10298548], eax
call edi
mov dword [0x1029854c], eax
pop edi
mov eax, dword [0x1029852c]
pop esi
test eax, eax
je 0x10011b1f
mov eax, dword [0x10298530]
test eax, eax
je 0x10011b1f
mov eax, dword [0x10298534]
test eax, eax
je 0x10011b1f
mov eax, dword [0x10298538]
test eax, eax
je 0x10011b1f
mov eax, dword [0x1029853c]
test eax, eax
je 0x10011b1f
mov eax, dword [0x10298540]
test eax, eax
je 0x10011b1f
mov eax, dword [0x10298544]
test eax, eax
je 0x10011b1f
mov eax, dword [0x10298548]
test eax, eax
je 0x10011b1f
mov eax, dword [0x1029854c]
test eax, eax
je 0x10011b1f
push str.DeviceCfg:_Init_ok_n
mov dword [0x10298554], 1
call fcn.10011990
add esp, 4
mov eax, dword [0x10298554]
ret
Function at 0x10011b80
Capabilities:
Get disk information via ioctl

Disassembly:
sub esp, 0x454
push ebx
push ebp
push esi
call fcn.10011a10
test eax, eax
je 0x10011beb
mov eax, dword [esp + 0x468]
xor ebx, ebx
cmp eax, 2
mov dword [esp + 0x14], ebx
jb 0x10011beb
cmp eax, 3
jbe 0x10011bb9
cmp eax, 5
jne 0x10011beb
mov esi, 0x101f4170
mov dword [esp + 0xc], esi
jmp 0x10011bc5
mov dword [esp + 0xc], 0x101f4160
mov esi, dword [esp + 0xc]
push 0x12
push ebx
push ebx
push esi
call dword [0x1029852c]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x10011bf7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceCfg:_pfnSetupDiGetClassDevsW_failed_errno_ld__n
call fcn.10011990
add esp, 8
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x454
ret
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], 0
mov edx, 0x1c
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x2c], edx
rep stosd dword es:[edi], eax
mov ecx, 6
lea edi, [esp + 0x4c]
mov dword [esp + 0x48], edx
mov dword [esp + 0x14], 0x400
rep stosd dword es:[edi], eax
lea eax, [esp + 0x2c]
push eax
push 0
push esi
push 0
push ebp
call dword [0x10298534]
test eax, eax
je 0x10011d59
lea ecx, [esp + 0x48]
lea edx, [esp + 0x14]
push ecx
push edx
lea eax, [esp + 0x6c]
push 0x400
lea ecx, [esp + 0x38]
push eax
push ecx
push ebp
inc ebx
mov dword [esp + 0x2c], 0x400
mov dword [esp + 0x7c], 6
call dword [0x10298538]
test eax, eax
je 0x10011d27
push 0
push 0
push 3
push 0
push 3
lea edx, [esp + 0x7c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10011cf5
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x24], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x28], ecx
push eax
push edx
lea ecx, [esp + 0x28]
push 0xc
push ecx
push eax
push eax
push 0x2d1080
push esi
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x10011cf5
mov edx, dword [esp + 0x468]
mov eax, dword [esp + 0x24]
cmp edx, eax
je 0x10011d51
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x2c]
push eax
push ebx
push ecx
push 0
push ebp
call dword [0x10298534]
test eax, eax
jne 0x10011c53
push ebp
call dword [0x10298530]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DeviceCfg:_pfnSetupDiGetDeviceInterfaceDetailW_failed_errno_ld__n
call fcn.10011990
add esp, 8
push ebp
call dword [0x10298530]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x18], edx
push ebp
call dword [0x10298530]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x454
ret
Function at 0x1001ac20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x1001ac80
mov ecx, 0x10298668
jmp 0x10001028
push 0xffffffffffffffff
push 0x101e9351
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.10001613
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [esp + 0x18], ebx
call fcn.100d7530
mov dword [esi + 0xe8], 0x101f43cc
mov dword [esi + 0xec], ebx
mov dword [esi + 0xf8], ebx
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf0], ebx
mov eax, 2
mov ecx, 0x16
mov byte [esp + 0x18], al
mov dword [esi + 8], eax
xor eax, eax
lea edi, [esi + 0x34]
mov dword [esi], 0x101f4344
mov dword [esi + 0xfc], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
rep stosd dword es:[edi], eax
mov ecx, 0x16
lea edi, [esi + 0x8c]
rep stosd dword es:[edi], eax
mov dword [esi + 0xe4], ebx
mov eax, dword [esi + 0xec]
cmp eax, ebx
je 0x1001ad2a
push eax
call fcn.101d1786
add esp, 4
mov dword [esi + 0xec], ebx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0xf4], ebx
mov dword [esi + 0xf0], ebx
mov dword [esi + 0xfc], ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x10023496
Capabilities:
Get disk information

Disassembly:
jmp 0x10023490
sub esp, 0x208
push esi
mov esi, ecx
call fcn.100fe6e0
test eax, eax
je 0x100234ff
mov edx, dword [esp + 0x210]
test edx, edx
je 0x100234ff
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x100234ff
cmp eax, 0x104
jae 0x100234ff
mov ecx, dword [esp + 0x214]
lea edx, [esp + 4]
push ecx
push edx
mov ecx, esi
call fcn.100011f9
pop esi
add esp, 0x208
ret 8
xor eax, eax
pop esi
add esp, 0x208
ret 8

Function at 0x100236b6
Capabilities:
Get disk information

Disassembly:
jmp 0x100236b0
sub esp, 0x208
push esi
mov esi, ecx
call fcn.100fe6e0
test eax, eax
je 0x1002371f
mov edx, dword [esp + 0x210]
test edx, edx
je 0x1002371f
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x1002371f
cmp eax, 0x104
jae 0x1002371f
mov ecx, dword [esp + 0x214]
lea edx, [esp + 4]
push ecx
push edx
mov ecx, esi
call fcn.100011fe
pop esi
add esp, 0x208
ret 8
xor eax, eax
pop esi
add esp, 0x208
ret 8
Function at 0x100238f6
Capabilities:
Get disk information

Disassembly:
jmp 0x100238f0
sub esp, 0x208
push esi
mov esi, ecx
call fcn.100fe6e0
test eax, eax
je 0x10023967
mov edx, dword [esp + 0x210]
test edx, edx
je 0x10023967
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
pop edi
jbe 0x10023967
cmp eax, 0x104
jae 0x10023967
mov ecx, dword [esp + 0x218]
mov edx, dword [esp + 0x214]
push ecx
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
call fcn.100013f7
pop esi
add esp, 0x208
ret 0xc
xor eax, eax
pop esi
add esp, 0x208
ret 0xc

Function at 0x1002c790
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov al, byte [esi + 4]
test al, al
je 0x1002c877
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esi + 0x30]
call ebp
mov dword [esp + 0x14], eax
mov al, byte [esi + 1]
lea ebx, [esi + 0x34]
push 1
push edi
push ebx
push eax
call fcn.100012d5
add esp, 0x10
test eax, eax
je 0x1002c7d3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
call ebp
mov ebp, eax
mov eax, dword [0x1077f6f0]
test eax, eax
je 0x1002c803
mov edx, dword [esp + 0x14]
mov ecx, ebp
sub ecx, edx
push ecx
push edi
push str._FATFS___Test__sync_window__wsect__d__disk_write:__d__r_n
push str.diskio
push 0xffffffffffffffff
push 0x1077ee5c
call fcn.1005bc20
add esp, 0x18
mov eax, dword [esp + 0x14]
mov edx, dword [0x106adee0]
sub ebp, eax
add edx, ebp
mov dword [0x106adee0], edx
call fcn.10001258
test eax, eax
je 0x1002c840
mov dl, byte [esi + 1]
push ebx
push edi
push edx
call fcn.10001672
add esp, 0xc
test eax, eax
jne 0x1002c840
mov al, byte [esi + 1]
push ebx
push edi
push eax
call fcn.10001cb7
add esp, 0xc
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x1c]
mov ecx, edi
mov byte [esi + 4], 0
sub ecx, edx
cmp ecx, eax
jae 0x1002c877
xor eax, eax
mov al, byte [esi + 3]
cmp eax, 2
jb 0x1002c877
lea ebp, [eax - 1]
mov ecx, dword [esi + 0x1c]
mov dl, byte [esi + 1]
add edi, ecx
push 1
push edi
push ebx
push edx
call fcn.100012d5
add esp, 0x10
dec ebp
jne 0x1002c85f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x1002d520
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
lea eax, [esp]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
push 0xc
mov ebp, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
push ebp
push eax
call fcn.1002d750
mov al, byte [esp + 0x27]
add esp, 0xc
test al, 0x20
je 0x1002d556
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
add esp, 0xc
ret
test al, 1
je 0x1002d5b3
mov byte [ebp + 0xb], 0
mov dword [esi + 0x1c], 0
mov edi, 1
push edi
lea ecx, [esp + 0x14]
push ebx
push ecx
push ebp
call fcn.1002de20
push esi
call fcn.1002df60
add esp, 0x14
test eax, eax
jne 0x1002d58a
inc edi
cmp edi, 0x64
jb 0x1002d56a
cmp edi, 0x64
jne 0x1002d59c
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0xc
ret
cmp eax, 4
jne 0x1002d6ce
mov dl, byte [esp + 0x1b]
mov byte [ebp + 0xb], dl
mov al, byte [esp + 0x1b]
mov dword [esi + 0x1c], ebx
test al, 2
je 0x1002d5db
xor ecx, ecx
cmp word [ebx], cx
je 0x1002d5ca
mov eax, ebx
add eax, 2
inc ecx
cmp word [eax], 0
jne 0x1002d5c0
add ecx, 0x19
mov eax, 0x4ec4ec4f
mul ecx
mov ebp, edx
shr ebp, 2
jmp 0x1002d5e0
mov ebp, 1
push ebp
push esi
call fcn.1002dcc0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002d6cc
dec ebp
je 0x1002d685
mov ax, word [esi + 6]
sub eax, ebp
push eax
push esi
call fcn.1002d7f0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002d6cc
mov ecx, dword [esi + 0x18]
push ecx
call fcn.1002df30
mov edx, dword [esi + 0x10]
mov byte [esp + 0x24], al
mov eax, dword [esi]
push edx
push eax
call fcn.1002c6b0
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x1002d6cc
mov ebx, dword [esp + 0x20]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x1c]
push ebx
push ebp
push ecx
push edx
call fcn.1002dd60
mov eax, dword [esi]
push 0
push esi
mov byte [eax + 4], 1
call fcn.1002d920
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x1002d6cc
dec ebp
je 0x1002d685
mov ecx, dword [esi + 0x10]
mov edx, dword [esi]
push ecx
push edx
call fcn.1002c6b0
mov edi, eax
add esp, 8
test edi, edi
je 0x1002d63f
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [esi]
push eax
push ecx
call fcn.1002c6b0
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002d6cc
mov edx, dword [esi + 0x14]
push 0x20
push eax
push edx
call fcn.1002d7a0
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
push 0xb
push eax
push ecx
call fcn.1002d750
mov edx, dword [esi + 0x18]
mov ecx, dword [esi + 0x14]
add esp, 0x18
mov al, byte [edx + 0xb]
and al, 0x18
mov byte [ecx + 0xc], al
mov edx, dword [esi]
mov byte [edx + 4], 1
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x1004a450
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x1004a4a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1004a4a9
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x1004a4b0
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x1004a48d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x1004a4ab
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x1004ff80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x1004ffd0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x1004ffd0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x1004ffd5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1004ffbb
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x1004ffe2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x1005abc0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1005ac10
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x1005ade0
push 0
push 0
call fcn.10035454
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x1005ac10
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x1005abff
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1005ac60
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1005ac74
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 8]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1005acc1
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x1005cd30
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x20c
push ebx
push esi
mov edx, ecx
push edi
xor ebx, ebx
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bx
add edx, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
lea ecx, [esp + 0x18]
push eax
push edx
push 0x1026e6e8
push ecx
call fcn.10034430
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x18]
xor esi, esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1005ce0a
mov edi, dword [esp + 0x220]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ecx
lea edx, [esp + 0x1c]
push ebx
push edx
push ebx
push edi
push eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
call ebp
mov eax, dword [esp + 0x14]
cmp eax, 2
jb 0x1005cdf0
add eax, 2
mov dword [esp + 0x14], eax
shr eax, 1
lea ecx, [eax + eax]
push ecx
call fcn.101d175d
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x1005cdf0
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push ebx
push edi
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x20c
ret 8
Function at 0x1005ce20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push esi
mov edx, ecx
push edi
xor esi, esi
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x21c]
add edx, 4
push eax
push edx
lea ecx, [esp + 0x20]
push 0x1026e6e8
push ecx
call fcn.10034430
add esp, 0x10
lea edx, [esp + 8]
lea eax, [esp + 0x18]
mov dword [esp + 0xc], esi
push edx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x14], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1005ceb9
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push esi
push ecx
push edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0xc]
pop edi
pop esi
add esp, 0x210
ret 8

Function at 0x1005d0e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
lea eax, [esp]
push esi
push eax
xor esi, esi
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1005d17a
mov ecx, dword [esp + 4]
push ebx
lea edx, [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
push eax
lea eax, [esp + 0x18]
push eax
push esi
push edi
push ecx
call ebx
mov eax, dword [esp + 0x18]
cmp eax, 2
jb 0x1005d164
add eax, 2
mov dword [esp + 0x18], eax
shr eax, 1
lea edx, [eax + eax]
push edx
call fcn.101d175d
mov esi, eax
add esp, 4
test esi, esi
je 0x1005d164
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push esi
push ecx
push 0
push edi
push edx
call ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop ebx
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x1005d310
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x101eb24b
push eax
mov dword fs:[0], esp
sub esp, 0x65c
mov ecx, 0x1077f6f8
push ebx
push ebp
push esi
push edi
push str.PATH
push 0x1077f6fc
call fcn.1005d0e0
mov ebp, eax
xor ebx, ebx
cmp ebp, ebx
je 0x1005d361
push ebp
call fcn.10033dce
add esp, 4
test eax, eax
jne 0x1005d3a4
push ebp
call fcn.101d1786
add esp, 4
push 0x1026e72c
call fcn.10033dce
inc eax
lea esi, [eax + eax]
push esi
call fcn.101d175d
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x1005d4e8
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0x1026e72c
and ecx, 3
push ebp
rep stosb byte es:[edi], al
call fcn.10033da9
add esp, 8
mov ecx, 0x7f
xor eax, eax
lea edi, [esp + 0x266]
mov word [esp + 0x264], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x264]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x67c]
lea ecx, [esp + 0x264]
push eax
push str.oadbg_
push str._s_s_
push ecx
call fcn.10034430
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x476]
mov word [esp + 0x474], bx
rep stosd dword es:[edi], eax
add esp, 0x10
lea edx, [esp + 0x264]
stosw word es:[edi], ax
push edx
push ebp
lea eax, [esp + 0x46c]
push str._s_s
push eax
call fcn.10034430
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x28]
mov dword [esp + 0x24], ebx
rep stosd dword es:[edi], eax
add esp, 0x10
lea ecx, [esp + 0x14]
lea edx, [esp + 0x464]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1005d4df
mov esi, dword [esp + 0x680]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [esp + 0x40]
push 0x1026e6f8
push eax
call edi
test eax, eax
je 0x1005d4c8
lea ecx, [esp + 0x40]
push 0x1026e6f4
push ecx
call edi
test eax, eax
je 0x1005d4c8
test byte [esp + 0x14], 0x10
jne 0x1005d4c8
lea edx, [esp + 0x40]
lea ecx, [esp + 0x10]
push edx
call fcn.101d2bcc
mov eax, dword [esi + 8]
lea ecx, [esp + 0x10]
push ecx
push eax
mov ecx, esi
mov dword [esp + 0x67c], 0
call fcn.101ce836
lea ecx, [esp + 0x10]
mov dword [esp + 0x674], 0xffffffff
call fcn.101d2b0c
lea edx, [esp + 0x14]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1005d464
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.101d1786
add esp, 4
mov ecx, dword [esp + 0x66c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x668
ret 8