joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4469e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x46fb2c], 0
je 0x446b37
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x46e9b8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x446b37
mov eax, dword [0x46fb30]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46fb2c]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x446b06
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46fb2c]
call fcn.0041412c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x446afe
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x446afe
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x446afe
mov eax, dword [ebp - 0x14]
call fcn.0044f6a8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x446afe
push ebp
call fcn.004469a4
pop ecx
test al, al
jne 0x446afe
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x446aba
mov eax, dword [ebp - 0x14]
call fcn.0044e1d8
dec eax
jle 0x446afe
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.00403720
cmp byte [ebp - 1], 0
je 0x446afe
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x446afe
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46fb30]
call fcn.00446170
inc edi
dec ebx
jne 0x446a4d
mov eax, dword [0x46fb30]
cmp dword [eax + 8], 0
jle 0x446b1e
mov eax, dword [0x46fb30]
call fcn.00446200
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x446b37
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0044680c
pop ecx
test al, al
jne 0x446b37
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44a12c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x44a178
mov eax, esi
call fcn.00431bb8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44a178
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x44a178
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x44a2b7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x44a1b8
cmp eax, 0x108
ja 0x44a1b8
mov eax, esi
call fcn.00431bb8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x44a2ae
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x44a2b7
jmp 0x44a2ae
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x44a297
cmp eax, 0x20a
ja 0x44a297
test byte [esi + 0x50], 0x80
jne 0x44a1ea
sub eax, 0x203
je 0x44a1e7
sub eax, 3
je 0x44a1e7
sub eax, 3
jne 0x44a1ea
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x44a1fe
dec eax
je 0x44a213
dec eax
je 0x44a230
dec eax
je 0x44a213
jmp 0x44a237
mov ecx, ebx
mov eax, dword [0x46e9b8]
mov eax, dword [eax]
mov edx, esi
call fcn.0043b38c
jmp 0x44a2ae
cmp byte [esi + 0x5d], 1
jne 0x44a229
mov eax, esi
mov si, 0xffed
call fcn.00403720
jmp 0x44a2b7
or word [esi + 0x54], 1
jmp 0x44a2ae
and word [esi + 0x54], 0xfffe
jmp 0x44a2ae
mov eax, dword [0x46fae8]
cmp byte [eax + 0x20], 0
je 0x44a2ae
mov eax, dword [0x46fae8]
cmp dword [eax + 0x1c], 0
je 0x44a2ae
mov eax, dword [ebx]
mov edx, dword [0x46fae8]
cmp eax, dword [edx + 0x1c]
jne 0x44a2ae
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00431afc
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.00403720
jmp 0x44a2b7
cmp eax, 0xb00b
jne 0x44a2ae
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00448a4c
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d838
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x44d854
cmp dword [esi + 4], 0
je 0x44d881
test byte [ebx + 0x55], 1
jne 0x44d873
mov eax, ebx
call fcn.0044c3d8
test eax, eax
jne 0x44d873
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x44d991
mov edx, esi
mov eax, ebx
call fcn.0044d35c
jmp 0x44d991
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x44d98a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044f6a8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0044a060
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0044d838
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0044f6a8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44d991
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454070
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46eb20]
cmp byte [eax + 0xc], 0
je 0x4541dd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4541d6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x46fb3c], 0
jne 0x4540c4
push 0x4541e4
call sub.kernel32.dll_GetModuleHandleA_1
mov ebx, eax
push 0x4541ec
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb3c], eax
cmp dword [0x46ddb4], 0
jne 0x4541bf
push 0x4541fc
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46ddb4], eax
cmp dword [0x46ddb4], 0
je 0x4541bf
push 0x454208
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb40], eax
push 0x454218
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb44], eax
push 0x45422c
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb48], eax
push 0x454244
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb4c], eax
push 0x45425c
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb50], eax
push 0x454270
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb54], eax
push 0x454288
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb58], eax
push 0x4542a0
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb5c], eax
push 0x4542bc
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb60], eax
push 0x4542c8
mov eax, dword [0x46ddb4]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x46fb64], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4541dd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x4575f4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x457622
mov eax, ebx
call fcn.004580a8
cmp dword [ebx + 0x40], 0
je 0x45761b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x457693
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x457685
cmp dword [ebx + 8], 0
je 0x457644
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x457656
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x457685
cmp dword [ebx + 8], 0
je 0x457637
cmp eax, 3
je 0x457669
dec eax
jne 0x457637
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x457637
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x457637
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4576b1
cmp dword [ebx + 0x14], 0xcc
je 0x4576b1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004576bc
pop ebx
ret
Function at 0x1000741d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000a040
cmp edx, dword [eax]
je 0x1000743f
add eax, 8
inc ecx
cmp eax, 0x1000a0d0
jl 0x10007430
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000a040]
jne 0x1000756d
mov eax, dword [0x1000b3f0]
cmp eax, 1
je 0x10007547
test eax, eax
jne 0x10007470
cmp dword [0x1000b3f4], 1
je 0x10007547
cmp edx, 0xfc
je 0x1000756d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100074a7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10007e60
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10007f50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x100074ea
lea eax, [ebp - 0x1a4]
push eax
call fcn.10007f50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100093d4
push edi
call fcn.10008770
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10007e60
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10007e70
lea eax, [ebp - 0xa0]
push 0x100093b4
push eax
call fcn.10007e70
push dword [esi + 0x1000a044]
lea eax, [ebp - 0xa0]
push eax
call fcn.10007e70
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100086e5
add esp, 0x2c
pop edi
jmp 0x1000756d
lea eax, [ebp + 8]
lea esi, [esi + 0x1000a044]
push 0
push eax
push dword [esi]
call fcn.10007f50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x40b0e8]
shl eax, 2
mov dword [0x40b0ec], eax
push edi
push ecx
xor eax, eax
mov edi, 0x40d638
mov ecx, 0x40dfa8
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00402a9c
pop edx
call fcn.00402a98
push 0
call fcn.004036f4
pop ecx
push 0x40b0b0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40b0f0], eax
push 0
jmp fcn.0040907c

Function at 0x40268c
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x403984
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4039a0
call fcn.00404bf4
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4039bb
test bl, 1
je 0x4039bb
mov dword [0x40cc28], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x403acc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x403aeb
mov eax, dword [0x40be64]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x403af8
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x403b25
je 0x403b37
sub ecx, 0x100
je 0x403b45
sub ecx, 0x100
je 0x403b4c
sub ecx, 0x100
je 0x403b3e
jmp 0x403b53
sub ecx, 0x600
je 0x403b4c
sub ecx, 0x100
je 0x403b37
jmp 0x403b53
mov edi, 1
jmp 0x403b58
mov edi, 2
jmp 0x403b58
mov edi, 4
jmp 0x403b58
mov edi, 5
jmp 0x403b58
mov edi, 3
test byte [ebp + 0xd], 1
je 0x403b7f
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x40b8e0]
test al, 0x80
je 0x403b78
mov ebx, 0x80
jmp 0x403b91
mov ebx, 1
jmp 0x403b91
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x403b91
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x403ba3
je 0x403bac
dec eax
je 0x403bb5
jmp 0x403bbe
mov dword [ebp - 4], 0x80000000
jmp 0x403bcd
mov dword [ebp - 4], 0x40000000
jmp 0x403bcd
mov dword [ebp - 4], 0xc0000000
jmp 0x403bcd
push 1
call fcn.00404b90
pop ecx
mov ebx, eax
jmp 0x403cb9
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x403be9
sub eax, 0x10
je 0x403bf0
sub eax, 0x10
je 0x403bf9
sub eax, 0x10
je 0x403c02
jmp 0x403c02
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x403c09
mov dword [ebp - 8], 1
jmp 0x403c09
mov dword [ebp - 8], 2
jmp 0x403c09
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x403c72
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x403c67
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x403c67
add ebx, 0xffffffb2
push ebx
call fcn.00404b90
pop ecx
mov ebx, eax
jmp 0x403cb9
mov edi, esi
push edi
call fcn.00403a3c
pop ecx
test eax, eax
je 0x403c86
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x403c92
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.004048ec
add esp, 8
mov ebx, eax
inc eax
jne 0x403cb9
push 4
call fcn.00404b90
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4083f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
cmp dword [0x40cbac], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4084ac
cmp byte [0x40b0e7], 0
je 0x408466
push 0x50
lea eax, [ebp - 0x54]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x54]
push edx
call fcn.00408340
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40844f
push 0x3a
lea edx, [ebp - 0x54]
push edx
call fcn.00408340
add esp, 8
mov ebx, eax
test eax, eax
jne 0x40844f
lea ebx, [ebp - 0x54]
jmp 0x408450
inc ebx
call fcn.004083ac
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4084cd
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40cbb0
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00402c48
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40cbb3
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4084cd
cmp dword [0x40cbac], 0xffffffff
je 0x4084cd
mov eax, dword [0x40cbac]
test eax, eax
je 0x4084cd
cmp byte [eax], 0
je 0x4084cd
push esi
push eax
call fcn.0040854c
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40854c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x4085ae
call fcn.004084fc
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00402c48
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00402c48
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4017de
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor edi, edi
push edi
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 2
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
cmp eax, edi
jne 0x401825
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x401870
and eax, 0xffff
or eax, 0x80070000
jmp 0x401870
mov ecx, dword [ebp - 0xc]
push 4
pop edx
push edi
push ecx
push edi
push edi
push edx
push eax
mov dword [esi + 8], ecx
mov dword [esi + 0x18], edx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x40186e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x40185e
and eax, 0xffff
or eax, 0x80070000
push dword [esi]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
mov eax, ebx
jmp 0x401870
xor eax, eax
pop edi
pop ebx
leave
ret 4

Function at 0x4019bb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 3
push 3
push 0x80000000
push dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push eax
call fcn.00401979
xor edi, edi
add esp, 0x14
cmp eax, edi
jl 0x401a2c
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x401a13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x401a11
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
jl 0x401a1b
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
xor eax, eax
cmp eax, edi
jge 0x401a33
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
cmp ebx, edi
jne 0x401a40
cmp esi, edi
jne 0x401a40
xor esi, esi
inc esi
jmp 0x401a21
push dword [ebp + 0xc]
lea esi, [ebp - 0x28]
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
call fcn.004017de
mov esi, eax
cmp esi, edi
jge 0x401a6d
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebp - 0x28]
call fcn.00401876
jmp 0x401a2a
mov ebx, dword [ebp + 8]
lea esi, [ebx + 8]
lea eax, [ebp - 0x28]
call fcn.004018d9
mov esi, eax
cmp esi, edi
jl 0x401a5a
mov eax, dword [ebp + 0xc]
mov dword [ebx], eax
xor esi, esi
jmp 0x401a63
Function at 0x401b91
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp esi, ebx
je 0x401c07
mov ecx, dword [edi]
cmp ecx, ebx
jbe 0x401c02
cmp dword [ebp - 4], ebx
jbe 0x401bf8
cmp dword [ebp - 4], 2
jbe 0x401bea
cmp dword [ebp - 4], 7
jne 0x401bf8
test cl, 1
jne 0x401bf8
shr ecx, 1
cmp ecx, 1
jb 0x401bf8
cmp word [esi + ecx*2 - 2], bx
jne 0x401bf8
cmp ecx, 1
jbe 0x401c07
cmp word [esi + ecx*2 - 4], bx
jmp 0x401bf6
test cl, 1
jne 0x401bf8
shr ecx, 1
cmp word [esi + ecx*2 - 2], bx
je 0x401c07
xor eax, eax
push 0xd
mov word [esi], ax
pop eax
jmp 0x401c07
xor ecx, ecx
mov word [esi], cx
pop ebx
leave
ret 8

Function at 0x401d9b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x3c
pop ecx
mov edx, ecx
lea eax, [ebp - 0x3c]
mov byte [eax], 0
inc eax
dec edx
jne 0x401da9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x30], 0x4015dc
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x38], 0x400
cmp byte [ebp + 0x10], dl
je 0x401de0
mov dword [ebp - 0x38], 0x440
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x401e04
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x401e20
and eax, 0xffff
or eax, 0x80070000
jmp 0x401e20
cmp byte [ebp + 0x10], 0
je 0x401e1e
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
leave
ret 0xc
Function at 0x401e24
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp dword [ebx + 0x10], edi
je 0x401e45
mov esi, ebx
call fcn.0040240c
test eax, eax
jl 0x401ef6
lea esi, [ebx + 8]
mov dword [ebp - 8], esi
cmp esi, edi
je 0x401e54
lea eax, [esi - 4]
jmp 0x401e56
xor eax, eax
cmp eax, edi
je 0x401e64
add eax, 4
mov dword [section..data], eax
jmp 0x401e6a
mov dword [section..data], edi
push edi
push 0x402379
push edi
push 0x65
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamW]
test eax, eax
jne 0x401e8a
or eax, 0xffffffff
jmp 0x401ef8
push 5
push dword [esi]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi]
call dword [sym.imp.USER32.dll_UpdateWindow]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x401eb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401ef8
mov eax, dword [ebx]
mov esi, dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 4], eax
mov edi, 0x4ff
jmp 0x401ed9
cmp eax, 1
jne 0x401ed5
add ebx, 4
call fcn.00402463
mov ebx, dword [ebp + 8]
jmp 0x401ed9
test eax, eax
je 0x401eeb
push edi
push 0xffffffffffffffff
push 0
lea eax, [ebp - 4]
push eax
push 1
call esi
cmp eax, 0xffffffff
jne 0x401ec3
mov eax, dword [ebp - 8]
push dword [eax]
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4