joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003e6d0
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [rsp + 0x10], edx
mov byte [rsp + 8], cl
push rdi
sub rsp, 0x40
movzx eax, byte [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x14003e6fc
mov dword [rsp + 0x38], 1
jmp 0x14003e704
mov dword [rsp + 0x38], 2
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x58], 1
je 0x14003e723
cmp dword [rsp + 0x58], 2
je 0x14003e723
mov eax, dword [rsp + 0x30]
jmp 0x14003e866
mov eax, dword [rsp + 0x58]
cmp dword [rsp + 0x30], eax
jne 0x14003e736
mov eax, dword [rsp + 0x30]
jmp 0x14003e866
movzx eax, byte [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 0x8000
test eax, eax
je 0x14003e76f
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
movzx edx, byte [rsp + 0x50]
mov ecx, 1
call fcn.1400376b0
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
movzx edx, byte [rsp + 0x50]
mov ecx, 2
call fcn.1400376b0
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x1403219e8]
jne 0x14003e7b4
mov dword [rsp + 0x3c], 1
jmp 0x14003e7bc
mov dword [rsp + 0x3c], 0
movzx eax, byte [rsp + 0x3c]
mov byte [rsp + 0x34], al
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x14003e7f1
mov dword [0x140319840], 0
mov edx, 1
mov ecx, 0xffffffff
call fcn.1400070b0
mov dword [0x140319840], 1
movzx eax, byte [rsp + 0x50]
cmp eax, 0x14
jne 0x14003e862
cmp dword [rsp + 0x58], 2
jne 0x14003e862
movzx eax, byte [rsp + 0x50]
mov ecx, eax
call qword [sym.imp.USER32.dll_GetKeyState]
cwde
and eax, 1
test eax, eax
je 0x14003e862
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov dl, reloc.WSOCK32.dll_recv
mov ecx, 2
call fcn.1400376b0
movzx eax, byte [rsp + 0x34]
test eax, eax
je 0x14003e862
mov dword [0x140319840], 0
mov edx, 1
mov ecx, 0xffffffff
call fcn.1400070b0
mov dword [0x140319840], 1
mov eax, dword [rsp + 0x30]
add rsp, 0x40
pop rdi
ret
Function at 0x14003e870
Capabilities:
Get graphical window text

Disassembly:
mov word [rsp + 0x18], r8w
mov byte [rsp + 0x10], dl
mov byte [rsp + 8], cl
push rdi
sub rsp, 0x30
cmp qword [0x140321818], 0
jne 0x14003e892
jmp 0x14003ea36
movsxd rax, dword [0x140321724]
imul rax, rax, 0xd4
mov rcx, qword [0x140321818]
movzx edx, byte [rsp + 0x40]
mov byte [rcx + rax + 6], dl
movsxd rax, dword [0x140321724]
imul rax, rax, 0xd4
mov rcx, qword [0x140321818]
movzx edx, byte [rsp + 0x48]
mov byte [rcx + rax], dl
movsxd rax, dword [0x140321724]
imul rax, rax, 0xd4
mov rcx, qword [0x140321818]
movzx edx, word [rsp + 0x50]
mov word [rcx + rax + 2], dx
movsxd rax, dword [0x140321724]
imul rax, rax, 0xd4
mov ecx, 0x69
mov rdx, qword [0x140321818]
mov word [rdx + rax + 4], cx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x140321820], eax
mov eax, dword [0x1403219ec]
mov ecx, dword [0x140321820]
sub ecx, eax
mov eax, ecx
mov eax, eax
cvtsi2ss xmm0, rax
divss xmm0, dword [0x140271690]
movsxd rax, dword [0x140321724]
imul rax, rax, 0xd4
mov rcx, qword [0x140321818]
movss dword [rcx + rax + 8], xmm0
mov eax, dword [0x140321820]
mov dword [0x1403219ec], eax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14003e9db
mov rax, qword [0x140321828]
cmp qword [rsp + 0x20], rax
je 0x14003e9ae
movsxd rax, dword [0x140321724]
imul rax, rax, 0xd4
mov rcx, qword [0x140321818]
lea rax, [rcx + rax + 0xc]
mov r8d, WSAAsyncSelect
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x14003e9d9
movsxd rax, dword [0x140321724]
imul rax, rax, 0xd4
mov rcx, qword [0x140321818]
add rcx, rax
mov rax, rcx
mov ecx, 2
imul rcx, rcx, 0
xor edx, edx
mov word [rax + rcx + 0xc], dx
jmp 0x14003ea04
movsxd rax, dword [0x140321724]
imul rax, rax, 0xd4
mov rcx, qword [0x140321818]
lea rax, [rcx + rax + 0xc]
lea rdx, [0x140273300]
mov rcx, rax
call fcn.1401e8a70
mov rax, qword [rsp + 0x20]
mov qword [0x140321828], rax
mov eax, dword [0x140321724]
inc eax
mov dword [0x140321724], eax
mov eax, dword [str.__nF]
cmp dword [0x140321724], eax
jl 0x14003ea36
mov dword [0x140321724], 0
add rsp, 0x30
pop rdi
ret
Function at 0x14003ea40
Capabilities:
Get keyboard layout

Disassembly:
mov qword [rsp + 0x10], rdx
mov byte [rsp + 8], cl
push rdi
sub rsp, 0x1d0
lea rdi, [rsp + 0x40]
mov ecx, WSAAsyncSelect
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, byte [rsp + 0x1e0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x1c8], rax
cmp qword [rsp + 0x1e8], 0
jne 0x14003ea97
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
mov qword [rsp + 0x1e8], rax
movzx eax, byte [rsp + 0x1e0]
cmp eax, 0x5a
jg 0x14003eab1
movzx eax, byte [rsp + 0x1e0]
cmp eax, 0x41
jge 0x14003ead3
movzx eax, byte [rsp + 0x1e0]
mov r8, qword [rsp + 0x1e8]
mov edx, 2
mov ecx, eax
call qword [sym.imp.USER32.dll_MapVirtualKeyExW]
jmp 0x14003ec90
mov r8d, 0x100
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.140189370
xor eax, eax
mov word [rsp + 0x194], ax
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x90]
xor edx, edx
mov ecx, WSASetLastError
call qword [sym.imp.USER32.dll_ToUnicodeEx]
cmp eax, 2
jne 0x14003eb44
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x44]
mov word [rsp + 0x194], ax
movzx eax, byte [rsp + 0x1e0]
mov rcx, qword [rsp + 0x1e8]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x44]
lea r8, [rsp + 0x90]
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov dword [rsp + 0x198], eax
cmp dword [rsp + 0x198], 0
jge 0x14003ebc8
mov rax, qword [rsp + 0x1e8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x90]
xor edx, edx
mov ecx, WSASetLastError
call qword [sym.imp.USER32.dll_ToUnicodeEx]
movzx eax, word [rsp + 0x194]
test eax, eax
je 0x14003ec5c
mov r9b, 1
mov r8, qword [rsp + 0x1e8]
lea rdx, [rsp + 0x1a4]
movzx ecx, word [rsp + 0x194]
call fcn.140036980
mov byte [rsp + 0x1b4], al
movzx eax, byte [rsp + 0x1b4]
test eax, eax
je 0x14003ec5c
movzx edx, byte [rsp + 0x1a4]
lea rcx, [rsp + 0x90]
call fcn.140036520
movzx eax, byte [rsp + 0x1b4]
mov rcx, qword [rsp + 0x1e8]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
lea r9, [rsp + 0x64]
lea r8, [rsp + 0x90]
xor edx, edx
mov ecx, eax
call qword [sym.imp.USER32.dll_ToUnicodeEx]
cmp dword [rsp + 0x198], 0
je 0x14003ec7d
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x44]
mov dword [rsp + 0x1c0], eax
jmp 0x14003ec88
mov dword [rsp + 0x1c0], 0
movzx eax, word [rsp + 0x1c0]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WSOCK32.dll_connect
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x1c8]
xor rcx, rsp
call fcn.140135520
add rsp, 0x1d0
pop rdi
ret
Function at 0x14003ee90
Capabilities:
Log keystrokes

Disassembly:
mov word [rsp + 8], cx
push rdi
sub rsp, 0x30
movzx eax, word [rsp + 0x40]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x45
je 0x14003eed1
cmp dword [rsp + 0x20], 0x136
je 0x14003eec0
cmp dword [rsp + 0x20], 0x145
je 0x14003eec0
jmp 0x14003eed5
movzx eax, word [rsp + 0x40]
and eax, 0xff
mov word [rsp + 0x40], ax
jmp 0x14003eed5
mov al, reloc.WSOCK32.dll_send
jmp 0x14003ef09
movzx eax, word [rsp + 0x40]
and eax, 0x100
test eax, eax
je 0x14003eef7
movzx eax, word [rsp + 0x40]
and eax, 0xff
or eax, 0xe000
mov word [rsp + 0x40], ax
movzx eax, word [rsp + 0x40]
mov edx, 3
mov ecx, eax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
add rsp, 0x30
pop rdi
ret

Function at 0x14003ef60
Capabilities:
Log keystrokes

Disassembly:
mov byte [rsp + 0x10], dl
mov byte [rsp + 8], cl
push rdi
sub rsp, 0x40
xor eax, eax
mov word [rsp + 0x20], ax
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x24], al
cmp byte [rsp + 0x24], 0x13
je 0x14003ef94
cmp byte [rsp + 0x24], 0x2c
je 0x14003efa0
cmp byte [rsp + 0x24], 0x90
je 0x14003efac
jmp 0x14003efb6
mov eax, 0x45
mov word [rsp + 0x20], ax
jmp 0x14003efb6
mov eax, 0x137
mov word [rsp + 0x20], ax
jmp 0x14003efb6
mov eax, 0x145
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
test eax, eax
je 0x14003efe5
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x14003efd2
mov dword [rsp + 0x28], 0
jmp 0x14003efdb
movzx eax, word [rsp + 0x20]
mov dword [rsp + 0x28], eax
movzx eax, word [rsp + 0x28]
jmp 0x14003f0c2
movzx eax, byte [rsp + 0x50]
mov edx, 4
mov ecx, eax
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [rsp + 0x20], ax
movzx eax, word [rsp + 0x20]
test eax, eax
jne 0x14003f00c
xor eax, eax
jmp 0x14003f0c2
movzx eax, word [rsp + 0x20]
and eax, 0xe000
test eax, eax
je 0x14003f02d
movzx eax, word [rsp + 0x20]
and eax, 0xff
bts eax, 8
mov word [rsp + 0x20], ax
movzx eax, byte [rsp + 0x50]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
sub eax, 0xd
mov dword [rsp + 0x2c], eax
cmp dword [rsp + 0x2c], 0x94
ja case.0x14003f069.14
movsxd rax, dword [rsp + 0x2c]
lea rcx, [0x140000000]
movzx eax, byte [rcx + rax + 0x3f0fc]
mov eax, dword [rcx + rax*4 + 0x3f0c8]
add rax, rcx
jmp rax
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x14003f083
movzx eax, word [rsp + 0x20]
bts eax, 8
mov dword [rsp + 0x30], eax
jmp 0x14003f08c
movzx eax, word [rsp + 0x20]
mov dword [rsp + 0x30], eax
movzx eax, word [rsp + 0x30]
jmp 0x14003f0c2
movzx eax, word [rsp + 0x20]
bts eax, 8
mov word [rsp + 0x20], ax
movzx eax, byte [rsp + 0x58]
test eax, eax
je 0x14003f0b4
mov dword [rsp + 0x34], 0
jmp 0x14003f0bd
movzx eax, word [rsp + 0x20]
mov dword [rsp + 0x34], eax
movzx eax, word [rsp + 0x34]
add rsp, 0x40
pop rdi
ret
Function at 0x140041d90
Capabilities:
Get disk information

Disassembly:
mov byte [rsp + 0x10], dl
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xc0
lea rdi, [rsp + 0x40]
mov ecx, SafeArrayAllocDescriptor
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xd0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, 0x5c
mov word [rsp + 0x48], ax
mov eax, 0x5c
mov word [rsp + 0x4a], ax
mov eax, 0x2e
mov word [rsp + 0x4c], ax
mov eax, 0x5c
mov word [rsp + 0x4e], ax
xor eax, eax
mov word [rsp + 0x50], ax
mov eax, 0x3a
mov word [rsp + 0x52], ax
xor eax, eax
mov word [rsp + 0x54], ax
xor eax, eax
mov word [rsp + 0x56], ax
lea rcx, [rsp + 0xd0]
call fcn.140034a30
movzx eax, al
test eax, eax
je 0x140041e79
lea rcx, [rsp + 0xd0]
call fcn.140034b10
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.140042f20
movzx eax, al
test eax, eax
je 0x140041e74
mov eax, 2
imul rax, rax, 0
mov ecx, 2
imul rcx, rcx, 4
mov rdx, qword [rsp + 0x68]
movzx eax, word [rdx + rax]
mov word [rsp + rcx + 0x48], ax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
jmp 0x140041f1c
mov eax, 2
imul rax, rax, 6
mov ecx, 0x5c
mov word [rsp + rax + 0x48], cx
mov eax, 0x41
mov word [rsp + 0x70], ax
jmp 0x140041ea5
movzx eax, word [rsp + 0x70]
inc ax
mov word [rsp + 0x70], ax
mov eax, 2
imul rax, rax, 4
movzx ecx, word [rsp + 0x70]
mov word [rsp + rax + 0x48], cx
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
jne 0x140041eca
jmp 0x140041ee0
movzx eax, word [rsp + 0x70]
cmp eax, 0x5a
jne 0x140041ede
mov eax, 0xa00e0002
jmp 0x140042003
jmp 0x140041e98
mov eax, 2
imul rax, rax, 6
mov qword [rsp + 0xa0], rax
cmp qword [rsp + 0xa0], 0x10
jae 0x140041efe
jmp 0x140041f03
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0xa0]
mov word [rsp + rcx + 0x48], ax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 3
mov edx, 0xc0000000
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0xffffffffffffffff
jne 0x140041f65
mov eax, 0xa0070000
jmp 0x140042003
movzx eax, byte [rsp + 0xd8]
test eax, eax
je 0x140041f7e
mov dword [rsp + 0xa8], 0x2d4808
jmp 0x140041f89
mov dword [rsp + 0xa8], 0x2d480c
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x84]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov dword [rsp + 0x94], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x94], 0
je 0x140041ff1
mov dword [rsp + 0xac], 1
jmp 0x140041ffc
mov dword [rsp + 0xac], 0xa0070000
mov eax, dword [rsp + 0xac]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140135520
add rsp, 0xc0
pop rdi
ret
Function at 0x140042d40
Capabilities:
Get disk size

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2d0
lea rdi, [rsp + 0x20]
mov ecx, 0xac
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2e0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rax, qword [rsp + 0x2e0]
movzx eax, word [rax]
test eax, eax
jne 0x140042d9b
mov eax, 0xa00a0000
jmp 0x140042ec4
mov r8d, 0x104
mov rdx, qword [rsp + 0x2e0]
lea rcx, [rsp + 0x30]
call fcn.1400ff430
lea rcx, [rsp + 0x30]
call fcn.1401ea000
mov qword [rsp + 0x248], rax
mov rax, qword [rsp + 0x248]
movzx eax, word [rsp + rax*2 + 0x2e]
cmp eax, 0x5c
je 0x140042e46
mov rax, qword [rsp + 0x248]
inc rax
cmp rax, 0x104
jae 0x140042e46
mov eax, 0x5c
mov rcx, qword [rsp + 0x248]
mov word [rsp + rcx*2 + 0x30], ax
mov rax, qword [rsp + 0x248]
inc rax
mov qword [rsp + 0x248], rax
mov rax, qword [rsp + 0x248]
shl rax, 1
mov qword [rsp + 0x2b0], rax
cmp qword [rsp + 0x2b0], 0x208
jae 0x140042e32
jmp 0x140042e37
call fcn.1401357e0
xor eax, eax
mov rcx, qword [rsp + 0x2b0]
mov word [rsp + rcx + 0x30], ax
lea r9, [rsp + 0x298]
lea r8, [rsp + 0x258]
lea rdx, [rsp + 0x278]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
jne 0x140042e74
mov eax, 0xa0070000
jmp 0x140042ec4
movzx eax, byte [rsp + 0x2f0]
test eax, eax
je 0x140042e92
mov rax, qword [rsp + 0x278]
mov qword [rsp + 0x2b8], rax
jmp 0x140042ea2
mov rax, qword [rsp + 0x258]
mov qword [rsp + 0x2b8], rax
xor edx, edx
mov rax, qword [rsp + 0x2b8]
mov ecx, 0x100000
div rcx
mov rcx, qword [rsp + 0x2e8]
mov qword [rcx], rax
mov eax, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WSOCK32.dll_connect
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.140135520
add rsp, 0x2d0
pop rdi
ret
Function at 0x1400446a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
je 0x1400446f2
mov ecx, 0xb7
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x20]
and eax, 0x10
test eax, eax
je 0x1400446e0
mov dword [rsp + 0x34], 1
jmp 0x1400446e8
mov dword [rsp + 0x34], 0
movzx eax, byte [rsp + 0x34]
jmp 0x140044792
mov dx, 0x5c
mov rcx, qword [rsp + 0x50]
call fcn.14000cc80
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x28], rax
jbe 0x14004475d
mov eax, 2
imul rax, rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax]
cmp eax, 0x3a
je 0x14004475d
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
mov rcx, qword [rsp + 0x50]
call fcn.1400446a0
mov byte [rsp + 0x30], al
mov eax, 0x5c
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
movzx eax, byte [rsp + 0x30]
test eax, eax
jne 0x14004475d
movzx eax, byte [rsp + 0x30]
jmp 0x140044792
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140044785
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140044785
mov dword [rsp + 0x38], 0
jmp 0x14004478d
mov dword [rsp + 0x38], 1
movzx eax, byte [rsp + 0x38]
add rsp, 0x40
pop rdi
ret
Function at 0x140044fd0
Capabilities:
Copy file
Get file attributes
Set current directory

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x20070
call fcn.1401354c0
sub rsp, rax
lea rdi, [rsp + 0x20]
mov ecx, 0x8014
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x20080]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x20068], rax
xor r9d, r9d
lea r8, [rsp + 0x10050]
mov edx, 0x8000
mov rcx, qword [rsp + 0x20088]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov rcx, qword [0x140322148]
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor r9d, r9d
lea r8, [rsp + 0x30]
mov edx, 0x8000
mov rcx, qword [rsp + 0x20080]
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea rcx, [0x140321838]
call fcn.140013c50
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea rdx, [rsp + 0x10050]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1400450a0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0x10
test eax, eax
jne 0x1400450a0
mov al, 1
jmp 0x1400450fd
movzx eax, byte [rsp + 0x20090]
test eax, eax
jne 0x1400450b9
mov dword [rsp + 0x20060], 1
jmp 0x1400450c4
mov dword [rsp + 0x20060], 0
mov r8d, dword [rsp + 0x20060]
lea rdx, [rsp + 0x10050]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400450ed
mov byte [rsp + 0x20064], 1
jmp 0x1400450f5
mov byte [rsp + 0x20064], 0
movzx eax, byte [rsp + 0x20064]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x20068]
xor rcx, rsp
call fcn.140135520
add rsp, 0x20070
pop rdi
ret
Function at 0x140045130
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
mov eax, 0x100c0
call fcn.1401354c0
sub rsp, rax
lea rdi, [rsp + 0x40]
mov ecx, 0x4020
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x100d0]
mov rax, qword [0x14031eae8]
xor rax, rsp
mov qword [rsp + 0x100b8], rax
movzx eax, byte [rsp + 0x100e0]
test eax, eax
je 0x140045191
mov dword [rsp + 0x100b0], 2
jmp 0x14004519c
mov dword [rsp + 0x100b0], 1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov eax, dword [rsp + 0x100b0]
mov dword [rsp + 0x20], eax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rsp + 0x100d8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0xffffffffffffffff
jne 0x1400451e5
xor al, al
jmp 0x140045323
mov rcx, qword [rsp + 0x100d0]
call fcn.1401ea000
mov qword [rsp + 0x10068], rax
cmp qword [rsp + 0x10068], 0x8000
jb 0x140045214
mov qword [rsp + 0x10068], 0x7fff
mov rax, qword [rsp + 0x10068]
inc rax
mov r8, rax
mov rdx, qword [rsp + 0x100d0]
lea rcx, [rsp + 0x60]
call fcn.14001e9a0
lea rcx, [rsp + 0x60]
call fcn.1401f8920
mov byte [rsp + 0x10088], 0
mov r8d, 0xa
lea rdx, [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x10070], rax
cmp qword [rsp + 0x10070], 0
je 0x140045310
mov rdx, qword [rsp + 0x10070]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x10078], rax
cmp qword [rsp + 0x10078], 0
je 0x140045310
mov rcx, qword [rsp + 0x10078]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x10080], rax
cmp qword [rsp + 0x10080], 0
je 0x140045310
mov rdx, qword [rsp + 0x10070]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x10094]
mov r8d, eax
mov rdx, qword [rsp + 0x10080]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400452f9
mov byte [rsp + 0x100b4], 1
jmp 0x140045301
mov byte [rsp + 0x100b4], 0
movzx eax, byte [rsp + 0x100b4]
mov byte [rsp + 0x10088], al
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [rsp + 0x10088]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.140134a00
mov rax, rdi
mov rcx, qword [rsp + 0x100b8]
xor rcx, rsp
call fcn.140135520
add rsp, 0x100c0
pop rdi
ret
Function at 0x14004cf70
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowTextLengthW]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 1
cdqe
mov rcx, rax
call fcn.1401a7dd0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x30]
mov qword [rax + 0x18], rcx
cmp qword [rsp + 0x30], 0
jne 0x14004cfbf
xor eax, eax
jmp 0x14004cffa
mov r8d, dword [rsp + 0x20]
mov rax, qword [rsp + 0x50]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowTextW]
cdqe
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14004cff5
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
xor ecx, ecx
mov word [rax], cx
mov eax, 1
add rsp, 0x40
pop rdi
ret
Function at 0x140053200
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov byte [rsp + 0x20], r9b
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x58]
call fcn.140035ef0
movzx eax, al
test eax, eax
je 0x140053278
mov byte [rsp + 0x24], 0
xorps xmm1, xmm1
lea rcx, [rsp + 0x58]
call fcn.140053490
mulsd xmm0, qword [0x140273208]
cvttsd2si eax, xmm0
mov dword [rsp + 0x28], eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov byte [rsp + 0x30], 1
mov dword [rsp + 0x2c], eax
jmp 0x140053285
mov byte [rsp + 0x24], 1
mov dword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.1400b16f0
mov dword [rsp + 0x20], eax
movzx eax, byte [rsp + 0x68]
test eax, eax
jne 0x1400532a8
mov dword [rsp + 0x34], 1
jmp 0x1400532b0
mov dword [rsp + 0x34], 0
cmp dword [rsp + 0x20], 0
je 0x1400532c1
mov dword [rsp + 0x38], 1
jmp 0x1400532c9
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jne 0x1400532e5
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov eax, 1
jmp 0x140053340
movzx eax, byte [rsp + 0x24]
test eax, eax
jne 0x140053318
cmp byte [rsp + 0x30], 0
jne 0x140053301
lea rcx, str.start_time
call fcn.1401352a0
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rsp + 0x2c]
mov ecx, dword [rsp + 0x28]
sub ecx, eax
mov eax, ecx
cmp eax, 5
jle 0x140053329
mov edx, 1
mov ecx, WSAAsyncSelect
call fcn.1400070b0
jmp 0x14005333b
mov rax, qword [rsp + 0x60]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
mov eax, 1
jmp 0x140053340
jmp 0x140053285
add rsp, 0x40
pop rdi
ret