joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fa800
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x538
push ebx
xor ebx, ebx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], ecx
push ebx
mov edx, 0x53a1b0
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.00477f60
test al, al
jne 0x4fa831
mov eax, 0x53a36c
jmp 0x4faa05
push ebx
push ebx
push ebx
push ebx
push 0x5112f8
call dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
cmp eax, ebx
jne 0x4fa850
mov dword [ebp - 4], 0x53a358
jmp 0x4faa02
push ebx
push ebx
push 3
mov eax, 0x510d20
push eax
push eax
push 0x50
push 0x515f18
push dword [ebp - 0x18]
call dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x4fa87b
mov dword [ebp - 4], 0x53a340
jmp 0x4fa9fc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor cl, cl
mov esi, eax
call fcn.0042db1e
push dword [0x88e064]
movzx ecx, byte [ebp + 0xc]
push dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
push dword [0x5545f8]
push dword [ebp - 0x10]
push ecx
push esi
push eax
push 0x7021
push 0x512b50
push 0x53a2f8
mov esi, 0x500
lea eax, [ebp - 0x538]
push esi
push eax
call fcn.0049f8ba
add esp, 0x30
mov edi, eax
cmp byte [0x8946b0], bl
je 0x4fa8f7
push 0x8946b0
mov eax, esi
sub eax, edi
push 0x5181d4
push eax
lea eax, [ebp + edi - 0x538]
push eax
call fcn.0049f8ba
add esp, 0x10
add edi, eax
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4fa91b
cmp byte [eax], bl
je 0x4fa91b
push eax
push 0x53a2f0
sub esi, edi
lea eax, [ebp + edi - 0x538]
push esi
push eax
call fcn.0049f8ba
add esp, 0x10
mov ecx, dword [ebp - 0x1c]
mov dl, 1
call fcn.00479b79
mov esi, dword [ebp - 0x20]
mov eax, 0x51b248
cmp esi, ebx
jne 0x4fa936
mov eax, 0x51b250
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x538]
push ecx
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x30]
mov edi, eax
cmp edi, ebx
jne 0x4fa95f
mov dword [ebp - 4], 0x53a2d8
jmp 0x4fa9f4
mov eax, 0x53a2b0
cmp esi, ebx
jne 0x4fa96d
mov eax, 0x510d20
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, dword [ebp - 0x10]
push ecx
push esi
push 0xffffffffffffffff
push eax
push edi
call dword [ebp - 0x2c]
test eax, eax
jne 0x4fa98c
mov dword [ebp - 4], 0x53a298
jmp 0x4fa9f0
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x20000013
push edi
mov dword [ebp - 8], 4
call dword [ebp - 0x24]
test eax, eax
jne 0x4fa9b2
mov dword [ebp - 4], 0x53a280
jmp 0x4fa9f0
cmp dword [ebp - 0x14], 0xc8
je 0x4fa9f0
push dword [ebp - 0x14]
mov esi, 0x894ab8
push 0x53a274
push 0x64
push esi
call fcn.0049f8ba
add esp, 0x10
push 0x64
pop ecx
sub ecx, eax
push ebx
mov dword [ebp - 8], ecx
lea ecx, [ebp - 8]
push ecx
lea eax, [eax + 0x894ab8]
push eax
push 0x14
push edi
call dword [ebp - 0x24]
mov dword [ebp - 4], esi
push edi
call dword [ebp - 0x28]
push dword [ebp - 0xc]
call dword [ebp - 0x28]
pop edi
pop esi
push dword [ebp - 0x18]
call dword [ebp - 0x28]
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0xc
Function at 0x4faa68
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push edi
xor edi, edi
push edi
push 0x80
push 5
pop edx
call fcn.00482361
mov dword [ebp - 4], eax
or eax, 0xffffffff
cmp dword [ebp - 4], eax
je 0x4fabc2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xc]
push eax
push 0x20
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4fabb5
mov eax, dword [ebp - 0x50]
push ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], edi
cmp dword [ebp - 0x54], edi
jbe 0x4fabb1
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
push edi
push dword [ebp - 0x14]
push dword [ebp - 4]
call ebx
add dword [ebp - 0x14], 0xc
push edi
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4fabb4
cmp dword [ebp - 0x30], 5
jne 0x4faba2
push edi
push edi
push dword [ebp - 0x28]
push dword [ebp - 4]
call ebx
push edi
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4fabb4
mov ecx, dword [ebp - 0x10]
shl ecx, 4
call fcn.00479b81
push edi
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x10]
shl ecx, 4
push ecx
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
call esi
test eax, eax
je 0x4fabcb
mov dword [ebp - 0x18], edi
cmp dword [ebp - 0x10], edi
jbe 0x4fab94
mov eax, dword [ebp - 8]
add eax, 0xc
mov dword [ebp - 0x24], eax
cmp dword [eax - 4], 0xc
jb 0x4fab83
push edi
push edi
push dword [eax]
push dword [ebp - 4]
call ebx
push edi
lea eax, [ebp - 0xc]
push eax
push 0xc
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 4]
call esi
test eax, eax
je 0x4fabcb
cmp dword [ebp - 0x3c], 0x56555453
je 0x4fabc5
mov eax, dword [ebp - 0x24]
inc dword [ebp - 0x18]
mov ecx, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x24], eax
cmp ecx, dword [ebp - 0x10]
jb 0x4fab54
mov ecx, dword [ebp - 8]
cmp ecx, edi
je 0x4faba2
mov dl, 1
call fcn.00479b79
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x54]
jb 0x4faac9
mov dword [ebp - 0x20], edi
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
pop esi
pop edi
leave
ret
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 8]
cmp ecx, edi
je 0x4fabb4
mov dl, 1
call fcn.00479b79
jmp 0x4fabb4
Function at 0x4faec4
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov ecx, 0x2cc
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
call fcn.00479b81
mov esi, eax
mov edx, 0x53b41c
mov ecx, 0x51497c
mov dword [ebp - 8], esi
mov dword [esi], 0x10007
call fcn.004b878f
cmp eax, edi
je 0x4faf43
push ebx
push edi
push 0x1f03ff
call eax
mov edi, eax
test edi, edi
je 0x4faf43
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x4faf35
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x4faf35
push 0
mov edx, ebx
lea ecx, [ebp - 0xc]
call fcn.004facb8
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4fc833
Capabilities:
Create thread

Disassembly:
push esi
push 0
push 0x400
mov dword [0x8b170c], 0
mov dword [0x8b1700], 1
push 0x4fc81d
call sub.msvcrt.dll__beginthread
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
push 0x10
call esi
mov dword [0x8b1700], 0
push 1
call esi
mov ecx, dword [0x8b170c]
mov eax, dword [0x8b170c]
shr ecx, 3
xor eax, ecx
mov ecx, dword [0x8b1708]
shr eax, 3
xor ecx, eax
xor dword [0x8b170c], ecx
and dword [0x8b170c], 7
mov eax, dword [0x8b170c]
mov dword [0x8b1708], eax
mov eax, dword [0x8b1704]
mov ecx, dword [0x8b170c]
shl eax, 3
xor ecx, eax
mov dword [0x8b1704], ecx
mov eax, dword [0x8b1704]
pop esi
ret
call 0x4fc833
call 0x4fc833
call 0x4fc833
call 0x4fc833
call 0x4fc833
call 0x4fc833
call 0x4fc833
call 0x4fc833
call 0x4fc833
call 0x4fc833
jmp 0x4fc833
Function at 0x5032f0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
xor ecx, ecx
cpuid
lea edi, [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 4]
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 8], ecx
xor eax, eax
inc eax
xor ecx, ecx
cpuid
mov esi, edi
mov edi, dword [ebp - 4]
mov dword [esi], eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
and dword [ebp - 0x10], 0xffffff
add edi, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor ebx, ebx
push ebx
push 0x25
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x11c]
push eax
push ebx
movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x503380
mov cl, byte [eax + 0x531998]
mov byte [ebp + eax - 0x11c], cl
inc eax
cmp cl, bl
jne 0x50336e
push 0xa
lea edx, [ebp - 0x10]
lea ecx, [ebp - 0x11c]
call fcn.005099cf
test al, al
jne 0x5033a8
xor eax, eax
mov cl, byte [eax + 0x531998]
mov byte [ebp + eax - 0x11c], cl
inc eax
cmp cl, bl
jne 0x503396
mov eax, 0x105
push eax
lea ecx, [ebp - 0x224]
push ecx
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x5033d4
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], ebx
xor eax, eax
lea edi, [ecx + 0x20]
stosd dword es:[edi], eax
stosw word es:[edi], ax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x72ff38e6
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..text_1
mov ebx, 0x42f314
nop
nop
mov ecx, 0x32c02cb5
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x31b707ca
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
mov esi, 0x295b1328
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401bdd
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.00403dc0
mov dword [esp], eax
mov eax, dword [0x40b3b0]
push eax
push eax
call fcn.00405eb2
lea ecx, [esp + 8]
pop edx
call fcn.004030f0
push dword [esp]
push 0
push 0x40a00d
push dword [esp + 0x10]
call sub.KERNEL32.DLL_GetTempFileNameA
mov eax, dword [0x40b3b0]
push eax
push eax
push dword [esp + 8]
call fcn.00403e50
lea ecx, [0x40b12c]
pop edx
call fcn.004030f0
push dword [esp]
call fcn.00403e30
push dword [0x40b12c]
call fcn.00405ea0
push dword [0x40b12c]
call fcn.00405f13
mov eax, dword [0x40b3b0]
push eax
push eax
call fcn.00405dd5
lea ecx, [0x40b124]
pop edx
call fcn.004030f0
mov eax, dword [esp + 0x14]
call fcn.00403ea0
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x401cea
mov ebx, dword [esp + 0x18]
inc ebx
mov eax, ebx
call fcn.00403ea0
mov ebx, eax
cmp ebx, 1
jne 0x401cc3
push dword [0x40b3b0]
mov edx, 0x40a00e
call fcn.004074f0
mov edx, dword [0x40b124]
call fcn.004074f0
mov edx, 0x40a011
call fcn.004074f0
lea ecx, [0x40b128]
pop edx
call fcn.004030f0
mov edx, dword [0x40b12c]
push dword [0x40b3b0]
call fcn.004074f0
lea ecx, [0x40b124]
pop edx
call fcn.004030f0
mov dword [esp + 0xc], 2
jmp 0x401cfc
mov ebx, 1
cmp ebx, dword [esp]
jne 0x401cfc
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
mov eax, ebx
call fcn.00403ea0
mov dword [0x40b11c], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
mov eax, ebx
call fcn.00403ea0
mov dword [0x40b120], eax
mov eax, 1
jmp 0x401d2f
push dword [esp + 4]
call fcn.00407550
add esp, 0xc
pop ebx
ret 4
Function at 0x4020b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
xor eax, eax
push eax
push eax
mov edx, dword [esp + 0x10]
lea ecx, [esp]
call fcn.00403100
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 0x402102
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_LoadResource
mov dword [0x40b130], eax
push dword [esp + 4]
push dword [esp + 0x10]
call sub.KERNEL32.DLL_SizeofResource
mov dword [0x40b16c], eax
mov eax, dword [esp + 4]
jmp 0x40210a
push dword [esp]
call fcn.00407550
add esp, 8
ret 8

Function at 0x402761
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x402768
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00403100
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00403100
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00403100
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, str.open
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.dll_ShellExecuteExA
mov dword [esp + 0x48], eax
push 0x19
call sub.KERNEL32.DLL_Sleep
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.DLL_GetExitCodeProcess
and eax, eax
je 0x40280f
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x40280f
jmp 0x402811
jmp 0x4027e2
mov eax, 1
jmp 0x40281a
push dword [esp]
call fcn.00407550
push dword [esp + 4]
call fcn.00407550
push dword [esp + 8]
call fcn.00407550
add esp, 0x50
pop ebx
pop ebp
ret 0xc

Function at 0x4038b5
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x4038cd
push dword [esp + 4]
push 0x40384e
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x40390a
push esi
mov esi, dword [0x40b1c0]
test esi, esi
je 0x403909
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x403901
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x40b1c0
call fcn.0040681d
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x4038da
pop edi
pop ebx
pop esi
ret 4
Function at 0x403cd7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetVersionExA]
push edi
push 0x64
pop edi
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call esi
test eax, eax
je 0x403d7b
mov eax, dword [ebp - 0xc]
dec eax
je 0x403d5e
dec eax
jne 0x403d7b
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x403d5a
dec eax
je 0x403d56
dec eax
je 0x403d3c
dec eax
jne 0x403d7b
push 0x46
pop edi
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 0xb8], 0x9c
call esi
test eax, eax
je 0x403d7b
cmp byte [ebp - 0x1e], 1
je 0x403d7b
push 0x4b
jmp 0x403d7a
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x403d52
dec eax
je 0x403d4e
dec eax
jne 0x403d7b
push 0x41
jmp 0x403d7a
push 0x3c
jmp 0x403d7a
push 0x32
jmp 0x403d7a
push 0x14
jmp 0x403d7a
push 5
jmp 0x403d7a
cmp dword [ebp - 0x14], 0
je 0x403d78
cmp dword [ebp - 0x14], 0xa
je 0x403d74
cmp dword [ebp - 0x14], 0x5a
jne 0x403d7b
push 0x28
jmp 0x403d7a
push 0x1e
jmp 0x403d7a
push 0xa
pop edi
mov eax, edi
pop edi
pop esi
add ebp, 0x78
leave
ret

Function at 0x4045fc
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x40b424]
call fcn.00406690
mov edi, eax
test edi, edi
je 0x40465e
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x404625
push dword [esp + 0xc]
push edi
call eax
jmp 0x40465e
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.00407750
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.004077f0
pop esi
pop ebx
pop edi
ret 8
Function at 0x405d3c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x405daa
push 0x11
call esi
test al, al
js 0x405daa
push 0x10
call esi
test al, al
js 0x405daa
push 0x12
call esi
test al, al
js 0x405daa
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x405daa
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x405dce
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x405dce
dec eax
push eax
push dword [0x40b42c]
call fcn.00406690
mov eax, dword [eax + 8]
jmp 0x405dd0
xor eax, eax
pop esi
leave
ret 4

Function at 0x405f13
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x405f86
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 0x405f68
lea ecx, [eax - 1]
mov dl, byte [ecx]
cmp dl, 0x20
je 0x405f66
cmp dl, 0x5c
je 0x405f66
cmp dl, 0x2f
jne 0x405f72
mov eax, ecx
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x405f52
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
jmp 0x405f88
xor eax, eax
leave
ret 4

Function at 0x405f90
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
cmp dword [esi + 0x14], eax
mov dword [esp + 4], eax
jne 0x405fc5
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 0x406250
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
test esi, esi
mov dword [esp + 4], eax
je 0x406299
cmp byte [esi], al
je 0x406299
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40b43c]
push eax
push ecx
call fcn.00406690
test eax, eax
je 0x4062c7
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x4062a0
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x406285
sub ecx, edi
push ecx
push esi
push eax
call fcn.00406330
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4062a0
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 0x4062d0
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
test edi, edi
mov dword [esp + 4], eax
je 0x406329
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x406328
mov eax, dword [esp + 0x10]
mov ecx, dword [0x40b43c]
push eax
push ecx
call fcn.00406690
test eax, eax
je 0x406324
cmp dword [eax + 4], 0
je 0x406312
push esi
push edi
push eax
call fcn.00406330
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 0x406330
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x406365
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x4063de
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
sub ecx, 1
je 0x4063cb
sub ecx, 1
je 0x4063b6
sub ecx, 2
je 0x4063a3
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00405f90
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x40640b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc