joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040c6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x20
mov eax, 0x4505a5
call fcn.0042fb3d
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
ja 0x4040f0
push ebx
push 1
lea esi, [ebp + 8]
call fcn.0040273f
xor eax, eax
jmp 0x4041d6
lea edi, [eax - 1]
lea eax, [ebp + 8]
call fcn.00401694
cmp word [eax], 0x5c
jne 0x404128
mov edi, dword [ebp + 0x1c]
dec edi
lea eax, [ebp + 8]
call fcn.00401694
xor ecx, ecx
mov word [eax], cx
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x40411e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0040215a
xor edi, edi
inc edi
cmp dword [ebp + 0x1c], 3
jb 0x4041c9
lea eax, [ebp + 8]
push eax
lea esi, [ebp - 0x2c]
call fcn.004026e4
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x40414d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40415f
test al, 0x10
je 0x40415f
mov ebx, edi
push 0
push edi
lea esi, [ebp - 0x2c]
call fcn.0040273f
test ebx, ebx
jne 0x4041c9
sub esp, 0x1c
mov dword [ebp - 0x10], esp
mov ebx, esp
sub esp, 0x1c
lea eax, [ebp + 8]
mov esi, esp
mov dword [ebp - 0x10], esp
push eax
call fcn.004026e4
call fcn.0040407c
add esp, 0x1c
call fcn.004040c6
add esp, 0x1c
test eax, eax
je 0x4041b8
cmp dword [ebp + 0x20], 8
mov eax, dword [ebp + 0xc]
jae 0x4041a7
lea eax, [ebp + 0xc]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x4041b8
mov ebx, edi
jmp 0x4041ba
xor ebx, ebx
push 0
push edi
lea esi, [ebp + 8]
call fcn.0040273f
mov eax, ebx
jmp 0x4041d6
push 0
push edi
lea esi, [ebp + 8]
call fcn.0040273f
mov eax, edi
call fcn.0042fc15
ret
Function at 0x40534e
Capabilities:
Check if file exists
Move file

Disassembly:
mov eax, dword [esi + 8]
push edi
xor edi, edi
mov dword [esi], vtable.CExtractOutFile.0
cmp eax, 0xffffffff
je 0x405375
lea ecx, [esi + 0x14]
push ecx
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or dword [esi + 8], 0xffffffff
cmp dword [esi + 0x10], edi
je 0x40539e
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x40539e
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40539e
push 1
push dword [esi + 0x10]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x4053af
push eax
call fcn.0042d85a
pop ecx
mov dword [esi + 0x10], edi
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x4053c0
push eax
call fcn.0042d85a
pop ecx
mov dword [esi + 0xc], edi
pop edi
ret

Function at 0x4073e5
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push ebp
push esi
push edi
mov edi, eax
add edi, 4
push dword [edi]
call ebx
push 0x3023
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x23
pop esi
call fcn.00444750
push dword [edi]
mov esi, eax
call ebx
mov ebp, dword [sym.imp.USER32.dll_SetDlgItemTextW]
push esi
push 0x3024
push eax
call ebp
push 0x24
pop esi
call fcn.00444750
push dword [edi]
mov esi, eax
call ebx
push esi
push 0x3023
push eax
call ebp
push 0x25
pop esi
call fcn.00444750
push dword [edi]
mov esi, eax
call ebx
push esi
push 2
push eax
call ebp
push 0x3e9
push dword [edi]
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
mov eax, edi
jne 0x40746d
push 2
jmp 0x40746f
push 0
call fcn.004052ce
pop edi
pop esi
xor eax, eax
pop ebp
inc eax
pop ebx
ret

Function at 0x407ba0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov edi, eax
add edi, 4
push 4
mov eax, edi
call fcn.004052ce
push 0x1e
pop esi
call fcn.00444750
push dword [edi]
mov esi, dword [sym.imp.USER32.dll_GetParent]
mov ebx, eax
call esi
push ebx
push 0
push 0x479
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [edi]
call esi
push 2
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret
Function at 0x409704
Capabilities:
Check os version
Enumerate processes
Get common file path
Link many functions at runtime

Disassembly:
push esi
mov esi, eax
mov eax, dword [edi + 4]
cmp dword [esi], eax
je 0x409721
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp dword [esi], eax
je 0x409721
and dword [ebx], 0
xor eax, eax
inc eax
pop esi
ret
mov esi, dword [esi + 8]
lea ecx, [esi + 0xd5]
xor eax, eax
cmp ecx, 0xd
ja case.0x409731.211
jmp dword [ecx*4 + 0x409754]
mov eax, edi
call fcn.0044733a
neg eax
sbb eax, eax
neg eax
dec eax
pop esi
ret
mov ecx, edi
pop esi
jmp fcn.00449509
mov dword [ebx], eax
pop esi
ret

Function at 0x40a96a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x40a978
push 0xd
pop eax
jmp 0x40a9ab
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x40a97f
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x40a9c4
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 0xc
Function at 0x40adfb
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4650e0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x21c], eax
xor esi, esi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
call fcn.0040adc8
mov ebx, eax
cmp ebx, esi
je 0x40ae66
lea esi, [ebp - 0x214]
call fcn.0040af15
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cac7
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40ae84
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.0040adfb
cmp eax, esi
jne 0x40aecc
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x218], 0x100
call ebx
test eax, eax
je 0x40ae6e
lea esi, [ebp - 0x214]
call fcn.0040af15
push dword [ebp - 0x21c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea esi, [ebp - 0x214]
mov edi, eax
call fcn.0040af15
mov eax, edi
jmp 0x40ae55
Function at 0x40c385
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40c3e9
cmp dword [ebp + 0xc], 1
je 0x40c3c1
cmp dword [ebp + 0xc], 2
je 0x40c3c1
push 0xd
pop eax
jmp 0x40c3e9
mov eax, dword [ebp - 4]
test edi, edi
je 0x40c3e3
test eax, eax
je 0x40c3de
test al, 1
jne 0x40c3bc
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x40c3e3
jmp 0x40c3bc
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x40c750
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4504f7
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4650e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 8], ebx
mov dword [esi], vtable.NKZ::CKZArchive.0
mov dword [esi + 4], vtable.NKZ::CKZArchive.1.0
mov dword [esi + 0xc], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x70], 7
mov dword [esi + 0x6c], ebx
xor eax, eax
mov word [esi + 0x5c], ax
xor ecx, ecx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x38], ebx
mov word [esi + 0x52], cx
mov byte [esi + 0x41], bl
mov byte [esi + 0x42], bl
mov dword [esi + 0x44], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x49], eax
mov dword [esi + 0x4d], eax
xor edx, edx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov word [esi + 0x80], dx
mov word [esi + 0x54], ax
mov byte [esi + 0x40], bl
lea ecx, [esi + 0x88]
push ecx
mov byte [esp + 0x18], 4
call fcn.0040ee30
mov dword [esi + 0xa0], vtable.NKZ::CBuffer_unsigned_char_.0
mov dword [esi + 0xa4], ebx
mov dword [esi + 0xa8], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xac], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc4], ebx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x40f730
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x16c
mov eax, dword [0x4650e0]
xor eax, esp
mov dword [esp + 0x168], eax
push ebx
push ebp
mov ebp, dword [esp + 0x178]
push edi
cmp esi, 0xffffffff
je 0x40f8fe
test ebp, ebp
je 0x40f8fe
mov edi, dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
xor ecx, ecx
push ecx
push ecx
push ecx
xor eax, eax
push eax
push esi
call edi
test eax, eax
jne 0x40f791
call fcn.0040a3ee
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042cac7
add esp, 0x16c
ret
push 0x40
lea eax, [esp + 0x134]
push 0
push eax
call fcn.0042f410
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0x40
lea edx, [esp + 0x13c]
push edx
push esi
mov dword [esp + 0x20], 0
call ebx
test eax, eax
je 0x40f774
cmp dword [esp + 0xc], 0x40
je 0x40f7ef
mov eax, 0x80004005
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042cac7
add esp, 0x16c
ret
mov eax, dword [esp + 0x16c]
push 0
cdq
push 0
push edx
push eax
push esi
call edi
test eax, eax
je 0x40f774
push 0xf8
lea eax, [esp + 0x14]
push 0
push eax
call fcn.0042f410
add esp, 0xc
push 0
lea ecx, [esp + 0x10]
push ecx
push 0xf8
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
test eax, eax
je 0x40f774
cmp dword [esp + 0xc], 0xf8
jne 0x40f7d2
movzx eax, word [esp + 0x16]
dec eax
lea eax, [eax + eax*4]
push 1
add eax, eax
xor ecx, ecx
push ecx
add eax, eax
push ecx
add eax, eax
push eax
push esi
call edi
test eax, eax
je 0x40f774
xor eax, eax
push eax
mov dword [esp + 0x10c], eax
mov dword [esp + 0x110], eax
mov dword [esp + 0x114], eax
mov dword [esp + 0x118], eax
mov dword [esp + 0x11c], eax
mov dword [esp + 0x120], eax
mov dword [esp + 0x124], eax
mov dword [esp + 0x128], eax
mov dword [esp + 0x12c], eax
mov dword [esp + 0x130], eax
lea eax, [esp + 0x10]
push eax
push 0x28
lea ecx, [esp + 0x114]
push ecx
push esi
call ebx
test eax, eax
je 0x40f774
cmp dword [esp + 0xc], 0x28
jne 0x40f7d2
mov edx, dword [esp + 0x11c]
mov eax, dword [esp + 0x118]
add eax, edx
mov dword [ebp], eax
xor eax, eax
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x168]
xor ecx, esp
call fcn.0042cac7
add esp, 0x16c
ret
mov ecx, dword [esp + 0x174]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x80070057
call fcn.0042cac7
add esp, 0x16c
ret
Function at 0x40f920
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp edi, ebx
je 0x40fa28
cmp eax, ebx
je 0x40fa28
cmp word [eax], bx
je 0x40fa28
mov ecx, dword [ebp + 8]
cmp ecx, ebx
je 0x40f952
mov dword [ecx], ebx
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f978
call fcn.0040a3ee
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [esp + 0x18]
push eax
push 4
push edi
push esi
mov dword [edi], ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40f9a9
call fcn.0040a3ee
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [edi], 0x4d
jne 0x40fa18
cmp byte [edi + 1], 0x5a
jne 0x40fa18
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], ebx
call fcn.0040f730
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40f9db
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFilePointerEx]
test eax, eax
je 0x40f992
mov eax, dword [ebp + 8]
mov dword [edi], 0
test eax, eax
je 0x40f9ff
mov dword [eax], ebx
push 0
lea edx, [esp + 0x18]
push edx
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x40f992
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80070057
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40fd00
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40fd0f
mov dword [esi], 0
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [eax + 8]
push edx
push ecx
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x40fd43
call fcn.0040a3ee
pop esi
ret 0x10
test esi, esi
je 0x40fd4d
mov edx, dword [esp + 0x14]
mov dword [esi], edx
xor eax, eax
pop esi
ret 0x10

Function at 0x40fdc0
Capabilities:
Get file size

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x40fdd8
mov eax, 0x80070057
pop esi
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 8]
lea eax, [esp + 4]
push eax
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileSizeEx]
test eax, eax
jne 0x40fdfb
call fcn.0040a3ee
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov dword [esi], eax
mov dword [esi + 4], ecx
xor eax, eax
pop esi
add esp, 8
ret 8
Function at 0x415330
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x88
mov eax, dword [0x4650e0]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push ebx
xor ebx, ebx
push ebp
xor ecx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
push esi
push edi
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ebx
mov byte [esp + 0x8c], bl
mov dword [esp + 0x8d], eax
mov word [esp + 0x91], ax
mov byte [esp + 0x93], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
jmp 0x4153d4
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0xa4]
mov edi, dword [esp + 0xa0]
mov esi, ecx
and esi, 0x3f
cmp ebp, ebx
jbe 0x41541a
jmp 0x4153f0
mov cl, byte [edi]
mov byte [esp + esi + 0x48], cl
inc esi
inc edi
add dword [esp + 0x40], 1
adc dword [esp + 0x44], ebx
dec ebp
cmp esi, 0x40
jne 0x415412
lea edx, [esp + 0x20]
xor esi, esi
call fcn.0041a740
cmp ebp, ebx
ja 0x4153f0
mov ecx, dword [esp + 0x40]
and ecx, 0x3f
mov ebp, 8
lea edi, [esp + 0x8c]
mov esi, ecx
jmp 0x415430
mov dl, byte [edi]
mov byte [esp + esi + 0x48], dl
inc esi
inc edi
add dword [esp + 0x40], 1
adc dword [esp + 0x44], ebx
dec ebp
cmp esi, 0x40
jne 0x415452
lea edx, [esp + 0x20]
xor esi, esi
call fcn.0041a740
cmp ebp, ebx
ja 0x415430
xor eax, eax
jmp 0x415460
add byte [esp + eax + 0x8c], 1
jne 0x415470
inc eax
cmp eax, 8
jl 0x415460
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
jne 0x415489
cmp dword [esp + 0x10], 0x80000
jb 0x4153d0
mov eax, dword [esp + 0x1c]
lea edi, [esp + 0x20]
call fcn.0041a800
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042cac7
add esp, 0x88
ret 0xc
Function at 0x41abc0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
lea ebp, [ebx + 0x1c]
shr ebx, 2
mov eax, ebx
shr eax, 1
add eax, 3
push esi
mov dword [ecx], eax
add ecx, 0x10
xor esi, esi
mov dword [esp + 0xc], ebp
test ebx, ebx
jbe 0x41abf1
mov eax, dword [edx]
mov dword [ecx + esi*4], eax
inc esi
add edx, 4
cmp esi, ebx
jb 0x41abe4
cmp esi, ebp
jae 0x41ace2
mov edx, esi
sub edx, ebx
lea eax, [ecx + edx*4]
mov dword [esp + 0x14], eax
push edi
xor edx, edx
mov eax, esi
div ebx
mov edi, dword [ecx + esi*4 - 4]
test edx, edx
jne 0x41ac6e
movzx eax, byte [eax + 0x466634]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + str.cw]
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + str.cw]
shl edx, 8
or edx, ebp
mov ebp, edi
shr ebp, 0x10
shr edi, 8
and ebp, 0xff
movzx ebp, byte [ebp + str.cw]
and edi, 0xff
movzx edi, byte [edi + str.cw]
shl edx, 8
or edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x41acc6
cmp ebx, 6
jbe 0x41acc6
cmp edx, 4
jne 0x41acc6
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + str.cw]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + str.cw]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + str.cw]
shl eax, 8
and edi, 0xff
or eax, edx
movzx edx, byte [edi + str.cw]
shl eax, 8
or eax, edx
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4], edx
inc esi
add eax, 4
mov dword [esp + 0x18], eax
cmp esi, ebp
jb 0x41ac05
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x41b910
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 0xc]
sub esp, 8
push ebp
mov ebp, dword [edx]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x41b929
pop ebp
add esp, 8
ret
mov edx, dword [esp + 0x10]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0x14], edx
jmp 0x41b950
mov ecx, dword [esp + 0x1c]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x41b96d
jmp 0x41b960
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41b96d
inc edi
cmp edi, edx
jb 0x41b960
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x10]
cmp edi, edx
jae 0x41ba82
cmp ecx, 3
jbe 0x41b9a1
xor ebp, ebp
mov cl, byte [edi + 4]
mov dword [esp + 0x10], eax
test cl, cl
je 0x41b9db
cmp cl, 0xff
je 0x41b9db
and ebp, 3
add ebp, ebp
or ebp, 1
inc eax
jmp 0x41b950
dec ecx
shl ebp, cl
and ebp, 7
je 0x41b986
movzx ecx, byte [ebp + 0x459a08]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x459a00], 0
mov cl, byte [ebx + 4]
je 0x41b9c9
test cl, cl
je 0x41b9c9
cmp cl, 0xff
jne 0x41b986
and ebp, 3
add ebp, ebp
mov dword [esp + 0x10], eax
or ebp, 1
inc eax
jmp 0x41b950
movzx edx, cl
movzx ecx, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x41ba0e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x41ba14
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x41ba54
movzx esi, byte [ebp + 0x459a08]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x41ba39
cmp dl, 0xff
jne 0x41ba50
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
dec edx
xor edx, ebx
jmp 0x41ba00
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
dec dl
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x14]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41b950
pop edi
pop esi
pop ebx
cmp ecx, 3
jbe 0x41ba97
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
add esp, 8
ret
dec ecx
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
add esp, 8
ret
Function at 0x41f540
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44fea1
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push edi
mov eax, dword [0x4650e0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x30], esi
je 0x41f5b2
cmp esi, ebx
je 0x41f5a0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x41f5af
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x30], esi
cmp dword [edi + 0x2c], ebp
je 0x41f5d6
cmp ebp, ebx
je 0x41f5c4
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
mov eax, dword [edi + 0x2c]
cmp eax, ebx
je 0x41f5d3
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x2c], ebp
mov eax, dword [edi + 0x14]
sub eax, 1
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ebx
mov byte [edi + 8], bl
je 0x41f605
sub eax, 1
mov eax, edi
jne 0x41f60c
call fcn.0041f870
jmp 0x41f60a
call fcn.0041f7d0
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x41f630
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44fcf1
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4650e0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 2
mov dword [esp + 0x14], eax
cmp dword [esi + 0x14], eax
jne 0x41f6a9
cmp dword [esi + 0x10], 1
jne 0x41f6a9
mov edi, dword [esi]
cmp byte [edi], 0
jne 0x41f6a9
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 4]
push eax
push ecx
mov byte [edi + 0x18], 0
call fcn.0042d865
mov dword [edi + 4], eax
mov dword [esi + 0xc], eax
call fcn.00434027
mov edx, dword [esi + 0x18]
add eax, 0x20
push eax
mov eax, dword [esi + 0xc]
push edx
push 1
push eax
call fcn.0042e64e
add esp, 0x18
cmp dword [esi + 0x14], 0
jne 0x41f6d2
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x41f715
mov edx, dword [esi + 0x34]
test edx, edx
je 0x41f715
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x41f715
mov edi, dword [eax]
push 0
push ecx
mov ecx, dword [edi + 0xc]
push edx
push eax
call ecx
jmp 0x41f715
cmp dword [esi + 0x10], 0
jne 0x41f6f4
cmp byte [esi + 8], 0
je 0x41f6ea
mov edx, dword [esi + 0xc]
push edx
call fcn.0042d575
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x41f715
push eax
jmp 0x41f70d
mov edi, dword [esi]
test edi, edi
je 0x41f715
cmp byte [edi + 0x18], 0
je 0x41f70c
mov eax, dword [edi + 4]
push eax
call fcn.0042d575
add esp, 4
push edi
call fcn.0042cabc
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x41f72c
push eax
call fcn.0042d85a
add esp, 4
mov dword [esi + 0x34], 0
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x41f740
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x41f757
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4