joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44be8c
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x461fec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x24]
call fcn.00401880
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00401880
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
call fcn.004202a0
push 0
push 1
push 0
call fcn.00408510
mov ecx, eax
call fcn.004204e0
mov dword [ebp - 0x1c], eax
push 0x6c3e
mov ecx, dword [ebp - 0x40]
call fcn.0042b6bb
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
call fcn.00408510
mov ecx, eax
call fcn.00408ae0
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.004016f0
push 1
mov edx, dword [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x40]
add ecx, 0x90
call fcn.004016f0
call fcn.00405200
mov dword [ebp - 0x18], eax
push str.LICTEXT
push 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x404cae
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x30], 0
je 0x404cae
cmp dword [ebp - 0x10], 0
je 0x404cae
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x404cae
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.00421480
add esp, 0xc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00403530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.004018a0
lea ecx, [ebp - 0x24]
call fcn.00401920
push eax
lea edx, [ebp - 0x38]
push edx
call fcn.00408510
mov ecx, eax
call fcn.00408a00
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x50], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00403530
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004018a0
call fcn.0041dcf0
push eax
push str.copy
lea ecx, [ebp - 0x2c]
call fcn.00404ec0
call fcn.0041d600
push eax
push str.company
lea ecx, [ebp - 0x2c]
call fcn.00404ec0
mov edx, dword [ebp - 0x40]
push edx
push 0x6c29
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x8c]
call fcn.00427414
lea ecx, [ebp - 0x2c]
call fcn.00401920
push eax
mov ecx, dword [ebp - 0x40]
mov ecx, dword [ecx + 0x8c]
call fcn.0042b7cf
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004018a0
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x408ec0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x130], ecx
mov eax, dword [0x450f50]
mov dword [ebp - 0x128], eax
mov ecx, dword [0x450f54]
mov dword [ebp - 0x124], ecx
mov edx, dword [0x450f58]
mov dword [ebp - 0x120], edx
mov al, byte [0x450f5c]
mov byte [ebp - 0x11c], al
push 0
call fcn.0041d340
add esp, 4
mov word [ebp - 4], ax
mov ecx, dword [ebp - 0x130]
cmp dword [ecx + 0x158], 0
je 0x408f29
jmp 0x408fb2
mov edx, dword [ebp - 0x130]
movzx eax, byte [edx + 0x154]
push eax
call fcn.0041fc60
add esp, 4
movzx ecx, ax
movzx edx, word [ebp - 4]
cmp ecx, edx
je 0x408f4c
jmp 0x408fb2
push 0xb
lea eax, [ebp - 0x12c]
push eax
call fcn.0041d500
add esp, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x130]
movzx edx, byte [ecx + 0x154]
push edx
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp - 0x12c]
push ecx
call fcn.0041dd50
add esp, 8
push eax
lea edx, [ebp - 0x128]
push edx
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 5
push 0
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
Function at 0x408fc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c45b
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x461fec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
lea ecx, [ebp - 0x14]
call fcn.00401880
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00401880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00401880
mov byte [ebp - 4], 2
push 0x120
lea ecx, [ebp - 0x10]
call fcn.004018e0
movzx eax, byte [0x45445d]
push eax
push 1
lea ecx, [ebp - 0x10]
call fcn.00401920
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.0042d681
lea ecx, [ebp - 0x18]
call fcn.00401920
push eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c8]
call fcn.0040cc40
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x34], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x34]
call fcn.00401920
push eax
lea edx, [ebp - 0x20]
push edx
call fcn.00421c90
add esp, 0xc
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00403530
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x20]
call fcn.004018a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.004018a0
push 5
lea ecx, [ebp - 0x14]
call fcn.00401920
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x20
jae 0x4090f1
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004018a0
mov eax, dword [ebp - 0x24]
jmp 0x40914b
mov dword [ebp - 0x28], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.004018a0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004018a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004018a0
mov eax, dword [ebp - 0x28]
jmp 0x40914b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x409270
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c47e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x461fec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x14]
call fcn.00401880
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
add ecx, 0x4cc
call fcn.0041d200
test eax, eax
je 0x409343
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
call fcn.004091d0
mov word [ebp - 0x18], ax
movzx ecx, word [ebp - 0x18]
mov dword [ebp - 0x20], ecx
cmp dword [ebp - 0x20], 1
je 0x4092e8
cmp dword [ebp - 0x20], 2
je 0x4092f9
cmp dword [ebp - 0x20], 3
je 0x40930a
jmp 0x40933e
lea ecx, [ebp - 0x14]
call fcn.00401920
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40933e
lea ecx, [ebp - 0x14]
call fcn.00401920
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40933e
push 1
push 0
call fcn.0041d8e0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40933e
lea ecx, [ebp - 0x14]
call fcn.00401920
push eax
mov edx, dword [ebp - 0x10]
push edx
call fcn.0041eba0
add esp, 8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4092a7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004018a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x40d720
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0
lea eax, [ebp - 0x218]
push eax
push 0x458dac
push 1
push 0
push 0x458dcc
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jl 0x40d856
lea ecx, [ebp - 4]
push ecx
push 0x458dbc
mov edx, dword [ebp - 0x218]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x218]
push ecx
mov edx, dword [eax]
call edx
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jl 0x40d842
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x218]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x218]
push eax
mov ecx, dword [edx + 0x50]
call ecx
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jl 0x40d834
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ecx + 0x1c]
call eax
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jl 0x40d834
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 1
lea eax, [ebp - 0x210]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [edx + 0x18]
call ecx
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0
jl 0x40d834
mov dword [ebp - 0x214], 1
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x218]
push edx
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
Function at 0x410ef0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x410f00
xor eax, eax
jmp 0x41109d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x41105e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4528b0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4528b0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4528b0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4528b0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4528b0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4528b0]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4528b0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4528b0]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x410f09
cmp dword [ebp + 0x10], 0
je 0x411097
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4528b0]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x411064
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x411fb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x411fff
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x411ff5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x412059
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x14]
jbe 0x41201f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00436e10
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x413960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x41397a
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], 0xffffffff
je 0x413984
mov eax, 0x1000000
jmp 0x413a0b
mov edx, dword [ebp - 0x10]
add edx, 0x138
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x452d3c
mov eax, dword [ebp - 0x10]
add eax, 0x138
push eax
call fcn.00437410
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x4139cf
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x4139cf
mov eax, 0x2000000
jmp 0x413a0b
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00411c80
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4139f5
mov eax, dword [ebp - 8]
jmp 0x413a0b
mov eax, dword [ebp - 4]
push eax
call fcn.00412440
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov eax, dword [0x46386c]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4141b0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x461fec]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x4141d3
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x4141d8
jmp 0x4142ba
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
movsx edx, byte [ecx]
test edx, edx
je 0x41422a
mov eax, dword [ebp - 0x118]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x414210
mov edx, dword [ebp - 0x118]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x414219
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
jmp 0x4141e7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x414285
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.004377f0
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
mov byte [ebp + edx - 0x220], 0
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004141b0
add esp, 8
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.00437400
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.00437410
add esp, 8
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00435c3d
mov esp, ebp
pop ebp
ret
Function at 0x417870
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 1
jl 0x417888
cmp dword [ebp + 0xc], 8
jg 0x417888
mov byte [ebp - 5], 1
jmp 0x41788c
mov byte [ebp - 5], 0
push str.bad_pack_level
movzx eax, byte [ebp - 5]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415390
add esp, 0xc
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x4178d5
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af78], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af70], 0x10000
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af6c], 0
push 0x1fffc
push 0
mov ecx, dword [ebp + 8]
add ecx, 0x4af70
push ecx
call fcn.00437770
add esp, 0xc
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4531e2]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af98], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4531e0]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af9c], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4531e4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6afa0], eax
mov edx, dword [ebp + 0xc]
movzx eax, word [edx*8 + 0x4531e6]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af94], eax
cmp dword [ebp + 0xc], 2
jg 0x417962
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x417977
cmp dword [ebp + 0xc], 8
jl 0x417977
mov edx, dword [ebp + 0x10]
movzx eax, word [edx]
or eax, 2
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af84], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af74], 0
mov dword [ebp - 4], 0x8000
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
add eax, 0x1af70
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
call eax
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x6af90], 0
je 0x4179dd
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x4179f9
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af8c], 1
mov edx, dword [ebp + 8]
mov dword [edx + 0x6af90], 0
jmp 0x417a71
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6af90], 0x106
jae 0x417a21
mov edx, dword [ebp + 8]
push edx
call fcn.00417e00
add esp, 4
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af7c], 0
mov dword [ebp - 4], 0
jmp 0x417a40
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 2
jae 0x417a71
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x1af70]
xor eax, edx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x417a37
mov esp, ebp
pop ebp
ret
Function at 0x4197f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x419800
xor eax, eax
jmp 0x41999d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x41995e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x453528]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x453528]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x453528]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x453528]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x453528]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x453528]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x453528]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x453528]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x419809
cmp dword [ebp + 0x10], 0
je 0x419997
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x453528]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x419964
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret