joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461570
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x461613
test eax, eax
jbe 0x461613
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x461613
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4615be
xor esi, esi
jmp 0x4615c4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4615ef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00465860
add esi, eax
push esi
mov ebx, esi
call fcn.00465860
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4615d0
pop ebp
test edi, edi
pop edi
jne 0x461613
test ebx, ebx
je 0x461613
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00478b80
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x461775
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46188d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46188d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00489c4e
mov esi, eax
test esi, esi
je 0x46188d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46188d
mov ecx, esi
call fcn.00461700
cmp edi, eax
jge 0x46188d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x461813
mov dword [esp + 0x34], 1
jmp 0x46186e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46188d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00460c70
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46cef0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x497bc3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.0048e2a4
xor eax, eax
mov dword [esi + 0x10], 0x4d7884
mov dword [esp + 0x10], eax
mov dword [esi + 0x14], eax
mov ecx, 1
mov dword [esi], method.CDC.virtual_0
mov byte [esp + 0x10], cl
mov dword [esi + 0x30], ecx
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [ecx], eax
mov edx, dword [esp + 0x24]
mov dword [ecx + 4], eax
push edx
mov edx, dword [esp + 0x1c]
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
push edx
mov ecx, esi
call fcn.0046cff0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10

Function at 0x46cf80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x497beb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], method.CDC.virtual_0
mov eax, dword [esi + 0x30]
mov dword [esp + 0x14], 1
push eax
call fcn.0046dc30
lea ecx, [esi + 0x10]
mov dword [esp + 8], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x14], 2
call fcn.0048eef2
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0048e3d9
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x48a5f2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48a62a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004886a9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00488681
jmp 0x48a636
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x48bce8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48bd2a
call fcn.0049196e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48bd2a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48bd21
xor eax, eax
jmp 0x48bd32
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048bd38
pop edi
pop esi
pop ebx
ret 4
Function at 0x491e9e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x491ecc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x491eea
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00491e04
jmp 0x491eea
mov eax, dword [esi + 0x14]
test eax, eax
je 0x491eea
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00491e04
test edi, edi
mov eax, edi
jne 0x491ed4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x19bcbb8
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0xe9705c
mov esi, dword [ebp + 0xc]
cmp dl, bl
test bh, 0x1c
stc
test esi, esi
je 0xe9705c
mov eax, 0x5a4d
test di, 0xd5a7
cmp word [edx], ax
jmp 0xe97056
jne 0xe9705c
mov ecx, dword [eax + 0x78]
mov dword [ebp - 4], ecx
stc
test ecx, ecx
jmp 0xeb6815
je 0xed8cde
sub eax, eax
not si
pop esi
jmp 0x18169f0
je 0xe9705c
mov eax, dword [eax + 0x7c]
push ebx
cmp dx, 0x4b99
push edi
stc
mov dword [ebp - 0x10], eax
cmp bp, si
test esp, ebx
mov dword [ebp - 8], 0xffffffff
cmc
cmp esi, 0xffff
jmp 0x1004d6d
mov eax, dword [edx + 0x3c]
add eax, edx
clc
stc
cmp dword [eax], 0x4550
jmp 0xe5f058
ret
mov esp, ebp
mov ebp, 0x103c701a
pop ebp
jmp 0xf08fa7
sub esp, 0x114
push esi
cmp ah, 0x1c
test edx, edx
jmp 0xe3ae43
push ebp
mov ebp, esp
rcr edx, 0x31
or edx, 0x5686e101
mov edx, dword [ebp + 8]
jmp 0x18e02ed
Function at 0x4111f8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004111ac
test al, al
jne 0x411219
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x411265
xor eax, eax
push ebp
push 0x411255
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f58
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41125c
lea eax, [ebp - 0xc]
call fcn.004111e8
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4114a4
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x4114ac
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x411599
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040eb40
mov edx, dword [ebp - 8]
mov ecx, 0x4115b4
xor eax, eax
call fcn.00411388
push 0
mov eax, dword [ebp - 4]
call fcn.00404f58
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x411567
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x4114c6
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x35
call fcn.00411018
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004084dc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040f0c8
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x67
call fcn.00410fe8
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406f70]
call fcn.0040c21c
call fcn.004040b0
jmp 0x4114c6
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404ecc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4115a0
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ec4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ec4
ret

