joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f460
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x364], 0x200
mov eax, 0x20019
cmp dword [ebp + 8], esi
je 0x42f48f
mov eax, 0x20119
mov ecx, 0x53
mov word [ebp - 0x5c], cx
mov ecx, 0x46
mov word [ebp - 0x58], cx
mov ecx, 0x57
mov word [ebp - 0x54], cx
mov ecx, 0x52
mov word [ebp - 0x50], cx
mov edx, 0x4f
mov word [ebp - 0x5a], dx
mov ecx, 0x5c
mov word [ebp - 0x4c], cx
mov edx, 0x54
mov word [ebp - 0x56], dx
mov ecx, 0x69
mov word [ebp - 0x48], cx
mov edx, 0x41
mov word [ebp - 0x52], dx
mov ecx, 0x72
mov word [ebp - 0x44], cx
mov edx, 0x45
mov word [ebp - 0x4e], dx
mov ecx, 0x73
mov word [ebp - 0x40], cx
mov edx, 0x4d
mov word [ebp - 0x4a], dx
mov ecx, 0x66
mov word [ebp - 0x3c], cx
mov edx, 0x63
mov word [ebp - 0x46], dx
mov edx, 0x6f
mov word [ebp - 0x42], dx
mov word [ebp - 0x3e], dx
mov ecx, 0x5c
mov word [ebp - 0x38], cx
mov ecx, 0x72
mov word [ebp - 0x34], cx
mov edx, 0x74
mov word [ebp - 0x3a], dx
mov ecx, 0x70
mov word [ebp - 0x30], cx
mov edx, 0x43
mov word [ebp - 0x36], dx
mov ecx, 0x6f
mov word [ebp - 0x2c], cx
mov edx, 0x79
mov word [ebp - 0x32], dx
mov ecx, 0x72
mov word [ebp - 0x28], cx
mov edx, 0x74
mov word [ebp - 0x2e], dx
mov ecx, 0x70
mov edx, 0x67
mov word [ebp - 0x2a], dx
mov word [ebp - 0x24], cx
mov ecx, 0x79
mov edx, 0x61
mov word [ebp - 0x26], dx
mov word [ebp - 0x20], cx
lea ecx, [ebp - 0x360]
push ecx
mov edx, 0x68
mov word [ebp - 0x22], dx
xor edx, edx
push eax
push edx
mov word [ebp - 0x1e], dx
lea edx, [ebp - 0x5c]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42f6c8
mov eax, 0x4d
mov word [ebp - 0x1c], ax
mov ecx, 0x61
mov word [ebp - 0x1a], cx
mov eax, 0x68
mov word [ebp - 0x16], ax
mov ecx, 0x69
mov word [ebp - 0x14], cx
mov eax, 0x65
mov word [ebp - 0x10], ax
mov edx, 0x63
mov word [ebp - 0x18], dx
mov ecx, 0x47
mov word [ebp - 0xe], cx
mov eax, 0x69
mov edx, 0x6e
mov word [ebp - 0x12], dx
mov word [ebp - 0xa], ax
mov ecx, 0x64
lea eax, [ebp - 0x364]
push eax
mov eax, dword [ebp - 0x360]
mov edx, 0x75
mov word [ebp - 8], cx
mov word [ebp - 0xc], dx
xor edx, edx
lea ecx, [ebp - 0x35c]
push ecx
push edx
push edx
mov word [ebp - 6], dx
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42f6bb
push 0xff
push eax
lea ecx, [ebp - 0x15b]
push ecx
mov byte [ebp - 0x15c], al
call fcn.00473d40
add esp, 0xc
push 0
push 0
push 0x100
lea edx, [ebp - 0x15c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x35c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x15c]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42f6a0
lea ecx, [ebp - 0x15c]
push ecx
sub eax, edx
push edi
call fcn.00406d30
mov esi, 1
mov edx, dword [ebp - 0x360]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x43e9f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, edx
mov edx, dword [0x52bfc0]
push 0
push edx
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x284], ecx
call edi
test eax, eax
je 0x43ec41
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.00473d40
add esp, 0xc
push 0x140
lea ecx, [ebp - 0x274]
push 0
push ecx
call fcn.00473d40
add esp, 0xc
push esi
lea edx, [ebp - 0x114]
push 0x104
push edx
call fcn.004718bb
add esp, 0xc
push str..
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.004735e8
add esp, 0xc
lea ecx, [ebp - 0x274]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x278], esi
cmp esi, 0xffffffff
je 0x43ec41
mov ecx, dword [0x52bfd8]
sub ecx, dword [0x52bfd4]
xor eax, eax
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], eax
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x280], eax
mov eax, 0x92492493
imul ecx
mov eax, dword [0x52bfc0]
add edx, ecx
sar edx, 4
mov ebx, edx
push 0
shr ebx, 0x1f
push eax
add ebx, edx
call edi
test eax, eax
je 0x43ec3a
lea esp, [esp]
cmp byte [ebp - 0x248], 0x2e
je 0x43ec11
test byte [ebp - 0x274], 0x10
jne 0x43ec11
lea eax, [ebp - 0x248]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43eb43
sub eax, edx
cmp eax, 0x14
jae 0x43ec11
mov edx, dword [ebp - 0x254]
mov esi, dword [ebp - 0x258]
xor edi, edi
xor eax, eax
or edi, edx
or esi, eax
add edi, 0xfffffffc
adc esi, 0xffffffff
jne 0x43eb79
cmp edi, 0xa00000
jbe 0x43eb98
mov edx, dword [ebp - 0x278]
lea ecx, [ebp - 0x274]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov esi, dword [ebp - 0x278]
jmp 0x43ec1f
lea eax, [ebp - 0x280]
push eax
lea ecx, [ebp - 0x288]
push ecx
lea edx, [ebp - 0x248]
push edx
mov edx, ebx
call fcn.0043e910
add esp, 0xc
test eax, eax
je 0x43ebda
mov eax, dword [eax + 0x18]
xor ecx, ecx
cmp esi, ecx
jb 0x43ebda
ja 0x43ebca
cmp edi, eax
jbe 0x43ebda
mov eax, dword [ebp - 0x284]
cmp dword [eax], ecx
jne 0x43ebda
mov dword [eax], 1
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x12c]
push 0x14
push ecx
mov dword [ebp - 0x118], edi
call fcn.004718bb
mov eax, dword [ebp - 0x27c]
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
push eax
call fcn.00440f80
mov esi, dword [ebp - 0x278]
lea ecx, [ebp - 0x274]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x43ec3a
mov edx, dword [0x52bfc0]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43eb20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x4404b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push 0x40c110
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x4c], eax
call fcn.00441300
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x2c]
push eax
push 0x28
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x48], 0x10
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x440540
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x78
sete cl
mov eax, ecx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov edx, 0x53
mov word [ebp - 0x28], dx
mov eax, 0x65
mov edx, eax
mov word [ebp - 0x26], ax
mov word [ebp - 0x22], dx
mov ecx, 0x44
mov word [ebp - 0x24], cx
mov eax, 0x62
mov word [ebp - 0x20], ax
mov ecx, 0x75
mov word [ebp - 0x1e], cx
mov edx, 0x67
mov word [ebp - 0x1c], dx
mov eax, 0x50
mov word [ebp - 0x1a], ax
mov ecx, 0x72
mov word [ebp - 0x18], cx
mov edx, 0x69
mov ecx, edx
mov word [ebp - 0x16], dx
mov eax, 0x76
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], cx
mov edx, 0x6c
mov eax, 0x65
mov word [ebp - 0x10], dx
mov ecx, 0x67
mov edx, eax
mov word [ebp - 0xc], cx
lea ecx, [ebp - 0x34]
mov word [ebp - 0xa], dx
push ecx
lea edx, [ebp - 0x28]
mov word [ebp - 0xe], ax
push edx
xor eax, eax
push esi
mov word [ebp - 8], ax
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4405fc
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x40], ecx
lea ecx, [ebp - 0x5c]
push ecx
push 0x10
mov dword [ebp - 0x3c], edx
lea edx, [ebp - 0x44]
push edx
push esi
push eax
mov dword [ebp - 0x44], 1
mov dword [ebp - 0x38], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x44064f
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x447140
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5195a0
push 0x4740a0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x520628]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
push esi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
push esi
mov ecx, dword [ebp + 8]
push ecx
push edi
call fcn.004760f0
add esp, 0xc
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push esi
push edi
call ebx
jmp 0x4471b3
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x448e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
push edi
mov edi, ecx
test esi, esi
je 0x448e36
cmp esi, 0x18
jbe 0x448e3b
mov esi, 0x18
push 0xd0
call fcn.0044a5c0
add esp, 4
mov eax, ebx
cmp ebx, esi
jae 0x448e62
lea ecx, [edi + ebx*4 + 0x180]
mov dl, byte [ecx]
xor byte [eax + edi], dl
inc eax
add ecx, 4
cmp eax, esi
jb 0x448e55
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x448e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x448e82
cmp edi, 0x18
jbe 0x448e87
mov edi, 0x18
cmp ecx, edi
jae 0x448e9f
lea esi, [eax + ecx*4 + 0x180]
mov dl, byte [esi]
xor byte [ecx + eax], dl
inc ecx
add esi, 4
cmp ecx, edi
jb 0x448e92
mov ecx, 0xcf
xor edi, edi
mov esi, eax
cmp ecx, edi
je 0x448ebe
mov bl, byte [esi]
mov dl, byte [ecx + eax]
mov byte [ecx + eax], bl
mov byte [esi], dl
inc edi
dec ecx
inc esi
cmp edi, 0x68
jl 0x448ea8
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x448ed0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 7
xor eax, eax
mov esi, ecx
call fcn.00448e20
xor eax, eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
lea eax, [ebp - 0x14]
lea edx, [esi + 8]
push eax
mov ecx, 0x10
mov byte [ebp - 0x14], 0
call fcn.004471d0
push 0x10
lea edi, [ebp - 0x14]
call fcn.0044a5c0
lea ecx, [ebp - 0x120]
push ecx
lea eax, [esi + 8]
push 0x80
push eax
mov byte [ebp - 0x25], 0
call fcn.004de100
add esp, 0x18
test eax, eax
jge 0x448f49
mov byte [ebp - 0x25], 1
push 0
mov ecx, 7
mov eax, esi
call fcn.00448e70
add esp, 4
cmp byte [ebp - 0x25], 0
je 0x448f73
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046e186
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0xc]
mov esi, edi
and esi, 0xf
jle 0x448f96
mov edx, ebx
sub edx, esi
lea eax, [ebp - 0x24]
lea edx, [edx + edi - 0x10]
push eax
mov ecx, 0x10
call fcn.004471d0
add esp, 4
push 0
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x120]
push edx
mov eax, edi
sub eax, esi
push eax
push ebx
push ebx
call fcn.004dd7f0
add esp, 0x18
xor eax, eax
test esi, esi
jle 0x448fcc
sub ebx, esi
add ebx, edi
lea esp, [esp]
mov cl, byte [ebp + eax - 0x24]
xor byte [ebx], cl
inc eax
inc ebx
cmp eax, esi
jl 0x448fc0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x44a620
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
call fcn.00472151
mov ebx, eax
shl ebx, 0x10
call fcn.00472151
or eax, ebx
ror edi, 0xd
mov dword [ebp + 8], edi
mov dword [esi + 8], eax
xor edi, edi
call fcn.00472151
mov ebx, eax
shl ebx, 0x10
call fcn.00472151
mov ecx, dword [esi + 4]
or eax, ebx
mov dword [edi + ecx], eax
call fcn.00472151
mov ecx, dword [esi + 4]
shl eax, 4
cdq
and edx, 0x7fff
add eax, edx
mov edx, dword [esi + 8]
xor edx, dword [ebp + 8]
sar eax, 0xf
mov dword [esi], eax
mov dword [ecx + eax*4], edx
xor dword [esi], 0xd0036751
add edi, 4
cmp edi, 0x40
jl 0x44a644
pop edi
mov eax, esi
pop ebx
pop ebp
ret

