joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438b6c
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 0x438bb8
mov eax, esi
call fcn.0044e360
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x438bb8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x438bb8
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 0x438cf7
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x438bf8
cmp eax, 0x108
ja 0x438bf8
mov eax, esi
call fcn.0044e360
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x438cee
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x438cf7
jmp 0x438cee
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x438cd7
cmp eax, 0x20a
ja 0x438cd7
test byte [esi + 0x50], 0x80
jne 0x438c2a
sub eax, 0x203
je 0x438c27
sub eax, 3
je 0x438c27
sub eax, 3
jne 0x438c2a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x438c3e
dec eax
je 0x438c53
dec eax
je 0x438c70
dec eax
je 0x438c53
jmp 0x438c77
mov ecx, ebx
mov eax, dword [0x45b0e8]
mov eax, dword [eax]
mov edx, esi
call fcn.00457b9c
jmp 0x438cee
cmp byte [esi + 0x5d], 1
jne 0x438c69
mov eax, esi
mov si, 0xffed
call fcn.00403310
jmp 0x438cf7
or word [esi + 0x54], 1
jmp 0x438cee
and word [esi + 0x54], 0xfffe
jmp 0x438cee
mov eax, dword [0x45cb1c]
cmp byte [eax + 0x20], 0
je 0x438cee
mov eax, dword [0x45cb1c]
cmp dword [eax + 0x1c], 0
je 0x438cee
mov eax, dword [ebx]
mov edx, dword [0x45cb1c]
cmp eax, dword [edx + 0x1c]
jne 0x438cee
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.0044e2a4
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.00403310
jmp 0x438cf7
cmp eax, 0xb00b
jne 0x438cee
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00437498
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 0x43c264
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 0x43c280
cmp dword [esi + 4], 0
je 0x43c2ad
test byte [ebx + 0x55], 1
jne 0x43c29f
mov eax, ebx
call fcn.0043ae04
test eax, eax
jne 0x43c29f
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43c3bd
mov edx, esi
mov eax, ebx
call fcn.0043bd88
jmp 0x43c3bd
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 0x43c3b6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0043e0d4
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.00438aa0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043c264
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.0043e0d4
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c3bd
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 0x442a90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x45b270]
cmp byte [eax + 0xc], 0
je 0x442bfd
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x442bf6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x45cb70], 0
jne 0x442ae4
push 0x442c04
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x442c0c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb70], eax
cmp dword [0x45abb8], 0
jne 0x442bdf
push 0x442c1c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x45abb8], eax
cmp dword [0x45abb8], 0
je 0x442bdf
push 0x442c28
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb74], eax
push 0x442c38
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb78], eax
push 0x442c4c
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb7c], eax
push 0x442c64
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb80], eax
push 0x442c7c
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb84], eax
push 0x442c90
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb88], eax
push 0x442ca8
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb8c], eax
push 0x442cc0
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb90], eax
push 0x442cdc
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb94], eax
push 0x442ce8
mov eax, dword [0x45abb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x45cb98], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442bfd
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x446a88
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e4c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x446ad7
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e214
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e264]
test si, 4
je 0x44e228
or bl, 1
test si, 8
je 0x44e232
or bl, 4
test si, 1
je 0x44e23c
or bl, 8
test si, 2
je 0x44e246
or bl, 0x10
test si, 0x10
je 0x44e250
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e25f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44e268
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44e2a0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e281
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44e290
or bl, 4
test esi, 0x20000000
je 0x44e29b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x454948
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45495a
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c5c4
mov eax, dword [0x45aefc]
mov dword [eax + 4], ebx
mov dword [eax], 0x454cec
mov eax, dword [0x45af08]
mov dword [eax + 4], ebx
mov dword [eax], 0x454cf8
mov eax, ebx
call fcn.00454d04
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4147f4]
call fcn.004030e4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4147f4]
call fcn.004030e4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4147f4]
call fcn.004030e4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4147f4]
call fcn.004030e4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4147f4]
call fcn.004030e4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x451120
push eax
push 0
push 0
mov eax, dword [0x45b060]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41e000]
call fcn.0041f444
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41e000]
call fcn.0041f444
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41e000]
call fcn.0041f444
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455124
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455000
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455000
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455000
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454a97
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454de4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454f8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454f70
mov dl, 1
mov eax, dword [0x414c10]
call fcn.004030e4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403e4c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454f5f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00442df0
test al, al
je 0x454f52
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x454fa0
lea eax, [ebp - 0x254]
call fcn.00408ba0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x454f52
xor eax, eax
push ebp
push 0x454f4b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x454fd8
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x454f34
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x454f34
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454f52
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x454e55
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00418744
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x454f96
lea eax, [ebp - 0x260]
call fcn.00403e4c
ret