Function at 0x4115c8
Capabilities:
Shutdown system

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
mov eax, dword [0x417dbc]
cmp dword [eax], 2
jne 0x411636
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x4115f1
xor eax, eax
jmp 0x411643
lea eax, [esp + 8]
push eax
push 0x41164c
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x411636
xor eax, eax
jmp 0x411643
push esi
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
pop esi
pop ebx
ret
Function at 0x411684
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x4116de
inc esi
xor edi, edi
cmp edi, 1
jne 0x4116aa
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x4116b8
cmp edi, 1
jle 0x4116b8
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.004111f8
test eax, eax
jne 0x4116de
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x4116de
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x4116de
inc edi
dec esi
jne 0x41169a
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x4116e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41170c
mov eax, dword [ebp - 4]
jmp 0x41170f
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x411714
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x411761
xor ebx, ebx
jmp 0x411756
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.00407f9c
test eax, eax
jne 0x411755
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x41180b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x411737
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x41176d
je 0x411776
jmp 0x41177f
call fcn.0040edf8
mov esi, eax
jmp 0x411781
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x411781
xor esi, esi
test si, si
je 0x41180b
xor ebx, ebx
jmp 0x4117a7
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x4117a6
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x41180b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x41178e
xor ebx, ebx
jmp 0x411800
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov edx, esi
and dx, 0x3ff
movzx edx, dx
cmp eax, edx
jne 0x4117ff
mov eax, esi
and ax, 0x3ff
cmp ax, 4
jne 0x4117f4
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.004116e8
push eax
mov eax, esi
call fcn.004116e8
pop edx
cmp edx, eax
jne 0x4117ff
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x41180b
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x4117b6
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x414fb0
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 0x415085
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4150a0
push ebx
push 0x4150b0
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405370
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
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.00404f58
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x415030
mov al, 0x69
call fcn.00414c28
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00414f84
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x415039
call fcn.00414f84
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 0x41508c
lea eax, [ebp - 4]
call fcn.00404ebc
ret

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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415203
jmp 0x4151f7
cmp dword [esi + 0x10], 0x1000
jne 0x4151e3
test byte [esi + 0x15], 1
jne 0x4151e3
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x415194
cmp ebp, 2
je 0x415194
cmp ebp, 0x10
je 0x415194
cmp ebp, 0x20
jne 0x4151b0
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4151b0
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4151c1
mov eax, dword [esi]
add eax, ebx
call fcn.00415130
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4151b4
cmp byte [esp + 4], 0
je 0x4151e3
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
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 edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x415203
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415169
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41001210
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4100122b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41001262
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4100125e
jmp 0x41001250
cmp esi, eax
jae 0x41001262
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x41001250
cmp esi, eax
jb 0x41001269
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41001b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41146eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x411bade8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
cmp edi, esi
je 0x41001d03
lea eax, [ebp - 0x10]
push eax
push str.SoftwareThinPrintTPAutoConnect
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41001d03
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push ecx
push section..data
lea edx, [ebp - 0x18]
push edx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.DebugLevel
mov ebx, 4
push eax
mov dword [ebp - 0x14], ebx
call esi
mov byte [0x411b6003], 0
test eax, eax
jne 0x41001cf9
cmp dword [ebp - 0x18], ebx
jne 0x41001cf9
cmp dword [section..data], eax
je 0x41001cf9
lea ecx, [ebp - 0x14]
push ecx
push edi
lea edx, [ebp - 0x18]
push edx
push eax
mov eax, dword [ebp - 0x10]
push str.DebugFile
push eax
mov dword [ebp - 0x14], 0x104
call esi
test eax, eax
jne 0x41001cf3
cmp dword [ebp - 0x18], 1
jne 0x41001cf3
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x18]
push eax
push 0
push str.DebugFilePerProcess
push ecx
mov dword [ebp - 0x14], ebx
call esi
test eax, eax
jne 0x41001cd2
cmp dword [ebp - 0x18], ebx
jne 0x41001cd2
cmp dword [ebp - 0x1c], eax
je 0x41001cd2
lea ecx, [ebp + 8]
call fcn.41001530
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov eax, dword [ebp - 0x1c]
dec eax
je 0x41001c89
dec eax
je 0x41001c6d
push edi
lea edx, [ebp + 8]
push 0x41157f9c
push edx
call fcn.41001b10
add esp, 0xc
jmp 0x41001c9c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push esi
push edi
lea eax, [ebp + 8]
push str._s.Proc_0x_08lx_Thread_0x_08lx
push eax
call fcn.41001b10
add esp, 0x14
jmp 0x41001c9c
push esi
push edi
lea ecx, [ebp + 8]
push str._s.Proc_0x_08lx
push ecx
call fcn.41001b10
add esp, 0x10
mov eax, dword [ebp + 8]
mov edx, 1
sub edx, dword [eax - 4]
or edx, dword [eax - 8]
jge 0x41001cb9
push 0
lea ecx, [ebp + 8]
call fcn.41001480
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
push 0x104
push edi
call fcn.4112e1b5
add esp, 0x10
lea ecx, [ebp + 8]
call fcn.41017b50
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x10]
push ecx
jmp 0x41001cfd
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41001d20
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41146eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x411bade8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.41040000
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41001d67
push 0x80004005
call fcn.410011f0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x814], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x810]
mov dword [ebp - 4], 0
sub edx, eax
jmp 0x41001d90
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x41001d90
lea eax, [ebp - 0x810]
add eax, 0xfffffffe
jmp 0x41001db0
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x41001db0
mov ecx, dword [str._Location:]
mov edx, dword [0x41158040]
mov dword [eax], ecx
mov ecx, dword [0x41158044]
mov dword [eax + 4], edx
mov edx, dword [0x41158048]
mov dword [eax + 8], ecx
mov ecx, dword [0x4115804c]
mov dword [eax + 0xc], edx
mov edx, dword [0x41158050]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x810]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41001e00
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x810]
push 0xa
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.4112d749
add esp, 0xc
lea ecx, [ebp - 0x810]
push 0x70
mov dword [ebp - 0x818], ecx
call fcn.4103fec7
test eax, eax
je 0x41001e4e
push 0x70
push eax
lea ecx, [ebp - 0x814]
call fcn.410015a0
test eax, eax
jne 0x41001e6d
mov eax, dword [ebp - 0x814]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x41001ebe
mov edi, dword [ebp - 0x814]
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x41001ea7
mov edx, dword [ebp + 0xc]
push 0
lea ecx, [ebp - 0x818]
push ecx
push 0
push 1
push 0
push 0
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41001eca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.4112e1a6
mov esp, ebp
pop ebp
ret
Function at 0x41002164
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
sub esp, 0x2ec
mov ecx, dword [eax + 0xc]
push ebx
push ebp
push esi
add ecx, 0xc
push edi
mov ecx, dword [ecx]
xor eax, eax
mov dword [esp + 0x10], ecx
mov ebp, dword [ecx + 0x30]
cmp word [ebp], ax
je 0x41002194
inc eax
cmp word [ebp + eax*2], 0
jne 0x4100218b
xor edx, edx
xor edi, edi
test eax, eax
je 0x4100217a
nop dword [eax + eax]
movzx esi, word [ebp + edi*2]
mov ebx, esi
lea ecx, [esi - 0x41]
cmp cx, 0x19
ja 0x410021ba
lea ecx, [esi + 0x20]
movzx ebx, cx
imul edx, edx, 0x1003f
inc edi
movzx ecx, bx
add edx, ecx
cmp edi, eax
jb 0x410021a4
mov ecx, dword [esp + 0x10]
cmp edx, 0x3f723c1a
jne 0x4100217a
mov eax, ecx
mov ecx, dword [eax + 0x18]
mov edi, dword [ecx + 0x159ba8]
lea edx, [ecx + 0x159ba4]
mov esi, dword [edx]
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], esi
movd xmm0, edi
mov dword [esp + 0x10], edi
pshufd xmm1, xmm0, 0
test esi, esi
je 0x410022a6
cmp esi, 0x10
jb 0x41002290
lea eax, [edx + 4]
lea edi, [esp + 0x3c]
lea eax, [eax + esi*4]
cmp edi, eax
lea ebx, [esp + esi*4 + 0x38]
mov edi, dword [esp + 0x10]
lea ebp, [edx + 8]
ja 0x4100222e
cmp ebx, ebp
jae 0x41002290
mov ebp, esi
lea edi, [esp + 0x44]
lea esi, [esp + 0x54]
and ebp, 0xfffffff0
sub edi, edx
lea eax, [edx + 0x18]
sub esi, edx
nop
movups xmm0, xmmword [eax - 0x10]
lea eax, [eax + 0x40]
paddd xmm0, xmm1
movups xmmword [esp + ecx*4 + 0x3c], xmm0
movups xmm0, xmmword [eax - 0x40]
paddd xmm0, xmm1
movups xmmword [esp + ecx*4 + 0x4c], xmm0
add ecx, 0x10
mov ebx, ecx
movups xmm0, xmmword [eax - 0x30]
paddd xmm0, xmm1
movups xmmword [edi + eax - 0x40], xmm0
movups xmm0, xmmword [eax - 0x20]
paddd xmm0, xmm1
movups xmmword [esi + eax - 0x40], xmm0
cmp ecx, ebp
jb 0x41002244
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
cmp ebx, esi
jae 0x410022a6
lea edx, [edx + ecx*4]
add edx, 8
mov eax, dword [edx]
lea edx, [edx + 4]
add eax, edi
mov dword [esp + ecx*4 + 0x3c], eax
inc ecx
cmp ecx, esi
jb 0x41002296
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x128]
add eax, ecx
mov dword [esp + 0x3c], ecx
call eax
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret