joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a7af
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esp
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
invalid
test ebp, ebx

Function at 0x40b5c2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40b5f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b60e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040b52c
jmp 0x40b60e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40b60e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040b52c
test edi, edi
mov eax, edi
jne 0x40b5f8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43403c]
test ecx, ecx
je 0x40b6d1
jmp 0x40b5c1
ret 8

Function at 0x412aed
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432ac0]
jne 0x412af7
repz ret
jmp fcn.0041817a
Function at 0x41d0a9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x433468]
je 0x41d0c4
inc edi
cmp edi, 0x17
jb 0x41d0b5
cmp edi, 0x17
jae 0x41d244
push ebp
push 3
call fcn.00422a0d
cmp eax, 1
pop ecx
je 0x41d210
push 3
call fcn.00422a0d
test eax, eax
pop ecx
jne 0x41d0f8
cmp dword [0x432ab8], 1
je 0x41d210
cmp ebx, 0xfc
je 0x41d243
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4363b8
push ebp
call fcn.004155a6
add esp, 0xc
test eax, eax
je 0x41d12e
push esi
push esi
push esi
push esi
push esi
call fcn.004199ae
add esp, 0x14
push 0x104
mov esi, 0x4363d1
push esi
push 0
mov byte [0x4364d5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41d172
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004155a6
add esp, 0xc
test eax, eax
je 0x41d172
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004199ae
add esp, 0x14
push esi
call fcn.00415e90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41d1b7
push esi
call fcn.00415e90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4366cc
push 0x42b3bc
sub ecx, eax
push ecx
push eax
call fcn.00417b18
add esp, 0x14
test eax, eax
je 0x41d1b7
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004199ae
add esp, 0x14
jmp 0x41d1b9
xor esi, esi
push 0x42b3b8
push ebx
push ebp
call fcn.00416021
add esp, 0xc
test eax, eax
je 0x41d1d9
push esi
push esi
push esi
push esi
push esi
call fcn.004199ae
add esp, 0x14
push dword [edi*8 + 0x43346c]
push ebx
push ebp
call fcn.00416021
add esp, 0xc
test eax, eax
je 0x41d1fb
push esi
push esi
push esi
push esi
push esi
call fcn.004199ae
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00422850
add esp, 0xc
jmp 0x41d243
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x41d243
cmp ebp, 0xffffffff
je 0x41d243
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x43346c]
push dword [esi]
call fcn.00415e90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x422850
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00418452
xor ebx, ebx
cmp dword [0x436858], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x422926
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x422a06
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42c3e8
push edi
call esi
cmp eax, ebx
je 0x422a06
push eax
call fcn.004183e4
mov dword [esp], 0x42c3d8
push edi
mov dword [0x436858], eax
call esi
push eax
call fcn.004183e4
mov dword [esp], 0x42c3c4
push edi
mov dword [0x43685c], eax
call esi
push eax
call fcn.004183e4
mov dword [0x436860], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041526e
test eax, eax
pop ecx
pop ecx
je 0x4228f4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004199ae
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x422926
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004183e4
cmp eax, ebx
pop ecx
mov dword [0x436868], eax
je 0x422926
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004183e4
pop ecx
mov dword [0x436864], eax
mov eax, dword [0x436864]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4229ab
cmp dword [0x436868], ecx
je 0x4229ab
push eax
call fcn.0041845b
push dword [0x436868]
mov esi, eax
call fcn.0041845b
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4229ab
cmp edi, ebx
je 0x4229ab
call esi
cmp eax, ebx
je 0x422978
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x422978
test byte [ebp - 0x18], 1
jne 0x4229ab
lea eax, [ebp - 0x10]
push eax
call fcn.004152a5
test eax, eax
pop ecx
je 0x422993
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004199ae
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4229a2
or dword [ebp + 0x10], 0x200000
jmp 0x4229e6
or dword [ebp + 0x10], 0x40000
jmp 0x4229e6
mov eax, dword [0x43685c]
cmp eax, dword [ebp - 8]
je 0x4229e6
push eax
call fcn.0041845b
cmp eax, ebx
pop ecx
je 0x4229e6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4229e6
mov eax, dword [0x436860]
cmp eax, dword [ebp - 8]
je 0x4229e6
push eax
call fcn.0041845b
cmp eax, ebx
pop ecx
je 0x4229e6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436858]
call fcn.0041845b
cmp eax, ebx
pop ecx
je 0x422a06
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x422a08
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4273a8
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x432ac0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042733d
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00415e10
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4273f7
cmp dword [ebp - 0x1c], 5
jb 0x42740f
jmp 0x42740b
cmp dword [ebp - 0x10], 1
jne 0x42740f
cmp dword [ebp - 0x1c], 4
ja 0x42740b
jne 0x42740f
cmp dword [ebp - 0x18], 0
jbe 0x42740f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42c478
call fcn.00427211
test eax, eax
jge 0x427430
mov byte [0x4369b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00412aed
add ebp, 0x78
leave
ret
Function at 0x420b4b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x420b8a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420b8a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420b8a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x420b8a
cmp dword [ecx + 0x74], 0xe
jbe 0x420b8a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x433300
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43332d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43332d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x402297
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40229e
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00403060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00403060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00403060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, 0x40c08d
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov dword [esp + 0x48], eax
push 0x19
call fcn.00404f12
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x40234d
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x40234d
jmp 0x40234f
jmp 0x402320
mov eax, 1
jmp 0x402358
push dword [esp]
call fcn.00409780
push dword [esp + 4]
call fcn.00409780
push dword [esp + 8]
call fcn.00409780
add esp, 0x50
pop ebx
pop ebp
ret 0xc

Function at 0x40237a
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00406a90
mov dword [esp], eax
push dword [0x40d6f0]
push dword [0x40d6f0]
call fcn.00406bfd
lea eax, [esp + 8]
push eax
call fcn.00409670
push dword [esp]
push 0
push 0x40c01e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x40d6f0]
push dword [0x40d6f0]
push dword [esp + 8]
call fcn.004069a0
lea eax, [0x40d400]
push eax
call fcn.00409670
push dword [esp]
call fcn.00406ab0
push dword [0x40d400]
call fcn.00406c8c
push dword [0x40d400]
call fcn.00406c9a
push dword [0x40d6f0]
push dword [0x40d6f0]
call fcn.00406b35
lea eax, [0x40d3a0]
push eax
call fcn.00409670
push dword [esp + 0x14]
pop eax
call fcn.00406ad0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x402453
mov edx, dword [0x40d400]
push dword [0x40d6f0]
call fcn.00409720
lea eax, [0x40d3a0]
push eax
call fcn.00409670
mov dword [esp + 0xc], 2
jmp 0x402465
mov ebx, 1
cmp ebx, dword [esp]
jne 0x402465
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.00406ad0
mov dword [0x40d3cc], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.00406ad0
mov dword [0x40d338], eax
mov eax, 1
jmp 0x402498
push dword [esp + 4]
call fcn.00409780
add esp, 0xc
pop ebx
ret 4
Function at 0x4028d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00403060
push 0xa
push dword [esp + 4]
push dword [esp + 0x14]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x402925
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_LoadResource
mov dword [0x40d33c], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x40d350], eax
mov eax, dword [esp + 4]
jmp 0x40292d
push dword [esp]
call fcn.00409780
add esp, 8
ret 8
Function at 0x403af1
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x403b40
push dword [esp + 0x10]
push 0x403a6f
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x40d42c]
cmp esi, ebx
je 0x403b94
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x403b38
cmp byte [esi + 0x10], bl
je 0x403b38
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x403b15
jmp 0x403b94
mov esi, dword [0x40d42c]
cmp esi, ebx
je 0x403b94
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403b8d
cmp byte [esi + 0x11], bl
je 0x403b6a
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x403b80
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x40d42c
call fcn.0040935d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x403b4b
pop ebp
pop edi
pop esi
pop ebx
ret 4

