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

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x453c18]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453bf9
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x453c08
or bl, 4
test esi, 0x20000000
je 0x453c13
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45a2dc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45a2ee
add esp, 0xfffffff0
call fcn.00403aac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004215e8
mov eax, dword [0x4b01e0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a680
mov eax, dword [0x4b01ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x45a68c
mov eax, ebx
call fcn.0045a698
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416c58]
call fcn.00403704
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416c58]
call fcn.00403704
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416c58]
call fcn.00403704
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416c58]
call fcn.00403704
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416c58]
call fcn.00403704
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x456ab0
push eax
push 0
push 0
mov eax, dword [0x4b0388]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4230b0]
call fcn.004247c8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4230b0]
call fcn.004247c8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4230b0]
call fcn.004247c8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045aae8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a9b0
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a9b0
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45a9b0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45a42b
call fcn.00403b04
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45a794
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45a93f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45a920
mov dl, 1
mov eax, dword [0x417074]
call fcn.00403704
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004045a4
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45a90f
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044862c
test al, al
je 0x45a902
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x45a950
lea eax, [ebp - 0x254]
call fcn.00409820
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45a902
xor eax, eax
push ebp
push 0x45a8fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45a988
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45a8e4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404814
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x45a8e4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404814
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a902
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45a805
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041afe4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45a946
lea eax, [ebp - 0x260]
call fcn.004045a4
ret

Function at 0x45b288
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4b1b4c]
cmp byte [eax + 0xa5], 0
jne 0x45b2f9
cmp dword [0x4b1b64], 0
jne 0x45b2ba
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45b244
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4b1b64], eax
cmp dword [0x4b1b60], 0
jne 0x45b2d5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4b1b60], eax
cmp dword [0x4b1b68], 0
jne 0x45b2f9
push esp
push 0
push 0
push 0x45b1e8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4b1b68], eax
pop edx
ret
Function at 0x45b98c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b1b4c]
cmp dword [eax + 0x30], 0
je 0x45ba36
cmp dword [ebx + 0x94], 0
jne 0x45ba30
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45b91c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45ba30
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45b9f6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45ba30
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004192e8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45ba05
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45c594
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45c5c9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404694
jmp 0x45c5d6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004045f8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45d700
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45d741
mov eax, esi
call fcn.00443bc4
test al, al
je 0x45d741
mov eax, dword [ebx + 0x84]
call fcn.004438c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45d741
push 0
mov eax, dword [ebx + 0x84]
call fcn.004438c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x465ad4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x465b02
mov eax, ebx
call fcn.00466588
cmp dword [ebx + 0x40], 0
je 0x465afb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x465b73
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x465b65
cmp dword [ebx + 8], 0
je 0x465b24
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x465b36
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x465b65
cmp dword [ebx + 8], 0
je 0x465b17
cmp eax, 3
je 0x465b49
dec eax
jne 0x465b17
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x465b17
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x465b17
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x465b91
cmp dword [ebx + 0x14], 0xcc
je 0x465b91
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00465b9c
pop ebx
ret
Function at 0x4778a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4778cf
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x47794e
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0047615c
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x47791c
mov cx, word [esp]
sub cx, si
jmp 0x47791e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x477905
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x477944
mov cx, word [esp]
sub cx, si
jmp 0x477946
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x47792d
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4779ab
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00477574
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x477996
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4779ab
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4778aa
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x47dee0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4b1cf4
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x47df02
shr eax, 1
xor eax, 0xedb88320
jmp 0x47df04
shr eax, 1
dec edx
jne 0x47def0
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x47dee9
mov byte [0x4b20f4], 1
pop esi
pop ebx
ret

Function at 0x47df20
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4b20f4], 0
jne 0x47df37
call fcn.0047dee0
mov eax, edi
dec eax
test eax, eax
jl 0x47df60
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4b1cf4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x47df41
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x480a7c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x480aad
dec al
je 0x480ae9
dec al
je 0x480b2d
dec al
je 0x480b98
jmp 0x480c22
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x480c22
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, 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 0x480abd
jmp 0x480c22
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x480c22
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x480af9
jmp 0x480c22
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x480c22
mov esi, 1
mov al, 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 0x480b5b
xor ebp, ebp
jmp 0x480b6c
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x480b75
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x480b3d
jmp 0x480c22
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x480c22
mov esi, 1
mov al, 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 0x480bf0
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, 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
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0047df68
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x480bac
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x48bb44
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov esi, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.00404864
mov edx, eax
mov eax, ebp
call fcn.00404bf0
mov eax, dword [esp]
call fcn.00404864
mov edi, eax
test edi, edi
jle 0x48bba8
mov ebx, 1
mov eax, ebp
call fcn.00404abc
mov edx, dword [esp]
mov dl, byte [edx + ebx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [ebp]
movzx eax, byte [eax + ebx - 1]
add esi, eax
imul eax, esi, 0xce6d
add eax, 0x58bf
mov esi, eax
inc ebx
dec edi
jne 0x48bb74
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x48bbb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, edx
mov edi, eax
mov eax, edi
call fcn.00404864
mov edx, eax
mov eax, dword [esp]
call fcn.00404bf0
mov eax, edi
call fcn.00404864
mov ebp, eax
test ebp, ebp
jle 0x48bc0f
mov ebx, 1
mov eax, dword [esp]
call fcn.00404abc
mov dl, byte [edi + ebx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
xor eax, eax
mov al, byte [edi + ebx - 1]
add esi, eax
imul eax, esi, 0xce6d
add eax, 0x58bf
mov esi, eax
inc ebx
dec ebp
jne 0x48bbdf
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x49c38c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4b3260
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x49c3ae
shr eax, 1
xor eax, 0xedb88320
jmp 0x49c3b0
shr eax, 1
dec edx
jne 0x49c39c
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x49c395
mov byte [0x4b3660], 1
pop esi
pop ebx
ret

Function at 0x49c3cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4b3660], 0
jne 0x49c3e3
call fcn.0049c38c
mov eax, edi
dec eax
test eax, eax
jl 0x49c40c
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4b3260]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x49c3ed
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x49ebe8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x49ec19
dec al
je 0x49ec55
dec al
je 0x49ec99
dec al
je 0x49ed04
jmp 0x49ed8e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x49ed8e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, 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 0x49ec29
jmp 0x49ed8e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49ed8e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x49ec65
jmp 0x49ed8e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49ed8e
mov esi, 1
mov al, 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 0x49ecc7
xor ebp, ebp
jmp 0x49ecd8
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x49ece1
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x49eca9
jmp 0x49ed8e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x49ed8e
mov esi, 1
mov al, 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 0x49ed5c
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, 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
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0049c414
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x49ed18
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4a66ac
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4a6757
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x40000000
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x4c]
mov edx, 0x4a676c
call fcn.004048b0
mov eax, dword [ebp - 4]
call fcn.00404a64
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
mov dword [ebx + 0x3c], esi
cmp esi, 0xffffffff
jne 0x4a6741
call sub.kernel32.dll_GetLastError
cmp eax, 2
jne 0x4a6720
mov ecx, dword [0x4afe4c]
mov dl, 1
mov eax, dword [0x4a5dc8]
call fcn.0040c3bc
call fcn.00403f14
jmp 0x4a6741
call sub.kernel32.dll_GetLastError
cmp eax, 5
jne 0x4a6741
mov ecx, dword [0x4afe50]
mov dl, 1
mov eax, dword [0x4a5dc8]
call fcn.0040c3bc
call fcn.00403f14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a675e
lea eax, [ebp - 4]
call fcn.004045a4
ret

Function at 0x4a6cc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x4a6cef
mov ecx, dword [0x4afe5c]
mov dl, 1
mov eax, dword [0x4a5dc8]
call fcn.0040c3bc
call fcn.00403f14
mov eax, dword [ebx]
push eax
mov edx, edi
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.004a6c7c
mov eax, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [esi + 0x3c]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x4a6d27
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x4a6d27
xor eax, eax
jmp 0x4a6d29
mov al, 1
test al, al
jne 0x4a6d44
mov ecx, dword [0x4afe54]
mov dl, 1
mov eax, dword [0x4a5dc8]
call fcn.0040c3bc
call fcn.00403f14
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x4a6db8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x4a6de7
mov ecx, dword [0x4afe5c]
mov dl, 1
mov eax, dword [0x4a5dc8]
call fcn.0040c3bc
call fcn.00403f14
mov eax, dword [ebx]
mov byte [eax + 0x14], 1
mov eax, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [esi + 0x3c]
push eax
call sub.kernel32.dll_ReadFile
test eax, eax
jne 0x4a6e16
call sub.kernel32.dll_GetLastError
cmp eax, 0x3e5
je 0x4a6e16
xor eax, eax
jmp 0x4a6e18
mov al, 1
test al, al
jne 0x4a6e33
mov ecx, dword [0x4afe58]
mov dl, 1
mov eax, dword [0x4a5dc8]
call fcn.0040c3bc
call fcn.00403f14
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x405ee0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
push edi
mov dword [ebp - 0x30], 0x750051
mov dword [ebp - 0x2c], 0x630069
mov dword [ebp - 0x28], 0x53006b
mov dword [ebp - 0x24], 0x650065
mov dword [ebp - 0x20], 0x75005c
mov dword [ebp - 0x1c], 0x650073
mov dword [ebp - 0x18], 0x5f0072
mov dword [ebp - 0x14], 0x730061
mov dword [ebp - 0x10], 0x6f0073
mov dword [ebp - 0xc], 0x2e0063
mov dword [ebp - 8], 0x6e0069
mov dword [ebp - 4], 0x69
call fcn.00407790
mov ecx, eax
test ecx, ecx
je 0x405f96
mov eax, dword [ecx]
push 2
push 0x17
call dword [eax]
test eax, eax
je 0x405fa0
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp dword [eax - 8], 0x17
jl 0x405f8c
mov dword [eax - 0xc], 0x17
xor eax, eax
mov ecx, dword [esi]
push 0x2e
mov word [ecx + 0x2e], ax
lea eax, [ebp - 0x30]
push eax
push 0x2e
push dword [esi]
call fcn.0040a020
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.004062a0
push 0x80004005
call fcn.004062a0
call fcn.004092a0
int3