joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5f0b90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.004b5240
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.005eab50
test ebx, ebx
jne 0x5f0be3
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.005f0a0c
mov ebx, eax
test ebx, ebx
je 0x5f0cd9
cmp esi, ebx
je 0x5f0c0c
mov eax, dword [esp]
sub eax, dword [ebx + 0x48]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x4c]
mov dword [esp + 0x118], eax
jmp 0x5f0c21
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x5f0c59
add eax, 0xffffff5f
sub eax, 2
jb 0x5f0c71
dec eax
sub eax, 2
jb 0x5f0c85
dec eax
sub eax, 2
jb 0x5f0c7b
jmp 0x5f0c8f
add eax, 0xfffffdff
sub eax, 2
jb 0x5f0c71
dec eax
sub eax, 2
jb 0x5f0c85
dec eax
sub eax, 2
jb 0x5f0c7b
jmp 0x5f0c8f
mov byte [esp + 0x120], 0
jmp 0x5f0c97
mov byte [esp + 0x120], 2
jmp 0x5f0c97
mov byte [esp + 0x120], 1
jmp 0x5f0c97
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.005aabbc
mov esi, eax
call fcn.005e766c
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.005ec564
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x5f0cdb
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x64ac80
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x64ad6d
push dword fs:[edx]
mov dword fs:[edx], esp
push ebx
push 0x2002
call sub.KERNEL32.DLL_GlobalAlloc
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x64ad3f
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
xor edx, edx
push ebp
push 0x64ad2e
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
mov eax, edi
mov ecx, ebx
call fcn.004b8bf0
mov eax, dword [ebp - 4]
call fcn.0064a9c0
mov eax, dword [ebp - 8]
push eax
movzx eax, si
push eax
call sub.USER32.DLL_SetClipboardData
test eax, eax
jne 0x64ad17
mov ecx, dword [0x69adbc]
mov dl, 1
mov eax, dword [0x4521e0]
call fcn.0049f710
call fcn.004ba8fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64ad35
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
ret

Function at 0x64ae98
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
push 0xd
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x64af0a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x64aede
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalLock
mov edx, eax
mov eax, ebx
call fcn.004bbe88
jmp 0x64aee5
mov eax, ebx
call fcn.004bb0f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64af11
cmp dword [ebp - 8], 0
je 0x64af01
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_GlobalUnlock
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x64af4c
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x64aff4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
je 0x64afc7
mov edx, ebx
mov eax, dword [0x592940]
call fcn.0059a830
test al, al
je 0x64afb7
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov edx, ebx
mov eax, dword [ebp - 8]
call fcn.0059a748
call fcn.004ba9f0
jmp 0x64affb
movzx eax, bx
push eax
call sub.USER32.DLL_EnumClipboardFormats
mov ebx, eax
test bx, bx
jne 0x64af7f
mov ecx, dword [0x69aee8]
mov dl, 1
mov eax, dword [0x64a8c8]
call fcn.0049f710
call fcn.004ba8fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64affb
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x64b004
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x64b060
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
call sub.USER32.DLL_GetClipboardData
mov esi, eax
push 9
call sub.USER32.DLL_GetClipboardData
mov edi, eax
push edi
mov ecx, esi
mov dx, 2
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64b067
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x64b070
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor edx, edx
push ebp
push 0x64b0c5
push dword fs:[edx]
mov dword fs:[edx], esp
push 3
call sub.USER32.DLL_GetClipboardData
mov ebx, eax
push 9
call sub.USER32.DLL_GetClipboardData
push eax
mov ecx, ebx
mov dx, 3
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 0x64]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64b0cc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x64b13c
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x64b1b1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0064a9c0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
call fcn.0059a80c
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x64b19b
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64b1b8
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret

Function at 0x64b1c0
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x64b235
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0064a9c0
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
lea edx, [ebp - 0xa]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x68]
mov eax, dword [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
call sub.USER32.DLL_SetClipboardData
cmp dword [ebp - 0x10], 0
je 0x64b21f
mov eax, dword [ebp - 0x10]
push eax
push 9
call sub.USER32.DLL_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64b23c
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x64b290
Capabilities:
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x64b2d4
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, bx
push eax
call sub.USER32.DLL_GetClipboardData
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64b2db
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
ret
Function at 0x64ec2c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x108], edx
mov edi, eax
xor eax, eax
push ebp
push 0x64eeaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
cmp dword [edi + 0xc0], 0
jne 0x64ee81
mov eax, dword [edi + 0x38]
test eax, eax
je 0x64ec85
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x64eca5
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x64ec95
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x64eca5
mov eax, edi
call fcn.0064ef60
jmp 0x64ee81
cmp dword [edi + 0xc4], 0
jne 0x64ecf4
lea eax, [ebp - 0x108]
mov edx, dword [edi + 0x38]
mov ecx, 0
call fcn.004bbbe0
mov edx, dword [ebp - 0x108]
lea eax, [ebp - 0x101]
call fcn.0049aa24
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x6b420c]
call fcn.0064e6cc
push eax
call sub.USER32.DLL_DdeCreateStringHandleA
mov dword [edi + 0xc4], eax
cmp dword [edi + 0xc8], 0
jne 0x64ed43
lea eax, [ebp - 0x10c]
mov edx, dword [edi + 0x3c]
mov ecx, 0
call fcn.004bbbe0
mov edx, dword [ebp - 0x10c]
lea eax, [ebp - 0x101]
call fcn.0049aa24
push 0x3ec
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x6b420c]
call fcn.0064e6cc
push eax
call sub.USER32.DLL_DdeCreateStringHandleA
mov dword [edi + 0xc8], eax
mov ecx, dword [edi + 0xc8]
mov edx, dword [edi + 0xc4]
mov eax, edi
call fcn.0064efa0
mov ebx, eax
test bl, bl
jne 0x64ee36
mov eax, dword [edi + 0x38]
test eax, eax
je 0x64ed6c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x64ed86
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x64ed7f
sub eax, 4
mov eax, dword [eax]
test eax, eax
sete al
jmp 0x64ed88
xor eax, eax
test al, al
jne 0x64ee36
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x64ed9f
sub eax, 4
mov eax, dword [eax]
test eax, eax
je 0x64edcc
lea eax, [ebp - 0x110]
mov edx, dword [edi + 0xb8]
mov ecx, 0
call fcn.004bbbe0
mov edx, dword [ebp - 0x110]
lea eax, [ebp - 0x101]
call fcn.0049aa24
jmp 0x64ee0e
push dword [edi + 0x38]
push 0x64eec8
push dword [edi + 0x3c]
lea eax, [ebp - 0x118]
mov edx, 3
call fcn.004bc114
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x114]
mov ecx, 0
call fcn.004bbbe0
mov edx, dword [ebp - 0x114]
lea eax, [ebp - 0x101]
call fcn.0049aa24
push 7
lea eax, [ebp - 0x101]
push eax
call sub.KERNEL32.DLL_WinExec
cmp eax, 0x20
jb 0x64ee36
mov ecx, dword [edi + 0xc8]
mov edx, dword [edi + 0xc4]
mov eax, edi
call fcn.0064efa0
mov ebx, eax
test bl, bl
jne 0x64ee43
mov eax, edi
call fcn.0064ef60
jmp 0x64ee81
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x64ee52
mov dword [edi + 0xa4], eax
jmp 0x64ee5c
mov dword [edi + 0xa4], 1
mov eax, edi
call fcn.0064f024
test al, al
je 0x64ee81
mov eax, edi
mov si, 0xffef
call fcn.004b98e4
xor ecx, ecx
xor edx, edx
mov eax, edi
call fcn.0064f508
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x64eeb1
lea eax, [ebp - 0x118]
call fcn.004bb0f4
lea eax, [ebp - 0x114]
mov edx, 4
call fcn.004bb184
ret
Function at 0x654e14
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x6b461c], 0
jne 0x654e2b
call fcn.00654dd0
mov eax, edi
dec eax
test eax, eax
jl 0x654e53
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x6b421c]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x654e35
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x657b24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x657bbe.0
jmp dword [ecx*4 + 0x657b57]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x657b89
sub dl, 8
je 0x657b98
jmp case.0x657bbe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x6577f0
jmp case.0x657bbe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x657844
jmp case.0x657bbe.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x657bbe.0
movzx ecx, byte [ecx + 0x657bc5]
jmp dword [ecx*4 + 0x657bd6]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x6578e4
jmp case.0x657bbe.0
cmp dl, 3
jne 0x657c03
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x65793c
jmp case.0x657bbe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x6578f8
jmp case.0x657bbe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x657980
jmp case.0x657bbe.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x657c2e
sub dl, 8
je 0x657c3a
jmp case.0x657bbe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x6579ac
jmp case.0x657bbe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x657a10
jmp case.0x657bbe.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x657c59
sub dl, 8
je 0x657c65
jmp case.0x657bbe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x657ac0
jmp case.0x657bbe.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x657ae8
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x10], edx
mov esi, ecx
test esi, esi
jb 0x657d07
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00656d2c
test eax, eax
je 0x657d07
mov eax, ebx
call fcn.00657d10
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x657ca0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x657d10
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x657d41
dec al
je 0x657d7c
dec al
je 0x657dc1
dec al
je 0x657e2a
jmp 0x657eb4
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x657eb4
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x657d51
jmp 0x657eb4
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x657eb4
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x657d8c
jmp 0x657eb4
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x657eb4
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x657df0
xor ebp, ebp
jmp 0x657e00
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x657e09
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x657dd1
jmp 0x657eb4
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x657eb4
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x657e83
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.00654e5c
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x657e3e
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x66677c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x666798
call fcn.00667b50
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x6667b7
test bl, 1
je 0x6667b7
call fcn.0066f130
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x666998
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.006676cc
test byte [ebp + 0xd], 0xc0
jne 0x6669bc
mov eax, dword [0x697f70]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x6669c9
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x6669f6
je 0x666a08
sub ecx, 0x100
je 0x666a1a
sub ecx, 0x100
je 0x666a23
sub ecx, 0x100
je 0x666a11
jmp 0x666a2c
sub ecx, 0x600
je 0x666a23
sub ecx, 0x100
je 0x666a08
jmp 0x666a2c
mov dword [ebp - 8], 1
jmp 0x666a33
mov dword [ebp - 8], 2
jmp 0x666a33
mov dword [ebp - 8], 4
jmp 0x666a33
mov dword [ebp - 8], 5
jmp 0x666a33
mov dword [ebp - 8], 3
test byte [ebp + 0xd], 1
je 0x666a5a
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x6979e8]
test al, 0x80
je 0x666a53
mov ebx, 0x80
jmp 0x666a6c
mov ebx, 1
jmp 0x666a6c
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x666a6c
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x666a7e
je 0x666a87
dec eax
je 0x666a90
jmp 0x666a99
mov dword [ebp - 4], 0x80000000
jmp 0x666aa8
mov dword [ebp - 4], 0x40000000
jmp 0x666aa8
mov dword [ebp - 4], 0xc0000000
jmp 0x666aa8
push 1
call fcn.00667ae4
pop ecx
mov ebx, eax
jmp 0x666ba8
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x666ac4
sub eax, 0x10
je 0x666ac8
sub eax, 0x10
je 0x666acf
sub eax, 0x10
je 0x666ad6
jmp 0x666ad6
xor edi, edi
jmp 0x666adb
mov edi, 1
jmp 0x666adb
mov edi, 2
jmp 0x666adb
mov edi, 3
test byte [ebp + 0xc], 4
je 0x666af3
cmp dword [ebp - 4], 0x80000000
jne 0x666af1
mov edi, 1
jmp 0x666af3
xor edi, edi
mov dword [ebp - 0x14], 0xc
xor eax, eax
mov dword [ebp - 0x10], eax
mov edx, dword [ebp + 0xc]
and edx, 0x80
cmp edx, 1
sbb ecx, ecx
neg ecx
mov dword [ebp - 0xc], ecx
push 0
push ebx
mov ecx, dword [ebp - 8]
push ecx
lea eax, [ebp - 0x14]
push eax
push edi
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x666b61
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x666b56
test byte [ebp + 0xd], 1
je 0x666b51
mov ebx, 0x50
jmp 0x666b56
mov ebx, 2
push ebx
call fcn.00667ae4
pop ecx
mov ebx, eax
jmp 0x666ba8
mov edi, esi
push edi
call fcn.006668fc
pop ecx
test eax, eax
je 0x666b75
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x666b81
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.0066780c
add esp, 8
mov ebx, eax
inc eax
jne 0x666ba8
push 4
call fcn.00667ae4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.00667700
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x66b3e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.0066527c
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
call fcn.00665378
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00665378
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x698cb5
lea ecx, [ebp - 0x200]
push ecx
call fcn.0066527c
add esp, 8
push 0xa
lea ecx, [ebp - 0x200]
push ecx
call fcn.00665378
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov eax, dword [ebx]
push eax
call fcn.0066c934
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x66b4f9
push esi
call fcn.00665378
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.00665378
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.00664338
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x66b4d0
xor eax, eax
jmp 0x66b580
push esi
call fcn.00665378
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.00665378
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.00665183
add esp, 0xc
jmp 0x66b539
mov edi, dword [ebx + 0x24]
push edi
call fcn.00665378
pop ecx
push eax
push esi
call fcn.00665378
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.00665378
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.00664358
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x66b539
xor eax, eax
jmp 0x66b580
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.0066527c
add esp, 8
push 0x698cb7
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.0066527c
add esp, 8
lea ecx, [ebp - 0x200]
push ecx
mov eax, dword [ebx + 0x24]
push eax
call fcn.0066527c
add esp, 8
push 0x698cb9
mov edx, dword [ebx + 0x24]
push edx
call fcn.0066527c
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x66f0c4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x66f0f1
jmp 0x66f128
call fcn.0066f074
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00665378
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00665378
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret