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

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x487564]
mov eax, dword [0x481444]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x43d195
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x487580]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x43d195
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x43d039
xor eax, eax
jmp 0x43d1a9
test al, 0x20
je 0x43d04a
push 2
push edi
push edi
push ecx
call fcn.0043f092
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43d11f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x43d166
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x43d0ac
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43d09d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x43d07f
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43d0ec
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x43d0f8
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x43d073
jmp 0x43d0fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x43d190
cmp dword [ebp + 0x3a4], edi
je 0x43d166
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x43d158
mov dword [0x485f88], eax
jmp 0x43d19c
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43d14a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x43d0fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x43d0fa
push dword [ebp + 0x3a4]
call fcn.0043d69e
pop ecx
jmp 0x43d1a6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43d17e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x43d032
mov dword [0x485f84], 0x1c
mov dword [0x485f88], edi
jmp 0x43d1a6
sub eax, dword [ebp - 0x7c]
jmp 0x43d1a9
and dword [0x485f88], 0
mov dword [0x485f84], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0043894c
add ebp, 0x39c
leave
ret
Function at 0x43ddfb
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004363d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43de96
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x485f90]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x43de96
cmp eax, 1
je 0x43deb7
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43de96
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x43de63
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x43de92
xor eax, eax
inc eax
jmp 0x43ded6
cmp edi, eax
jae 0x43de9a
xor eax, eax
jmp 0x43ded6
cmp eax, esi
jae 0x43dea1
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x485f90]
jmp 0x43deba
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43e365
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x43e393
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x43e39a
cmp ebx, dword [eax + 4]
jae 0x43e39a
xor eax, eax
jmp 0x43e58a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43e3ab
xor eax, eax
inc eax
jmp 0x43e589
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43e3c1
cmp ecx, edx
jae 0x43e506
cmp dword [eax + 4], 0
je 0x43e3ca
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43e3b2
cmp dword [ebp + 8], 0
je 0x43e3ec
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43e506
cmp eax, esi
jae 0x43e506
mov eax, dword [0x486288]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43e411
cmp dword [esi*4 + 0x486290], edi
je 0x43e50a
inc esi
cmp esi, eax
jl 0x43e3ff
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43e586
cmp dword [ebp - 8], 0x1000000
jne 0x43e586
test byte [ebp - 0xc], 0xcc
je 0x43e48f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43e586
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43e586
cmp word [eax + 0x18], 0x10b
jne 0x43e586
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43e586
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43e48f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43e48f
test byte [ecx + 0x27], 0x80
jne 0x43e506
push 1
push 0x4862d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x43e3a3
mov ecx, dword [0x486288]
test ecx, ecx
mov edx, ecx
jle 0x43e4c3
lea eax, [ecx*4 + 0x48628c]
cmp dword [eax], edi
je 0x43e4c3
dec edx
sub eax, 4
test edx, edx
jg 0x43e4b7
test edx, edx
jne 0x43e4f4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43e4d0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43e4e8
lea eax, [edx*4 + 0x486290]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43e4d6
cmp ecx, 0x10
jge 0x43e4f4
inc ecx
mov dword [0x486288], ecx
push 0
push 0x4862d0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x43e3a3
xor eax, eax
jmp 0x43e589
test esi, esi
jle 0x43e3a3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4862d0
call ebx
test eax, eax
jne 0x43e3a3
cmp dword [esi*4 + 0x486290], edi
je 0x43e560
mov eax, dword [0x486288]
lea esi, [eax - 1]
test esi, esi
jl 0x43e54e
cmp dword [esi*4 + 0x486290], edi
je 0x43e54a
dec esi
jns 0x43e53e
test esi, esi
jge 0x43e55e
cmp eax, 0x10
jge 0x43e559
inc eax
mov dword [0x486288], eax
lea esi, [eax - 1]
jmp 0x43e560
je 0x43e578
xor ecx, ecx
test esi, esi
jl 0x43e578
lea eax, [ecx*4 + 0x486290]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43e566
push 0
push 0x4862d0
call ebx
jmp 0x43e3a3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43e976
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4862d8], ebx
push esi
push edi
jne 0x43e9f6
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43ea31
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x45307c
push edi
call esi
test eax, eax
mov dword [0x4862d8], eax
je 0x43ea31
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4862dc], eax
call esi
cmp dword [0x485f90], 2
mov dword [0x4862e0], eax
jne 0x43e9f6
push 0x45303c
push edi
call esi
test eax, eax
mov dword [0x4862e8], eax
je 0x43e9f6
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4862e4], eax
mov eax, dword [0x4862e4]
test eax, eax
je 0x43ea3b
call eax
test eax, eax
je 0x43ea22
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4862e8]
test eax, eax
je 0x43ea22
test byte [ebp - 8], 1
jne 0x43ea3b
cmp dword [0x485f9c], 4
jb 0x43ea35
or byte [ebp + 0x12], 0x20
jmp 0x43ea5a
xor eax, eax
jmp 0x43ea6a
or byte [ebp + 0x12], 4
jmp 0x43ea5a
mov eax, dword [0x4862dc]
test eax, eax
je 0x43ea5a
call eax
mov ebx, eax
test ebx, ebx
je 0x43ea5a
mov eax, dword [0x4862e0]
test eax, eax
je 0x43ea5a
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4862d8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43f2ae
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004363d0
mov eax, dword [0x481444]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x487564]
mov dword [ebp - 4], eax
jae 0x43f3f1
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x487580]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x43f3f1
push 1
push esi
push ebx
call fcn.0043cf43
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x43f3fb
push 2
push esi
push ebx
call fcn.0043cf43
add esp, 0xc
cmp eax, 0xffffffff
je 0x43f3fb
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x43f39b
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00435620
push 0x8000
push ebx
call fcn.0043f8b0
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x43f35a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0043cfcf
add esp, 0xc
cmp eax, 0xffffffff
je 0x43f378
sub edi, eax
test edi, edi
jg 0x43f34f
jmp 0x43f38e
cmp dword [0x485f88], 5
jne 0x43f38b
mov dword [0x485f84], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0043f8b0
pop ecx
pop ecx
jmp 0x43f3db
jge 0x43f3db
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0043cf43
push ebx
call fcn.0043d88b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x43f3db
mov dword [0x485f84], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x485f88], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0043cf43
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43f3fe
mov dword [0x485f84], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0043894c
leave
ret
Function at 0x43f40a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x487564]
push edi
jae 0x43f5df
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x487580]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x43f5df
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x43f4b5
test dl, 2
jne 0x43f4b5
test dl, 0x48
je 0x43f47f
cmp byte [eax + 5], 0xa
je 0x43f47f
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f4c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x43f4b0
mov dword [0x485f88], ecx
jmp 0x43f5e6
cmp eax, 0x6d
jne 0x43f4bc
xor eax, eax
jmp 0x43f5f3
push eax
call fcn.0043d69e
pop ecx
jmp 0x43f5f0
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x43f5da
test eax, eax
je 0x43f4ef
cmp byte [ebx], 0xa
jne 0x43f4ef
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x43f4f8
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x43f5d4
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x43f5c4
cmp al, 0xd
je 0x43f52a
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x43f5b6
dec ecx
cmp dword [ebp - 8], ecx
jae 0x43f544
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x43f53f
add dword [ebp - 8], 2
jmp 0x43f598
mov dword [ebp - 8], eax
jmp 0x43f5b2
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43f56c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43f5b2
cmp dword [ebp - 0x10], 0
je 0x43f5b2
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43f58d
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43f598
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x43f5b5
cmp ebx, dword [ebp + 0xc]
jne 0x43f59d
cmp byte [ebp - 1], 0xa
jne 0x43f59d
mov byte [ebx], 0xa
jmp 0x43f5b5
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043cf43
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x43f5b6
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x43f50e
jmp 0x43f5d4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x43f5d4
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x43f5f3
and dword [0x485f88], 0
mov dword [0x485f84], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x32f576dd
nop
nop
nop
nop
test eax, eax
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42cd70
nop
mov ecx, 0x425f068b
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x409610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540e58
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x5dc63c]
cmp eax, dword [ecx + 4]
jle 0x4096d8
push 0x5dc63c
call fcn.00521857
add esp, 4
cmp dword [0x5dc63c], 0xffffffff
jne 0x4096d8
mov dword [ebp - 4], 1
xor eax, eax
mov dword [0x5dc650], 0
mov dword [0x5dc654], 0
mov dword [0x5dc650], 0
mov dword [0x5dc654], 7
mov word [0x5dc640], ax
mov byte [ebp - 4], 1
push 0x576b30
call fcn.0052170f
add esp, 4
mov byte [ebp - 4], 0
push 0x5dc63c
call fcn.0052180d
add esp, 4
cmp dword [0x5dc650], 0
jne 0x40978d
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x40978d
add eax, eax
cmp eax, 0x208
jae 0x4097c6
xor ecx, ecx
mov dword [ebp - 0x220], ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x220], ecx
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
lea edx, [ecx + 2]
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409744
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00407c80
mov dword [ebp - 4], 4
lea eax, [ebp - 0x230]
push eax
mov ecx, 0x5dc640
call fcn.004867c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00407f50
push 0x5dc640
mov ecx, esi
call fcn.00406c70
mov dword [ebp - 4], 0
mov dword [ebp - 0x234], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00521461
mov esp, ebp
pop ebp
ret
call fcn.00521a4e
int3
Function at 0x4098a0
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x540fd9
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x5d6024]
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 dword [ebp - 0x238], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x234], 0
cmp dword [edx + 0x14], 8
jb 0x4098f0
mov edx, dword [edx]
lea ecx, [ebp - 0x218]
push ecx
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x40992f
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x234], 1
jmp 0x409a10
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x220], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409985
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00407c80
mov dword [ebp - 4], 3
lea eax, [ebp - 0x230]
push 1
sub esp, 0x18
mov dword [ebp - 0x238], esp
mov esi, esp
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x240], esp
push eax
call fcn.00406c70
mov byte [ebp - 4], 4
mov byte [ebp - 4], 3
mov ecx, esi
call fcn.00486890
add esp, 0x18
mov byte [ebp - 4], 5
mov byte [ebp - 4], 3
mov ecx, edi
call fcn.00486cc0
mov byte [ebp - 4], 3
mov dword [ebp - 0x234], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00407f50
mov eax, edi
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.00521461
mov esp, ebp
pop ebp
ret
Function at 0x409fa0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5412fb
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x5d6024]
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 esi, ecx
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov eax, dword [0x5dc658]
cmp eax, dword [edi + 4]
jle 0x40a02b
push 0x5dc658
call fcn.00521857
add esp, 4
cmp dword [0x5dc658], 0xffffffff
jne 0x40a02b
mov dword [ebp - 4], 0
mov ecx, 0x5dc65c
call fcn.0040a1b0
mov byte [ebp - 4], 0
push 0x576b80
call fcn.0052170f
mov dword [ebp - 4], 0xffffffff
push 0x5dc658
call fcn.0052180d
add esp, 8
mov eax, dword [0x5dc620]
cmp eax, dword [edi + 4]
jle 0x40a0a7
push 0x5dc620
call fcn.00521857
add esp, 4
cmp dword [0x5dc620], 0xffffffff
jne 0x40a0a7
mov dword [ebp - 4], 2
xor eax, eax
mov dword [0x5dc634], 0
mov dword [0x5dc638], 0
mov dword [0x5dc634], 0
mov dword [0x5dc638], 7
mov word [0x5dc624], ax
mov byte [ebp - 4], 2
push 0x576ae0
call fcn.0052170f
mov dword [ebp - 4], 0xffffffff
push 0x5dc620
call fcn.0052180d
add esp, 8
cmp dword [esi + 0x14], 8
mov edi, esi
mov ebx, dword [esi + 0x10]
jb 0x40a0b4
mov edi, dword [esi]
xor ecx, ecx
mov edx, 0x811c9dc5
add ebx, ebx
je 0x40a0d1
nop
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x40a0c0
push edx
push esi
lea eax, [ebp - 0x64]
mov ecx, 0x5dc65c
push eax
call fcn.0040add0
mov eax, dword [eax + 4]
test eax, eax
je 0x40a0f5
cmp eax, dword [0x5dc660]
je 0x40a0f5
add eax, 0x20
jmp 0x40a0fa
mov eax, 0x5dc624
cmp dword [eax + 0x10], 0
jne 0x40a18c
cmp dword [esi + 0x14], 8
mov edx, esi
jb 0x40a10e
mov edx, dword [esi]
push ecx
lea ecx, [ebp - 0x58]
call fcn.004097d0
add esp, 4
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x40]
push esi
call fcn.00406c70
mov byte [ebp - 4], 6
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x58]
push eax
call fcn.00406c70
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x64]
mov ecx, 0x5dc65c
push eax
call fcn.0040a4e0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x28]
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 0xb
mov ecx, eax
call fcn.00407f50
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x40]
call fcn.00407f50
mov esi, dword [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00407f50
lea eax, [esi + 0x20]
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.00521461
mov esp, ebp
pop ebp
ret
Function at 0x40b890
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54179d
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x5d6024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x54], ecx
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], 0
mov dword [edi], 0
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 4]
sub eax, 0x200
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
cmp eax, 0xe
ja 0x40b914
push 0x10
call ebx
bt ax, 0xf
jb 0x40b9b8
push 0x11
call ebx
bt ax, 0xf
jb 0x40b9b8
push 0x12
call ebx
bt ax, 0xf
jb 0x40b9b8
mov eax, dword [esi + 4]
sub eax, 0x100
cmp eax, 9
ja 0x40b9fe
push 0x11
call ebx
bt ax, 0xf
jae 0x40b942
mov eax, dword [esi + 8]
cmp eax, 0x58
je 0x40b942
cmp eax, 0x43
je 0x40b942
cmp eax, 0x56
jne 0x40b9b8
push 0x12
call ebx
bt ax, 0xf
jae 0x40b95a
mov eax, dword [esi + 8]
cmp eax, 0x25
je 0x40b9b8
cmp eax, 0x27
je 0x40b9b8
cmp dword [esi + 4], 0x100
jne 0x40b9fe
mov eax, dword [esi + 8]
cmp eax, 8
jne 0x40b9b0
mov ecx, dword [ebp - 0x54]
mov ecx, dword [ecx + 0x14]
call fcn.00415410
mov dword [ebp - 0x54], eax
test eax, eax
je 0x40b987
mov ecx, dword [eax]
push eax
call dword [ecx + 4]
mov byte [ebp - 4], 1
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x40b9c5
mov dl, 1
call fcn.004154f0
test al, al
je 0x40b9c5
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040b640
mov eax, dword [esi + 8]
add eax, 0xffffff90
cmp eax, 0xb
ja 0x40b9fe
mov dword [edi], 1
mov eax, 1
jmp 0x40ba07
mov dword [edi], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040b640
mov eax, 1
jmp 0x40ba07
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00521461
mov esp, ebp
pop ebp
ret 0x10