joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10032cb4
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10032e4b
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10032e23
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10032e23
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10032dd8
jg 0x10032d10
test eax, eax
je 0x10032dce
push 1
push 0x1000
call fcn.100255f7
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10032d33
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10032dc5
push 0x8000
push ebx
call fcn.10032bae
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10032d5c
jg 0x10032d57
cmp ecx, 0x1000
jb 0x10032d5c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1002968c
add esp, 0x10
cmp eax, 0xffffffff
je 0x10032da1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10032d57
jl 0x10032d88
test ecx, ecx
jne 0x10032d49
push dword [ebp - 0xc]
push ebx
call fcn.10032bae
push esi
call fcn.10022ba7
add esp, 0xc
xor ebx, ebx
jmp 0x10032e31
cmp byte [edi + 0x24], 0
je 0x10032db8
cmp dword [edi + 0x20], 5
jne 0x10032db8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10032dc3
mov ebx, dword [edi + 0x18]
jmp 0x10032dc5
xor ebx, ebx
push esi
call fcn.10022ba7
pop ecx
jmp 0x10032e31
test ecx, ecx
jg 0x10032d9a
jl 0x10032dd8
test eax, eax
jae 0x10032d9a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10028326
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10032df8
cmp byte [edi + 0x1c], 0
je 0x10032d9a
jmp 0x10032e29
push ebx
call fcn.1002ebd3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10032d9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10032e31
cmp byte [edi + 0x1c], 0
je 0x10032e2e
mov ebx, dword [edi + 0x18]
jmp 0x10032e31
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10028326
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x418e40], 0
je 0x4029d8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 1], al
add dword [ebp - 8], 1
cmp byte [ebp - 1], 0
jne 0x40297e
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [0x418e40]
push edx
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call fcn.004045bf
add esp, 0x10
mov edx, dword [0x418e40]
push edx
push 1
push 1
push 0x4155c8
call fcn.004045bf
add esp, 0x10
mov eax, dword [0x418e40]
push eax
call fcn.00403f96
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40ceb9
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4170c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00409c06
mov dword [ebp - 0x14], eax
cmp dword [0x418de4], edi
jne 0x40cfaa
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40cf37
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d08a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40d08a
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d08a
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x418de4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x418de8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x418dec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418df4], eax
test eax, eax
je 0x40cfa7
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x418df0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40cfcf
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cfc2
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40cfe4
push 4
pop eax
jmp 0x40d08c
cmp dword [ebp - 0x14], edi
je 0x40cfe4
push dword [0x418de4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cfc9
mov eax, dword [0x418df0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40d042
cmp dword [0x418df4], esi
je 0x40d042
push eax
call ebx
push dword [0x418df4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d042
test eax, eax
je 0x40d042
call ecx
test eax, eax
je 0x40d037
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d037
test byte [ebp - 8], 1
jne 0x40d042
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40d072
mov eax, dword [0x418de8]
cmp eax, esi
je 0x40d06f
push eax
call ebx
test eax, eax
je 0x40d06f
call eax
mov edi, eax
test edi, edi
je 0x40d06f
mov eax, dword [0x418dec]
cmp eax, esi
je 0x40d06f
push eax
call ebx
test eax, eax
je 0x40d06f
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x418de4]
call ebx
test eax, eax
je 0x40d08a
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40d08c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403527
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x35100e5b
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rsrc
mov ebx, 0x42e1d0
nop
mov ecx, 0x6f32b01
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x401cb8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x485008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x80
lea eax, [ebp - 0x84]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x98], ebx
call fcn.00447370
and dword [ebp - 0x88], 0
mov eax, 0x46e0f8
xorps xmm0, xmm0
mov dword [ebp - 0x94], eax
add esp, 0xc
mov dword [ebp - 0x90], 0x46e100
mov dword [ebp - 0x8c], 0x46e10c
xor esi, esi
movlpd qword [ebp - 0xa0], xmm0
push eax
push ebx
call fcn.00446fd0
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x401d4e
mov eax, dword [ebp + esi*4 - 0x90]
inc esi
mov ebx, dword [ebp - 0x98]
test eax, eax
jne 0x401d1f
mov esi, dword [ebp - 0x9c]
mov edi, dword [ebp - 0xa0]
jmp 0x401dc3
mov edi, ebx
lea ecx, [ebp - 0x84]
sub edi, dword [ebp - 0x98]
mov edx, 0x80
push ebx
call fcn.004014cb
lea eax, [ebp - 0x84]
mov dword [esp], 0x46e114
push eax
call fcn.00446fd0
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x401d8f
lea eax, [ebp - 0x84]
mov byte [esi], 0
sub esi, eax
jmp 0x401da1
lea esi, [ebp - 0x84]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x401d98
sub esi, ecx
sub esi, dword [ebp - 0x98]
lea eax, [ebp - 0x84]
push 1
push 0
push 0
push eax
push 0x46e118
push 0
add esi, ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
mov edx, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.00445b7e
leave
ret

Function at 0x402441
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0xa
movzx eax, cx
xor esi, esi
push eax
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4024b8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4024b8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x46e250
push dword [ebp - 4]
mov ebx, eax
call fcn.0044a0f7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4024b4
push edi
push dword [ebp - 8]
inc esi
push esi
push ebx
call fcn.0044d8c1
push edi
call fcn.0044a2d1
add esp, 0x14
mov eax, esi
jmp 0x4024ba
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4024bf
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x485008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x200
lea eax, [ebp - 0x204]
push esi
xor edi, edi
push edi
push eax
call fcn.00447370
add esp, 0xc
lea eax, [ebp - 0x204]
mov ebx, 0x104
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40250a
sub ecx, edx
lea eax, [ebp - 0x204]
sub esi, ecx
add ecx, eax
push 0x46e254
mov edx, esi
call fcn.004014cb
pop ecx
lea ecx, [ebp - 0x204]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402533
sub ecx, edx
cmp ecx, ebx
jb 0x40254d
push edi
push 0x46e060
push str.Path_too_long__restart_program_manually
jmp 0x40256c
lea edx, [ebp - 0x204]
mov ecx, 0x1e23b
call fcn.00402441
test eax, eax
jne 0x402582
push edi
push 0x46e060
push str.Cannot_write_restarter__restart_program_manually
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445b7e
leave
ret
push 0xa
push edi
push edi
lea eax, [ebp - 0x204]
push eax
push 0x46e284
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
call fcn.004498af
int3

Function at 0x402dcf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402de3
test al, 0x10
je 0x402de3
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x403778
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x485008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x6b82d4]
push esi
push ebx
push 6
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4037e1
push edi
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], 0x1c
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
pop edi
jmp 0x4037d6
cmp ebx, dword [ebp - 0x14]
jne 0x4037cb
cmp dword [ebp - 0x18], 0
jne 0x4037f1
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4037c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00445b7e
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
jmp 0x4037e3
Function at 0x403ab1
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x485008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x83eed4], 0
push esi
mov esi, 0x104
jne 0x403b4d
push esi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00447370
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403afe
sub ecx, edx
lea eax, [ebp - 0x108]
mov edx, esi
sub edx, ecx
add ecx, eax
push 0x46eabc
call fcn.004014cb
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403b43
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x83eed4], eax
jmp 0x403b4d
mov dword [0x83eed4], 1
cmp dword [0x83e530], 0
jne 0x403bd0
push esi
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00447370
add esp, 0xc
lea eax, [ebp - 0x108]
push esi
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403b81
sub ecx, edx
lea eax, [ebp - 0x108]
sub esi, ecx
add ecx, eax
push 0x46eac4
mov edx, esi
call fcn.004014cb
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x403bc6
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [0x83e530], eax
jmp 0x403bd0
mov dword [0x83e530], 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00445b7e
leave
ret
Function at 0x405e7c
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x234
mov eax, 0x467d7e
call fcn.00463e7d
mov edi, edx
mov ebx, ecx
mov dword [ebp - 0x224], ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x21c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x218], eax
lea eax, [ecx + edi]
mov dword [ebp - 0x228], ecx
lea ecx, [ebp - 0x240]
push eax
mov dword [ebp - 0x220], eax
call fcn.004037fd
xor esi, esi
test ebx, ebx
mov dword [ebp - 4], esi
mov ebx, dword [ebp - 0x240]
je 0x405ee4
push edi
push dword [ebp - 0x224]
push ebx
call fcn.00449090
add esp, 0xc
push dword [ebp - 0x228]
lea eax, [edi + ebx]
push dword [ebp - 0x21c]
push eax
call fcn.00449090
mov ecx, dword [ebp - 0x218]
lea edx, [ebp - 0x214]
push 0x104
call fcn.00402de6
add esp, 0x10
lea eax, [ebp - 0x214]
push 0x46f34c
push eax
call fcn.0044a0f7
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x405f69
push dword [ebp - 0x218]
lea eax, [ebp - 0x110]
push str.Cannot_open__s_file_for_writing__Retry_
push eax
call fcn.00401468
add esp, 0xc
lea eax, [ebp - 0x110]
push 5
push 0x46e060
push eax
push dword [0x6b845c]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
jne 0x405f12
jmp 0x4060bc
push esi
push esi
push edi
call fcn.0044ad58
push edi
push dword [ebp - 0x220]
push 1
push ebx
call fcn.0044d8c1
add esp, 0x1c
mov dword [ebp - 0x21c], eax
cmp eax, dword [ebp - 0x220]
je 0x405fd4
push dword [ebp - 0x218]
lea eax, [ebp - 0x110]
push str.Cannot_write_to__s_file__Retry_
push eax
call fcn.00401468
add esp, 0xc
lea eax, [ebp - 0x110]
push 5
push 0x46e060
push eax
push dword [0x6b845c]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x406053
mov eax, dword [ebp - 0x21c]
cmp eax, dword [ebp - 0x238]
jne 0x405f69
push edi
call fcn.0044a2d1
mov edi, dword [ebp - 0x238]
pop ecx
push edi
lea ecx, [ebp - 0x234]
call fcn.004037fd
lea eax, [ebp - 0x214]
mov byte [ebp - 4], 1
push 0x46f398
push eax
call fcn.0044a0f7
mov dword [ebp - 0x21c], eax
pop ecx
pop ecx
test eax, eax
je 0x4060b0
push eax
push 1
push dword [ebp - 0x22c]
push dword [ebp - 0x234]
call fcn.00451a9d
push dword [ebp - 0x21c]
call fcn.0044a2d1
push edi
push ebx
push dword [ebp - 0x234]
call fcn.00464375
add esp, 0x20
test eax, eax
je 0x4060ad
cmp dword [ebp + 0x14], 0
jmp 0x406092
push edi
call fcn.0044a2d1
jmp 0x4060bb
push dword [ebp - 0x218]
lea eax, [ebp - 0x110]
push str.File__s_hasnt_been_properly_written._You_might_lose_your_data.__nRetry_writing_
push eax
call fcn.00401468
add esp, 0xc
lea eax, [ebp - 0x110]
push 5
push 0x46e060
push eax
push dword [0x6b845c]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 2
je 0x4060b0
push esi
push dword [ebp - 0x218]
xor edx, edx
xor ecx, ecx
push edi
push ebx
call fcn.00405e7c
add esp, 0x10
test eax, eax
je 0x40605b
xor esi, esi
inc esi
push dword [ebp - 0x234]
call fcn.0044dd3c
pop ecx
push ebx
call fcn.0044dd3c
pop ecx
mov eax, esi
call fcn.00463e38
ret
Function at 0x406184
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov esi, edi
mov ecx, edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x4061a7
xor eax, eax
xor edx, edx
jmp 0x40623b
push 8
pop edi
mov al, byte [ebx]
shr al, cl
lea ecx, [esi + esi]
mov esi, dword [ebp - 4]
and al, 1
movzx edx, al
lea eax, [edi - 1]
or dx, cx
inc esi
cmp esi, 7
cmovle eax, edi
mov edi, eax
mov eax, edx
xor eax, 0x8005
cmp word [ebp - 8], 0
movzx ecx, ax
movzx eax, dx
cmovge ecx, eax
lea eax, [ebx + 1]
movzx edx, cx
xor ecx, ecx
cmp esi, 7
cmovle ecx, esi
cmovle eax, ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov dword [ebp - 8], esi
mov ebx, eax
test edi, edi
jg 0x4061aa
push 0x10
pop ebx
xor edi, edi
lea ecx, [esi + esi]
mov eax, ecx
xor eax, 0x8005
test si, si
movzx edx, ax
movzx eax, cx
cmovns edx, eax
movzx eax, dx
mov ecx, eax
mov esi, eax
sub ebx, 1
jne 0x406201
xor edx, edx
mov ecx, 0x8000
inc edx
test ecx, eax
je 0x406231
or edi, edx
add edx, edx
sar ecx, 1
jne 0x40622b
movzx eax, di
cdq
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406615
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [0x6b845c]
mov eax, 0x47a4ac
push esi
mov esi, ecx
mov ecx, eax
mov edx, esi
push edi
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x40662e
mov edi, dword [ebp + 0xc]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406640
sub ecx, edx
push 1
lea eax, [ecx + 0x64]
push eax
call fcn.00449f17
pop ecx
pop ecx
mov ecx, eax
mov dword [esi + 0x40], ecx
test ecx, ecx
jne 0x40667d
push eax
push 0x47a4ac
push str.Error_allocating_memory_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x58
push esi
call fcn.00446054
pop ecx
pop ecx
jmp 0x4066a5
mov al, byte [edi]
inc edi
mov byte [ecx], al
inc ecx
test al, al
jne 0x40667d
push esi
mov eax, 0x2bc
mov dword [esi + 0x44], ebx
push 0
push 0x406607
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
call fcn.0044b34c
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406caa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
mov esi, ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x406cb5
mov eax, dword [ebp + 0xc]
push esi
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x10]
push 0
push 0x406c9c
mov dword [esi + 0x44], eax
call fcn.0044b34c
add esp, 0xc
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x407098
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x485008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x11
mov edi, edx
mov dword [ebp - 0x18], ecx
call esi
test al, al
js 0x4071dd
push 0x10
call esi
test al, al
js 0x4071dd
mov eax, dword [ebp - 0x18]
mov esi, 0x83e5c8
mov dword [0x49210c], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [0x492108], eax
mov eax, dword [ebp + 0xc]
push 0x46ffe8
push esi
mov dword [0x4920f0], edi
mov dword [0x492104], eax
mov dword [0x492100], 0x40
mov dword [0x4920f8], ebx
call fcn.00401468
add esp, 0xc
xor ebx, ebx
push ebx
push ebx
push 0x1027
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
call edi
mov dword [0x4920fc], eax
mov eax, dword [0x492104]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push dword [0x492108]
mov dword [ebp - 0x14], ebx
push 0x1038
push dword [0x4920f0]
call edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
mov eax, dword [ebp - 8]
mov edx, 0x46ffec
sub eax, dword [ebp - 0x10]
mov ecx, 0x200
push ebx
push dword [0x4920f0]
push eax
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x50000080
push esi
call fcn.00406287
mov ecx, dword [0x492100]
add esp, 0x28
dec ecx
mov dword [0x4920f4], eax
push ebx
push ecx
push 0xc5
push eax
call edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4071a1
sub esi, ecx
push esi
push esi
push 0xb1
push dword [0x4920f4]
call edi
push 0x407232
push 0xfffffffffffffffc
push dword [0x4920f4]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [0x4920f4]
mov dword [0x492110], eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00445b7e
leave
ret
Function at 0x407903
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x485008]
xor eax, esp
mov dword [esp + 0x1a8], eax
push ebx
push esi
push edi
lea eax, [esp + 0x20]
mov ebx, 0x202
push eax
push ebx
mov edi, edx
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x407951
push 0
push 0x470060
push 0x470068
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x4079c3
cmp word [esp + 0x20], bx
je 0x40796c
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 0
push 0x47007c
push 0x470084
jmp 0x407945
push 2
pop ebx
push esi
mov word [esp + 0x14], bx
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [esp + 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 6
push 1
push ebx
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4079ab
push 0
push 0x4700a0
push 0x4700a8
jmp 0x407945
push 0x10
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov eax, esi
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00445b7e
mov esp, ebp
pop ebp
ret

Function at 0x407a09
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
mov eax, dword [0x485008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x598]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x407a37
xor al, al
jmp 0x407a99
push 0x400
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x407a8f
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edx, eax
test edx, edx
je 0x407a8f
mov ecx, dword [edx + 0xc]
mov bl, 1
mov ecx, dword [ecx]
mov cl, byte [ecx]
mov byte [esi], cl
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov al, byte [eax + 1]
mov byte [esi + 1], al
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 2]
mov byte [esi + 2], al
mov eax, dword [edx + 0xc]
mov eax, dword [eax]
mov al, byte [eax + 3]
mov byte [esi + 3], al
jmp 0x407a91
xor bl, bl
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, bl
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00445b7e
leave
ret