joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42eb90
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42ec1e
push 0
push 0x80
push 3
push 0
push 5
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x42ec1e
cmp esi, 0xffffffff
je 0x42ec1e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x42ec1e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push eax
lea ecx, [esp + 8]
push ecx
call esi
mov edx, dword [esp + 0x28]
push edx
lea eax, [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
lea edx, [esp + 0x18]
push edx
call esi
mov eax, 1
pop esi
add esp, 0x18
ret 0x10
xor eax, eax
pop esi
add esp, 0x18
ret 0x10

Function at 0x42ec30
Capabilities:
Check if file exists
Timestomp file

Disassembly:
sub esp, 0x18
push esi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42ecb3
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x42ecb3
cmp esi, 0xffffffff
je 0x42ecb3
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x2c]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x3c]
push eax
call edi
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x4c]
push edx
call edi
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
pop edi
jne 0x42ecbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
add esp, 0x18
ret 0x34
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop esi
add esp, 0x18
ret 0x34

Function at 0x42eda0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x10], eax
mov eax, dword [str.echoyu_19810706]
mov edx, dword [0x43ff04]
mov ecx, dword [0x43ff00]
push ebx
mov dword [esp + 4], eax
mov eax, dword [0x43ff08]
push esi
mov dword [esp + 0x14], eax
lea eax, [esp + 8]
push edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], ecx
mov edi, 0x5be3b238
mov ebx, 0x708d1
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x42ede8
sub eax, edx
mov esi, eax
xor ecx, ecx
test esi, esi
jle 0x42ee16
jmp 0x42ee00
movsx eax, byte [esp + ecx + 0xc]
or eax, 0x80
cdq
add ecx, 1
xor edi, eax
xor ebx, edx
cmp ecx, esi
jl 0x42ee00
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
mov edx, ebx
pop ebx
xor ecx, esp
call fcn.00413d5c
add esp, 0x14
ret
Function at 0x42ee30
Capabilities:
Check if file exists
Delete file
Encode data using xor
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43a6e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x448270]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448270]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
lea ecx, [esp + 0x14]
call fcn.0042cdb0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
jne 0x42eea3
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401bf0
xor eax, eax
jmp 0x42efda
mov ecx, esi
call fcn.0042eda0
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call sub.SHLWAPI.dll_PathFileExistsA
test eax, eax
je 0x42eec7
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
lea ecx, [esp + 0x18]
call fcn.0042e9b0
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0041423a
add esp, 4
push edi
mov esi, eax
push ebx
push esi
lea ecx, [esp + 0x20]
mov dword [esi], 0
call fcn.0042e950
cmp ebx, eax
mov dword [esp + 0x18], eax
jne 0x42ee8b
xor eax, eax
test ebx, ebx
jle 0x42ef15
mov cl, byte [eax + esi]
xor cl, bl
xor cl, byte [esp + 0x1c]
add eax, 1
cmp eax, ebx
mov byte [eax + esi - 1], cl
jl 0x42ef01
push ebp
lea ecx, [esp + 0x18]
call fcn.0042e8b0
mov edi, eax
test edi, edi
je 0x42ee8b
push 0
lea edx, [esp + 0x1c]
push edx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0041467e
mov eax, dword [str.echoyu_1981]
mov ecx, dword [0x43ff10]
mov edx, dword [0x43ff14]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
add esp, 4
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], edx
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x42ef68
sub eax, esi
test eax, eax
jle 0x42efa1
jmp 0x42ef80
mov al, byte [esp + 0x1c]
xor byte [esp + ecx + 0x24], al
lea eax, [esp + 0x24]
add ecx, 1
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x42ef92
sub eax, esi
cmp ecx, eax
jl 0x42ef80
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x24]
push ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0042e910
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00401bf0
mov eax, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00413d5c
add esp, 0x2c
ret 8
Function at 0x42fd00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43a881
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x448270]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0x24], ecx
xor edi, edi
mov dword [esp + 0x1c], edi
mov eax, dword [0x44a334]
mov edx, dword [eax + 0xc]
mov esi, 1
mov ecx, 0x44a334
mov dword [esp + 0x38], esi
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [0x44a334]
mov edx, dword [eax + 0xc]
mov ecx, 0x44a334
mov byte [esp + 0x38], 2
call edx
mov ebp, dword [esp + 0x40]
add eax, 0x10
mov dword [ebp], eax
mov eax, dword [esp + 0x44]
mov eax, dword [eax - 0xc]
cmp eax, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], edi
jle 0x42fe54
mov ecx, dword [esp + 0x14]
push 2
push ecx
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x50]
call fcn.00428150
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 3
call fcn.00425e00
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov byte [esp + 0x38], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fdd2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x30], esp
mov esi, esp
push eax
call fcn.00425a30
mov ecx, dword [esp + 0x2c]
add eax, 0x10
add esp, 4
mov dword [esi], eax
call fcn.0042fbd0
mov bl, al
mov eax, dword [ebp]
mov edi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [edi + 1]
sub eax, esi
or eax, ecx
jge 0x42fe1b
push esi
mov ecx, ebp
call fcn.004041b0
test esi, esi
mov eax, dword [ebp]
mov byte [eax + edi], bl
jl 0x42feb6
mov eax, dword [ebp]
cmp esi, dword [eax - 8]
jg 0x42feb6
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp]
add eax, 2
cmp eax, dword [esp + 0x28]
mov byte [esi + ecx], 0
mov dword [esp + 0x14], eax
jl 0x42fd89
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x38], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42fe79
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42fe9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8
push 0x80070057
call fcn.00401000
int3
Function at 0x42fed0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x43a8ab
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x448270]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], vtable.KvCrypt.0
mov eax, dword [0x44a334]
mov edx, dword [eax + 0xc]
mov ecx, 0x44a334
lea edi, [esi + 4]
call edx
add eax, 0x10
mov dword [edi], eax
push 0
push 0x43e4c2
mov ecx, edi
mov dword [esp + 0x20], 0
mov dword [esi + 8], 0x13579bdf
mov dword [esi + 0xc], 0x2468ace0
mov dword [esi + 0x10], 0xfdb97531
mov dword [esi + 0x14], 0x80000062
mov dword [esi + 0x18], 0x40000020
mov dword [esi + 0x1c], 0x10000002
mov dword [esi + 0x20], SysReAllocStringLen
mov dword [esi + 0x24], 0x3fffffff
mov dword [esi + 0x28], 0xfffffff
mov dword [esi + 0x2c], SysReAllocStringLen
mov dword [esi + 0x30], 0xc0000000
mov dword [esi + 0x34], 0xf0000000
call fcn.00425b40
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0x430f70
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
lea eax, [esp]
push eax
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 8
ret 8
Function at 0x401000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x404498
push 0x67
push edi
call esi
push 0x64
push 0x4043d0
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconW]
push 0x6b
push edi
mov dword [ebp - 0x34], 0x30
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x401180
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push 0x6c
push dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 6
mov dword [ebp - 0x10], 0x6d
mov dword [ebp - 0xc], 0x4043d0
call esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push edi
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push 0x404498
push 0x4043d0
push 0
mov dword [0x4043c8], edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov esi, eax
test esi, esi
jne 0x4010ea
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004012d9
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x50]
push 0
push eax
call esi
test eax, eax
je 0x401161
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
nop word [eax + eax]
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x54]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x401150
lea eax, [ebp - 0x50]
push eax
call edi
lea eax, [ebp - 0x50]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
call esi
test eax, eax
jne 0x401130
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x48]
xor ecx, ebp
pop edi
pop esi
call fcn.004012d9
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401b0a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b49
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b49
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b49
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b49
cmp dword [ecx + 0x74], 0xe
jbe 0x401b49
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403408
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00405de0
test esi, esi
jne 0x403440
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405f1c
jmp 0x40345e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040334c
mov edi, eax
test esi, esi
je 0x40345e
cmp dword [ebx], 0
je 0x40345e
dec esi
jmp 0x403447
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403490
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x52f008], 0x8088405
inc edx
mov dword [ebx + 0x52f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403ba4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x52f024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c3c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403c1c
xor eax, eax
push ebp
push 0x403c15
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403c74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c1c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x52f024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0xff83
sub esp, 0xc
mov eax, dword [esp + 0x10]

Function at 0x403c7a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [esp + 0x10], edx
mov eax, ecx
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + 0x3c]
add edx, eax

