joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ca454
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5ca54b
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
not eax
cmp edx, 8
jb 0x5ca529
mov esi, 0xff
movzx edi, byte [ecx]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755294]
movzx edi, byte [ecx + 1]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755294]
movzx edi, byte [ecx + 2]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755294]
movzx edi, byte [ecx + 3]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755294]
movzx edi, byte [ecx + 4]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755294]
movzx edi, byte [ecx + 5]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755294]
movzx edi, byte [ecx + 6]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755294]
movzx edi, byte [ecx + 7]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755294]
add ecx, 8
add edx, 0xfffffff8
cmp edx, 7
ja 0x5ca47b
test edx, edx
je 0x5ca547
xor esi, esi
movzx edi, byte [ecx + esi]
movzx ebx, al
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755294]
inc esi
cmp edx, esi
jne 0x5ca52f
not eax
jmp 0x5ca54d
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5cda66
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x420
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x218]
push 0x208
push 0
push ebx
call fcn.006ccfc0
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x5cdb18
lea esi, [ebp - 0x420]
push 0x208
push 0xff
push esi
call fcn.006ccfc0
add esp, 0xc
lea eax, [ebp - 0x428]
mov word [eax + 4], 0
mov eax, dword [ebx]
mov dword [ebp - 0x428], eax
push 0x104
push esi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov dword [ebp - 0x42c], 0
test eax, eax
je 0x5cdb46
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x103
ja 0x5cdb11
mov edi, eax
push eax
push esi
push dword [ebp + 8]
call fcn.006e71e3
add esp, 0xc
test eax, eax
je 0x5cdb1c
add ebx, 8
jne 0x5cdac7
jmp 0x5cdb46
xor esi, esi
jmp 0x5cdb4c
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
lea eax, [ebp - 0x428]
push eax
push 0x738218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.005cdb63
add esp, 0x14
xor eax, eax
inc eax
mov dword [ebp - 0x42c], eax
mov esi, dword [ebp - 0x42c]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
add esp, 0x420
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5d0791
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x5d0888
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
not eax
cmp edx, 8
jb 0x5d0866
mov esi, 0xff
movzx edi, byte [ecx]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755cd0]
movzx edi, byte [ecx + 1]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755cd0]
movzx edi, byte [ecx + 2]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755cd0]
movzx edi, byte [ecx + 3]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755cd0]
movzx edi, byte [ecx + 4]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755cd0]
movzx edi, byte [ecx + 5]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755cd0]
movzx edi, byte [ecx + 6]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755cd0]
movzx edi, byte [ecx + 7]
mov ebx, eax
and ebx, esi
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755cd0]
add ecx, 8
add edx, 0xfffffff8
cmp edx, 7
ja 0x5d07b8
test edx, edx
je 0x5d0884
xor esi, esi
movzx edi, byte [ecx + esi]
movzx ebx, al
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x755cd0]
inc esi
cmp edx, esi
jne 0x5d086c
not eax
jmp 0x5d088a
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x5d10e7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ecx, dword [0x7a8498]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
imul ecx, edi
cmp byte [ebx], 0
je 0x5d1132
lea edx, [ebp - 0x14]
mov dword [edx], 0xffffffff
push 0
push edx
push ecx
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x5d112d
mov byte [ebx + 8], 1
mov esi, dword [ebp - 0x14]
jmp 0x5d115a
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
lea edi, [eax + ecx]
mov esi, edx
sub esi, eax
cmp edi, edx
mov edi, dword [ebp + 0xc]
cmovbe esi, ecx
add eax, dword [ebx + 0x10]
push esi
push eax
push dword [ebp + 8]
call fcn.006cca40
add esp, 0xc
add dword [ebx + 0x18], esi
mov eax, esi
xor edx, edx
div edi
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5d2296
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, 0x1000000
cmp dword [ecx], 0
jne 0x5d2326
mov esi, ecx
cmp dword [ecx + 4], 0xffffffff
jne 0x5d2326
mov ebx, dword [ebp + 0x10]
lea edi, [esi + 0x138]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x7320a0
push edi
call fcn.006e7093
add esp, 8
cmp ebx, 1
jne 0x5d22f6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov edi, 0x2000000
cmp eax, 1
jne 0x5d2326
mov eax, dword [ebp + 0xc]
lea edi, [ebp - 0x14]
mov dword [edi], 0xffffffff
push edi
push ebx
push eax
push dword [ebp + 8]
call fcn.005d0ed2
add esp, 0x10
test eax, eax
je 0x5d2324
push eax
call fcn.005d1463
add esp, 4
mov dword [esi], eax
mov edi, 0x7c06ec
mov edi, dword [edi]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 0xc