Function at 0x404a94
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40d760]
call fcn.00408c8a
mov edi, eax
test edi, edi
je 0x404af6
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404abd
push dword [esp + 0xc]
push edi
call eax
jmp 0x404af6
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.004098b0
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.004099e0
pop esi
pop ebx
pop edi
ret 8
Function at 0x404e1f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x404f08
mov eax, dword [ebp - 0xc]
dec eax
je 0x404eeb
dec eax
jne 0x404f08
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x404e7e
cmp byte [ebp - 0x1e], 1
jne 0x404e7e
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x404ee7
dec eax
je 0x404ee3
dec eax
je 0x404ec1
dec eax
jne 0x404f08
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x404eb5
dec eax
je 0x404ea9
dec eax
jne 0x404f08
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x404f08
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x404f08
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x404f08
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x404edf
dec eax
je 0x404edb
dec eax
jne 0x404f08
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x404f08
push 0x3c
jmp 0x404f07
push 0x32
jmp 0x404f07
push 0x14
jmp 0x404f07
push 5
jmp 0x404f07
cmp dword [ebp - 0x14], 0
je 0x404f05
cmp dword [ebp - 0x14], 0xa
je 0x404f01
cmp dword [ebp - 0x14], 0x5a
jne 0x404f08
push 0x28
jmp 0x404f07
push 0x1e
jmp 0x404f07
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret

Function at 0x405e71
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x405eed
push 9
call esi
test bl, al
je 0x405eed
push 0x11
call esi
test bl, al
jne 0x405eed
push 0x10
call esi
test bl, al
jne 0x405eed
push 0x12
call esi
test bl, al
jne 0x405eed
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x405eed
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x405eed
xor eax, eax
jmp 0x405f6f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x405f16
push 0x11
call esi
test bl, al
jne 0x405f0e
push 0x10
call esi
test bl, al
jne 0x405f0e
push 0x12
call esi
test bl, al
je 0x405f16
push 1
push ebp
call fcn.00405e2a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x405f2c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x405f6c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x405f6c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x405f6c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x405f6c
dec esi
push esi
push dword [0x40d768]
call fcn.00408c8a
test eax, eax
je 0x405f6c
mov eax, dword [eax + 8]
jmp 0x405f6e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x406031
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x40d67c], eax
cmp eax, edi
je 0x406064
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40d680], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x40d678], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4060a2
cmp dword [ebp - 0xc], 1
je 0x4060b3
cmp dword [ebp - 0xc], 2
jne 0x4060a2
cmp dword [ebp - 0x18], 5
jb 0x4060b3
jne 0x4060a2
cmp dword [ebp - 0x14], edi
jne 0x4060a2
mov dword [0x40d678], edi
cmp dword [0x40d678], edi
je 0x4060b9
call fcn.00405f78
test eax, eax
jne 0x4060b9
mov dword [0x40d678], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x406c5e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x406c87
test byte [esp + 8], 2
je 0x406c7b
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x406c89
xor eax, eax
ret 8

Function at 0x406c9a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x406d0a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x406cec
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x406ceb
cmp dl, 0x5c
je 0x406ceb
cmp dl, 0x2f
jne 0x406cf6
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x406cd9
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x406d0c
xor eax, eax
leave
ret 4

Function at 0x406de0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x406e15
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x4071c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x407207
cmp byte [esi], al
je 0x407207
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40d808]
push eax
push ecx
call fcn.00408c8a
test eax, eax
je 0x407235
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x407210
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4071f5
sub ecx, edi
push ecx
push esi
push eax
call fcn.00407380
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x407210
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x407240
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x407299
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x407298
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40d808]
push eax
push ecx
call fcn.00408c8a
test eax, eax
je 0x407294
cmp dword [eax + 4], 0
je 0x407282
push esi
push edi
push eax
call fcn.00407380
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x4072a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40d808]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00408c8a
mov esi, eax
test esi, esi
je 0x407367
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40731f
cmp byte [ecx], 0
je 0x40731f
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x407307
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4072f0
sub eax, edi
push eax
push ecx
push esi
call fcn.00407380
mov dword [esp + 0xc], eax
jmp 0x40731e
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x407307
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x407342
push 2
push 0x40b1dc
push esi
call fcn.00407380
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x40b1dc
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8