Function at 0x4558c4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x45cbbc]
cmp byte [eax + 0xa5], 0
jne 0x455935
cmp dword [0x45cbd4], 0
jne 0x4558f6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x455880
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x45cbd4], eax
cmp dword [0x45cbd0], 0
jne 0x455911
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x45cbd0], eax
cmp dword [0x45cbd8], 0
jne 0x455935
push esp
push 0
push 0
push 0x455824
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x45cbd8], eax
pop edx
ret
Function at 0x455a2c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x455a43
add esp, 0xfffffff0
call fcn.00403420
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041c5c4
mov eax, dword [0x45b044]
cmp word [eax + 2], 0
jne 0x455a6b
mov eax, dword [0x45b044]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457194
mov eax, dword [0x45b108]
cmp word [eax + 2], 0
jne 0x455a85
mov eax, dword [0x45b108]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045738c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4147f4]
call fcn.004030e4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4147f4]
call fcn.004030e4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41e7b0]
call fcn.00424434
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455c0c
mov eax, dword [0x45af60]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00424804
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45792c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x45af60]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c258
test eax, eax
je 0x455b7a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408580
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c280
test eax, eax
je 0x455b8e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004040bc
mov eax, dword [0x45ae40]
cmp byte [eax], 0
jne 0x455bc2
mov eax, ebx
call fcn.00455d34
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00457b08
mov eax, ebx
call fcn.004584cc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x455c02
call fcn.00403478
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455fb4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x45cbbc]
cmp dword [eax + 0x30], 0
je 0x45605e
cmp dword [ebx + 0x94], 0
jne 0x456058
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455f44
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456058
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45601e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456058
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00416b5c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45602d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x456bc0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456bf5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x456c02
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457ce4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457d25
mov eax, esi
call fcn.0043e3d8
test al, al
je 0x457d25
mov eax, dword [ebx + 0x84]
call fcn.0043e0d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457d25
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e0d4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x1401d53
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x44
mov dl, 0x57
pop ecx
lea edi, [ebx + 0x44]
cmp dword [ebp + 0x14], ecx
jle 0x1401d7d
xor byte [ecx + ebx], dl
mov al, byte [ecx + ebx]
add al, 0x57
add dl, al
inc ecx
cmp ecx, dword [ebp + 0x14]
jl 0x1401d6d
and dword [ebp + 0x14], 0
cmp dword [edi + 4], 0
jl 0x1401dd5
push esi
lea esi, [ebx + 0x64]
cmp dword [esi + 8], 0
je 0x1401d97
mov eax, dword [esi - 8]
mov dword [ebp - 4], eax
mov eax, dword [esi - 4]
mov ecx, dword [esi]
cmp eax, ecx
jle 0x1401db3
sub eax, ecx
push eax
mov eax, dword [esi - 8]
add eax, ecx
push 0
push eax
call fcn.01402760
add esp, 0xc
mov eax, dword [esi + 4]
push dword [esi]
add eax, ebx
push eax
push dword [esi - 8]
call fcn.014027c0
add esp, 0xc
inc dword [ebp + 0x14]
mov eax, dword [ebp + 0x14]
add esi, 0x14
cmp eax, dword [edi + 4]
jle 0x1401d8b
pop esi
push edi
call fcn.01401dff
mov eax, dword [edi + 0x10]
pop ecx
push 0
push 1
push 0
sub eax, 0xc
call eax
mov eax, dword [edi + 8]
push dword [ebp + 0x10]
xor eax, 0x7a32bc85
call eax
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop ebx
leave
ret

Function at 0x1401f93
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x1401fbd
push dword [esp + 0xc]
call fcn.014026e0
pop ecx
inc eax
push eax
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8
Function at 0x1407b82
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1410e30
cmp edx, dword [eax]
je 0x1407ba4
add eax, 8
inc ecx
cmp eax, 0x1410ec0
jl 0x1407b95
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1410e30]
jne 0x1407cd2
mov eax, dword [0x3511ecc]
cmp eax, 1
je 0x1407cac
test eax, eax
jne 0x1407bd5
cmp dword [0x140e664], 1
je 0x1407cac
cmp edx, 0xfc
je 0x1407cd2
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1407c0c
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.014025e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.014026e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x1407c4f
lea eax, [ebp - 0x1a4]
push eax
call fcn.014026e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x140c5dc
push edi
call fcn.01403070
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.014025e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.014025f0
lea eax, [ebp - 0xa0]
push 0x140c5bc
push eax
call fcn.014025f0
push dword [esi + 0x1410e34]
lea eax, [ebp - 0xa0]
push eax
call fcn.014025f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0140abf1
add esp, 0x2c
pop edi
jmp 0x1407cd2
lea eax, [ebp + 8]
lea esi, [esi + 0x1410e34]
push 0
push eax
push dword [esi]
call fcn.014026e0
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 0x140a77a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x140a79a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01405042
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x140a7bd
test byte [esp + 8], 2
je 0x140a7bd
call fcn.014050b5
mov dword [eax], 0xd
call fcn.014050be
mov dword [eax], 5
jmp 0x140a796
xor eax, eax
ret
Function at 0x4014e7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
cmp dword [ebp + 8], 0
je 0x401503
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cygwin1.dll_strlen
mov dword [ebp - 0x40], eax
jmp 0x40150a
mov dword [ebp - 0x40], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
add eax, eax
add eax, 2
add eax, 0xf
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
call fcn.00408cd0
lea eax, [esp + 0x10]
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x3c]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x38]
mov dword [esp], eax
call fcn.0040144a
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
cmp word [ebp - 0x38], 0
je 0x4015a6
lea eax, [ebp - 0x38]
mov dword [ebp - 0x44], eax
jmp 0x4015ad
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
call sub.ADVAPI32.DLL_LsaOpenPolicy
sub esp, 0x10
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4015fa
mov eax, dword [ebp - 0x30]
mov dword [esp + 4], eax
mov dword [esp], str.Error_in_openPolicy__LsaOpenPolicy_returned_0x_x
call sub.cygwin1.dll_printf
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00402100
mov dword [esp], str.___n_n
call sub.cygwin1.dll_printf
mov dword [esp], 1
call sub.cygwin1.dll_exit
mov eax, dword [ebp - 0x2c]
leave
ret