Function at 0x5d27af
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov esi, dword [ebp + 0xc]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
test esi, esi
je 0x5d287a
movzx ecx, word [esi]
test cx, cx
je 0x5d287a
mov edi, dword [ebp + 8]
mov ebx, esi
mov eax, esi
cmp cx, 0x2f
je 0x5d27f6
cmp cx, 0x5c
je 0x5d27f6
test cx, cx
jne 0x5d27f8
jmp 0x5d2801
mov ebx, eax
movzx ecx, word [eax + 2]
add eax, 2
jmp 0x5d27e3
sub ebx, esi
je 0x5d2844
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.006ccfc0
add esp, 0xc
mov eax, ebx
sar eax, 1
push eax
push esi
push edi
call fcn.006e721d
add esp, 0xc
mov word [ebp + ebx - 0x218], 0
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.005d27af
add esp, 8
lea ebx, [ebp - 0x218]
push 0x208
push 0xff
push ebx
call fcn.006ccfc0
add esp, 0xc
push edi
push ebx
call fcn.006e7104
add esp, 8
push esi
push ebx
call fcn.006e7093
add esp, 8
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5d462b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x5d470c
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edx
xor ebx, ebx
push 2
push ebx
push ebx
push eax
mov esi, eax
call fcn.006db50b
add esp, 0x10
push esi
call fcn.006dc333
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, edx
push ebx
push ebx
push ebx
push esi
call fcn.006db50b
add esp, 0x10
test edi, edi
js 0x5d471c
mov eax, 3
mov esi, dword [ebp - 0x14]
jne 0x5d4724
mov ecx, dword [0x7aa270]
mov ebx, dword [ebp - 0x1c]
lea edi, [ebx + 2]
call dword [section..00cfg]
push edi
call ecx
add esp, 4
test eax, eax
je 0x5d4736
push dword [ebp + 8]
push ebx
push 1
mov dword [ebp - 0x10], eax
push eax
call fcn.006e4b20
add esp, 0x10
cmp eax, ebx
jne 0x5d4743
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x10]
push ebx
call fcn.005d4dd8
add esp, 4
mov ecx, eax
and ecx, 0xfffffffe
cmp ecx, 2
jne 0x5d46ec
and ebx, 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov word [ecx + ebx], 0
and edi, 0xfffffffe
mov ebx, edi
xor edi, edi
inc edi
mov ecx, esi
mov edx, dword [ebp - 0x18]
push dword [ebp + 0x14]
push edi
push edi
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
push edx
call fcn.005d31aa
add esp, 0x20
jmp 0x5d472c
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi], 1
mov dword [esi + 4], eax
jmp 0x5d472c
mov eax, 2
mov esi, dword [ebp - 0x14]
mov dword [esi + 8], ebx
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi], 3
jmp 0x5d4717
mov ecx, dword [0x7aa26c]
call dword [section..00cfg]
push dword [ebp - 0x10]
call ecx
add esp, 4
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi], 2
jmp 0x5d4717

Function at 0x5d4770
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, ecx
lea ebx, [ebp - 0x18]
mov dword [ebx - 4], esp
mov dword [ebx + 8], 0xffffffff
mov dword [ebx + 4], 0x5d6e20
mov eax, dword fs:[0]
mov dword [ebx], eax
mov dword fs:[0], ebx
call fcn.005d45a4
lea eax, [esi + 8]
xorps xmm0, xmm0
movups xmmword [esi + 0xc], xmm0
mov edi, 0x7fec
mov dword [esi + 0x14], edi
lea edx, [esi + 0x1c]
movups xmmword [esi + 0x2c], xmm0
movups xmmword [esi + 0x20], xmm0
mov dword [esi + 0x1c], 0x1401
lea ecx, [esi + 0x3c]
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
xor edi, edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi], edx
mov dword [esi + 0x30], edx
mov dword [esi + 8], ecx
push 0x72ece8
push dword [ebp + 0xc]
call fcn.006e28b8
add esp, 8
mov edx, dword [esi]
add esi, 4
mov dword [ebx + 8], edi
mov ecx, dword [ebp + 8]
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
push eax
call fcn.005d462b
add esp, 0x10
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x5d481e
push eax
call fcn.006e4140
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x5d7f00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [esi + 0x38]
mov dword [eax - 4], esp
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5dd390
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov eax, dword [edi + 0xc]
mov byte [esi + 0x20], 0
mov dword [esi + 0x28], eax
sar eax, 0x1f
mov dword [esi + 0x2c], eax
sub esp, 0x78
movups xmm0, xmmword [0x7a9568]
movups xmmword [esp + 0x68], xmm0
movups xmmword [esp + 0x58], xmm0
movups xmmword [esp + 0x48], xmm0
movups xmmword [esp + 0x38], xmm0
movups xmmword [esp + 0x28], xmm0
movups xmm0, xmmword [esi + 0x20]
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x14], str.OnDownloadStarted_biz_type___d
mov dword [esp + 0x10], str.XPluginUpdater
mov dword [esp + 0xc], str.OnDownloadStarted
mov dword [esp + 8], 0x117
mov dword [esp + 4], str..._.._applet_third_party_xplugin_src_PluginUpdater.cpp
mov dword [esp], 2
call fcn.004ee380
add esp, 0x78
mov eax, dword [edi + 0xc]
cmp eax, 2
je 0x5d8003
cmp eax, 1
je 0x5d8072
test eax, eax
jne 0x5d8118
mov eax, dword [edi]
mov dword [ebx + 0xd4], eax
call fcn.004ef08e
mov dword [ebx + 0xe4], edx
mov dword [ebx + 0xe0], eax
call fcn.004ef08e
push edx
push eax
call fcn.004ac360
add esp, 8
push 1
push 0x1e
push 0x69a
call fcn.00506400
add esp, 0xc
jmp 0x5d8118
call fcn.004aa940
lea edx, [edi + 0x18]
mov ecx, eax
push edx
call fcn.0050f810
test eax, eax
je 0x5d8118
mov edi, eax
mov eax, dword [eax]
mov dword [esi + 4], ebx
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
xor ecx, ecx
inc ecx
push ecx
push 0x3c
push eax
call fcn.00506400
add esp, 0xc
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
lea eax, [esi + 0xc]
mov ecx, edi
push eax
mov edi, eax
call ebx
mov eax, dword [esi + 4]
lea ecx, [eax + 0x108]
xor eax, eax
inc eax
mov dword [esi + 0x40], eax
lea eax, [esi + 8]
push edi
push eax
call fcn.00407ce2
jmp 0x5d80de
call fcn.004aa940
lea edx, [edi + 0x18]
mov ecx, eax
push edx
call fcn.0050f810
test eax, eax
je 0x5d8118
mov edi, eax
mov eax, dword [eax]
mov dword [esi + 4], ebx
mov ebx, dword [eax + 0x10]
mov ecx, ebx
call dword [section..00cfg]
mov ecx, edi
call ebx
push 1
push 0x2d
push eax
call fcn.00506400
add esp, 0xc
mov eax, dword [edi]
mov ebx, dword [eax + 4]
mov ecx, ebx
call dword [section..00cfg]
lea eax, [esi + 0xc]
mov ecx, edi
push eax
mov edi, eax
call ebx
mov eax, dword [esi + 4]
lea ecx, [eax + 0x108]
mov dword [esi + 0x40], 0
lea eax, [esi + 8]
push edi
push eax
call fcn.00407ce2
mov edi, dword [esi + 8]
lea ecx, [esi + 0xc]
call fcn.004aeec0
mov eax, dword [esi + 4]
add eax, 0x10c
cmp edi, eax
je 0x5d8118
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [edi + 0xf4], eax
mov dword [esi + 0x40], 0xffffffff
call fcn.004ef08e
mov dword [edi + 0x104], edx
mov dword [edi + 0x100], eax
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
Function at 0x5dcfb0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x18]
mov dword [esi - 4], esp
xor ecx, ecx
dec ecx
mov dword [esi + 8], ecx
mov dword [esi + 4], 0x5dd460
mov ecx, dword fs:[0]
mov dword [esi], ecx
mov dword fs:[0], esi
mov ecx, edi
push dword [eax]
call fcn.004aeac0
lea eax, [edi + 0x18]
add edi, 0x1c
xor ebx, ebx
push 0xf8
push ebx
push eax
call fcn.006ccfc0
add esp, 0xc
mov dword [esi + 8], ebx
mov dword [ebp - 0x24], edi
mov ecx, edi
xor eax, eax
dec eax
push eax
push 0x6fa356
call fcn.004aea40
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x34], ecx
xor edx, edx
dec edx
mov dword [eax + 0x38], edx
lea ecx, [eax + 0x3c]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x20], ecx
push edx
push 0x6fa356
call fcn.004aea40
mov eax, dword [ebp + 8]
lea ecx, [eax + 0x50]
mov dword [ebp - 0x10], 2
call fcn.004acff0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xe0], 0xfffffffd
xor eax, eax
mov dword [ecx + 0xe4], eax
mov dword [ecx + 0xe8], eax
xorps xmm0, xmm0
movups xmmword [ecx + 0xf0], xmm0
mov byte [ecx + 0x100], 0
mov dword [ecx + 0x104], 0xffffffff
mov dword [ecx + 0x10c], eax
mov dword [ecx + 0x108], eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
Function at 0x5fd356
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x118
mov esi, ecx
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ecx], vtable.DuiLib::CTxtWinHost.0
xor edi, edi
mov dword [ecx + 4], edi
mov word [ecx + 0x17a], 1
mov byte [ecx + 0x17c], 0
add ecx, 0x180
call fcn.00520686
lea ecx, [esi + 0x190]
call fcn.00520686
lea ecx, [esi + 0x1a0]
call fcn.00520686
lea eax, [esi + 8]
push 0x1ac
push edi
push eax
call fcn.006ccfc0
add esp, 0xc
mov dword [esi + 0x1c], 0x7fff
mov byte [esi + 0x17a], 1
mov dword [esi + 0x174], 0xffffffff
lea ebx, [ebp - 0x120]
push 0x110
push edi
push ebx
call fcn.006ccfc0
add esp, 0xc
mov dword [ebx - 4], 0x114
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5fd40f
cmp dword [ebp - 0x120], 6
setae byte [esi + 0x17b]
mov byte [esi + 0x1b0], 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, esi
add esp, 0x118
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5fd42e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [ecx + 4], edi
mov dword [ecx + 8], 1
lea eax, [ecx + 0x44]
push 0
push eax
push edi
call fcn.005fd07c
add esp, 0xc
lea eax, [esi + 0xb8]
push eax
push edi
call fcn.005fd26a
add esp, 8
mov dword [esi + 0x10], 4
movzx eax, byte [edi + 0xb28]
mov ecx, dword [esi + 0x14]
shl eax, 3
and ecx, 0xfffffff7
or ecx, eax
mov dword [esi + 0x14], ecx
mov eax, dword [edi + 0xc3c]
mov dword [esi + 0x1c], eax
test ebx, ebx
je 0x5fd4d1
mov edx, dword [ebx + 0x20]
mov dword [esi + 0x10], edx
mov eax, ecx
or eax, 2
test edx, 0x100080
cmovne eax, ecx
mov cx, 3
test dl, 1
jne 0x5fd4c8
mov cx, 2
test dl, 2
je 0x5fd4d3
mov word [esi + 0xd0], cx
jmp 0x5fd4d3
mov eax, ecx
or eax, 0x20
mov dword [esi + 0x14], eax
cmp byte [esi + 0x17b], 0
je 0x5fd4f3
push 0x75a300
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test eax, eax
jne 0x5fd508
push str.riched20.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test eax, eax
je 0x5fd5b7
push str.CreateTextServices
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5fd5b7
mov ecx, eax
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push esi
push 0
call ecx
test eax, eax
js 0x5fd598
mov ebx, dword [ebp - 0x14]
add esi, 0xc
mov eax, dword [ebx]
mov ecx, dword [eax]
call dword [section..00cfg]
push esi
push 0x75a240
push ebx
call ecx
mov dword [ebp - 0x18], eax
mov ebx, edi
mov edi, dword [ebp - 0x14]
mov eax, dword [edi]
mov ecx, dword [eax + 8]
call dword [section..00cfg]
push edi
mov edi, ebx
call ecx
cmp dword [ebp - 0x18], 0
js 0x5fd598
xor ebx, ebx
inc ebx
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5fd5a1
mov eax, dword [eax + 0x24]
test eax, eax
je 0x5fd5a1
mov esi, dword [esi]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x1c], ecx
call dword [section..00cfg]
mov ecx, esi
push dword [ebp - 0x18]
call dword [ebp - 0x1c]
test eax, eax
jns 0x5fd5a1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006c9121
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
push 0
call fcn.006d7fc8
int3
Function at 0x5ff270
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
cmp dword [ecx + 0xb20], 0
je 0x5ff2bc
mov esi, ecx
cmp dword [ebp + 8], 0x100
jne 0x5ff29d
mov eax, dword [ebp + 0xc]
movzx eax, ax
cmp eax, 0xd
jne 0x5ff29d
cmp byte [esi + 0xc4c], 0
je 0x5ff2c7
mov eax, dword [esi + 0xb20]
mov esi, dword [eax + 0xc]
mov eax, dword [esi]
mov ecx, dword [eax + 0xc]
mov edi, ecx
call dword [section..00cfg]
mov ecx, esi
mov eax, edi
pop esi
pop edi
pop ebp
jmp eax
xor edi, edi
inc edi
mov eax, edi
pop esi
pop edi
pop ebp
ret 0x10
cmp byte [esi + 0xb26], 0
je 0x5ff2e6
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x5ff29d
cmp byte [esi + 0xb27], 0
jne 0x5ff29d
mov ecx, dword [esi + 0x58]
xor edi, edi
test ecx, ecx
je 0x5ff2bf
push edi
push edi
push edi
push str.return
push esi
call fcn.0051e668
jmp 0x5ff2bf
Function at 0x6051f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [ecx + 0x5e0]
test ecx, ecx
je 0x605210
mov al, byte [ebp + 8]
xor edx, edx
movzx eax, al
push edx
push edx
push eax
call fcn.00524f6a
mov ecx, esi
pop esi
pop ebp
jmp fcn.00524f6a

Function at 0x605f28
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
mov eax, 0x1410
call fcn.006c9620
mov esi, dword [ebp + 8]
mov eax, dword [0x7a8498]
xor eax, ebp
mov dword [esp + 0x1408], eax
mov eax, dword [ecx + 0x10]
cmp byte [eax + 8], 0
je 0x606005
mov ecx, 0x66666667
mov eax, esi
imul ecx
mov eax, edx
shr eax, 0x1f
shr edx, 1
add edx, eax
lea eax, [edx + edx*4]
sub esi, eax
mov eax, dword [esi*4 + 0x741e80]
mov dword [esp + 0xc], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov ecx, 0x13e8
lea eax, [esp + 0x20]
push ecx
push 0
push eax
call fcn.006ccfc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
movzx ecx, word [edi + 0xe]
mov dword [esp + 4], ecx
movzx edx, word [edi + 0xc]
movzx esi, word [edi + 0xa]
movzx ebx, word [edi + 8]
movzx ecx, word [edi + 6]
mov dword [esp + 8], ecx
movzx ecx, word [edi + 2]
movzx edi, word [edi]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [esp + 0x14]
push eax
push dword [esp + 0x14]
push edx
push esi
push ebx
push dword [esp + 0x28]
push ecx
push edi
push str.__d__d__d:_d:_02d:_02d:_03d__05d___s__s:_s_n
mov eax, 0x13e8
push eax
lea esi, [esp + 0x54]
push esi
call fcn.0040a410
add esp, 0x38
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x60602a
mov edi, ecx
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ecx + 0xc]
add edi, 4
call dword [section..00cfg]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push esi
push edi
call ecx
add esp, 0x1c
mov ecx, dword [esp + 0x1408]
xor ecx, ebp
call fcn.006c9121
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18

Function at 0x60638e
Capabilities:
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push esi
cmp dword [0x7c0988], 0
je 0x6063cc
cmp dword [0x7c097c], 0
jne 0x6063cc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
push eax
push 0x6063e0
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x7c097c], eax
test eax, eax
je 0x6063cf
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]