joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467290
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5178cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00461eb0
mov ecx, dword [esi + 0x7e8]
test ecx, ecx
je 0x467321
lea eax, [ebp - 0x14]
push eax
call fcn.00466690
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4672f7
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.0046fbe0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.0046fbe0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0xc

Function at 0x467340
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5178cc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x18], 0
je 0x4673cb
cmp dword [esi + 0x10], 0
je 0x4673cb
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.004a99d0
mov ebx, esp
test ebx, ebx
je 0x4673cb
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x10]
push ebx
add ecx, 0x1e4
call fcn.00451370
mov ecx, dword [esi + 0x10]
push 1
push 0
push 0
mov eax, dword [ecx]
push 0
push str.textchanged
push ecx
call dword [eax + 0x24]
mov ecx, eax
call fcn.00459d30
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx]
call dword [eax + 0x24]
mov ecx, eax
call fcn.00456020
test al, al
je 0x4673cb
mov ecx, dword [esi + 0x10]
call fcn.00461d80
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0x10
Function at 0x467e50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5178cc]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.00464300
mov ecx, dword [esi + 0x7e8]
test ecx, ecx
je 0x467ee9
lea eax, [ebp - 0x14]
push eax
call fcn.00466690
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x467ebf
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.0046fbe0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x7e8]
push 0
call fcn.0046fbe0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0x14
Function at 0x479ab0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x79c], 0
je 0x479b1f
cmp dword [ebp + 8], 0x100
jne 0x479b0f
cmp word [ebp + 0xc], 0xd
jne 0x479b0f
cmp byte [esi + 0x7a2], 0
je 0x479aee
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x479b0f
cmp byte [esi + 0x7a3], 0
jne 0x479b0f
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x479b08
push 1
push 0
push 0
push 0
push str.return
push esi
call fcn.00459d30
xor eax, eax
pop esi
pop ebp
ret 0x10
mov eax, dword [esi + 0x79c]
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
mov eax, 1
pop esi
pop ebp
ret 0x10
Function at 0x48b830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x48b857
cmp eax, edi
jge 0x48b84f
push esi
call fcn.004876a0
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x48b880
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x48b863
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x48b89c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x48b88d
xor dl, dl
jmp 0x48b892
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x48b883
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x48b8d1
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.004875b0
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x48b8e9
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.004875b0
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x48b907
push edi
push ecx
push esi
call fcn.0048eab0
add esp, 0xc
test eax, eax
jne 0x48b907
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004a4dc0
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0x497350
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7ffb
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5178cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [eax + 0x7f8], 0
cmp dword [edi + 4], 0
jne 0x4973fd
lea eax, [ebp - 0xa4]
push eax
call fcn.00496e80
mov ecx, dword [edi + 0x10]
movdqu xmm0, xmmword [ebp - 0xa4]
push 0
sub esp, 0x10
mov eax, esp
push 0
movdqu xmmword [eax], xmm0
mov eax, dword [ecx]
push 0x40000000
push 0
call dword [eax + 0x24]
mov ecx, eax
call fcn.00455860
push eax
mov ecx, edi
call fcn.00452430
mov esi, dword [edi + 0x10]
mov ecx, esi
call fcn.0045f4e0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
mov ecx, eax
call fcn.004552e0
push 1
push dword [eax]
push 0x30
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 0x10]
lea edx, [ebp - 0x94]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00451c00
lea ecx, [ebp - 0x94]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.004512d0
test bl, bl
je 0x497441
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [edi + 0x10]
add eax, 0x7e8
push eax
push 0
push 0x1002
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
push 4
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [edi + 0x18], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049b793
mov esp, ebp
pop ebp
ret 4

Function at 0x497490
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5178cc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00461eb0
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x497521
lea eax, [ebp - 0x14]
push eax
call fcn.00496e80
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4974f7
mov ecx, dword [esi + 0x800]
push 0
call fcn.0046fbe0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.0046fbe0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0xc
Function at 0x497630
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5178cc]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.00464300
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4976c9
lea eax, [ebp - 0x14]
push eax
call fcn.00496e80
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x49769f
mov ecx, dword [esi + 0x800]
push 0
call fcn.0046fbe0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.0046fbe0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0049b793
mov esp, ebp
pop ebp
ret 0x14

Function at 0x49b170
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.00455880
mov edi, eax
add esp, 8
test edi, edi
jne 0x49b214
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x49b209
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x49b209
push eax
mov dword [ebp + 8], edi
call fcn.0044fbe9
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x49b205
push edi
call fcn.0049d3c3
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x49b217
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.0049b240
push edi
mov esi, eax
call fcn.0049d3c3
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a1eb6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x4c22ec
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5178cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004a75b3
mov dword [ebp - 0x14], eax
cmp dword [0x520648], esi
jne 0x4c23df
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4c236c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4c24bf
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4c24bf
push 0x4eeadc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c24bf
push eax
call ebx
push 0x4eeae8
push edi
mov dword [0x520648], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x52064c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x520650], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x520658], eax
test eax, eax
je 0x4c23dc
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x520654], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c2404
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4c23f7
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4c2419
push 4
pop eax
jmp 0x4c24c1
cmp dword [ebp - 0x14], esi
je 0x4c2419
push dword [0x520648]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4c23fe
mov eax, dword [0x520654]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4c2477
cmp dword [0x520658], edi
je 0x4c2477
push eax
call ebx
push dword [0x520658]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4c2477
test eax, eax
je 0x4c2477
call ecx
test eax, eax
je 0x4c246c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4c246c
test byte [ebp - 8], 1
jne 0x4c2477
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4c24a7
mov eax, dword [0x52064c]
cmp eax, edi
je 0x4c24a4
push eax
call ebx
test eax, eax
je 0x4c24a4
call eax
mov esi, eax
test esi, esi
je 0x4c24a4
mov eax, dword [0x520650]
cmp eax, edi
je 0x4c24a4
push eax
call ebx
test eax, eax
je 0x4c24a4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x520648]
call ebx
test eax, eax
je 0x4c24bf
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4c24c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049b793
mov esp, ebp
pop ebp
ret
Function at 0x1000a6a4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10011dac], 0
push esi
push edi
jne 0x1000a61a
call fcn.1000a586
test eax, eax
je 0x1000a65f
mov eax, dword [0x10011dac]
cmp eax, 1
jne 0x1000a63b
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1000a65f
jmp 0x1000a6a1
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000a6a1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000a663
xor eax, eax
jmp 0x1000a6a1
mov eax, dword [esi]
push dword [0x10011dac]
call edi
mov edi, eax
test edi, edi
je 0x1000a685
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1000a6a1
lea edi, [esi + 0xff0]
push esi
push dword [0x10011dac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000a68b
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000a606

Function at 0x1000a812
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011c4c]
jne 0x1000a81c
repz ret
jmp fcn.1000b021

Function at 0x1000acde
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x1000aced
pop dword [ebp - 0x24]
mov eax, 0x48089272
sub eax, 0x3807e585
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x36723
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x44ff
xor esi, esi
add esi, eax
mov edx, 0x1001c600
add edx, dword [ebp - 0x24]
mov edi, 0xefcb950b
sub edi, 0x149184df
sub dword [ebp - 0x14], eax
mov ebx, dword [edx]
xor dword [ebp - 0x20], 0x107a83e
add ebx, edi
sub dword [ebp - 8], 0xbdf98661
mov dword [esi], ebx
add esi, 0x61bf021d
add esi, 0x9e40fde7
add edx, 0x40d1de44
add edx, 0xbf2e21c0
loop 0x1000ad3d
add eax, 0x106cf
mov ebx, eax
add eax, 0x519947f5
add eax, 0xae66b810
mov ecx, 0x10000000
add ecx, dword [ebp - 0x24]
call ebx
leave
ret
Function at 0x401710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 4]
push eax
push 4
push ecx
push edx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401759
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_X_in_WriteFile
push 0x4569dc
mov ecx, 0x447290
call fcn.00404ce0
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x401760
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401784
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
je 0x401779
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1d], 0
mov byte [esi + 0x1c], 0
mov esp, ebp
pop ebp
ret

Function at 0x401790
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 4]
push ecx
push edx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4017d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_0x_X_in_ReadFile
push 0x4569dc
mov ecx, 0x447290
call fcn.00404ce0
add esp, 0xc
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4017df
mov eax, dword [ebp - 4]
test eax, eax
jne 0x401803
mov ecx, dword [esi + 4]
cmp ecx, 0xffffffff
je 0x4017f8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0x1d], 0
mov byte [esi + 0x1c], 0
mov esp, ebp
pop ebp
ret
Function at 0x402fb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4417c8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4553d4]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4553d4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
lea edi, [ecx + 4]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], ax
push 0x2e
lea edx, [esp + 0x46]
mov dword [esp + 0x84], ebx
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x24], ebx
mov word [esp + 0x4c], cx
call fcn.00435c00
sub esp, 0x10
mov esi, esp
mov dword [esp + 0x38], 0x30
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [esp + 0x3c], esp
mov word [esi], ax
push 7
mov eax, str.5.1_5.2
call fcn.00404910
call fcn.004031d0
cmp al, bl
je 0x403085
push str.XP_detected__aborting_KMDF_detect.
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
cmp dword [esp + 0x38], 8
jb 0x40307e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042c691
add esp, 4
mov al, 1
jmp 0x4031a6
mov eax, str.IIF_NODRV
call fcn.00414a10
push str.Preparing_to_check_for_Kernal_Mode_Driver_Framework_1.11_or_higher
push 0x4569dc
mov ecx, 0x44742c
mov byte [esp + 0x1f], al
call fcn.00404ce0
add esp, 8
cmp byte [esp + 0x17], bl
je 0x4030e2
push str.No_Driver_mode_detected__skipping_check.
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
cmp dword [esp + 0x38], 8
jb 0x40307e
mov edx, dword [esp + 0x24]
push edx
call fcn.0042c691
add esp, 4
mov al, 1
jmp 0x4031a6
push 0x2b
mov eax, str.SYSTEMCurrentControlSetControlWdfKmdf1
lea esi, [esp + 0x28]
call fcn.00404910
mov eax, dword [esp + 0x24]
mov esi, 8
cmp dword [esp + 0x38], esi
jae 0x403105
lea eax, [esp + 0x24]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40317a
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
push eax
push ebx
push ebx
push str.Version
push ecx
mov dword [esp + 0x34], 0x30
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x40]
push eax
call fcn.0042d0f8
fstp dword [esp + 0x24]
fld dword [esp + 0x24]
add esp, 4
fcomp qword [0x44d8c8]
fnstsw ax
test ah, 1
jne 0x40317a
mov bl, 1
push str.KMDF_1.11_or_higher_detected_
jmp 0x40317f
push str.KMDF_1.11_or_higher_not_detected_.
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
add esp, 8
cmp dword [esp + 0x38], esi
jb 0x4031a4
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042c691
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0042c682
mov esp, ebp
pop ebp
ret
Function at 0x404a40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push str.SoftwareIntelSetup_
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404a9f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push ebx
push ebx
push eax
push ecx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], 1
pop ebx
sete al
mov esp, ebp
pop ebp
ret
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404ab0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4553d4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov ecx, eax
push esi
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x404ad0
sub ecx, esi
sar ecx, 1
push ecx
mov esi, 0x4569dc
call fcn.00404910
cmp dword [0x4569f0], 8
mov eax, dword [0x4569dc]
jae 0x404afa
mov eax, esi
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.0042d2d5
add esp, 0xc
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 0
lea edx, [ebp - 0x214]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push 0x448704
push 0x4569dc
mov ecx, 0x44742c
call fcn.00404ce0
mov ecx, dword [ebp - 8]
add esp, 8
xor ecx, ebp
pop esi
call fcn.0042c682
mov esp, ebp
pop ebp
ret 4