Function at 0x403d1a
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x531715]
mov dword [esp], eax
mov ecx, dword fs:[0x30]
mov ecx, dword [ecx + 0xc]
add ecx, 0xc
mov edx, ecx
xor esi, esi
mov edx, dword [edx]
cmp edx, ecx
je 0x403d7d
mov edi, dword [edx + 0x30]
movzx ebp, word [edi]
test bp, bp
je 0x403d6e
add edi, 2
xor ebx, ebx
lea eax, [ebp - 0x41]
cmp ax, 0x1a
jae 0x403d5c
add ebp, 0x20
movzx eax, bp
add ebx, eax
movzx ebp, word [edi]
add edi, 2
test bp, bp
test ebp, ebp
jne 0x403d50
jmp 0x403d70
xor ebx, ebx
lea eax, [ebx + ebx*2]
cmp eax, dword [esp]
add al, 0x24
jne 0x403d3a
mov edi, dword [edx + 0x18]
jmp 0x403d7f
xor edi, edi
mov edx, dword [0x531739]
mov ecx, edi
push dword [0x531751]
push dword [0x53174d]
call fcn.00403c7a
add esp, 8
mov dword [esp + 4], eax
push dword [0x531759]
push esi
call dword [sym.imp.kernel32.dll_LocalAlloc]
Function at 0x404b18
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x544aec
cmp dword [ebp + 0xc], 2
jl 0x404b2c
mov ebx, 0x544b1c
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call fcn.00403d1a
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x404b64
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4012d0
mov dword [0x542014], eax
mov eax, 0x4012d8
mov dword [0x542018], eax
mov eax, ebx
call fcn.00404a04
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x404b99
cmp al, 3
jge 0x404b99
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x404baa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x404bb5
call dword [ecx + eax*4]
cmp dword [0x542038], 0
jne 0x404bcb
mov byte [0x542040], 1
fnstcw word [0x52f024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00404e48
call fcn.00404ab0
ret 4

Function at 0x404db8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x542054], 0
je 0x404e19
cmp word [0x542330], 0xd7b2
jne 0x404de1
cmp dword [0x542338], 0
jbe 0x404de1
mov eax, 0x54232c
call dword [0x542348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404e44
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52f030], 0
jne 0x404e35
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404fe4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x52f034], 0
je 0x40500a
mov edx, esi
mov eax, ebx
call dword [0x52f034]
jmp 0x405019
mov eax, 8
call fcn.00403064
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x542055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404fac
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x442fd4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405e6c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x44302c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x541218]
mov dl, 1
mov eax, dword [0x442820]
call fcn.00413c58
call fcn.004047b8
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004429a8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x443540
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
xor eax, eax
push ebp
push 0x443638
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040d4b0
cmp dword [ebp - 4], 0
je 0x443581
mov eax, dword [ebp - 4]
mov edx, 0x443654
call fcn.0040656c
jne 0x443595
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov eax, dword [ebp - 8]
mov edx, 0x443664
call fcn.0040629c
jmp 0x4435f7
xor eax, eax
push ebp
push 0x4435c9
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, 0x65
mov eax, dword [ebp - 4]
call fcn.0040cfa0
test al, al
jne 0x4435bf
mov eax, dword [ebp - 4]
call fcn.0040cfc4
dec ebx
jne 0x4435a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4435f7
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
call fcn.00405e6c
push eax
call sub.kernel32.dll_GetFileAttributesW
test al, 1
setne al
test al, al
je 0x443622
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040d0ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44363f
lea eax, [ebp - 4]
call fcn.00405dd0
ret

Function at 0x448314
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x44831a
ret
Function at 0x467cc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00408b80
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00462374
test ebx, ebx
jne 0x467d13
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.00467b54
mov ebx, eax
test ebx, ebx
je 0x467dfe
cmp esi, ebx
je 0x467d3c
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x467d51
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x467d89
add eax, 0xffffff5f
sub eax, 2
jb 0x467da1
dec eax
sub eax, 2
jb 0x467db5
dec eax
sub eax, 2
jb 0x467dab
jmp 0x467dbf
add eax, 0xfffffdff
sub eax, 2
jb 0x467da1
dec eax
sub eax, 2
jb 0x467db5
dec eax
sub eax, 2
jb 0x467dab
jmp 0x467dbf
mov byte [esp + 0x120], 0
jmp 0x467dc7
mov byte [esp + 0x120], 2
jmp 0x467dc7
mov byte [esp + 0x120], 1
jmp 0x467dc7
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00478008
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00463b1c
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x467e00
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x477e74
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x477e9a
mov eax, esp
push eax
push 0x477e3c
call sub.user32.dll_EnumWindows
jmp 0x477ead
mov eax, esp
push eax
push 0x477e1c
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x477f70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x477fc4]
test si, 4
je 0x477f85
or bl, 1
test si, 8
je 0x477f8f
or bl, 4
test si, 1
je 0x477f99
or bl, 8
test si, 2
je 0x477fa3
or bl, 0x10
test si, 0x10
je 0x477fad
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x477fbc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x477fc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x478004]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x477fe2
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x477ff1
or bl, 4
test esi, 0x20000000
je 0x477ffc
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret