joyce8/EMBER2024-capa huggingface dataset:
Function at 0x665220
Capabilities:
Log keystrokes via polling
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 8]
push esi
lea esi, [ebx + 8]
push edi
push esi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi]
lea edi, [ebx + 0x10]
mov ecx, dword [esi + 4]
push edi
push dword [ebx + 0x18]
mov dword [edi], eax
mov dword [edi + 4], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
cmp dword [ebx + 0x18], 0
je 0x665278
cmp dword [ebx + 0x1c], 0
je 0x665278
mov esi, dword [sym.imp.USER32.dll_GetFocus]
call esi
cmp eax, dword [ebx + 0x18]
je 0x665275
call esi
cmp eax, dword [ebx + 0x1c]
jne 0x66539e
lea esi, [ebx + 8]
mov ecx, dword [edi]
test ecx, ecx
js 0x66539e
movzx eax, word [0x131f250]
cmp ecx, eax
jg 0x66539e
mov ecx, dword [ebx + 0x14]
test ecx, ecx
js 0x66539e
movzx eax, word [0x131f254]
cmp ecx, eax
jg 0x66539e
mov eax, dword [ebx]
lea edi, [ebx + 0x180]
sub eax, dword [esi]
mov ecx, 0x40
mov dword [ebx + 0x284], eax
lea esi, [ebx + 0x80]
mov eax, dword [ebx + 4]
sub eax, dword [ebx + 0xc]
rep movsd dword es:[edi], dword [esi]
push 0x100
push 0
lea edi, [ebx + 0x80]
mov dword [ebx + 0x288], eax
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor esi, esi
nop dword [eax]
push esi
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 8
test al, al
je 0x665302
mov byte [edi + esi], 0x80
inc esi
cmp esi, 0x100
jl 0x6652f0
mov eax, dword [ebx + 0x30]
mov dword [ebx + 0x34], eax
xor eax, eax
cmp byte [ebx + 0x81], al
mov dword [ebx + 0x24], 0
setne al
cmp dword [ebx + 0x38], 0
mov dword [ebx + 0x30], eax
je 0x665333
mov dword [ebx + 0x24], 1
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x40], eax
xor eax, eax
cmp byte [ebx + 0x82], al
mov dword [ebx + 0x38], 0
setne al
mov dword [ebx + 0x28], 0
cmp dword [ebx + 0x44], 0
mov dword [ebx + 0x3c], eax
je 0x665362
mov dword [ebx + 0x28], 1
mov eax, dword [ebx + 0x48]
mov dword [ebx + 0x4c], eax
xor eax, eax
cmp byte [ebx + 0x84], al
mov dword [ebx + 0x44], 0
setne al
cmp dword [ebx + 0x20], 0
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x78]
mov dword [ebx + 0x2a0], eax
mov dword [ebx + 0x78], 0
jne 0x6653ac
pop edi
pop esi
mov dword [ebx + 0x20], 1
pop ebx
ret
mov ecx, ebx
call fcn.00665170
mov dword [ebx + 0x20], 0
pop edi
pop esi
pop ebx
ret
Function at 0x665400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x7062c4
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x665426
pop edi
xor al, al
pop esi
pop ebp
ret 8
push ebx
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
add esp, 0x10
mov dword [edi + 4], eax
test eax, eax
jle 0x665491
mov ebx, dword [ebp + 0xc]
cmp eax, ebx
jle 0x665491
sub eax, ebx
push eax
mov dword [edi + 4], eax
call fcn.006dff04
add esp, 4
mov dword [edi], eax
test eax, eax
je 0x665491
push 0
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
push esi
push dword [edi + 4]
push 1
push dword [edi]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x1c
cmp eax, dword [edi + 4]
jne 0x665491
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov al, 1
pop ebx
pop edi
pop esi
pop ebp
ret 8
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor al, al
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x66b090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x160], ecx
push esi
push edi
test ebx, ebx
je 0x66b25f
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x66b0c0
sub ecx, edx
cmp ecx, 1
jbe 0x66b25f
push 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x164], 0
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ecx + str.c:MP_ProjectEffectEsf_]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x105], al
test al, al
jne 0x66b100
mov esi, ebx
mov al, byte [ebx]
inc ebx
test al, al
jne 0x66b116
lea edi, [ebp - 0x104]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x66b126
mov ecx, ebx
lea eax, [ebp - 0x104]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
push 0x7062c4
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
mov dword [ebp - 0x168], esi
test esi, esi
je 0x66b274
push esi
push 1
lea eax, [ebp - 0x164]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
movss xmm1, dword [ebp - 0x164]
add esp, 0x10
comiss xmm1, dword [0x710d34]
mov ebx, dword [ebp - 0x160]
jb 0x66b247
movss xmm0, dword [0x712454]
comiss xmm0, xmm1
jb 0x66b247
push esi
push 1
lea edi, [ebx + 0x30]
push 4
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov eax, dword [edi]
add esp, 0x10
xor esi, esi
test eax, eax
jle 0x66b232
nop dword [eax]
lea ecx, [ebp - 0x15c]
call fcn.0066a110
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x66b21c
movups xmm0, xmmword [ebp - 0x15c]
movups xmmword [eax], xmm0
movups xmm0, xmmword [ebp - 0x14c]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [ebp - 0x13c]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [ebp - 0x12c]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [ebp - 0x11c]
movups xmmword [eax + 0x40], xmm0
movq xmm0, qword [ebp - 0x10c]
movq qword [eax + 0x50], xmm0
add dword [ebx + 4], 0x58
jmp 0x66b22b
lea ecx, [ebp - 0x15c]
push ecx
push eax
mov ecx, ebx
call fcn.00669f00
mov eax, dword [edi]
inc esi
cmp esi, eax
jl 0x66b1c0
mov esi, dword [ebp - 0x168]
push esi
push eax
push 0x58
push dword [ebx]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [ebx + 0x2c], 1
mov ecx, ebx
call fcn.0066a6d0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006dfb52
mov esp, ebp
pop ebp
ret 4
Function at 0x66fc70
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov al, 1
mov byte [ebp - 1], al
cmp byte [edi + 0x1db], al
jne 0x66fe38
mov esi, dword [edi + 0x44]
push esi
call fcn.005f1030
push 8
push esi
mov ebx, eax
call fcn.005f10a0
add esp, 0xc
test eax, eax
je 0x66fcb4
cmp byte [edi + 0x1e1], 0
jne 0x66fcb4
mov byte [edi + 0x1e1], 1
cmp ebx, 4
jne 0x66fcce
mov dword [edi + 0x194], 0x101
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp ebx, 2
je 0x66fce0
test ebx, ebx
je 0x66fce0
cmp ebx, 5
jne 0x66fe35
cmp byte [edi + 0x1e1], 1
jne 0x66fe35
mov esi, dword [ebp + 8]
cmp ebx, 5
je 0x66fd1b
mov ecx, edi
call fcn.0066e890
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, esi
push 0xc8
call fcn.0068f5c0
mov byte [edi + 0x1db], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 0x1dc], eax
mov byte [edi + 0x1e1], 0
mov word [edi + 0x194], 0
mov dword [edi + 0x178], 0
mov dword [edi + 0x17c], 0
mov dword [edi + 0x180], 0
mov dword [0x1a4ea24], 0x3c23d70a
push dword [edi + 4]
call fcn.00450780
mov ecx, eax
call fcn.0067b810
cmp dword [edi + 0x190], 0x23
movzx eax, word [eax + 0x26]
je 0x66fdf5
cmp eax, 2
je 0x66fd91
cmp eax, 7
je 0x66fd91
cmp eax, 0x18
jne 0x66fda4
push 0x20
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 8
test al, al
jne 0x66fe35
push 0x25
push 0x25
mov ecx, edi
call fcn.00671100
mov ecx, edi
mov dword [edi + 0x168], 0
call fcn.0066e890
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, edi
call fcn.0066e710
push ecx
fstp dword [esp]
push 0x25
push 0x25
mov ecx, esi
call fcn.00692a00
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 0x14
jne 0x66fe35
push 0x34
push 0x34
mov ecx, edi
call fcn.00671100
mov ecx, edi
call fcn.0066e890
sub esp, 0xc
mov ecx, esp
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
mov ecx, edi
call fcn.0066e710
push ecx
fstp dword [esp]
push 0x34
push 0x34
mov ecx, esi
call fcn.00692a00
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6a4820
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fbdc6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x766480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 8]
test eax, eax
push 0
cmove eax, dword [0x747c80]
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x6a488f
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push ebx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp + 8], eax
call fcn.006dff04
mov edi, eax
add esp, 4
mov dword [ebp - 0x24], edi
push 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push dword [ebp + 8]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6a49b6
mov eax, dword [edi]
add eax, 8
mov dword [ebp - 0x28], eax
add eax, edi
mov dword [ebp - 0x2c], eax
mov ecx, dword [eax - 4]
mov eax, dword [esi + 0x244b0]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x6a4913
push eax
call fcn.006dfeff
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [esi + 0x244b0], 0
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov esi, edx
mov edx, 0x18
shr esi, 4
mov dword [ebp - 0x34], esi
mov dword [eax + 0x244ac], esi
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x6a496e
mov edi, eax
test esi, esi
je 0x6a4969
mov ecx, edi
call fcn.006a4df0
add edi, 0x18
sub esi, 1
jne 0x6a4957
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
jmp 0x6a4970
xor eax, eax
mov esi, dword [ebp - 0x14]
mov byte [ebp - 4], 1
mov dword [esi + 0x244b0], eax
test eax, eax
je 0x6a49b6
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
call fcn.006a6140
mov ecx, dword [0x76a53c]
add esp, 0x10
push 4
push 3
push dword [ebp - 0x10]
push dword [esi + 0x244b0]
call fcn.006b1330
mov byte [ebp + 0xb], 1
jmp 0x6a49ba
mov byte [ebp + 0xb], 0
test edi, edi
je 0x6a49c7
push edi
call fcn.006dfeff
add esp, 4
test ebx, ebx
je 0x6a49d2
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6a49f0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fbe26
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x766480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x6a4be0
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
je 0x6a4be0
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x10], eax
call fcn.006dff04
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push dword [ebp - 0x10]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6a4baa
mov ebx, dword [esi]
add ebx, 8
mov ecx, dword [ebx + esi - 4]
lea eax, [ebx + esi]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x20], ebx
mov dword [ebp + 8], ecx
test eax, eax
je 0x6a4acc
push eax
call fcn.006dfeff
mov ecx, dword [ebp + 8]
add esp, 4
mov dword [edi + 4], 0
mov eax, 0x3531dec1
mul ecx
xor ecx, ecx
mov esi, edx
mov edx, 0x268
shr esi, 7
mov eax, esi
mov dword [edi], esi
mul edx
mov dword [ebp - 0x34], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006dff04
add esp, 4
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x6a4b2a
mov ebx, eax
test esi, esi
je 0x6a4b25
nop dword [eax]
mov ecx, ebx
call fcn.006a4e80
add ebx, 0x268
sub esi, 1
jne 0x6a4b10
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x20]
jmp 0x6a4b2c
xor eax, eax
mov byte [ebp - 4], 1
mov dword [edi + 4], eax
test eax, eax
je 0x6a4baa
lea ecx, [ebp + 8]
push ecx
push eax
mov eax, dword [ebp - 0x10]
sub eax, ebx
push eax
push dword [ebp - 0x24]
call fcn.006a6140
mov ecx, dword [0x76a53c]
add esp, 0x10
push 4
push 3
push dword [ebp + 8]
push dword [edi + 4]
call fcn.006b1330
call fcn.006a2ba0
xor ebx, ebx
mov edx, eax
mov dword [ebp - 0x10], edx
cmp dword [edi], ebx
jle 0x6a4ba6
xor esi, esi
mov ecx, dword [edi + 4]
movzx eax, byte [ecx + esi + 0x15]
mov ecx, edx
push eax
push 0
call fcn.006a2ca0
test al, al
je 0x6a4b98
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x10]
add eax, esi
push eax
call fcn.006a2d00
mov edx, dword [ebp - 0x10]
inc ebx
add esi, 0x268
cmp ebx, dword [edi]
jl 0x6a4b74
mov bl, 1
jmp 0x6a4bac
xor bl, bl
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x6a4bbc
push eax
call fcn.006dfeff
add esp, 4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x6a4bca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6a4c00
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6fbe6d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x766480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
test eax, eax
push 0
cmove eax, dword [str.._Script_Game_SpeacialCompensation.txt]
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp esi, 0xffffffff
jne 0x6a4c70
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
mov dword [ebp - 0x20], edi
call fcn.006dff04
mov ebx, eax
add esp, 4
mov dword [ebp - 0x30], ebx
push 0
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 1
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6a4cc4
xor bl, bl
jmp 0x6a4db8
mov eax, dword [ebx]
mov edx, 0x57
add eax, 8
mov dword [ebp - 0x24], eax
add eax, ebx
mov dword [ebp - 0x28], eax
mov ebx, dword [eax - 4]
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], ebx
add eax, 0x2409c
mov ecx, dword [eax - 4]
cmp ecx, dword [eax]
je 0x6a4ced
mov dword [eax], ecx
add eax, 0xc
sub edx, 1
jne 0x6a4ce4
shr ebx, 1
xor ecx, ecx
mov eax, ebx
mov dword [ebp - 0x14], ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006dff04
mov edi, eax
add esp, 4
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 2
test edi, edi
jne 0x6a4d29
xor bl, bl
jmp 0x6a4db8
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
push edi
push eax
push dword [ebp - 0x28]
call fcn.006a6140
mov ecx, dword [0x76a53c]
add esp, 0x10
push 4
push 3
push dword [ebp + 8]
push edi
call fcn.006b1330
xor esi, esi
xor bl, bl
cmp dword [ebp - 0x14], esi
jbe 0x6a4daa
nop dword [eax]
movzx eax, word [edi + esi*2]
xor ecx, ecx
mov edx, eax
mov dword [ebp - 0x28], edx
cmp cx, ax
jne 0x6a4d74
inc bl
jmp 0x6a4da4
mov ecx, dword [ebp - 0x10]
movzx eax, bl
lea eax, [eax + eax*2]
lea ecx, [ecx + eax*4]
mov eax, dword [ecx + 0x2409c]
add ecx, 0x24098
cmp eax, dword [ecx + 8]
je 0x6a4d9a
mov word [eax], dx
add dword [ecx + 4], 2
jmp 0x6a4da4
lea edx, [ebp - 0x28]
push edx
push eax
call fcn.006a37b0
inc esi
cmp esi, dword [ebp - 0x14]
jb 0x6a4d60
push edi
mov bl, 1
call fcn.006dfeff
mov esi, dword [ebp - 0x2c]
add esp, 4
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x6a4dc8
push eax
call fcn.006dfeff
add esp, 4
test esi, esi
je 0x6a4dd3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x6a52c0
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
call fcn.006a5350
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x6a5338
mov ecx, dword [0x1a97d18]
xor edx, edx
sub ecx, 2
jne 0x6a5320
lea edx, [ecx + 2]
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push edx
push esi
push ebx
push edi
call sub.dbghelp.dll_MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6a5a50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
movaps xmm3, xmmword [0x711610]
xorps xmm4, xmm4
movaps xmm5, xmmword [0x7189f0]
movaps xmm6, xmmword [0x7189e0]
movaps xmm7, xmmword [0x7189d0]
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0xe0
mov ecx, 0x1c
lea eax, [edi + 0x634]
nop dword [eax]
nop dword [eax + eax]
lea eax, [eax + 0x20]
movaps xmm2, xmm7
movups xmm1, xmmword [eax - 0x650]
movups xmm0, xmmword [eax - 0x654]
andps xmm2, xmm1
andps xmm0, xmm6
orps xmm2, xmm0
psrld xmm2, 1
movups xmm0, xmmword [eax - 0x20]
xorps xmm2, xmm0
movaps xmm0, xmm3
andps xmm0, xmm1
pcmpeqd xmm0, xmm4
andnps xmm0, xmmword [0x711db0]
andps xmm0, xmm5
xorps xmm2, xmm0
movups xmmword [eax - 0x654], xmm2
movaps xmm2, xmm6
movups xmm0, xmmword [eax - 0x644]
movups xmm1, xmmword [eax - 0x640]
andps xmm2, xmm0
movaps xmm0, xmm7
andps xmm0, xmm1
orps xmm2, xmm0
psrld xmm2, 1
movups xmm0, xmmword [eax - 0x10]
xorps xmm2, xmm0
movaps xmm0, xmm3
andps xmm0, xmm1
pcmpeqd xmm0, xmm4
andnps xmm0, xmmword [0x711db0]
andps xmm0, xmm5
xorps xmm2, xmm0
movups xmmword [eax - 0x644], xmm2
sub ecx, 1
jne 0x6a5a90
mov edx, dword [edi + esi*4]
mov ecx, dword [edi + esi*4 + 4]
xor edx, ecx
and edx, 0x7ffffffe
and cl, 1
xor edx, dword [edi + esi*4]
shr edx, 1
movzx eax, cl
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [edi + esi*4 + 0x634]
mov dword [edi + esi*4], edx
inc esi
cmp esi, 0xe3
jl 0x6a5b27
mov eax, 0xe3
mov esi, dword [edi + eax*4]
mov edx, dword [edi + eax*4 + 4]
xor esi, edx
and esi, 0x7ffffffe
and dl, 1
xor esi, dword [edi + eax*4]
shr esi, 1
movzx ecx, dl
neg ecx
sbb ecx, ecx
and ecx, 0x9908b0df
xor esi, ecx
xor esi, dword [edi + eax*4 - 0x38c]
mov dword [edi + eax*4], esi
inc eax
cmp eax, 0x26f
jl 0x6a5b64
mov eax, dword [edi + 0x9bc]
mov edx, eax
mov ecx, dword [edi]
xor edx, ecx
and edx, 0x7ffffffe
mov dword [edi + 0x9c0], 0
xor edx, eax
and cl, 1
shr edx, 1
movzx eax, cl
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor edx, eax
xor edx, dword [edi + 0x630]
mov dword [edi + 0x9bc], edx
pop edi
pop esi
pop ebx
ret

Function at 0x6a5be0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
xor eax, eax
push edi
mov ecx, 0x270
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov eax, 1
nop dword [eax]
mov edx, dword [esi + eax*4 - 4]
shr edx, 0x1e
xor edx, dword [esi + eax*4 - 4]
imul ecx, edx, 0x6c078965
add ecx, eax
mov dword [esi + eax*4], ecx
inc eax
cmp eax, 0x270
jl 0x6a5c00
pop edi
mov dword [esi + 0x9c0], 0x270
pop esi
pop ebp
ret 4
Function at 0x6a6510
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
or eax, 0xffffffff
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebx], 0xffffffff
test edi, edi
je 0x6a654d
push esi
mov esi, dword [ebp + 8]
or eax, 0xffffffff
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x747c88]
mov dword [ebx], eax
sub edi, 1
jne 0x6a6530
pop esi
not eax
mov dword [ebx], eax
xor eax, eax
pop edi
pop ebx
pop ebp
ret

Function at 0x6a6560
Capabilities:
Encode data using xor
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.006dfb70
mov eax, dword [0x766480]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x1018], esi
push edi
push 0x8000027
push 3
push edi
push 1
push connect
push eax
mov dword [ebp - 0x100c], esi
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0x1014], ebx
cmp ebx, 0xffffffff
jne 0x6a65c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x6a6665
push 0
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x1010], 0x747c88
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6a6665
nop
cmp dword [ebp - 0x1008], 0
je 0x6a665d
push esi
push edi
mov eax, dword [ebp - 0x100c]
mov ecx, dword [eax]
mov edi, dword [ebp - 0x1010]
lea esi, [ebp - 0x1004]
mov ebx, dword [ebp - 0x1008]
lea edx, [esi + ebx]
xor eax, eax
mov bl, byte [esi]
mov al, cl
inc esi
xor al, bl
shr ecx, 8
mov ebx, dword [edi + eax*4]
xor ecx, ebx
cmp edx, esi
jne 0x6a6618
pop edi
pop esi
mov eax, dword [ebp - 0x100c]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x1014]
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x6a65f0
mov esi, dword [ebp - 0x1018]
xor edi, edi
test ebx, ebx
je 0x6a6670
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
not dword [esi]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006dfb52
mov esp, ebp
pop ebp
ret