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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x6e5a9c]
sub esp, 0x10c
push ebx
push edi
push eax
push eax
mov ebx, ecx
mov ecx, 0x706b10
push 0
call fcn.0055cc30
push eax
lea eax, [ebp - 0x10c]
push str._sData_d_d.UIE
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x10c]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x57dd73
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0x61208
push eax
push 4
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0x16c
lea eax, [ebx + 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57e3b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58b0a9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CDungeonMgr.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
push 0x1e0
lea ebx, [edi + 0x70]
mov byte [ebp - 4], 2
lea eax, [ebx + 0xc4]
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x1e0
lea eax, [ebx + 0x2a4]
push 0
push eax
call sub.MSVCR120.dll_memset
push 0x48e
xorps xmm0, xmm0
push 0
movq qword [ebx + 0x484], xmm0
push ebx
mov word [ebx + 0x48c], 0
call sub.MSVCR120.dll_memset
add esp, 0x24
mov dword [edi + 0x500], 0
lea ecx, [edi + 0x500]
mov dword [edi + 0x504], 0
call fcn.0057fc10
mov dword [edi + 0x500], eax
add edi, 0x508
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov ecx, dword [ebp - 0x10]
lea esi, [ecx + 0x52c]
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea ebx, [ecx + 0x550]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov byte [ebp - 4], 6
push 0x48e
lea eax, [ecx + 0x70]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov ecx, edi
push 0xc8
call fcn.004c4460
push 0x14
mov ecx, esi
call fcn.004c4460
mov esi, dword [ebp - 0x10]
push 0x404
push 0
lea eax, [esi + 0x590]
mov dword [esi + 0x574], 0
push eax
mov dword [esi + 0x57c], 0
mov dword [esi + 0x578], 0xf
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esi + 4]
push 0xc8
call fcn.004c4460
push 0x14
mov ecx, ebx
mov dword [esi + 0x580], 0
mov dword [esi + 0x584], 0
mov dword [esi + 0x588], 0
mov dword [esi + 0x58c], 0
call fcn.004c4460
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x582ee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
sar eax, 2
and esi, 3
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x48], eax
mov dword [ecx + 0x4c], esi
lea edx, [eax*4]
mov dword [ecx + 0x50], edx
push edi
test eax, eax
je 0x582f1f
xor edi, edi
xor edi, dword [ebx]
lea ebx, [ebx + 4]
dec eax
mov dword [ecx + 0x54], edi
mov dword [ecx + 0x48], eax
jne 0x582f11
test esi, esi
je 0x582f3c
mov edi, dword [ecx + 0x54]
mov eax, dword [ebp + 8]
movsx eax, byte [edx + eax]
inc edx
xor edi, eax
mov dword [ecx + 0x50], edx
dec esi
mov dword [ecx + 0x54], edi
mov dword [ecx + 0x4c], esi
jne 0x582f26
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4d87d4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d8653

Function at 0x4dd22e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dceee

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Move file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 0x6f
pop eax
push 0x70
mov word [ebp - 0xc], ax
pop eax
push 0x65
mov word [ebp - 0xa], ax
pop eax
mov word [ebp - 8], ax
push 0x6e
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
xor ebx, ebx
movzx ecx, word [eax + 0x10002030]
mov word [eax + 0x10003028], cx
add eax, 2
cmp cx, bx
jne 0x1000117a
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push str.fadfafafasf
push str.fasdfaf
mov esi, eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push ebx
push ebx
push 0x1000208c
lea eax, [ebp - 0xc]
push eax
push ebx
call esi
mov edi, 0x10003028
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x100011d3
push 0x40
mov ebx, pe_overlay
mov esi, 0x10002090
push ebx
movsd dword es:[edi], dword [esi]
push ebx
push 0
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x10003018], eax
mov eax, 0x10003028
lea edi, [eax - 2]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x10001204
mov esi, str.top.ini
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000301c], eax
pop edi
cmp eax, 0xffffffff
je 0x1000127a
push esi
push 0x10003020
push ebx
push dword [0x10003018]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003018]
movzx ecx, byte [eax]
xor ecx, 0x4e
cmp dword [0x10003020], esi
jbe 0x10001278
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003020]
jb 0x10001264
call eax
pop esi
pop ebx
leave
ret 0x10
Function at 0x401750
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and byte [ebp - 1], al
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push eax
add ecx, 0x40
push 0x40d274
push ecx
call dword [0x40c1be]
mov eax, dword [0x902ac]
add esp, 0xc
xorps xmm7, xmm1
invalid

Function at 0x4065f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov esi, dword [edx + 0x28]
nop
movzx ecx, word [edx + 0x26]
nop
jmp 0x406557
xor edi, edi
nop
jmp 0x406566
nop
xor eax, eax
nop
lodsb al, byte [esi]
cmp al, 0x61
jmp 0x406577
jl 0x406595
jmp 0x406584
sub al, 0x20
nop
jmp 0x406595
nop
ror edi, 0xd
add edi, eax
dec ecx
jne 0x406566
nop
nop
jmp 0x4065ae
push edx
nop
push edi
mov edx, dword [edx + 0x10]
jmp 0x4065c0
mov eax, dword [edx + 0x3c]
nop
add eax, edx
nop
jmp 0x4065d5
mov eax, dword [eax + 0x78]
test eax, eax
nop
jmp 0x4065e9
je 0x406799
nop
jmp 0x4065fc
jmp 0x40660a
add eax, edx
nop
mov ecx, dword [eax + 0x18]
nop
jmp 0x406621
push eax
nop
mov ebx, dword [eax + 0x20]
nop
add ebx, edx
jmp 0x406633
nop
test ecx, ecx
nop
jmp 0x406641
je 0x406789
nop
xor edi, edi
jmp 0x406656
dec ecx
nop
mov esi, dword [ebx + ecx*4]
nop
add esi, edx
jmp 0x40666b
xor eax, eax
lodsb al, byte [esi]
ror edi, 0xd
jmp 0x406680
add edi, eax
nop
cmp al, ah
nop
jmp 0x406696
jne 0x40665e
nop
jmp 0x4066a7
add edi, dword [ebp - 8]
jmp 0x4066ba
cmp edi, dword [ebp + 0x24]
jne 0x406633
nop
jmp 0x4066d2
nop
jmp 0x4066dd
pop eax
jmp 0x4066ec
mov ebx, dword [eax + 0x24]
nop
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
jmp 0x406705
mov ebx, dword [eax + 0x1c]
add ebx, edx
nop
mov eax, dword [ebx + ecx*4]
jmp 0x40671e
add eax, edx
jmp 0x40672e
mov dword [esp + 0x24], eax
nop
pop ebx
jmp 0x40673f
pop ebx
jmp 0x406750
popal
nop
pop ecx
nop
jmp 0x406767
pop edx
jmp 0x406777
push ecx
nop
jmp 0x406786
jmp eax
jmp 0x406797
pop eax
nop
pop edi
nop
jmp 0x4067ad
pop edx
mov edx, dword [edx]
nop
jmp 0x406540
Function at 0x4078cd
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 [0x7bd290]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x4078d7
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 0x40791d
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 0x4078fc
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40793c
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.00437510
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x4079cc
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x407982
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x407998
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 0x4079bf
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 0x407971
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401840
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ec48
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x250
mov eax, dword [0x47b310]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x18], edi
xor eax, eax
mov dword [ebp - 0x18], edi
push eax
push 0x4731c8
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
call fcn.00401450
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x18], 0
push 0
jne 0x401929
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
push 0x4731c8
mov ecx, edi
call fcn.00401450
mov edx, dword [ebp - 0x1c]
cmp edx, 8
jb 0x4019f5
mov ecx, dword [ebp - 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40191a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401a15
push edx
push ecx
call fcn.004478dd
add esp, 8
jmp 0x4019f5
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401967
xor eax, eax
mov dword [edi + 0x10], 0
xor ecx, ecx
mov dword [edi + 0x14], 7
mov word [edi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401950
sub ecx, edx
sar ecx, 1
push ecx
push 0
jmp 0x4018df
lea eax, [ebp - 0x260]
mov dword [ebp - 0x260], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4019cf
mov eax, dword [ebp - 0x258]
cmp eax, dword [ebp - 0x18]
je 0x4019a2
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401983
jmp 0x4019cf
lea ecx, [ebp - 0x23c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4019b0
sub ecx, edx
lea eax, [ebp - 0x23c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00401450
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x30]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
movups xmmword [edi], xmm0
movq xmm0, qword [ebp - 0x20]
movq qword [edi + 0x10], xmm0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004476a1
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0044c9d9
int3
Function at 0x401fe0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45eca9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x47b310]
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 eax, ecx
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], 0
mov eax, dword [eax + 0x4d8]
mov dword [ebp - 0x34], esi
test eax, eax
jne 0x4021c6
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x28]
push 2
push 0x473234
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00401450
mov dword [ebp - 0x30], 2
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
cmp eax, 0x804
ja 0x402094
je 0x4020a9
cmp eax, 0x411
ja 0x402084
je 0x40207b
cmp eax, 0x12
je 0x40208b
cmp eax, 0x404
je 0x4020a9
jmp 0x4020b8
push 5
push str.rb_JP
jmp 0x4020b0
cmp eax, 0x412
jne 0x4020b8
push 5
push str.ko_KR
jmp 0x4020b0
cmp eax, 0xc04
je 0x4020a9
cmp eax, 0x1004
je 0x4020a9
cmp eax, 0x1404
jne 0x4020b8
push 5
push str.zh_CN
lea ecx, [ebp - 0x28]
call fcn.00401450
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov ebx, dword [ebp - 0x28]
cmovae edi, ebx
cmp dword [ebp - 0x18], 2
jne 0x4020fd
mov ecx, 0x473234
mov edx, 2
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4020fd
add ecx, 2
sub edx, 1
jne 0x4020d7
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x4d8], 2
jmp 0x402189
mov eax, dword [ebp - 0x14]
lea edi, [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
cmp eax, 8
cmovae edi, ebx
cmp ecx, 5
jne 0x402149
mov edx, ecx
mov ecx, str.ko_KR
sub edi, ecx
nop word [eax + eax]
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x402143
add ecx, 2
sub edx, 1
jne 0x402120
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x4d8], 3
jmp 0x402189
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp eax, 8
lea edi, [ebp - 0x28]
cmovae edi, ebx
cmp ecx, 5
jne 0x402186
mov edx, ecx
mov ecx, str.rb_JP
sub edi, ecx
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x402183
add ecx, 2
sub edx, 1
jne 0x402160
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
mov dword [edi + 0x4d8], 4
jmp 0x402189
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4021c0
lea ecx, [eax*2 + 2]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4021b6
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x402218
push ecx
push ebx
call fcn.004478dd
add esp, 8
mov eax, dword [edi + 0x4d8]
push 0xffffffffffffffff
cmp eax, 2
jne 0x4021d4
push str.Langen_US.xml
jmp 0x4021f1
cmp eax, 3
jne 0x4021e0
push str.Langko_KR.xml
jmp 0x4021f1
cmp eax, 4
jne 0x4021ec
push 0x4734c0
jmp 0x4021f1
push str.Langzh_CN.xml
mov ecx, esi
call fcn.00411730
mov eax, esi
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.004476a1
mov esp, ebp
pop ebp
ret 4
call fcn.0044c9d9
int3
Function at 0x40a92a
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 0x40a94d
or esi, 2
push 1
call edi
test ax, ax
jns 0x40a959
or esi, 1
push 0x10
call edi
test ax, ax
jns 0x40a965
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x40a971
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret
Function at 0x40de57
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]
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp + 8]
je 0x40de92
mov ecx, dword [edi + 0x84]
cmp eax, ecx
je 0x40de92
cmp esi, dword [edi + 0xe8]
je 0x40de92
cmp byte [edi + 0xe0], 0
jne 0x40de92
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [edi + 0xe8]
cmp esi, eax
je 0x40df7c
test eax, eax
je 0x40defb
xorps xmm0, xmm0
mov dword [ebp - 0x20], 0x14
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x13c]
push 1
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.killfocus
push dword [edi + 0xe8]
call fcn.0040d9f9
and dword [edi + 0xe8], 0
test esi, esi
je 0x40df7c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp eax, edi
jne 0x40df7c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xfc]
test al, al
je 0x40df7c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x108]
test al, al
je 0x40df7c
xorps xmm0, xmm0
mov dword [edi + 0xe8], esi
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi + 0xe8]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x13c]
push 1
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push str.setfocus
push dword [edi + 0xe8]
call fcn.0040d9f9
pop edi
pop esi
leave
ret 8
Function at 0x413fea
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 0x414099
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 0x41409d
cmp dword [ebp - 0x1c], 0x10
jne 0x414068
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebx + 4]
jne 0x414068
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.0040eac7
pop ecx
test al, al
jne 0x41408a
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 0x41409d
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x414035
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 0x4140bb
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x4140c0
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 0x4140f2
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 0x420f80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x824], edi
je 0x420fec
cmp dword [ebp + 8], 0x100
jne 0x420fdb
cmp word [ebp + 0xc], 0xd
jne 0x420fdb
cmp byte [esi + 0x82a], 0
je 0x420fc0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x420fdb
cmp byte [esi + 0x82b], 0
jne 0x420fdb
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x420fd7
push 1
push edi
push edi
push edi
push str.return
push esi
call fcn.0040d9f9
xor eax, eax
jmp 0x420fef
mov eax, dword [esi + 0x824]
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 0x4213c9
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x47b310]
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 0x421483
movzx eax, word [esi]
test ax, ax
je 0x421483
push edi
mov edi, esi
mov ecx, esi
mov edx, eax
cmp dx, 0x2f
je 0x42140b
cmp dx, 0x5c
jne 0x42140d
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4213ff
cmp edi, esi
je 0x421456
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.0044d98c
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x421491
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.004213c9
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0045192e
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004518fd
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.004476a1
leave
ret
call fcn.004477d3
int3

Function at 0x421a55
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x421ad1
cmp dword [edi + 4], 0xffffffff
jne 0x421ad1
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4731c4
push esi
call fcn.004518fd
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x421aa3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x421aa3
mov eax, 0x2000000
jmp 0x421ad6
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00423f97
add esp, 0x10
test eax, eax
jne 0x421ac1
mov eax, dword [ebp - 4]
jmp 0x421ad6
push eax
call fcn.004246b9
mov dword [edi], eax
mov eax, dword [0x47cce4]
pop ecx
jmp 0x421ad6
mov eax, 0x1000000
pop edi
leave
ret 0xc