joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45a82b
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x47a2f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0x10]
cmp eax, 0x5538
jne 0x403c51
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call fcn.00403dc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 0x5539
jne 0x403d9f
mov ecx, dword [ebp + 8]
push 0
mov dword [ebp + 8], 0
mov eax, dword [ecx]
mov dword [ebp + 0x10], eax
mov dword [ebx + 0x64], eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffc
push eax
lea eax, [ecx + 4]
push eax
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x84
test eax, eax
je 0x403d67
mov eax, dword [ebp + 8]
add dword [ebx + 0x68], eax
call fcn.0043fe81
add esp, 4
mov dword [ebp + 0xc], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0040dca5
mov dword [ebp - 4], 0xffffffff
mov edi, eax
push dword [ebx + 0x68]
push 0x4725c8
push edi
call fcn.0040e212
push 0x84
call fcn.0043fe81
add esp, 0x10
mov dword [ebp + 0xc], eax
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0040dca5
mov dword [ebp - 4], 0xffffffff
mov esi, eax
push dword [ebp + 0x10]
push 0x4725c8
push esi
call fcn.0040e212
add esp, 0xc
push esi
push edi
push 0x403
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebx + 0x68]
jne 0x403d4c
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebx + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x30], 0xffffffff
mov byte [ebx + 0x6c], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, ebx
call fcn.00403520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 0x70], 0
call fcn.0043fe81
add esp, 4
mov dword [ebp + 0xc], eax
push 0xffffffffffffffff
push 0x4725d0
mov ecx, eax
mov dword [ebp - 4], 2
call fcn.0040dc81
push 0
push eax
push 0x401
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a5b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b04d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x47a2f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx]
mov eax, 0x38e38e39
mov ecx, dword [ecx + 4]
xor esi, esi
sub ecx, edi
imul ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
test ecx, ecx
jle 0x40a683
mov eax, edi
nop dword [eax]
cmp dword [eax], 1
je 0x40a60f
inc esi
add eax, 0x48
cmp esi, ecx
jl 0x40a600
jmp 0x40a683
lea eax, [esi + esi*8]
lea esi, [edi + eax*8]
test esi, esi
je 0x40a683
mov eax, dword [esi + 0x40]
test eax, eax
jne 0x40a629
push esi
call fcn.0040a740
mov eax, dword [esi + 0x40]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, 1
jne 0x40a683
mov eax, dword [esi + 0x3c]
cmp eax, 0xffffffff
je 0x40a683
push ebx
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40a66c
nop dword [eax + eax]
sub edi, eax
je 0x40a69c
add ebx, eax
mov eax, dword [ebp + 0xc]
push 0
push edi
add eax, ebx
push eax
push dword [esi + 0x3c]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x40a650
push dword [esi + 0x3c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0xffffffff
mov eax, 0xfffffffd
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov edi, dword [esi + 0x44]
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0x20]
add edi, 4
push eax
mov ecx, edi
call fcn.0040af90
mov edx, dword [ebp - 0x18]
cmp byte [edx + 0xd], 0
jne 0x40a6c2
mov eax, dword [ebp + 0x18]
cmp eax, dword [edx + 0x10]
jae 0x40a713
cmp dword [edi + 4], 0xaaaaaaa
je 0x40a72f
mov esi, dword [edi]
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
push 0x18
mov dword [ebp - 0x10], 0
call fcn.0043fe81
mov ecx, dword [ebp + 0x18]
add esp, 4
mov dword [eax + 0x10], ecx
mov ecx, edi
push eax
push dword [ebp - 0x1c]
mov dword [eax + 0x14], 0
push dword [ebp - 0x20]
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.0040ad60
mov edx, eax
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [edx + 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
call fcn.0040a3a0
int3
Function at 0x40a740
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Print debug messages
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47a2f4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 2
mov word [ebp - 0x18], ax
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
movzx eax, word [edi + 0x38]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [edi + 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
push 1
push 2
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_socket]
push 4
mov esi, eax
mov dword [ebp - 0x1c], 0x5000
lea eax, [ebp - 0x1c]
push eax
push 0x1002
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x40a7d1
push str.socket_connect_error._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or esi, 0xffffffff
xor eax, eax
jmp 0x40a7f8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
push str.socket_connect_OK._n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, 1
mov ecx, dword [ebp - 8]
mov dword [edi + 0x40], eax
xor ecx, ebp
mov dword [edi + 0x3c], esi
xor eax, eax
pop edi
pop esi
call fcn.0043fe70
mov esp, ebp
pop ebp
ret 4
Function at 0x40c690
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b2a0
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x47a2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x108]
cmp eax, dword [edi + 0x274]
jne 0x40c80f
mov eax, dword [0x47d0c0]
mov esi, dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [eax + 8]
call esi
mov eax, dword [0x47d0c4]
push dword [eax + 0x10]
call esi
cmp dword [edi + 0x2e4], 0
jne 0x40c805
lea ecx, [ebp - 0x290]
call fcn.0040a030
mov dword [ebp - 0x290], 0x472908
mov dword [ebp - 0x280], 0x4729a4
mov dword [ebp - method.CMainFrameWnd.virtual_0], 0x47284c
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], 0x472994
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], 0x4728f8
push 0
push closesocket
push closesocket
push closesocket
push closesocket
push 0x100
push 0x96c80000
push 0x472470
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040e2ed
push eax
lea ecx, [ebp - 0x290]
call fcn.00412b68
lea ecx, [ebp - 0x290]
call fcn.00412a12
mov ecx, dword [ebp - 0x14]
push str.ck_W_vN
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea ecx, [ebp - 0x290]
call fcn.00412f98
mov ecx, dword [0x47d0c0]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ecx + 8]
call esi
mov ecx, dword [0x47d0c4]
push dword [ecx + 0x10]
call esi
lea ecx, [ebp - 0x264]
mov dword [ebp - method.DuiLib::CWindowWnd.virtual_0], vtable.DuiLib::WindowImplBase.2.0
mov dword [ebp - method.DuiLib::WindowImplBase.3.virtual_0], vtable.DuiLib::WindowImplBase.3.0
mov dword [ebp - fcn.00412183], vtable.DuiLib::WindowImplBase.4.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.DuiLib::WindowImplBase.1.0
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], vtable.DuiLib::WindowImplBase.0
call fcn.0040ec4b
lea ecx, [ebp - 0x27c]
call fcn.0040ddb5
cmp edi, 1
jne 0x40c828
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
jmp 0x40c828
cmp eax, dword [edi + 0x278]
jne 0x40c828
push 0
push 0xf020
push 0x112
call fcn.00412f06
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fe70
mov esp, ebp
pop ebp
ret 4
Function at 0x40c850
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45b2e0
mov eax, dword fs:[0]
push eax
sub esp, 0x288
mov eax, dword [0x47a2f4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x294], edi
mov ebx, dword [ebp + 8]
cmp ebx, 0xa3
je 0x40ca5c
cmp ebx, 0x10
jne 0x40c9e8
mov eax, dword [0x47d0c0]
mov esi, dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [eax + 8]
call esi
mov eax, dword [0x47d0c4]
push dword [eax + 0x10]
call esi
cmp dword [edi + 0x2e4], 0
jne 0x40c9e8
lea ecx, [ebp - 0x290]
call fcn.0040a030
mov dword [ebp - 0x290], 0x472908
mov dword [ebp - 0x280], 0x4729a4
mov dword [ebp - method.CMainFrameWnd.virtual_0], 0x47284c
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], 0x472994
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], 0x4728f8
push 0
push closesocket
push closesocket
push closesocket
push closesocket
push 0x100
push 0x96c80000
push 0x472470
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.0040e2ed
push eax
lea ecx, [ebp - 0x290]
call fcn.00412b68
lea ecx, [ebp - 0x290]
call fcn.00412a12
mov ecx, dword [ebp - 0x14]
push str.ck_W_vN
mov eax, dword [ecx]
call dword [eax + 0x2c]
lea ecx, [ebp - 0x290]
call fcn.00412f98
mov ecx, dword [0x47d0c0]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ecx + 8]
call esi
mov ecx, dword [0x47d0c4]
push dword [ecx + 0x10]
call esi
cmp edi, 1
jne 0x40ca14
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
mov dword [ebp - method.DuiLib::CWindowWnd.virtual_0], vtable.DuiLib::WindowImplBase.2.0
mov dword [ebp - method.DuiLib::WindowImplBase.3.virtual_0], vtable.DuiLib::WindowImplBase.3.0
mov dword [ebp - fcn.00412183], vtable.DuiLib::WindowImplBase.4.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.DuiLib::WindowImplBase.1.0
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], vtable.DuiLib::WindowImplBase.0
call fcn.0040ec4b
lea ecx, [ebp - 0x27c]
call fcn.0040ddb5
mov edi, dword [ebp - 0x294]
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp + 0xc]
push ebx
call fcn.00411ede
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fe70
mov esp, ebp
pop ebp
ret 0xc
lea ecx, [ebp - 0x264]
mov dword [ebp - method.DuiLib::CWindowWnd.virtual_0], vtable.DuiLib::WindowImplBase.2.0
mov dword [ebp - method.DuiLib::WindowImplBase.3.virtual_0], vtable.DuiLib::WindowImplBase.3.0
mov dword [ebp - fcn.00412183], vtable.DuiLib::WindowImplBase.4.0
mov dword [ebp - method.DuiLib::WindowImplBase.1.virtual_0], vtable.DuiLib::WindowImplBase.1.0
mov dword [ebp - method.DuiLib::CTxtWinHost.virtual_88], vtable.DuiLib::WindowImplBase.0
call fcn.0040ec4b
lea ecx, [ebp - 0x27c]
call fcn.0040ddb5
xor eax, eax
jmp 0x40c9f6
Function at 0x40f916
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x40f939
or esi, 1
push 1
call edi
test ax, ax
jns 0x40f945
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x40f951
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x40f95d
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x410cc6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [esi + 0xd0]
call fcn.0040e2ed
mov edi, dword [ebp + 8]
test eax, eax
jle 0x410d1c
push ebx
lea ecx, [esi + 0xd0]
mov byte [ebp + 0xb], 0
call fcn.0040de82
lea ecx, [ebp + 0xb]
push ecx
push dword [ebp + 0x10]
mov edx, dword [eax]
mov ecx, eax
push dword [ebp + 0xc]
push edi
call dword [edx]
cmp byte [ebp + 0xb], 0
jne 0x410d77
lea ecx, [esi + 0xd0]
inc ebx
call fcn.0040e2ed
cmp ebx, eax
jl 0x410ce5
sub edi, 0x100
je 0x410dd1
sub edi, 4
je 0x410d7b
dec edi
sub edi, 1
jne 0x410dc8
push dword [ebp + 0xc]
and dword [ebp + 8], edi
call fcn.004495e2
pop ecx
mov ecx, dword [esi + 0x50]
lea edx, [ebp + 8]
push reloc.WS2_32.dll_ioctlsocket
mov word [ebp + 8], ax
push edx
mov eax, dword [ecx]
push 0x411de7
call dword [eax + 0xfc]
mov esi, eax
test esi, esi
je 0x410dc8
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xf0]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x18]
mov al, 1
jmp 0x410dca
cmp dword [esi + 0x54], 0
je 0x410dc8
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
and dword [ebp - 0x1c], 0
mov word [ebp - 0xc], ax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x68]
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 6
mov dword [ebp - 0x10], eax
call fcn.0040f916
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0xc], 9
jne 0x410dc8
mov ecx, dword [esi + 0x54]
test ecx, ecx
je 0x410e1e
mov eax, dword [ecx]
call dword [eax + 0xc8]
test al, al
je 0x410e1e
mov ecx, dword [esi + 0x54]
mov eax, dword [ecx]
call dword [eax + 0xd4]
test al, al
je 0x410e1e
mov ecx, dword [esi + 0x54]
push str.RichEditUI
mov eax, dword [ecx]
call dword [eax + 0xc]
push eax
call fcn.00442465
pop ecx
pop ecx
test eax, eax
je 0x410e1e
mov ecx, dword [esi + 0x54]
call fcn.0041b6c2
test al, al
jne 0x410dc8
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
mov ecx, esi
setns al
movzx eax, al
push eax
call fcn.00411827
jmp 0x410d77
Function at 0x411611
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [edi]
je 0x411639
cmp esi, dword [edi + 0x54]
je 0x411708
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [edi + 0x54]
je 0x411708
cmp dword [edi + 0x54], 0
je 0x411693
and dword [ebp - 4], 0
xorps xmm0, xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0x54]
call fcn.004113f2
and dword [edi + 0x54], 0
test esi, esi
je 0x411708
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
cmp eax, edi
jne 0x411708
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc8]
test al, al
je 0x411708
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd4]
test al, al
je 0x411708
and dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [edi + 0x54], esi
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0x54]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x108]
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0x54]
call fcn.004113f2
pop edi
pop esi
leave
ret 4
Function at 0x412f98
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov ebx, ecx
push 4
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetWindow]
push 1
push dword [ebx + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 7
pop ecx
push dword [ebx + 4]
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_SetFocus]
jmp 0x413047
xor eax, eax
push eax
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x41304b
cmp dword [ebp - 0x1c], 0x10
jne 0x413016
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x413016
mov eax, dword [ebp - 0x18]
push 1
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
lea eax, [ebp - 0x20]
push eax
call fcn.00411c11
pop ecx
test al, al
jne 0x413038
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
je 0x41304b
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x412fe3
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push esi
call edi
cmp dword [ebp - 0x1c], 0x12
pop edi
pop esi
pop ebx
jne 0x413069
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x41306e
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4130a0
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8
Function at 0x41ca20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x4d4], edi
je 0x41ca8a
cmp dword [ebp + 8], 0x100
jne 0x41ca79
cmp word [ebp + 0xc], 0xd
jne 0x41ca79
cmp byte [esi + 0x4da], 0
je 0x41ca60
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x41ca79
cmp byte [esi + 0x4db], 0
jne 0x41ca79
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x41ca75
push edi
push edi
push edi
push str.return
push esi
call fcn.004113f2
xor eax, eax
jmp 0x41ca8d
mov eax, dword [esi + 0x4d4]
pop edi
pop esi
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
pop ebp
jmp dword [eax + 0xc]
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x41cd65
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x47a2f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x41ce1f
movzx eax, word [esi]
test ax, ax
je 0x41ce1f
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x41cda7
cmp dx, 0x5c
jne 0x41cda9
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x41cd9b
cmp edi, esi
je 0x41cdf2
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00448cf0
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x41ce2d
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0041cd65
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00448cb3
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00448c42
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043fe70
leave
ret
call fcn.004408aa
int3

Function at 0x41d3f1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x41d46d
cmp dword [edi + 4], 0xffffffff
jne 0x41d46d
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x45fd5c
push esi
call fcn.00448c42
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x41d43f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x41d43f
mov eax, 0x2000000
jmp 0x41d472
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041f949
add esp, 0x10
test eax, eax
jne 0x41d45d
mov eax, dword [ebp - 4]
jmp 0x41d472
push eax
call fcn.00420068
mov dword [edi], eax
mov eax, dword [0x47c0b0]
pop ecx
jmp 0x41d472
mov eax, 0x1000000
pop edi
leave
ret 0xc
Function at 0x41fa56
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x41fa89
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41fa84
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x41fab3
mov edx, dword [edi + 0x18]
push esi
mov esi, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x14]
cmovbe esi, ecx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004416a0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x41fc41
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x41fc4f
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x41fd0e
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45f628]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45f628]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45f628]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45f628]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45f628]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45f628]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45f628]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45f628]
sub edi, 1
jne 0x41fc67
pop edi
test esi, esi
je 0x41fd2a
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45f628]
inc edx
sub esi, 1
jne 0x41fd12
not ecx
mov eax, ecx
pop esi
pop ebp
ret