Function at 0x44a6a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push 0x40
call fcn.004509b2
add esp, 4
mov dword [esi + 4], eax
call fcn.00472151
mov edi, eax
shl edi, 0x10
call fcn.00472151
or eax, edi
mov dword [esi + 8], eax
xor edi, edi
call fcn.00472151
mov ebx, eax
shl ebx, 0x10
call fcn.00472151
mov ecx, dword [esi + 4]
or eax, ebx
mov dword [edi + ecx], eax
call fcn.00472151
mov ecx, dword [esi + 8]
shl eax, 4
cdq
and edx, 0x7fff
add eax, edx
mov edx, dword [esi + 4]
sar eax, 0xf
mov dword [esi], eax
mov dword [edx + eax*4], ecx
xor dword [esi], 0xd0036751
add edi, 4
cmp edi, 0x40
jl 0x44a6c5
pop edi
mov eax, esi
pop ebx
ret

Function at 0x44a710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
or eax, 0xffffffff
xor ecx, ecx
test edx, edx
jbe 0x44a73f
push ebx
push edi
jmp 0x44a720
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x522a38]
inc ecx
cmp ecx, edx
jb 0x44a720
pop edi
pop ebx
not eax
ret
Function at 0x44e220
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
imul esi, dword [ebp + 0x10]
cmp byte [edi], 0
je 0x44e25b
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 0x44e250
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x44e26c
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.004760f0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
pop esi
div ebx
pop ebx
pop ebp
ret
Function at 0x44e420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x44e467
cmp byte [esi + 1], 0
je 0x44e46f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x44e482
cmp byte [esi + 1], 0
je 0x44e476
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x44e48a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x44e441
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x44e48a
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x44e49c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0046e60f
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x44e4b9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x44e5cf
jmp 0x44e4d9
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x44e4e8
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x44e4ff
mov ebx, 0x404
cmp byte [esi], 0
je 0x44e524
cmp byte [esi + 1], 0
je 0x44e5cf
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x44e527
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x44e550
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44e54b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x44e579
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x44e561
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.004760f0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x44e5cf
lea eax, [ebx - 3]
test eax, eax
jl 0x44e5bd
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x44e5af
cmp byte [eax + ecx + 1], 0x4b
jne 0x44e5af
cmp byte [eax + ecx + 2], 5
jne 0x44e5af
cmp byte [eax + ecx + 3], 6
je 0x44e5b5
test eax, eax
jge 0x44e590
jmp 0x44e5bd
mov ecx, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x44e5cf
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x44e4d0
mov eax, dword [ebp - 0x10]
push eax
call fcn.0046e374
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44f1b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x44f24e
cmp dword [esi + 4], 0xffffffff
jne 0x44f24e
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44f1e0
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x44f219
cmp ax, 0x2f
je 0x44f219
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x44f206
mov eax, dword [0x5137e0]
mov dword [edi], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
push ecx
call fcn.0044e180
add esp, 4
test eax, eax
jne 0x44f234
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.0044e5f0
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 4
mov eax, 0x1000000
pop edi
pop ebp
ret 4

Function at 0x44f8f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x520628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x44f924
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x44f924
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x44fa0e
mov ecx, ebx
mov edx, ebx
movzx eax, ax
cmp ax, 0x2f
je 0x44f943
cmp ax, 0x5c
jne 0x44f945
mov ecx, edx
movzx eax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x44f937
push edi
cmp ecx, ebx
je 0x44f986
sub ecx, ebx
sar ecx, 1
add ecx, ecx
mov edi, ecx
push edi
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.004760f0
lea edx, [ebp - 0x414]
push edx
xor ecx, ecx
push esi
mov word [ebp + edi - 0x414], cx
call fcn.0044f8f0
add esp, 0x14
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x44f9af
lea edx, [ebp - 0x20c]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x44f9a0
mov eax, ebx
mov edx, ebx
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44f9b3
lea edi, [ebp - 0x20c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x44f9d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x44fa0e
push 0
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0046e186
mov esp, ebp
pop ebp
ret
Function at 0x450670
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp byte [esi + 0x2d], 0
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
je 0x45075b
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4506a7
cmp dword [esi + 0x40], edi
jae 0x4506a7
push eax
call fcn.004509e1
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x4506bf
lea eax, [edi + edi]
push eax
call fcn.004509ec
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x3c]
push edi
push ebx
push ecx
call fcn.004760f0
add esp, 0xc
xor ebx, ebx
test edi, edi
jbe 0x450758
mov edx, dword [esi + 0x3c]
mov cl, byte [ebx + edx]
mov edi, dword [esi + 0x30]
mov byte [ebp + 8], cl
movsx ecx, cl
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x50f840]
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
shr edi, 8
xor dword [ebp - 4], edi
mov ecx, dword [ebp - 4]
mov dword [esi + 0x30], ecx
movzx ecx, cl
add ecx, dword [esi + 0x34]
mov edx, eax
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 0x34], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, 0xff
xor eax, dword [ecx*4 + 0x50f840]
and edx, 0xfffd
mov dword [esi + 0x38], eax
mov ecx, dword [esi + 0x3c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
shr eax, 8
xor al, byte [ebp + 8]
inc ebx
mov byte [ebx + ecx - 1], al
cmp ebx, dword [ebp + 0xc]
jb 0x4506d7
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 0x3c]
mov edx, dword [esi + 0x20]
test edx, edx
je 0x45079a
mov ecx, dword [esi + 0x24]
lea ebx, [ecx + edi]
cmp ebx, dword [esi + 0x28]
jb 0x45077f
pop edi
mov dword [esi + 0x14], 0x30000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
push edi
push eax
add ecx, edx
push ecx
call fcn.004760f0
add esp, 0xc
add dword [esi + 0x24], edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x4507bc
push 0
lea edx, [ebp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8