joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10001000
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x84c
push ebp
push esi
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
mov byte [esp + 0x24], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0x25]
mov edx, dword [0x1000c068]
rep stosd dword es:[edi], eax
mov ecx, dword [0x1000c064]
mov dword [esp + 0x18], edx
stosb byte es:[edi], al
mov eax, dword [str.pass]
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov ax, word [0x1000c06c]
lea edx, [esp + 0x24]
mov dword [esp + 0x1e], ecx
push 0x104
push edx
mov dword [esp + 0x14], 0
mov word [esp + 0x24], ax
mov word [esp + 0x2a], cx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
mov ecx, ebp
push 4
push eax
and ecx, 3
push 3
lea eax, [esp + 0x38]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 2
mov esi, eax
push 0
push 0
push esi
call edi
test esi, esi
jbe 0x10001140
push 2
push 0
push 0
push esi
call edi
mov eax, dword [esp + 0x860]
test eax, eax
je 0x10001100
push eax
lea ecx, [esp + 0x5c]
push str.name_s
push ecx
call fcn.10002032
add esp, 0xc
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
not ecx
dec ecx
push edx
lea eax, [esp + 0x60]
push ecx
push eax
push esi
call edi
test eax, eax
je 0x10001139
lea ecx, [esp + 0xc]
push 0
push ecx
push 2
push 0x1000c050
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x84c
ret
Function at 0x100059a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x1000c3b0
cmp edx, dword [eax]
je 0x100059c2
add eax, 8
inc ecx
cmp eax, 0x1000c440
jl 0x100059b3
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x1000c3b0]
jne 0x10005af0
mov eax, dword [0x1000ee38]
cmp eax, 1
je 0x10005aca
test eax, eax
jne 0x100059f3
cmp dword [0x1000ee3c], 1
je 0x10005aca
cmp edx, 0xfc
je 0x10005af0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10005a2a
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.10006e20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.10002a00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10005a6d
lea eax, [ebp - 0x1a4]
push eax
call fcn.10002a00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x1000a668
push edi
call fcn.10007ea0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.10006e20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10006e30
lea eax, [ebp - 0xa0]
push 0x1000a648
push eax
call fcn.10006e30
push dword [esi + 0x1000c3b4]
lea eax, [ebp - 0xa0]
push eax
call fcn.10006e30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.10007e0f
add esp, 0x2c
pop edi
jmp 0x10005af0
lea eax, [ebp + 8]
lea esi, [esi + 0x1000c3b4]
push 0
push eax
push dword [esi]
call fcn.10002a00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401d55
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
and dword [edi], 0
mov esi, str.advapi32.dll
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x401d78
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegOpenKeyExA
push ebx
call esi
push str.RegCreateKeyExA
push ebx
mov dword [edi + 4], eax
call esi
push str.RegQueryValueExA
push ebx
mov dword [edi + 8], eax
call esi
push str.RegSetValueExA
push ebx
mov dword [edi + 0x10], eax
call esi
push str.RegEnumKeyExA
push ebx
mov dword [edi + 0x14], eax
call esi
push str.RegEnumValueA
push ebx
mov dword [edi + 0x18], eax
call esi
push str.RegDeleteValueA
push ebx
mov dword [edi + 0x1c], eax
call esi
push str.RegCloseKey
push ebx
mov dword [edi + 0x20], eax
call esi
push dword [esp + 0x18]
mov ecx, edi
push dword [esp + 0x18]
mov dword [edi + 0xc], eax
push dword [esp + 0x18]
call fcn.004016e3
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x402d3e
Capabilities:
Write file on windows

Disassembly:
push esi
push edi
push 0x424418
push dword [esp + 0x10]
xor esi, esi
call fcn.00410265
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x402d95
mov esi, dword [esp + 0x10]
mov ecx, esi
call fcn.0040178e
test al, al
jne 0x402d8b
mov ecx, dword [esi + 4]
test ecx, ecx
jne 0x402d72
xor eax, eax
jmp 0x402d77
mov eax, dword [esi + 8]
sub eax, ecx
push edi
push eax
push 1
mov ecx, esi
call fcn.00402a5a
push eax
call fcn.0041011f
add esp, 0x10
push edi
call fcn.0040ff44
xor esi, esi
pop ecx
inc esi
pop edi
mov eax, esi
pop esi
ret

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

Disassembly:
push 4
mov eax, 0x42243a
call fcn.0040e291
lea ecx, [ebp - 0xd]
call fcn.0040c7b6
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
and dword [ebp - 4], 0
test edx, edx
jne 0x402f60
xor eax, eax
jmp 0x402f65
mov eax, dword [ecx + 8]
sub eax, edx
push dword [ebp + 0xc]
push eax
call fcn.00402a5a
push eax
lea ecx, [ebp - 0xd]
call fcn.0040c871
mov esi, eax
test esi, esi
jne 0x402f8c
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x402f8c
inc esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.00408316
mov eax, esi
call fcn.0040e330
ret
Function at 0x4035fa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1d8
mov eax, 0x4225b7
call fcn.0040e2fa
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4036cc
cmp dword [esi + 0x18], 0x10
jb 0x403625
mov eax, dword [esi + 4]
jmp 0x403628
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4036cc
push esi
lea ecx, [ebp - 0x1c4]
call fcn.0040742a
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c4]
mov dword [ebp - 4], edi
call fcn.0040747d
mov byte [ebp - 4], 1
jmp 0x4036ad
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c8]
push eax
mov ecx, ebx
call fcn.00407058
lea ecx, [ebp - 0x1c8]
call fcn.004018d9
lea eax, [ebp - 0x1e4]
push eax
lea ecx, [ebp - 0x1c4]
call fcn.0040747d
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402d9a
push edi
push 1
lea ecx, [ebp - 0x1e4]
mov byte [ebp - 4], 1
call fcn.0040270c
cmp dword [ebp - 0x18], edi
jne 0x40365c
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040270c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c4]
call fcn.004073f4
call fcn.0040e344
ret
Function at 0x40498b
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x78
mov eax, 0x422901
call fcn.0040e2fa
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ecx, edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x64], esi
call fcn.00402a36
xor ebx, ebx
lea eax, [ebp - 0x2c]
inc ebx
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x64], ebx
call fcn.004040a7
pop ecx
cmp dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
je 0x404a05
push str.SpreadsheetTools_
lea ecx, [ebp - 0x2c]
call fcn.00403077
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4049e3
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x404a32
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4049fb
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x404a32
lea eax, [ebp - 0x84]
push eax
call fcn.004040d9
pop ecx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00402d9a
push esi
push ebx
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], bl
call fcn.0040270c
lea ecx, [ebp - 0x4c]
call fcn.0040bd51
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
cmp dword [ebp + 0x10], 0xc
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x50]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x4c]
jl 0x404a63
call fcn.0040bf60
push str.lxLdr.xlam
jmp 0x404a6d
call fcn.0040bf45
push str.lxLdr.xla
lea ecx, [ebp - 0x2c]
call fcn.00403077
lea ecx, [ebp - 0x60]
call fcn.0040178e
test al, al
jne 0x404ac3
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x404a8d
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x60]
push ecx
push eax
call fcn.00402d3e
test eax, eax
pop ecx
pop ecx
jne 0x404ab5
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x404aa9
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x404ac3
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.00402d9a
lea ecx, [ebp - 0x60]
call fcn.00402757
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.0040bd61
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.0040270c
mov eax, edi
call fcn.0040e344
ret
Function at 0x40747d
Capabilities:
Enumerate files on windows

Disassembly:
push 8
mov eax, 0x4231fe
call fcn.0040e291
mov esi, ecx
mov ecx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
call fcn.00402a36
mov eax, dword [esi + 0x54]
cmp eax, 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 1
jne 0x407519
push eax
push ebx
lea edi, [esi + 0x38]
push esi
mov ecx, edi
call fcn.00402d9a
push edi
call fcn.00403f99
pop ecx
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x1c]
push eax
mov ecx, edi
call fcn.00402ad3
cmp dword [edi + 0x18], 0x10
jb 0x4074da
mov eax, dword [edi + 4]
jmp 0x4074dd
lea eax, [edi + 4]
lea edi, [esi + 0x58]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x54], eax
je 0x40754d
lea ebx, [esi + 0x84]
cmp byte [ebx], 0x2e
jne 0x407528
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push eax
call edi
test eax, eax
je 0x40754d
cmp byte [ebx], 0x2e
jne 0x40754d
lea eax, [esi + 0x58]
push eax
push dword [esi + 0x54]
call edi
jmp 0x407524
lea ecx, [esi + 0x58]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x40754d
mov ecx, dword [ebp - 0x10]
push 0xffffffffffffffff
push 0
push esi
call fcn.00402d9a
push dword [ebp - 0x10]
call fcn.00403f99
pop ecx
mov ecx, dword [ebp - 0x10]
add esi, 0x84
push esi
call fcn.00403077
mov eax, dword [ebp - 0x10]
call fcn.0040e330
ret 4

Function at 0x407d75
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42d43c]
xor eax, ebp
mov dword [ebp + 0x88], eax
push esi
mov esi, dword [ebp + 0x98]
xor eax, eax
cmp esi, eax
push edi
mov edi, dword [ebp + 0x94]
mov dword [ebp - 0x80], eax
mov byte [ebp - 0x7c], al
je 0x407dd3
cmp byte [esi], al
je 0x407dd3
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x7c]
push eax
call fcn.0040167a
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040fda0
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
mov ecx, edi
call fcn.004032d0
mov ecx, dword [ebp + 0x88]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0040d7fc
add ebp, 0x8c
leave
ret
Function at 0x407fb7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x42d43c]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x28
mov eax, 0x423298
call fcn.0040e291
mov esi, ecx
mov dword [ebp - 0x34], esi
call fcn.00402a36
lea ebx, [esi + 0x1c]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00402a36
lea ecx, [esi + 0x38]
call fcn.00402a36
lea ecx, [esi + 0x54]
call fcn.00402a36
mov byte [ebp - 4], 3
mov dword [esi + 0x70], 0xe
push dword [esi + 0x70]
lea eax, [ebp + 0x1c]
push str.SOFTWAREMicrosoftOffice_ld.0ExcelInstallRoot
push eax
call fcn.00410318
add esp, 0xc
push 1
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x30]
call fcn.00401d55
cmp dword [ebp - 0x30], edi
je 0x4080c2
push edi
lea ecx, [ebp]
mov dword [ebp + 0x18], 0xf
call fcn.00401f33
push ebx
push str.Path
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 5
call fcn.00407f24
test eax, eax
je 0x4080b7
mov eax, dword [esi + 0x30]
cmp eax, edi
je 0x4080b7
dec eax
push eax
mov ecx, ebx
call fcn.00401cb3
cmp byte [eax], 0x5c
je 0x408086
push 0x4242cc
mov ecx, ebx
call fcn.00403077
push 0xffffffffffffffff
push edi
push ebx
lea ecx, [ebp]
call fcn.00402d9a
push str.excel.exe
lea ecx, [ebp]
call fcn.00403077
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x4080ab
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4080e0
push edi
push 1
lea ecx, [ebp]
call fcn.0040270c
cmp dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
je 0x4080d1
push dword [ebp - 0x30]
call dword [ebp - 0x24]
dec dword [esi + 0x70]
cmp dword [esi + 0x70], 8
jg 0x40800f
jmp 0x408128
push 0xffffffffffffffff
push edi
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00402d9a
push dword [esi + 0x70]
lea eax, [ebp + 0x1c]
push str.SOFTWAREMicrosoftOffice_ld.0_
push eax
call fcn.00410318
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
lea ecx, [esi + 0x54]
call fcn.00403094
push edi
push 1
lea ecx, [ebp]
call fcn.0040270c
cmp dword [ebp - 0x30], edi
mov byte [ebp - 4], 3
je 0x408128
push dword [ebp - 0x30]
call dword [ebp - 0x24]
or dword [esi + 0x74], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x120]
xor ecx, ebp
call fcn.0040d7fc
add ebp, 0x124
leave
ret
Function at 0x408151
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x68
mov eax, 0x4232d8
call fcn.0040e2fa
mov edi, ecx
cmp dword [edi + 0x74], 0xffffffff
jne 0x408249
mov esi, str.SoftwareMicrosoftOfficeExcelAddInsLockXLSRuntime.Connect
push esi
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [edi + 0x74], ebx
call fcn.00407e90
test eax, eax
pop ecx
pop ecx
jne 0x408249
push esi
push SysReAllocString
call fcn.00407e90
cmp eax, ebx
pop ecx
pop ecx
je 0x4081a2
cmp eax, 2
jne 0x408249
push 1
mov esi, SysReAllocString
push esi
push str.LockXLSRuntime.Connect
lea ecx, [ebp - 0x74]
call fcn.00401d55
cmp dword [ebp - 0x74], ebx
mov dword [ebp - 4], ebx
je 0x40823a
push 1
push esi
push str.CLSID36CFCB02_788B_41D9_A9A6_FCBCEC7FF987InprocServer32
lea ecx, [ebp - 0x50]
call fcn.00401d55
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.00401f33
cmp dword [ebp - 0x50], ebx
mov byte [ebp - 4], 2
je 0x408221
lea eax, [ebp - 0x2c]
push eax
push 0x4242ce
lea ecx, [ebp - 0x50]
call fcn.00407f24
test eax, eax
je 0x408221
cmp dword [ebp - 0x18], ebx
je 0x408221
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x40820e
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x408221
mov dword [edi + 0x74], 1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040270c
cmp dword [ebp - 0x50], ebx
mov byte [ebp - 4], bl
je 0x40823a
push dword [ebp - 0x50]
call dword [ebp - 0x44]
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x74], ebx
je 0x408249
push dword [ebp - 0x74]
call dword [ebp - 0x68]
xor eax, eax
cmp dword [edi + 0x74], 1
sete al
call fcn.0040e344
ret

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

Disassembly:
push 0x44
mov eax, 0x42330d
call fcn.0040e2fa
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x4c], esi
jne 0x4082f7
push 1
push SysReAllocString
push str.CLSID36CFCB02_788B_41D9_A9A6_FCBCEC7FF987InprocServer32
lea ecx, [ebp - 0x50]
call fcn.00401d55
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 0xf
call fcn.00401f33
cmp dword [ebp - 0x50], esi
mov byte [ebp - 4], 1
je 0x4082dd
lea eax, [ebp - 0x2c]
push eax
push 0x4242ce
lea ecx, [ebp - 0x50]
call fcn.00407f24
test eax, eax
je 0x4082dd
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x4082c2
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4082dd
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [edi + 0x38]
call fcn.00402d9a
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040270c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x50], esi
je 0x4082f7
push dword [ebp - 0x50]
call dword [ebp - 0x44]
lea eax, [edi + 0x38]
call fcn.0040e344
ret
Function at 0x408e39
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x408e44
xor eax, eax
ret
mov eax, dword [esp + 0xc]
cmp eax, 8
push ebx
push esi
mov esi, dword [esp + 0xc]
not esi
mov ecx, 0xff
jb 0x408eff
push edi
mov edi, eax
shr edi, 3
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426b38]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426b38]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426b38]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426b38]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426b38]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426b38]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426b38]
inc edx
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426b38]
inc edx
sub eax, 8
dec edi
jne 0x408e64
pop edi
test eax, eax
je 0x408f18
movzx ebx, byte [edx]
xor ebx, esi
and ebx, ecx
shr esi, 8
xor esi, dword [ebx*4 + 0x426b38]
inc edx
dec eax
jne 0x408f03
mov eax, esi
pop esi
not eax
pop ebx
ret

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

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx]
movzx edx, byte [esp + 8]
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x426b38]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x426b38]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x4093b1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x4093e5
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4093e0
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x40940d
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x4093f6
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00410550
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x40a163
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42d43c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
mov esi, dword [ebp + 0xc]
je 0x40a197
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a197
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi]
test al, al
je 0x40a22e
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x40a1ae
cmp al, 0x5c
jne 0x40a1b0
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x40a1a6
cmp edi, esi
je 0x40a1e3
sub edi, esi
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00410550
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + edi - 0x20c], 0
call fcn.0040a163
add esp, 0x14
test ebx, ebx
mov byte [ebp - 0x108], 0
pop edi
je 0x40a1fe
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040fd90
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.0040fda0
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40a22e
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040d7fc
leave
ret

Function at 0x40b7a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40b84f
cmp dword [esi + 4], 0xffffffff
jne 0x40b84f
push edi
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.0040f9e0
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
pop ecx
je 0x40b7f6
cmp al, 0x2f
je 0x40b7f6
push 0x4242cc
push edi
call fcn.0040fda0
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x40b818
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40b818
mov eax, 0x2000000
jmp 0x40b854
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004091df
add esp, 0x10
test eax, eax
jne 0x40b836
mov eax, dword [ebp + 0x10]
jmp 0x40b854
push eax
call fcn.0040b28a
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x40b854
mov eax, 0x1000000
pop esi
pop ebp
ret 0xc
Function at 0x40be50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
push dword [ebp + 8]
mov ebx, ecx
call fcn.0040bd76
test eax, eax
je 0x40bf07
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40beff
push esi
push edi
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [ebx + 0x1c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40befe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x40befe
mov eax, dword [ebp + 0x18]
cmp esi, eax
jbe 0x40befe
mov edi, dword [ebp + 0x1c]
test edi, edi
jne 0x40beba
mov edi, esi
lea ecx, [eax + edi]
cmp ecx, esi
jbe 0x40bec5
sub esi, eax
mov edi, esi
mov ecx, dword [ebp + 0xc]
push 0
push edi
call fcn.00407acb
mov ecx, dword [ebp + 0xc]
call fcn.0040178e
test al, al
jne 0x40bef7
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 8]
add eax, ecx
mov ecx, dword [ebp + 0xc]
push edi
push eax
call fcn.00402a5a
push eax
call fcn.00410550
add esp, 0xc
mov dword [ebp - 4], 1
pop esi
mov ecx, ebx
call fcn.0040bd3a
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x18