joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424e10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b0f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x424e4c
xor eax, eax
jmp 0x424fdc
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x424e75
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x424e75
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x424fdc
cmp dword [edi + 0x54], 0
je 0x424fd9
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x424e9d
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x424ec3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.00551a90
add esp, 8
cmp eax, 0xffffffff
je 0x424fd9
mov eax, ebx
jmp 0x424fdc
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00425760
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x424ee0
mov edx, eax
cmp ebx, 0x10
jae 0x424eec
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x424fca
cmp eax, 1
jg 0x424f80
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x424f2c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x424f55
cmp ebx, 0x10
jae 0x424f3b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00552904
add esp, 0x10
cmp esi, eax
jne 0x424fca
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x424fb6
test esi, esi
jne 0x424ee0
cmp dword [ebp - 0x1c], 0x20
jae 0x424fca
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004257c0
jmp 0x424ed5
cmp eax, 3
jne 0x424fca
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.00551a90
add esp, 8
cmp eax, 0xffffffff
je 0x424fa0
mov esi, dword [ebp + 8]
jmp 0x424fa3
or esi, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00424590
mov eax, esi
jmp 0x424fdc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00424590
mov eax, dword [ebp + 8]
jmp 0x424fdc
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00424590
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret 4
Function at 0x425b30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b5e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x425c51
cmp byte [edi + 0x49], 0
je 0x425c51
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x425c3e
lea esi, [ebp - 0x2c]
call fcn.00425760
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x425ba3
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x425bd3
dec eax
je 0x425bd7
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
jne 0x425c39
jmp 0x425c4c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x425be7
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x425c10
cmp ebx, 0x10
jae 0x425bf6
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00552904
add esp, 0x10
cmp esi, eax
jne 0x425c2f
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x425c42
test esi, esi
jne 0x425b97
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004257c0
jmp 0x425b91
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00424590
xor al, al
jmp 0x425c53
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00424590
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret
Function at 0x425fb0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57b06b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5ebdb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0056e8bc
push 4
mov dword [ebp - 4], 0
call fcn.0046459d
mov edi, eax
add esp, 4
test edi, edi
je 0x42602c
call fcn.0056e794
mov dword [edi], eax
call fcn.0056e553
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0056e87d
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x426022
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0056e8a5
jmp 0x42602e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x427420
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427456
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x42746f
cmp dword [ebp - 8], 0
je 0x427444
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00550891
mov esp, ebp
pop ebp
ret
Function at 0x427490
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57e36c
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, 0x104
ja 0x427686
test eax, eax
je 0x427686
push 0
call fcn.00552d7f
push eax
call fcn.00552beb
add esp, 8
xor esi, esi
call fcn.00552bfd
xor edx, edx
mov ecx, 0x3e
div ecx
inc esi
mov dl, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
mov byte [ebp + esi - 0x1d], dl
cmp esi, 0xa
jl 0x4274f3
mov byte [ebp - 0x12], 0
call fcn.0046aab1
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42752f
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x427571
mov edx, ecx
movzx esi, dx
push esi
call fcn.00464815
test eax, eax
je 0x427580
push esi
push eax
lea ecx, [ebp - 0x228]
call fcn.00401f90
jmp 0x427580
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x228]
call fcn.0041bd40
lea ecx, [ebp - 0x228]
push ecx
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.004050b0
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4275bc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.0041bc60
push 0x5b097c
push eax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 4], 2
call fcn.0041bb80
add esp, 0x18
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.004050b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42761d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x42763f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push ecx
push eax
call esi
test eax, eax
jne 0x427657
call fcn.004022c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x427682
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call esi
test eax, eax
jne 0x427675
call fcn.004022c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x427686
mov al, 1
jmp 0x427688
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret
Function at 0x43d030
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57debb
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
push eax
mov ecx, esi
xor bl, bl
call fcn.004050b0
mov eax, dword [edi]
mov dword [ebp - 0x428], 0x400
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x43d095
call fcn.004022c0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push 0
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43d0e2
lea eax, [ebp - 0x41c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43d0c2
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, esi
call fcn.004021b0
mov bl, 1
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jne 0x43d190
mov edi, dword [edi]
mov dword [ebp - 0x420], 0
mov eax, dword [edi - 0xc]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x43d10e
call fcn.004022c0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x420]
push edx
push 0
push 0
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43d190
mov edx, dword [ebp - 0x420]
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push edx
call fcn.0056ee1a
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x42c]
call fcn.0041b840
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.004050b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43d18e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret 8
Function at 0x43dcf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c550
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5ebdb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x5b097c
xor ebx, ebx
push 0x5b4d60
mov byte [ebp - 0xd], bl
call fcn.00404aa0
push 0x5b097c
push 0x5b38c8
mov ecx, esi
call fcn.00404aa0
push 0x5b5a34
lea ecx, [ebp - 0x1c]
call fcn.00401d90
push esi
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], ebx
call fcn.0041bac0
add esp, 0xc
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004050b0
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43dd8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43ddb1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x43ddde
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
mov ecx, esi
cmp dword [ebp - 0x14], ebx
je 0x43ddec
push str.Program_Files__x86_
jmp 0x43ddf1
push str.Program_Files
push str.pf
call fcn.00404aa0
mov esi, dword [esi]
mov eax, dword [esi - 0xc]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
cmp eax, ebx
jne 0x43de11
call fcn.004022c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov al, 1
jne 0x43de22
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f270
Capabilities:
Encode data using xor

Disassembly:
mov cl, byte [edx]
xor eax, eax
test cl, cl
je 0x43f299
jmp 0x43f280
movsx ecx, cl
add eax, ecx
imul eax, eax, 0x401
mov ecx, eax
shr ecx, 6
inc edx
xor eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x43f280
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
ret
Function at 0x44d160
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c397
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x5ebdb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
mov esi, ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x5b097c
lea ecx, [ebp - 0x21c]
call fcn.00401d90
lea ecx, [ebp - 0x21c]
push ecx
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x220]
push eax
mov dword [ebp - 4], 0
call fcn.0041bc60
push esi
push eax
lea ecx, [ebp - 0x224]
push ecx
mov byte [ebp - 4], 1
call fcn.0041bac0
push 0x5b097c
push eax
lea edx, [ebp - 0x228]
push edx
mov byte [ebp - 4], 2
call fcn.0041bb80
add esp, 0x24
push eax
lea ecx, [ebp - 0x21c]
mov byte [ebp - 4], 3
call fcn.004050b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44d233
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44d259
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x220]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44d27f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 0xc]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push ecx
push eax
call esi
test eax, eax
jne 0x44d29b
call fcn.004022c0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44d2c6
mov eax, dword [ebp - 0x21c]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call esi
test eax, eax
jne 0x44d2bd
call fcn.004022c0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
push eax
call fcn.00405320
lea esi, [eax + 0x10]
add esp, 4
mov dword [ebp - 0x220], esi
lea ecx, [ebp - 0x220]
push ecx
mov ecx, edi
mov byte [ebp - 4], 4
call fcn.004050b0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44d313
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44d33c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00550891
mov esp, ebp
pop ebp
ret
Function at 0x4504a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x4504a7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x45057d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bb3b8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bb3b8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bb3b8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bb3b8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bb3b8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bb3b8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bb3b8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x5bb3b8]
add ecx, 8
sub edx, 8
dec esi
jne 0x4504c0
pop edi
test edx, edx
je 0x45059a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x5bb3b8]
inc ecx
dec edx
jne 0x450581
not eax
pop esi
ret

Function at 0x4505a0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5bb3b8]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x5bb3b8]
mov dword [edx + 8], ecx
ret

Function at 0x4505f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x5bb3b8]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x5bb3b8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x450d60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x450d96
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450d8c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x450da7
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.005537d0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x450dd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x450e03
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x450dfe
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x450e2e
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x450e15
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.005537d0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x450e43
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x450e3d
cmp byte [esi + 8], 0
je 0x450e3d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret