joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003c3a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [esp + 0x18]
push 0xffffffffffffffff
push 0
call fcn.10032a40
test esi, esi
je 0x1003c482
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push 0
push ecx
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1003c482
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x1003c3f9
cmp eax, 2
je 0x1003c3f9
cmp eax, 6
je 0x1003c3f9
cmp eax, 7
jne 0x1003c482
mov edx, dword [esp + 0x14]
push edi
add edx, 2
push edx
call fcn.10062117
mov ebx, eax
mov eax, dword [esp + 0x1c]
mov edi, ebx
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
push ebx
push 0
push 0
push ebp
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
pop edi
jne 0x1003c479
cmp word [ebx], ax
mov esi, ebx
je 0x1003c464
mov ecx, dword [esp + 0x18]
push esi
mov edx, dword [ecx + 4]
push edx
call fcn.10032ef0
push esi
call fcn.10062422
lea esi, [esi + eax*2 + 2]
add esp, 4
cmp word [esi], 0
jne 0x1003c443
push ebx
call fcn.100620d6
add esp, 4
mov eax, 1
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call fcn.100620d6
add esp, 4
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x1003caf0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [ecx]
test esi, esi
je 0x1003cb29
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.10062422
mov ecx, dword [esp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop edi
jne 0x1003cb29
mov eax, 1
pop esi
ret 8
xor eax, eax
pop esi
ret 8

Function at 0x1003cb60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10120a68
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x1003cbb6
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1003cbb9
mov esi, dword [ebp + 8]
test esi, esi
je 0x1003ccac
call fcn.10075200
test eax, eax
je 0x1003cc09
mov edi, dword [ebp + 0x18]
push edi
call fcn.10062422
mov ecx, dword [ebp + 0x10]
add esp, 4
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1003cca0
cmp esi, dword [ebp + 8]
je 0x1003cbff
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x1003ccae
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x1003cc48
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.100631c0
mov edi, esp
test edi, edi
je 0x1003cc48
mov edx, dword [ebp + 0x10]
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x1003cc4a
xor edi, edi
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push eax
call fcn.100275d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1003cc91
cmp esi, dword [ebp + 8]
je 0x1003cc7b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.10027d30
mov eax, 1
jmp 0x1003ccae
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.10027d30
cmp esi, dword [ebp + 8]
je 0x1003ccac
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003cdc0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x1003ce03
lea ecx, [esp + 0x10]
lea edx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0xc]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ecx, dword [esp + 8]
neg eax
sbb eax, eax
not eax
and eax, ecx
mov dword [esp + 8], eax
jmp 0x1003ce0b
mov eax, dword [esp + 4]
mov dword [esp + 8], eax
push ebp
push esi
test eax, eax
push edi
je 0x1003cf1b
mov esi, dword [esp + 0x20]
xor edi, edi
mov ebp, 2
mov eax, dword [esi + 4]
test eax, eax
jle 0x1003ce4f
lea ecx, [esp + 0x1c]
push edi
push ecx
mov ecx, esi
call fcn.1003cf30
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
mov eax, dword [edx - 8]
lea ebp, [ebp + eax*2 + 2]
call fcn.1002d0b0
mov eax, dword [esi + 4]
inc edi
cmp edi, eax
jl 0x1003ce28
push ebp
call fcn.10062117
mov edx, eax
add esp, 4
test edx, edx
mov dword [esp + 0x1c], edx
je 0x1003cf1b
mov ecx, ebp
push ebx
mov ebx, ecx
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebx
xor ebx, ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 4]
mov edi, edx
test eax, eax
jle 0x1003cec1
lea ecx, [esp + 0x24]
push ebx
push ecx
mov ecx, esi
call fcn.1003cf30
mov edx, dword [eax]
push edx
push edi
call fcn.100624a9
add esp, 8
lea ecx, [esp + 0x24]
call fcn.1002d0b0
push edi
call fcn.10062422
add esp, 4
lea edi, [edi + eax*2 + 2]
mov eax, dword [esi + 4]
inc ebx
cmp ebx, eax
jl 0x1003ce86
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push ebp
push edx
push 7
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop ebx
jne 0x1003ceff
cmp esi, dword [esp + 0x10]
je 0x1003cee9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.100620d6
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
ret
mov edx, dword [esp + 0x1c]
push edx
call fcn.100620d6
mov eax, dword [esp + 0x14]
add esp, 4
cmp esi, eax
je 0x1003cf1b
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
ret
Function at 0x1003d9a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1003db1d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1003dafc
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x1003d9f6
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.10062117
mov esi, eax
add esp, 4
test esi, esi
je 0x1003db1d
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1003db14
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003db14
mov edi, dword [esp + 0x20]
test edi, edi
je 0x1003db14
push ebp
push edi
call fcn.1003d9a0
add esp, 8
test eax, eax
je 0x1003db09
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1016e2f8]
test eax, eax
je 0x1003daa5
test ebp, ebp
je 0x1003daa5
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x1003db14
jmp 0x1003dab1
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1003db14
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x1003daf3
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1003db14
mov eax, dword [esp + 0x14]
jmp 0x1003da4e
push esi
call fcn.100620d6
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x1003db14
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.100620d6
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x1003db30
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x1003db99
mov eax, dword [esp + 0xc]
test eax, eax
je 0x1003db59
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1003db99
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.1003d9a0
add esp, 8
test eax, eax
je 0x1003db99
mov eax, dword [0x1016e2f8]
test eax, eax
je 0x1003db86
test edi, edi
je 0x1003db86
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x1003dd10
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x1003dd46
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x1003dd48
mov esi, dword [ebx]
test esi, esi
je 0x1003ddd3
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne case.0x1003dd78.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x1003dd78.2
jmp dword [eax*4 + 0x1003dddc]
mov edi, 1
jmp case.0x1003dd78.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x1003dd78.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x1003dd78.0
cmp eax, 2
je case.0x1003dd78.0
cmp eax, 6
je case.0x1003dd78.0
cmp eax, 7
je case.0x1003dd78.0
xor edi, edi
jmp case.0x1003dd78.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x1003ddcb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x1003dfc0
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1003e055
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x1003e00f
call fcn.10075290
test eax, eax
je 0x1003e00f
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1003dffc
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x1003dffc
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x1003e008
add edi, ebx
mov ebx, 0x10004
jmp 0x1003e011
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x1003e210
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x1003e055
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x1003e044
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x1003e080
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x1003e094
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 + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1003e0e0
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1012114e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call fcn.10046610
mov eax, dword [0x101267d0]
xor edi, edi
mov dword [esp + 0x1c], edi
mov dword [ebx + 0x2c], eax
mov ecx, dword [0x101267d0]
lea ebp, [ebx + 0x30]
mov dword [ebp], ecx
mov byte [esp + 0x1c], 2
mov dword [ebx], 0x1012694c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1016e7bc
mov dword [ebx + 0xc], eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, dword [esp + 0x24]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edi
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x20], edi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x34], edi
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], edi
mov edx, dword [esi + 0x14]
mov dword [ebx + 0x14], edx
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ecx, dword [esi + 0x1c]
mov dword [ebx + 0x1c], ecx
mov edx, dword [esi + 0x20]
mov dword [ebx + 0x20], edx
mov eax, dword [esi + 0x24]
mov dword [ebx + 0x24], eax
mov ecx, dword [esi + 0x28]
lea edx, [esi + 0x30]
mov dword [ebx + 0x28], ecx
push edx
mov ecx, ebp
call fcn.10027eb0
mov eax, dword [ebx + 0x38]
mov ebp, dword [esi + 0x34]
mov esi, dword [esi + 0x38]
cmp eax, edi
je 0x10043d10
push eax
call fcn.100620d6
add esp, 4
mov dword [ebx + 0x38], edi
mov dword [ebx + 0x34], edi
cmp esi, edi
je 0x10043d3d
cmp ebp, edi
jbe 0x10043d3d
push ebp
call fcn.10062117
add esp, 4
cmp eax, edi
mov dword [ebx + 0x38], eax
je 0x10043d3d
mov ecx, ebp
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x34], ebp
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x10043d60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1012117e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi], 0x1012694c
mov eax, dword [esi + 0x38]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 2
je 0x10043da4
push eax
call fcn.100620d6
add esp, 4
mov dword [esi + 0x38], ebx
mov dword [esi + 0x34], ebx
lea ecx, [esi + 0x30]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esp + 0x14], 1
call fcn.10027d30
lea ecx, [esi + 0x2c]
mov byte [esp + 0x14], bl
call fcn.10027d30
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.10046640
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x1012120e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.1003ddf0
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [esp + 0x14], edi
call fcn.100470b0
push 0xa
lea ecx, [esi + 0x68]
mov byte [esp + 0x18], 1
call fcn.10114b50
lea ecx, [esi + 0x80]
mov byte [esp + 0x14], 2
call fcn.1003ae20
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov word [esi + 0x2c], di
mov dword [esi + 0x30], edi
mov dword [esi + 0xa0], edi
mov dword [esi], 0x1012695c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x10044a90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101212c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, ecx
push 1
lea ecx, [esp + 0x18]
lea eax, [edi + 0x80]
push eax
call fcn.1003b350
mov eax, dword [esp + 0x30]
xor ebp, ebp
cmp eax, ebp
mov eax, dword [edi + 0x70]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
je 0x10044b89
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x10044b10
lea esi, [edi + 0x68]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.10114f10
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
cmp dword [esp + 0x30], ebp
jne 0x10044aeb
mov eax, dword [edi + 0x70]
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x10044b7f
push ebx
lea ebx, [edi + 0x68]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x38]
push ecx
push edx
mov ecx, ebx
call fcn.10114f10
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x30]
cmp ecx, ebp
je 0x10044b49
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, esi
mov dword [esi + 0x2c], ebp
call fcn.1003e080
mov ecx, dword [esp + 0x10]
call fcn.1003e140
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
je 0x10044b6a
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esp + 0x14]
cmp ecx, ebp
je 0x10044b78
mov eax, dword [ecx]
push 1
call dword [eax]
cmp dword [esp + 0x34], ebp
jne 0x10044b23
pop ebx
lea ecx, [edi + 0x68]
call fcn.10114be0
jmp 0x10044c01
neg eax
sbb eax, eax
cmp eax, ebp
mov dword [esp + 0x30], eax
je 0x10044c01
lea esi, [edi + 0x68]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.10114f10
mov ecx, dword [esp + 0xc]
call fcn.1003e1c0
test eax, eax
jne 0x10044bfb
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 0x28], ebp
jne 0x10044bfb
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
call dword [edx + 0x14]
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x10044be1
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
cmp ecx, ebp
je 0x10044bf3
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [esp + 0x10]
push eax
mov ecx, esi
call fcn.10114e80
cmp dword [esp + 0x30], ebp
jne 0x10044b98
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.1003b3b0
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x100475c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101215af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x38]
push esi
mov dword [esp + 4], 0
cmp word [eax], 0x4d4f
je 0x1004760d
mov esi, dword [esp + 0x38]
push 0
push 0
mov ecx, esi
call fcn.100409f0
mov eax, esi
pop esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
add esp, 0x30
ret
push ebp
push edi
mov ebp, dword [esp + 0x48]
mov ecx, 8
mov esi, eax
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1c]
xor esi, esi
xor edi, edi
test ecx, ecx
jbe 0x10047641
and word [esp + 0x12], 0xefff
test byte [eax + 3], 0x10
je 0x1004763d
or byte [esp + 0x13], 0x20
mov esi, ebp
mov edi, ecx
lea ecx, [esp + 0x44]
mov dword [esp + 0x2c], edi
call fcn.100409e0
lea eax, [esp + 0x10]
push 0x20
push eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x40], 1
call fcn.10040f40
push edi
push esi
lea ecx, [esp + 0x4c]
call fcn.10040f40
test esi, esi
je 0x10047682
cmp esi, ebp
je 0x10047682
push esi
call fcn.100620d6
add esp, 4
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call fcn.10040b00
lea ecx, [esp + 0x44]
mov dword [esp + 0xc], 1
mov byte [esp + 0x38], 0
call fcn.10040b40
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop ebp
pop esi
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x10049460
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov ebp, dword [esi + 4]
cmp ebp, ebx
je 0x100495eb
cmp dword [esi + 8], ebx
je 0x100495eb
cmp dword [esi + 0x10], ebx
je 0x100494f2
lea eax, [esp + 0x14]
lea edi, [esi + 0x1c]
push ebx
push eax
push edi
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp eax, ebx
jne 0x100494d7
mov ecx, dword [esi + 0x2c]
push 0x7530
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x100494c6
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
mov eax, dword [esi + 4]
lea edx, [esp + 0x14]
push ebx
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov dword [edi], ecx
cmp eax, ebx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
je 0x100495eb
mov eax, dword [esi + 8]
xor edx, edx
mov dword [esp + 0x20], edx
push eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 8]
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
push edx
push ebp
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
cmp edi, ebx
je 0x1004955c
cmp dword [esp + 0x10], ebx
je 0x1004955c
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, ebx
jne 0x10049578
cmp eax, ebx
je 0x10049578
cmp eax, 0x3e5
je 0x10049578
cmp eax, 0x217
jne 0x100495eb
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x2c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, eax
cmp edi, ebx
je 0x100495b0
push ebp
call dword [sym.imp.KERNEL32.dll_CancelIo]
cmp edi, 0x102
jne 0x100495eb
mov dword [esi + 0x14], 0xf0000003
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc
lea eax, [esp + 0x18]
push ebx
lea ecx, [esp + 0x20]
push eax
push ecx
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov edx, dword [esi + 8]
mov edi, eax
push edx
mov dword [esi + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esp + 0x18]
mov eax, edi
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
and eax, ecx
pop ebx
add esp, 0x20
ret 0xc
mov dword [esi + 0x14], 0xf0000001
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x20
ret 0xc