joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472dbc
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 0x472f67
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x472f48
mov dl, 1
mov eax, dword [0x417034]
call fcn.0040334c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404190
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x472f37
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.00460738
test al, al
je 0x472f2a
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, 0x472f78
lea eax, [ebp - 0x254]
call fcn.0040941c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x472f2a
xor eax, eax
push ebp
push 0x472f23
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 0x472fb0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x472f0c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404400
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 0x472f0c
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404400
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472f2a
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x472e2d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041bb18
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 0x472f6e
lea eax, [ebp - 0x260]
call fcn.00404190
ret

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

Disassembly:
push ecx
mov eax, dword [0x49fbc8]
cmp byte [eax + 0xa5], 0
jne 0x47390d
cmp dword [0x49fbe0], 0
jne 0x4738ce
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x473858
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x49fbe0], eax
cmp dword [0x49fbdc], 0
jne 0x4738e9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x49fbdc], eax
cmp dword [0x49fbe4], 0
jne 0x47390d
push esp
push 0
push 0
push 0x4737fc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x49fbe4], eax
pop edx
ret
Function at 0x473a04
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x473a1b
add esp, 0xfffffff0
call fcn.004036e0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422150
mov eax, dword [0x49e104]
cmp word [eax + 2], 0
jne 0x473a43
mov eax, dword [0x49e104]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00475184
mov eax, dword [0x49e264]
cmp word [eax + 2], 0
jne 0x473a5d
mov eax, dword [0x49e264]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0047537c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4169d0]
call fcn.0040334c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4169d0]
call fcn.0040334c
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 [0x424684]
call fcn.0042c174
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x473be4
mov eax, dword [0x49df80]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c544
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x47591c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x49df80]
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.0040ccb4
test eax, eax
je 0x473b52
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408dfc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040ccdc
test eax, eax
je 0x473b66
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.00404400
mov eax, dword [0x49dd2c]
cmp byte [eax], 0
jne 0x473b9a
mov eax, ebx
call fcn.00473d0c
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.00475af8
mov eax, ebx
call fcn.004764bc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x473bda
call fcn.00403738
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473f8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49fbc8]
cmp dword [eax + 0x30], 0
je 0x474036
cmp dword [ebx + 0x94], 0
jne 0x474030
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x473f1c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x474030
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 0x473ff6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x474030
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.00419328
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x474005
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x474b98
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 0x474bcd
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.00404280
jmp 0x474bda
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004041e4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x475cd4
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x475d15
mov eax, esi
call fcn.0045bcbc
test al, al
je 0x475d15
mov eax, dword [ebx + 0x84]
call fcn.0045b9b8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x475d15
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045b9b8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47705c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x477094]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x477072
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x477081
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x477090
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4783a4
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x49e218]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4783ca
push 0
mov eax, dword [0x49e218]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x486264
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x48626c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x48645e
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x486474
mov eax, esi
call fcn.004840f0
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004041e4
lea ecx, [ebp - 0x10]
mov edx, 0x486488
mov eax, esi
call fcn.004840f0
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004041e4
lea ecx, [ebp - 0x14]
mov edx, 0x4864a0
mov eax, esi
call fcn.004840f0
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004041e4
lea ecx, [ebp - 0x18]
mov edx, 0x4864bc
mov eax, esi
call fcn.004840f0
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004041e4
lea ecx, [ebp - 0x1c]
mov edx, 0x4864d8
mov eax, esi
call fcn.004840f0
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004041e4
lea ecx, [ebp - 0x24]
mov edx, 0x4864f0
mov eax, esi
call fcn.004840f0
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.0040845c
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.0040883c
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x486508
mov eax, esi
call fcn.004840f0
mov eax, dword [ebp - 0x28]
call fcn.0047dbc8
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x486518
mov eax, esi
call fcn.004840f0
mov eax, dword [ebp - 0x2c]
call fcn.0047dbc8
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x486530
mov eax, esi
call fcn.004840f0
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.0040883c
inc eax
je 0x486401
lea ecx, [ebp - 0x34]
mov edx, 0x486530
mov eax, esi
call fcn.004840f0
mov eax, dword [ebp - 0x34]
call fcn.00408800
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.00409d6c
fstp qword [ebp - 0x3c]
wait
call fcn.0040a0d0
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x48641c
lea ecx, [ebp - 0x40]
mov edx, 0x486530
mov eax, esi
call fcn.004840f0
mov eax, dword [ebp - 0x40]
call fcn.0047dbc8
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x486540
mov eax, esi
call fcn.004840f0
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004041e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486465
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004041b4
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004041b4
ret
Function at 0x48d1f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x48d24a
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.0048d1e0
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0047c738
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0047c338
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48d251
lea eax, [ebp - 4]
call fcn.00404190
ret

Function at 0x490dbc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x415f78]
call fcn.00404b38
xor eax, eax
push ebp
push 0x490f00
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x49d834], 0
jne 0x490e0f
mov ecx, dword [0x49dd5c]
mov dl, 1
mov eax, dword [0x407594]
call fcn.0040beec
call fcn.00403b48
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, 0x10
call fcn.00402d68
mov eax, ebx
call fcn.004049e8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x490f10
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00405bd0
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004049f8
test eax, eax
jle 0x490ea7
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x490ea0
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.00404434
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, 0x10
call fcn.00404400
mov eax, dword [ebp - 0x48]
pop edx
call fcn.004083ec
test eax, eax
jne 0x490ea0
mov ebx, 0x15
jmp 0x490eac
mov ebx, 0x10
jmp 0x490eac
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x49d834]
call fcn.00490d14
mov eax, dword [ebp - 8]
call fcn.00490d14
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00405be8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490f07
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.004041b4
lea eax, [ebp - 0x10]
mov edx, dword [0x415f78]
call fcn.00404c08
ret

Function at 0x498974
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
and ebx, 0xff
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
and edx, 0xff
and eax, 0xff
shl eax, 3
lea eax, [eax*8 + 0x49da8c]
mov al, byte [eax + edx]
and al, 0xf
pop ebx
ret
Function at 0x4989b0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x4989c8
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x4989c1
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00402d68
xor edx, edx
mov eax, 0x49dc8c
mov bl, byte [eax]
mov ecx, ebx
and cl, 7
and ecx, 0xff
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
xor ecx, ecx
mov cl, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x498a32
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x4989e6
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x498c70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x498c89
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x498c82
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x498c9b
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x498c94
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.00498864
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x498cb5
mov al, byte [ebp - 0xa]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
mov dl, byte [ebp - 9]
xor ecx, ecx
mov cl, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
shl edx, 2
mov al, byte [ebp - 8]
xor ecx, ecx
mov cl, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
mov al, byte [ebp - 7]
xor edx, edx
mov dl, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
xor edx, edx
mov dl, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
mov al, byte [ebp - 6]
and al, 0xf
shl eax, 2
xor edx, edx
mov dl, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
mov al, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
mov dl, byte [esi]
call fcn.00498974
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x498d3a
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
mov cl, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x498d57
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.004988f4
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
mov cl, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x498d80
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x498d98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x498db1
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x498daa
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x498dc5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.0049875c
test bl, bl
jne 0x498e98
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x49ff74
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x498dfc
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x498e10
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00498c70
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov bl, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x498e42
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x498df1
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x498e65
mov eax, 4
mov edx, dword [ebp + 0xc]
mov cl, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x498e76
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x498e8a
jmp 0x498f53
cmp bl, 1
jne 0x498f53
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x49ffce
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
mov cl, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x498eb8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
mov cl, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x498ecc
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00498c70
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
mov cl, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x498efe
sub ebx, 6
inc dword [ebp - 8]
jne 0x498ead
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
mov cl, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x498f25
mov eax, 4
mov ebx, dword [ebp + 0xc]
mov dl, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x498f36
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
mov cl, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x498f4a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.004987e0
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x403c40
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x403c55
mov eax, 1
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
neg eax
sbb eax, eax
inc eax
ret

Function at 0x407b70
Capabilities:
Terminate process

Disassembly:
call fcn.00418a00
jmp fcn.0040dfe0

Function at 0x40af60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x100
test eax, eax
je 0x40af73
mov dword [0x45d97c], eax
mov eax, dword [esp + 0x104]
test eax, eax
je 0x40af86
inc dword [0x45d870]
jmp 0x40af90
mov dword [0x45d870], 0
mov eax, dword [0x45d97c]
mov ecx, dword [0x45d870]
push eax
push ecx
lea edx, [esp + 8]
push str._d__d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [0x45d86c]
add esp, 0x10
lea eax, [esp]
push eax
push 0x427
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov al, byte [0x45d878]
test al, al
jne 0x40afee
mov edx, dword [0x45d86c]
push 0x104
push 0x45d878
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
add esp, 0x100
ret

Function at 0x40c030
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3ea
push ebx
call edi
push 0x3eb
push ebx
mov esi, eax
call edi
test esi, esi
mov edi, eax
je 0x40c12a
test edi, edi
je 0x40c12a
push ebp
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x28]
test eax, eax
push 0
je 0x40c0a8
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push esi
call ebp
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 1
push edi
call ebp
push 5
push edi
call esi
mov ecx, dword [esp + 0x14]
mov edx, dword [0x45d9d8]
lea eax, [edx + ecx]
jmp 0x40c0d1
mov ebp, dword [sym.imp.USER32.dll_EnableWindow]
push edi
call ebp
push 0
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
call edi
push 1
push esi
call ebp
push 5
push esi
call edi
mov ecx, dword [esp + 0x14]
mov eax, dword [0x45d9d4]
add eax, ecx
mov edx, dword [esp + 0x18]
push 1
mov dword [esp + 0x20], eax
sub eax, ecx
push eax
mov eax, dword [esp + 0x18]
sub edx, eax
push edx
push ecx
push eax
push ebx
call dword [sym.imp.USER32.dll_MoveWindow]
mov eax, dword [esp + 0x28]
test eax, eax
pop ebp
je 0x40c10b
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3e9
push ebx
call esi
test eax, eax
jne 0x40c123
jmp 0x40c111
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
push ebx
call esi
test eax, eax
jne 0x40c123
push 2
push ebx
call esi
test eax, eax
je 0x40c12a
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40ebe0
Capabilities:
Check if file exists

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x24]
push edi
push esi
lea eax, [ebx + 4]
push eax
push ebp
push ecx
call fcn.004185c0
test eax, eax
jne 0x40ec4b
push edi
push esi
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push ebx
call fcn.004185c0
test eax, eax
jne 0x40ec4b
test edi, edi
je 0x40ec25
test esi, esi
je 0x40ec25
mov byte [esi], al
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x40ec38
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40ec44
push 0
push ebp
push ebx
call fcn.0040eab0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret