joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406660
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, 0x4265d0
push esi
xor esi, esi
call fcn.00405290
test eax, eax
jle 0x4066d9
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
push esi
mov ecx, 0x4265d0
call fcn.00402ed0
add eax, 0xc
lea ecx, [ebp - 0xc]
push eax
call fcn.00402280
lea eax, [ebp - 0xc]
push eax
call fcn.00406290
add esp, 4
lea ecx, [ebp - 0xc]
call fcn.004012e0
push eax
push esi
mov ecx, 0x4265d0
call fcn.00402ed0
mov ecx, eax
call fcn.004012e0
push eax
call edi
lea ecx, [ebp - 0xc]
call fcn.00401650
mov ecx, 0x4265d0
inc esi
call fcn.00405290
cmp esi, eax
jl 0x406680
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push ebx
push esi
push edi
push 0x422494
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x42654c], eax
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
call fcn.00409820
push 3
call fcn.00403e20
push 2
mov dword [0x42651c], eax
call fcn.00403e20
push 5
mov dword [0x426518], eax
call fcn.00403e20
push 0x15
mov dword [0x426524], eax
call fcn.00403e20
push 0x16
mov dword [0x426528], eax
call fcn.00403e20
push 0x17
mov dword [0x42652c], eax
call fcn.00403e20
mov ebx, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x18
mov dword [0x426534], eax
xor edi, edi
mov dword [0x426530], 0
mov dword [0x426520], 0
nop
push 0
push edi
lea eax, [ebp - 0x268]
push eax
push 0
call ebx
test eax, eax
je 0x4067f7
push edi
lea eax, [ebp - 0x5c]
push str.SfxFolder_02d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
push 1
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004050e0
add esp, 0x18
xor esi, esi
nop dword [eax]
cmp dword [esi + 0x422360], edi
jne 0x4067ef
push 0
lea eax, [ebp - 0x268]
push eax
push dword [esi + 0x422364]
call fcn.004050e0
add esp, 0xc
add esi, 8
cmp esi, 0x28
jb 0x4067d0
inc edi
cmp edi, 0x40
jl 0x406790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4081f0
Capabilities:
Inspect load icon resource

Disassembly:
mov eax, dword [0x426300]
mov byte [0x426540], 0
push ebx
mov ebx, ecx
push esi
push edi
test eax, 0x200
jne 0x40826a
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
push 0
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
mov esi, eax
mov ecx, ebx
push edi
push 1
test esi, esi
push 0x80
cmove esi, edi
call fcn.00408d90
push esi
push 0
push 0x80
mov ecx, ebx
call fcn.00408d90
mov eax, dword [0x426300]
test eax, 0x4000
je 0x4082cd
push 0xfffffffffffffff0
push 0x4b2
mov ecx, ebx
call fcn.00407f30
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push eax
call edi
or eax, 0x80
mov ecx, ebx
push eax
push 0xfffffffffffffff0
push 0x4b2
call fcn.00407f30
mov esi, dword [sym.imp.USER32.dll_SetWindowLongW]
push eax
call esi
push 0xfffffffffffffff0
push 0x4b5
mov ecx, ebx
call fcn.00407f30
push eax
call edi
or eax, 0x80
mov ecx, ebx
push eax
push 0xfffffffffffffff0
push 0x4b5
call fcn.00407f30
push eax
call esi
push dword [ebx + 0x10]
mov ecx, ebx
push 0x4b2
call fcn.004090b0
push dword [ebx + 0xc]
mov ecx, ebx
call fcn.00408f30
mov eax, dword [ebx + 8]
and eax, 3
jmp dword [eax*4 + 0x408498]

Function at 0x4086b0
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
push edi
lea eax, [ebp - 0x10]
mov edi, ecx
push eax
push 0x4b6
call fcn.00407f50
mov eax, dword [ebp - 4]
mov ecx, edi
sub eax, dword [ebp - 0xc]
push 1
add eax, 2
push 0x4b6
mov dword [edi + 0x58], eax
call fcn.00409590
push 1
push 0x4b7
mov ecx, edi
call fcn.00409590
push 0x2b4
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0041c590
add esp, 0xc
lea eax, [ebp - 0x4d0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
mov ecx, edi
push 0x4077d0
push 0xfffffffffffffffc
push 0x4b7
mov dword [edi + 0x50], eax
call fcn.00407f30
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.004081f0
mov ecx, edi
mov esi, eax
call fcn.004090d0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409820
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x426d00], ecx
inc eax
cmp eax, 0x100
jb 0x409822
cmp eax, 0x800
jae 0x4098f3
nop word [eax + eax]
mov edx, dword [eax*4 + 0x426900]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x426d00]
mov dword [eax*4 + 0x426d00], edx
inc eax
cmp eax, 0x800
jb 0x4098d0
mov dword [0x428d08], 0x41fdf0
mov dword [0x428d00], 0x41fdf0
mov dword [0x428d04], 0x41fd10
call fcn.00410ea0
mov ecx, dword [0x428d00]
test eax, eax
mov edx, 0x41fd10
cmove ecx, edx
mov dword [0x428d00], ecx
ret

Function at 0x4112a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4112cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4112cb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x411430
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, dword [0x426324]
cmp edx, eax
cmova edx, eax
mov dword [ebp + 0xc], edx
pop ebp
jmp fcn.00411390

Function at 0x411510
Capabilities:
Clear file content

Disassembly:
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.004111f0
add esp, 4
ret

Function at 0x411630
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
cmp edx, dword [0x426324]
push 0
cmova edx, dword [0x426324]
push eax
push edx
push dword [ebp + 8]
mov dword [ebp + 0xc], 0
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004111f0
mov edx, dword [ebp + 0x10]
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [edx], ecx
pop ebp
ret 0xc

Function at 0x414280
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.004140f0
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x414510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
push edi
xor edi, edi
mov esi, dword [esi]
and esi, 7
cmp eax, 5
jae 0x414530
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [eax - 4]
add ebx, ecx
mov dword [ebp - 4], ebx
lea eax, [edi + ecx]
cmp eax, ebx
jae 0x414559
mov cl, byte [eax]
and cl, 0xfe
cmp cl, 0xe8
je 0x414556
inc eax
cmp eax, ebx
jb 0x414547
mov ecx, dword [ebp + 8]
mov edx, eax
sub edx, edi
mov edi, eax
sub edx, ecx
sub edi, ecx
cmp eax, ebx
jae 0x41465d
cmp edx, 2
jbe 0x4145e2
xor esi, esi
movzx edx, byte [eax + 4]
lea ecx, [edx + 1]
test cl, 0xfe
jne 0x414649
movzx ecx, byte [eax + 3]
mov ebx, dword [ebp + 0x10]
shl edx, 8
add ebx, edi
or edx, ecx
movzx ecx, byte [eax + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [eax + 1]
shl edx, 8
or edx, ecx
mov ecx, edx
add edx, ebx
sub ecx, ebx
cmp dword [ebp + 0x18], 0
cmove edx, ecx
mov dword [ebp + 0xc], edx
mov ebx, edx
test esi, esi
je 0x414619
and esi, 6
shl esi, 2
mov ecx, esi
shr edx, cl
inc edx
test dl, 0xfe
jne 0x414617
mov ebx, 0x100
shl ebx, cl
mov ecx, dword [ebp + 0x10]
dec ebx
xor ebx, dword [ebp + 0xc]
add ecx, edi
cmp dword [ebp + 0x18], 0
je 0x414615
add ebx, ecx
jmp 0x414617
mov ecx, edx
shr esi, cl
test esi, esi
je 0x414572
cmp esi, 4
ja 0x414607
cmp esi, 3
je 0x414607
mov ecx, esi
shr ecx, 1
movzx ecx, byte [ecx + eax + 1]
inc ecx
test cl, 0xfe
jne 0x414572
mov ecx, dword [ebp + 8]
or esi, 8
shr esi, 1
inc edi
jmp 0x414540
sub ebx, ecx
xor esi, esi
mov ecx, ebx
mov byte [eax + 1], bl
shr ecx, 8
mov byte [eax + 2], cl
mov ecx, ebx
shr ebx, 0x18
and bl, 1
shr ecx, 0x10
neg bl
mov byte [eax + 3], cl
mov ecx, dword [ebp + 8]
mov byte [eax + 4], bl
mov eax, 5
mov ebx, dword [ebp - 4]
add edi, eax
jmp 0x414540
mov ecx, dword [ebp + 8]
or esi, 8
mov eax, 1
shr esi, 1
add edi, eax
jmp 0x414540
mov eax, dword [ebp + 0x14]
mov ecx, edx
shr esi, cl
xor ecx, ecx
cmp edx, 2
pop ebx
cmovbe ecx, esi
mov dword [eax], ecx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41f650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f67d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f67d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41f865
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41f8a4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41f8a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41f8a4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41f8a4
cmp dword [ecx + 0x74], 0xe
jbe 0x41f8a4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b800
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b821
mov al, byte [esp]
jmp 0x40b823
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x41993c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x419942
ret

Function at 0x41c2fc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41c34d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41c334
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41c324
jmp 0x41c34d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41c335
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401955
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0xc]
push eax
push str.SeShutdownPrivilege
push 0x444650
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4019d3
lea eax, [ebp - 0x20]
xor esi, esi
push eax
push 0x20
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4019d3
mov eax, dword [ebp - 0xc]
push esi
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4019e2
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00413a95
leave
ret
push esi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
jmp 0x4019d5

Function at 0x401d15
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x401d27
push 0xd
pop eax
jmp 0x401d58
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x401d30
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x40246d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40248c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402489
cmp eax, 3
jne 0x40248c
xor al, al
ret
mov al, 1
ret
Function at 0x40248f
Capabilities:
Get common file path
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43452b
mov eax, dword fs:[0]
push eax
mov eax, 0x180c
call fcn.00414cb0
mov eax, dword [0x44c06c]
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 esi, ecx
xor ebx, ebx
push ebx
mov byte [esi], bl
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, 0x400
lea ecx, [ebp - 0x1010]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x1814], ebx
push eax
lea ecx, [ebp - 0x1814]
call fcn.004025fe
lea eax, [ebp - 0x810]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x445e9c
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea ecx, [ebp - 0x810]
call fcn.0040246d
test al, al
lea eax, [ebp - 0x810]
jne 0x4025b5
push eax
push ebx
push ebx
push 0x23
push ebx
mov dword [ebp - 0x1818], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x1818]
push eax
lea eax, [ebp - 0x1810]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0x445ee8
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea eax, [ebp - 0x1810]
push eax
lea eax, [ebp - 0x810]
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x445e9c
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea ecx, [ebp - 0x810]
call fcn.0040246d
test al, al
je 0x4025d5
lea eax, [ebp - 0x810]
push str._teams.exe
push edi
push eax
call fcn.00418d79
add esp, 0xc
lea ecx, [ebp - 0x810]
mov edx, esi
call fcn.0040c783
mov bl, al
jmp 0x4025d7
mov bl, 1
lea ecx, [ebp - 0x1814]
call fcn.0040215d
mov al, bl
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.00413a95
leave
ret
Function at 0x40426d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x404278
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x404334
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
sub edi, 1
jne 0x40428d
pop edi
test esi, esi
je 0x404350
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
inc edx
sub esi, 1
jne 0x404338
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4446e0]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4446e0]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x4049e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov ebx, edx
mov dword [ebp - 8], eax
mov ecx, ebx
imul ecx, dword [ebp + 8]
cmp byte [edi], 0
je 0x404a24
push 0
lea edx, [ebp - 8]
push edx
push ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404a1f
mov byte [edi + 8], 1
mov eax, dword [ebp - 8]
jmp 0x404a4e
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp - 8]
call fcn.00415620
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
mov ecx, dword [ebp - 4]
xor edx, edx
div ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret
Function at 0x4055ee
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi], ebx
jne 0x405690
cmp dword [esi + 4], 0xffffffff
jne 0x405690
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x405621
sub ecx, edx
sar ecx, 1
movzx eax, word [esi + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x405655
cmp eax, 0x2f
je 0x405655
push 0x445ee8
push 0x104
push edi
call fcn.00418d79
add esp, 0xc
push 0x20
call fcn.00413d40
pop ecx
mov ecx, dword [ebp + 8]
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], bl
mov dword [eax + 0x1c], ebx
mov dword [eax + 0xc], ebx
call fcn.00404c96
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x405695
mov eax, 0x1000000
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x405cf0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x405cf0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x405dad
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x405d0f
cmp dx, 0x5c
jne 0x405d11
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x405d03
cmp esi, ebx
je 0x405d57
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call fcn.00415620
add esp, 0xc
cmp esi, 0x208
jae 0x405dbb
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, edi
mov word [ebp + esi - 0x414], ax
call fcn.00405cbe
xor eax, eax
mov esi, 0x104
mov word [ebp - 0x20c], ax
test edi, edi
je 0x405d7a
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00418d15
add esp, 0xc
push ebx
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00418d79
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
jne 0x405dad
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret
call fcn.00413bfd
int3
Function at 0x4063d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x44c06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x64
xor ebx, ebx
lea eax, [ebp - 0x7c]
push ebx
push eax
mov esi, edx
mov edi, ecx
call fcn.00416120
pop ecx
pop ecx
lea ecx, [ebp - 0x7c]
call fcn.00402185
xor ecx, ecx
mov dword [ebp - 0x10], str.Open_Setup_Log
inc ecx
mov dword [ebp - 8], str.Close
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x50], ecx
push 2
pop edx
mov dword [ebp - 0xc], edx
test esi, esi
jne 0x406428
lea eax, [ebp - 0xc]
mov dword [ebp - 0x58], ecx
jmp 0x40642e
lea eax, [ebp - 0x14]
mov dword [ebp - 0x58], edx
and dword [ebp - 0x70], 0xfffffffd
mov dword [ebp - 0x54], eax
mov eax, dword [edi]
push ecx
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x60], str.Installation_has_failed
mov dword [ebp - 0x64], 0xfffe
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [ebp - 0x7c]
call fcn.00401b05
test eax, eax
js 0x406478
cmp dword [ebp - 0x18], 1
jne 0x406478
test esi, esi
je 0x406478
push 5
push ebx
push ebx
push esi
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00413a95
leave
ret