joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004f60
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
sub esp, 0x20
mov eax, dword [0x1005a218]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
push edi
push 0
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x1000505f
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10005058
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x10], 0x10
jb 0x1000503d
call ebx
cmp dword [esp + 0x1c], eax
jne 0x1000503d
call ebp
cmp dword [esp + 0x18], eax
je 0x1000503d
mov edx, dword [esi]
test edx, edx
jne 0x10005005
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0x1005d9a4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10005058
jmp 0x10005030
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x10005030
shl eax, 3
push eax
push edx
push 0
push dword [0x1005d9a4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10005058
mov eax, dword [esi + 4]
add eax, eax
mov dword [esi], edx
mov dword [esi + 4], eax
mov ecx, dword [esi + 8]
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10004fc5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
je 0x100050a7
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0x100050a7
mov ebp, dword [esp + 0x3c]
nop
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100050a1
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push ebp
push dword [esp + 0x3c]
push edi
call fcn.10005370
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0x10005070
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000916f
add esp, 0x20
ret

Function at 0x100054f0
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x10005549
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x10005539
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
nop dword [eax + eax]
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1000552f
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x10005510
mov eax, dword [ebx]
pop edi
pop ebp
push eax
push 0
push dword [0x1005d9a4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret
Function at 0x10005550
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x1005ec80]
test eax, eax
je 0x1000556c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x100055c4
mov eax, dword [eax]
test eax, eax
jne 0x10005560
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100055d6
push esi
lea edx, [eax + 0x20]
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov esi, 0x20
nop dword [eax + eax]
mov ecx, dword [eax + 4]
add esi, 0x20
mov dword [edx], ecx
mov dword [eax + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x100055a0
mov ecx, dword [0x1005ec80]
mov dword [eax], ecx
mov dword [0x1005ec80], eax
pop esi
test eax, eax
je 0x100055d6
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
xor eax, eax
ret
Function at 0x100059b0
Capabilities:
Check for software breakpoints

Disassembly:
mov edx, dword [esp + 4]
push esi
mov cl, byte [edx]
test cl, cl
je 0x100059c5
cmp cl, 0x90
je 0x100059c5
cmp cl, 0xcc
jne 0x100059e3
mov esi, dword [esp + 0xc]
mov eax, 1
cmp esi, eax
jbe 0x100059dc
cmp byte [eax + edx], cl
jne 0x100059e3
inc eax
cmp eax, esi
jb 0x100059d2
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x10007827
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test ebx, ebx
jg 0x1000784b
jl 0x10007842
test esi, esi
jne 0x1000784b
xor eax, eax
xor edx, edx
jmp 0x10007942
cmp dword [edi + 0x38], 0
je 0x10007860
push ebx
push esi
push dword [ebp + 8]
call fcn.10007949
jmp 0x10007942
mov eax, dword [edi + 0x1c]
mov edx, esi
mov dword [ebp - 8], edx
mov ecx, dword [eax]
test ecx, ecx
je 0x10007875
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x10007877
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], esi
test eax, eax
je 0x100078b8
cmp eax, esi
jb 0x1000788a
mov eax, esi
mov dword [ebp - 4], eax
push eax
push ecx
push dword [ebp + 8]
call fcn.10020210
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, dword [ebp + 8]
sub edx, ecx
add eax, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
add esp, 0xc
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0xc], edx
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x100078be
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [edi + 0x4c], 0
je 0x10007936
mov ecx, edi
call fcn.100070b0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
cmp eax, 0xfff
jbe 0x10007912
mov ecx, dword [ebp - 4]
push dword [edi + 0x4c]
push 0xfff
push 1
push ecx
call fcn.10028238
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, dword [ebp - 8]
add ecx, eax
sub edx, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
cmp eax, 0xfff
jne 0x1000790e
cmp edx, eax
ja 0x100078db
jmp 0x10007915
sub esi, edx
jmp 0x1000793b
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, eax
test eax, eax
je 0x10007939
push dword [edi + 0x4c]
push edx
push 1
push dword [ebp - 4]
call fcn.10028238
mov ecx, dword [ebp - 0xc]
add esp, 0x10
sub ecx, eax
jmp 0x10007939
mov ecx, dword [ebp - 0xc]
sub esi, ecx
sbb ebx, 0
mov eax, esi
mov edx, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1000bc99
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x10031039
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10030eaf
Function at 0x6343d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov ecx, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
lea eax, [ebp - 0x130]
mov dword [esi + 4], edi
mov dword [esi], edi
sub eax, ecx
mov ebx, 0x12c
mov dl, byte [ecx]
test dl, dl
je 0x634405
mov byte [eax + ecx], dl
inc edi
inc ecx
cmp edi, ebx
jb 0x6343f6
and byte [ebp + edi - 0x130], 0
lea eax, [ebp - 0x130]
push eax
call fcn.0063418c
mov edi, eax
pop ecx
test edi, edi
je 0x6344b6
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
je 0x63446a
mov byte [ebp + edi - 0x130], 0x2a
inc edi
cmp edi, ebx
mov eax, edi
jae 0x634452
mov ecx, eax
sub ecx, edi
mov cl, byte [ecx + edx]
test cl, cl
je 0x634452
mov byte [ebp + eax - 0x130], cl
inc eax
cmp eax, ebx
jb 0x63443b
and byte [ebp + eax - 0x130], 0
lea eax, [ebp + edi - 0x130]
push eax
call fcn.0063418c
pop ecx
add edi, eax
mov eax, edi
push 8
cdq
pop ebx
mov ecx, ebx
idiv ecx
test edx, edx
je 0x634486
and byte [ebp + edi - 0x130], 0
inc edi
mov eax, edi
cdq
jmp 0x634470
mov eax, edi
mov ecx, ebx
cdq
idiv ecx
test eax, eax
jle 0x6344b6
lea edi, [ebp - 0x130]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
push dword [ebp + 0x14]
xor dword [esi], eax
mov eax, dword [edi + 4]
xor dword [esi + 4], eax
push esi
call fcn.006344bd
pop ecx
add edi, ebx
dec dword [ebp + 0x10]
pop ecx
jne 0x63449a
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x634539
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [eax + 4]
and dword [ebp + 8], 0
mov ecx, dword [esi]
mov edx, dword [esi + 4]
mov dword [ebp - 8], edi
mov edi, dword [eax]
mov dword [ebp - 4], edi
mov edi, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], 0x20
sub dword [ebp + 8], 0x61c88647
mov eax, edx
mov edi, edx
shl eax, 4
add eax, dword [ebp - 4]
shr edi, 5
add edi, dword [ebp - 8]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, edx
xor eax, edi
add ecx, eax
mov eax, ecx
mov edi, ecx
shl eax, 4
add eax, dword [ebp - 0xc]
shr edi, 5
add edi, dword [ebp - 0x10]
xor eax, edi
mov edi, dword [ebp + 8]
add edi, ecx
xor eax, edi
add edx, eax
dec dword [ebp + 0xc]
jne 0x63456e
mov dword [esi], ecx
mov dword [esi + 4], edx
pop edi
pop esi
leave
ret
Function at 0x6351c7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, 0x10017760
call fcn.006454fc
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x1184]
mov dword [ebp - 4], 0x28
call fcn.00636b5a
lea ecx, [esi + 0x1114]
mov byte [ebp - 4], 0x27
call fcn.00636b5a
lea ecx, [esi + 0x10a4]
mov byte [ebp - 4], 0x26
call fcn.00636b5a
cmp dword [esi + 0x109c], 0xffffffff
lea ecx, [esi + 0x109c]
mov byte [ebp - 4], 0x25
je 0x635220
call fcn.00635463
lea ecx, [esi + 0x105c]
mov byte [ebp - 4], 0x24
call fcn.00636ea8
lea ecx, [esi + 0x101c]
mov byte [ebp - 4], 0x23
call fcn.00636ea8
lea ecx, [esi + 0xfac]
mov byte [ebp - 4], 0x22
call fcn.00636b5a
lea ecx, [esi + 0xf7c]
mov byte [ebp - 4], 0x21
call fcn.00636d30
lea ecx, [esi + 0xf58]
mov byte [ebp - 4], 0x20
call fcn.00636d30
lea ecx, [esi + 0xf34]
mov byte [ebp - 4], 0x1f
call fcn.00636d30
lea ecx, [esi + 0xf10]
mov byte [ebp - 4], 0x1e
call fcn.00636d30
lea ecx, [esi + 0xeec]
mov byte [ebp - 4], 0x1d
call fcn.00636d30
lea ecx, [esi + 0xec8]
mov byte [ebp - 4], 0x1c
call fcn.00636d30
lea ecx, [esi + 0xea4]
mov byte [ebp - 4], 0x1b
call fcn.00636d30
lea ecx, [esi + 0xe80]
mov byte [ebp - 4], 0x1a
call fcn.00636d30
lea ecx, [esi + 0xe5c]
mov byte [ebp - 4], 0x19
call fcn.00636d30
lea ecx, [esi + 0xe34]
mov byte [ebp - 4], 0x18
call fcn.00636d30
lea ecx, [esi + 0xe10]
mov byte [ebp - 4], 0x17
call fcn.00636d30
lea ecx, [esi + 0xde4]
mov byte [ebp - 4], 0x16
call fcn.00636e7f
lea ecx, [esi + 0xdc0]
mov byte [ebp - 4], 0x15
call fcn.00636d30
lea ecx, [esi + 0xd9c]
mov byte [ebp - 4], 0x14
call fcn.00636d30
lea ecx, [esi + 0xd78]
mov byte [ebp - 4], 0x13
call fcn.00636d30
lea ecx, [esi + 0xd54]
mov byte [ebp - 4], 0x12
call fcn.00636d30
lea ecx, [esi + 0xd30]
mov byte [ebp - 4], 0x11
call fcn.00636d30
lea ecx, [esi + 0xd0c]
mov byte [ebp - 4], 0x10
call fcn.00636d30
lea ecx, [esi + 0xce8]
mov byte [ebp - 4], 0xf
call fcn.00636d30
lea ecx, [esi + 0xcc4]
mov byte [ebp - 4], 0xe
call fcn.00636d30
lea ecx, [esi + 0xca0]
mov byte [ebp - 4], 0xd
call fcn.00636d30
lea ecx, [esi + 0xc7c]
mov byte [ebp - 4], 0xc
call fcn.00636d30
lea ecx, [esi + 0xc58]
mov byte [ebp - 4], 0xb
call fcn.00636d30
lea ecx, [esi + 0xc34]
mov byte [ebp - 4], 0xa
call fcn.00636d30
lea ecx, [esi + 0xc10]
mov byte [ebp - 4], 9
call fcn.00636d30
lea ecx, [esi + 0xbe8]
mov byte [ebp - 4], 8
call fcn.00636d30
lea ecx, [esi + 0xbc0]
mov byte [ebp - 4], 7
call fcn.00636d30
lea ecx, [esi + 0xb9c]
mov byte [ebp - 4], 6
call fcn.00636d30
lea ecx, [esi + 0xb2c]
mov byte [ebp - 4], 5
call fcn.00636b5a
lea ecx, [esi + 0xabc]
mov byte [ebp - 4], 4
call fcn.00636b5a
lea ecx, [esi + 0xa7c]
mov byte [ebp - 4], 3
call fcn.00636ea8
lea ecx, [esi + 0x9e4]
mov byte [ebp - 4], 2
call fcn.00636b5a
lea ecx, [esi + 0x970]
mov byte [ebp - 4], 1
call fcn.00636b5a
and byte [ebp - 4], 0
lea ecx, [esi + 0x900]
call fcn.00636b5a
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0063547b
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x63ae23
Capabilities:
Hash data with md5

Disassembly:
and dword [ecx + 0x14], 0
and dword [ecx + 0x10], 0
push edi
push 0x10
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
lea edi, [ecx + 0x18]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
ret
Function at 0x407050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4070ab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4070ab
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x407098
cmp esi, edx
jae 0x4070ab
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x407086
cmp esi, edx
jae 0x4070ab
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x407b80
Capabilities:
Create process on windows
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
movsd xmm0, qword [0x4c0588]
sub esp, 0xc
cvtss2sd xmm1, xmm1
push ebx
push esi
push edi
comisd xmm0, xmm1
mov ebx, ecx
jbe 0x407c6f
push 0x4ac5ec
push 0x69
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x407c1a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x407c1a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x407c1a
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 0x14], eax
test eax, eax
je 0x407c13
push dword [esp + 0xc]
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esp + 0x10], eax
test eax, eax
je 0x407c13
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
jne 0x407c23
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0xc]
push dword [esp + 0x18]
push esi
call fcn.004844a0
add esp, 0xc
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [esp + 0xc]
mov dword [esi], 0x4034b50
mov ecx, ebx
mov dword [esi + 4], 0x14
push esi
mov word [esi + 8], 8
call fcn.00408800
test al, al
jne 0x407c68
mov ecx, ebx
call fcn.00407990
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x407c1a
mov ecx, ebx
call fcn.00407cb0
push 1
push 0
push 0
push dword [ebx]
push 0x4ac5f4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, ebx
call fcn.004093c0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ada0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0468
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4d3040]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x42c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x20], 0
push 0x404
lea eax, [ebp - 0x424]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.00484a20
add esp, 0xc
mov dword [ebp - 0x424], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
jne 0x40ae59
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x430], eax
test esi, esi
jne 0x40ae59
call fcn.0040a310
mov edi, eax
jmp 0x40af75
push dword [ebp - 0x428]
push dword [ebp - 0x42c]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40ae7c
call fcn.0040a310
jmp 0x40af68
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x42c], ebx
test ebx, ebx
jne 0x40ae9a
call fcn.0040a310
jmp 0x40af68
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x428], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x40aebb
mov edi, 0x8007000e
jmp 0x40af6a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x40afae
jb 0x40aed9
cmp eax, 0xffffffff
ja 0x40afae
cmp eax, 0x400
jbe 0x40aeee
push eax
lea ecx, [ebp - 0x424]
call fcn.0040fb80
jmp 0x40af14
lea eax, [ebp - 0x420]
mov dword [ebp - 0x424], eax
jmp 0x40af14
mov dword [ebp - 4], 1
cmp dword [ebp - 0x424], 0
jne 0x40af2b
mov edi, 0x8007000e
jmp 0x40af6a
push edi
push dword [ebp - 0x424]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40af4b
call fcn.0040a310
jmp 0x40af68
mov eax, dword [ebp - 0x424]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x424]
call fcn.0040bbd0
mov edi, eax
test esi, esi
je 0x40af75
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x420]
cmp dword [ebp - 0x424], eax
je 0x40af8e
lea ecx, [ebp - 0x424]
call fcn.0040fb70
mov eax, edi
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.004820f4
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00406f60
int3
Function at 0x4117fa
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x411805
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4118c1
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 + 0x4aa4f0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4aa4f0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4aa4f0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4aa4f0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4aa4f0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4aa4f0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4aa4f0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4aa4f0]
sub edi, 1
jne 0x41181a
pop edi
test esi, esi
je 0x4118dd
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4aa4f0]
inc edx
sub esi, 1
jne 0x4118c5
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x4118e4
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
movsx eax, dl
mov ecx, dword [esi]
xor eax, ecx
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4aa4f0]
movzx eax, cl
add eax, dword [esi + 4]
imul eax, eax, 0x8088405
mov dword [esi], ecx
mov ecx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4aa4f0]
mov dword [esi + 8], ecx
pop esi
ret

Function at 0x412087
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov ecx, ebx
imul ecx, dword [ebp + 8]
cmp byte [edi], 0
je 0x4120c0
push 0
lea edx, [ebp + 8]
push edx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4120bb
mov byte [edi + 8], 1
mov eax, dword [ebp + 8]
jmp 0x4120ea
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 4]
call fcn.004844a0
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
pop edi
div ebx
pop ebx
leave
ret
Function at 0x412ed2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x412f92
cmp dword [esi + 4], 0xffffffff
jne 0x412f92
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x412f06
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x412f3d
cmp eax, 0x2f
je 0x412f3d
sub edi, 2
mov ax, word [edi + 2]
lea edi, [edi + 2]
cmp ax, bx
jne 0x412f2a
mov eax, dword [0x4ac5e8]
mov dword [edi], eax
cmp dword [ebp + 0x10], 1
jne 0x412f5c
push 1
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x412f5c
mov eax, 0x2000000
jmp 0x412f97
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 4]
mov ecx, dword [ebp + 8]
push eax
push dword [ebp + 0x10]
call fcn.00411eef
pop ecx
pop ecx
test eax, eax
jne 0x412f79
mov eax, dword [ebp - 4]
jmp 0x412f97
mov ecx, eax
call fcn.004123b7
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x412f97
mov eax, 0x1000000
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41355a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4d3040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, edx
test esi, esi
je 0x41358e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41358e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x413671
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x4135ac
cmp dx, 0x5c
jne 0x4135ae
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4135a0
cmp edi, ebx
je 0x4135f8
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004844a0
add esp, 0xc
cmp edi, 0x208
jae 0x413680
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.0041355a
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x41361c
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
mov word [ecx + esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x41360d
mov esi, ebx
xor ecx, ecx
mov ax, word [ebx]
add ebx, 2
cmp ax, cx
jne 0x413620
lea edi, [ebp - 0x20c]
sub ebx, esi
sub edi, 2
mov ax, word [edi + 2]
add edi, 2
cmp ax, cx
jne 0x413636
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x413671
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004820f4
leave
ret
call fcn.00482229
int3
Function at 0x413b98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x11
call ebx
movsx esi, ax
sar esi, 0x1f
push 1
and esi, 8
call ebx
mov edi, esi
or edi, 1
test ax, ax
push 2
cmovns edi, esi
call ebx
mov esi, edi
or esi, 2
test ax, ax
push 0x10
cmovns esi, edi
call ebx
mov edi, esi
or edi, 4
test ax, ax
push 0x12
cmovns edi, esi
call ebx
mov ecx, edi
or ecx, 0x20
test ax, ax
cmovns ecx, edi
pop edi
pop esi
mov eax, ecx
pop ebx
ret