joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4087f5
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x144
lea ebp, [esp - 4]
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x144], eax
push 0x54
mov eax, 0x44ac3f
call fcn.00433137
mov esi, ecx
mov dword [ebp - 0x28], esi
push 0x44fc5c
lea eax, [ebp + 0x150]
push eax
xor edi, edi
lea eax, [ebp + 0x28]
inc edi
push eax
mov dword [ebp - 4], edi
call fcn.00407f8e
lea ecx, [ebp + 0x16c]
push ecx
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 2
call fcn.00407fd5
push str..hdr
push eax
lea eax, [ebp]
push eax
mov byte [ebp - 4], 3
call fcn.00407f8e
add esp, 0x24
xor ebx, ebx
push ebx
push edi
lea ecx, [ebp - 0x44]
call fcn.00401627
push ebx
push edi
lea ecx, [ebp + 0x28]
mov byte [ebp - 4], 6
call fcn.00401627
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x40888a
lea eax, [ebp + 4]
push ebx
push 0x80
push 3
push ebx
push edi
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x4088f7
mov byte [ebp - 0xd], bl
push ebx
push edi
lea ecx, [ebp]
call fcn.00401627
push ebx
push edi
lea ecx, [ebp + 0x150]
call fcn.00401627
push ebx
push edi
lea ecx, [ebp + 0x16c]
call fcn.00401627
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x144]
xor ecx, ebp
call fcn.00432980
add ebp, 0x148
leave
ret 0x38
lea ecx, [esi + 0x28]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
call fcn.00408256
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x14]
call esi
cmp dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
jle 0x4089fc
push 0x100
lea eax, [ebp + 0x44]
push ebx
push eax
call fcn.004328f0
add esp, 0xc
push ebx
lea ecx, [ebp + 0x1c]
mov dword [ebp + 0x34], 0xf
call fcn.0040155f
push ebx
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x14]
mov byte [ebp - 4], 7
call esi
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x24]
lea eax, [ebp + 0x44]
push eax
push dword [ebp - 0x14]
call esi
lea eax, [ebp + 0x44]
push eax
lea ecx, [ebp + 0x1c]
call fcn.00401a04
push ebx
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp + 0x3c]
push eax
push dword [ebp - 0x14]
call esi
push ebx
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp + 0x40]
push eax
push dword [ebp - 0x14]
call esi
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x4089a6
lea eax, [ebp + 0x20]
mov ecx, dword [ebp - 0x28]
push eax
call fcn.00409f3a
mov dword [ebp - 0x54], eax
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x50]
call fcn.00407ba8
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x60]
push eax
add ecx, 0x28
mov byte [ebp - 4], 8
call fcn.00408492
push ebx
push edi
lea ecx, [ebp - 0x50]
call fcn.00401627
push ebx
push edi
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 6
call fcn.00401627
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x20]
jl 0x408927
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xd], 1
jmp 0x4088ab
Function at 0x4094f9
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
sub esp, 0x120
lea ebp, [esp - 4]
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x120], eax
push 0x14
mov eax, 0x44addd
call fcn.00433137
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
push 0x103
lea eax, [ebp + 0x1d]
push edi
push eax
mov byte [ebp - 4], 1
mov byte [esi + 0x64], 1
mov byte [ebp + 0x1c], 0
call fcn.004328f0
add esp, 0xc
lea eax, [ebp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ebx, [esi + 0xa0]
mov ecx, ebx
call fcn.00408abe
push edi
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x1c
lea eax, [ebp + 0x12c]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004019de
mov ecx, esi
call fcn.004091b5
jmp 0x4095d0
call fcn.00407a83
push eax
lea ecx, [ebp]
call fcn.004019de
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00408551
push 1
lea eax, [ebp - 0x1c]
push eax
sub esp, 0x1c
lea eax, [ebp]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004019de
mov ecx, esi
call fcn.004091b5
push edi
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 1
call fcn.00401627
lea ecx, [ebp - 0x1c]
call fcn.0040763b
test eax, eax
lea ecx, [ebp - 0x1c]
jne 0x409589
call fcn.00408abe
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, ebx
call fcn.0040763b
mov ebx, eax
neg ebx
sbb bl, bl
lea ecx, [ebp - 0x1c]
inc bl
call fcn.004083d7
push edi
push 1
lea ecx, [ebp + 0x12c]
call fcn.00401627
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 + 0x120]
xor ecx, ebp
call fcn.00432980
add ebp, 0x124
leave
ret 0x1c
Function at 0x409e08
Capabilities:
Delete file

Disassembly:
push 0x68
mov eax, 0x44af35
call fcn.004331a0
mov esi, ecx
sub esp, 0x1c
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x30], esp
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004019de
mov ecx, esi
call fcn.004094f9
mov eax, dword [esi + 0xa4]
add esi, 0xa0
push esi
push eax
lea ecx, [ebp - 0x34]
call fcn.0040bfda
mov eax, dword [esi + 8]
push esi
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040bfda
jmp 0x409ee6
lea ecx, [ebp - 0x34]
call fcn.0040768e
push eax
lea ecx, [ebp - 0x2c]
call fcn.004019de
push 0x44fc5c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x74]
push eax
mov byte [ebp - 4], 1
call fcn.00407f8e
lea ecx, [ebp - 0x2c]
push ecx
push eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.00407fd5
add esp, 0x18
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.004018b9
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00401627
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.00401627
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x409ec9
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00401627
lea ecx, [ebp - 0x34]
call fcn.004076d3
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00407667
test al, al
je 0x409e5b
mov ecx, esi
call fcn.00408abe
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.00401627
mov al, 1
call fcn.00433223
ret 0x1c

Function at 0x409f3a
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00432c20
mov edx, eax
pop ecx
xor ecx, ecx
test edx, edx
mov eax, 0x1505
jbe 0x409f63
push edi
movsx edi, byte [ecx + esi]
imul eax, eax, 0x21
add eax, edi
inc ecx
cmp ecx, edx
jb 0x409f54
pop edi
pop esi
ret 4
Function at 0x40a741
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x128
lea ebp, [esp - 4]
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x128], eax
push 0x50
mov eax, 0x44b07a
call fcn.00433137
mov eax, ecx
mov dword [ebp - 0x24], eax
xor ebx, ebx
lea ecx, [eax + 0x28]
mov dword [ebp - 4], ebx
call fcn.00408256
cmp dword [ebp + 0x14c], 0x10
mov eax, dword [ebp + 0x138]
jae 0x40a78c
lea eax, [ebp + 0x138]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40a7e3
mov byte [ebp - 0xd], bl
push ebx
push 1
lea ecx, [ebp + 0x134]
call fcn.00401627
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
call fcn.00432980
add ebp, 0x12c
leave
ret 0x1c
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
call esi
cmp dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
jle 0x40a8d7
push 0x100
lea eax, [ebp + 0x28]
push ebx
push eax
call fcn.004328f0
add esp, 0xc
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 0xf
call fcn.0040155f
push ebx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push edi
mov byte [ebp - 4], 1
call esi
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
lea eax, [ebp + 0x28]
push eax
push edi
call esi
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp]
call fcn.00401a04
push ebx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp + 0x20]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp + 0x24]
push eax
push edi
call esi
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x40a880
lea eax, [ebp + 4]
mov ecx, dword [ebp - 0x24]
push eax
call fcn.00409f3a
mov dword [ebp - 0x50], eax
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00407ba8
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x5c]
push eax
add ecx, 0x28
mov byte [ebp - 4], 2
call fcn.00408492
push ebx
push 1
lea ecx, [ebp - 0x4c]
call fcn.00401627
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.00401627
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x1c]
jl 0x40a809
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0xd], 1
jmp 0x40a7ad
Function at 0x40bb01
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
sub esp, 0x32c
lea ebp, [esp - 4]
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x32c], eax
push 0x2c
mov eax, 0x44b29c
call fcn.00433137
mov esi, 0x103
push esi
xor ebx, ebx
lea eax, [ebp + 0x209]
push ebx
push eax
mov edi, ecx
mov byte [ebp + 0x208], 0
call fcn.004328f0
push esi
lea eax, [ebp + 0x105]
push ebx
push eax
mov byte [ebp + 0x104], bl
call fcn.004328f0
push esi
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.004328f0
add esp, 0x24
lea eax, [ebp + 0x208]
push eax
lea ebx, [esi + 1]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebx
call esi
lea eax, [ebp]
push eax
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Path.Ini
lea eax, [ebp + 0x208]
push eax
call esi
lea eax, [ebp + 0x208]
push eax
push 0
push str.Count
push 0x45068c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
mov dword [ebp - 0x18], eax
jg 0x40bbbd
xor al, al
jmp 0x40bcc2
lea ecx, [edi + 0x84c]
mov dword [ebp - 0x1c], ecx
call fcn.00408abe
mov ecx, dword [ebp - 0x18]
push 4
pop edx
cmp ecx, edx
lea eax, [edi + 0x848]
mov dword [eax], ecx
jle 0x40bbdf
mov dword [eax], edx
and dword [ebp - 0x14], 0
test ecx, ecx
jle 0x40bcc0
add edi, 0x38
mov dword [ebp - 0x10], edi
push 7
pop ecx
xor eax, eax
mov byte [ebp + 0x30c], 0
lea edi, [ebp + 0x30d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp + 0x104]
push 0
push eax
call fcn.004328f0
push dword [ebp - 0x14]
lea eax, [ebp + 0x30c]
push 0x450714
push eax
call fcn.00435a0d
mov edi, dword [ebp - 0x10]
add esp, 0x18
lea eax, [ebp + 0x208]
push eax
push 0x20
add edi, 0x100
push edi
push 0x44fe3b
lea eax, [ebp + 0x30c]
push eax
push 0x45068c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push edi
lea eax, [ebp + 0x104]
push eax
call esi
lea eax, [ebp + 0x104]
push eax
lea ecx, [ebp - 0x38]
call fcn.00401add
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.00409160
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x38]
call fcn.00401627
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call esi
push 0x44fc5c
push dword [ebp - 0x10]
call esi
push edi
push dword [ebp - 0x10]
call esi
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0x10], 0x204
cmp eax, dword [ebp - 0x18]
jl 0x40bbf1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x32c]
xor ecx, ebp
call fcn.00432980
add ebp, 0x330
leave
ret
Function at 0x40bdc7
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [esp + 0x24]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x20], eax
jne 0x40bdf4
mov dword [esi + 0x20], edi
jmp 0x40be0b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x34], edi
pop edi
xor al, al
pop esi
ret 4

Function at 0x40c30c
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x28]
push edi
mov edi, dword [ebp + 8]
cmp edi, ecx
jae 0x40c438
mov eax, dword [ebp + 0xc]
lea edx, [edi + eax]
cmp edx, ecx
mov dword [ebp - 4], edx
ja 0x40c438
xor ebx, ebx
cmp dword [esi + 0x34], ebx
je 0x40c3e0
mov ecx, dword [esi + 0x2c]
cmp edi, ecx
jb 0x40c35c
mov eax, dword [esi + 0x30]
add eax, ecx
cmp eax, edx
jb 0x40c35c
mov eax, dword [esi + 0x3c]
sub eax, ecx
add eax, edi
jmp 0x40c43a
mov eax, dword [esi + 0x3c]
cmp eax, ebx
je 0x40c36d
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x3c], ebx
cmp dword [esi + 0x34], ebx
je 0x40c3c8
mov edi, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esi + 0x34]
cmp ecx, dword [ebp + 0xc]
jb 0x40c3c8
mov eax, dword [esi + 0x38]
and eax, dword [ebp + 8]
mov dword [esi + 0x30], ecx
lea edx, [eax + ecx]
cmp edx, dword [esi + 0x28]
mov dword [esi + 0x2c], eax
jbe 0x40c3ac
push ebx
push eax
push ebx
push 4
push dword [esi + 0x24]
call edi
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
jmp 0x40c3bb
push ecx
push eax
xor ebx, ebx
push ebx
push 4
push dword [esi + 0x24]
call edi
mov dword [esi + 0x3c], eax
cmp dword [esi + 0x3c], ebx
jne 0x40c42d
shr dword [esi + 0x34], 1
cmp dword [esi + 0x34], ebx
jne 0x40c378
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
cmp dword [esi + 0x30], eax
jae 0x40c3ff
push ebx
lea edi, [esi + 0x40]
push eax
mov ecx, edi
mov dword [esi + 0x30], eax
call fcn.0040c26c
push ebx
mov ecx, edi
call fcn.0040bf16
mov dword [esi + 0x3c], eax
push ebx
push ebx
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
lea ecx, [esi + 0x40]
push ebx
call fcn.0040bf16
push eax
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x3c]
jmp 0x40c43a
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x2c]
add eax, dword [ebp + 8]
jmp 0x40c43a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40ca02
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push dword [esi + 0x14]
call fcn.0040c625
mov dword [esi + 0x14], eax
movzx eax, al
add eax, dword [esi + 0x18]
mov ecx, esi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x18], eax
shr eax, 0x18
mov byte [esp + 8], al
push dword [esp + 8]
push dword [esi + 0x1c]
call fcn.0040c625
mov dword [esi + 0x1c], eax
pop esi
ret 4

Function at 0x40d07d
Capabilities:
Set file attributes

Disassembly:
push ebp
sub esp, 0x128
lea ebp, [esp - 4]
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp + 0x128], eax
push 0x14
mov eax, 0x44b405
call fcn.0043316a
mov edi, dword [ebp + 0x134]
mov esi, ecx
cmp byte [esi + 0xe4], 0xff
je 0x40d0b9
xor eax, eax
jmp 0x40d1a7
xor ebx, ebx
cmp byte [ebp + 0x138], bl
mov dword [ebp - 0x14], 1
jne 0x40d180
cmp dword [esi + 0x60], ebx
jne 0x40d0eb
call fcn.0040c5a1
mov ecx, dword [esi + 0x68]
cmp ecx, dword [eax + 0x14]
je 0x40d0ef
push 0xffffffffffffff9a
mov ecx, esi
call fcn.0040ceaf
jmp 0x40d0ef
or dword [ebp - 0x14], 0xffffffff
mov ecx, esi
call fcn.0040c5a1
cmp word [eax + 0xe], 8
jne 0x40d107
lea eax, [esi + 0x28]
push eax
call fcn.004123c0
pop ecx
cmp edi, ebx
je 0x40d180
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], ebx
mov dword [ebp], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x14], ebx
call fcn.0040cbb1
mov ecx, dword [eax]
mov dword [ebp + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [ebp + 0x14], eax
mov dword [ebp + 4], eax
lea eax, [ebp - 0x20]
mov dword [ebp], ecx
push eax
mov ecx, esi
mov byte [ebp + 0x20], bl
call fcn.0040c5a1
mov ecx, eax
call fcn.0040faaa
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov eax, dword [eax + 4]
mov dword [ebp + 0xc], eax
lea eax, [ebp]
push eax
push edi
call fcn.00424556
mov ecx, esi
call fcn.0040c5a1
push dword [eax + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x40d180
mov dword [ebp - 0x14], 0xfffffffe
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0xe8]
call fcn.0040ec71
lea ecx, [esi + 0x6c]
mov byte [esi + 0xe4], bl
call fcn.0040e2fa
mov ecx, esi
call fcn.0040cae2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x128]
xor ecx, ebp
call fcn.00432980
add ebp, 0x12c
leave
ret 8
Function at 0x40d30b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
push dword [esp + 0xc]
lea edi, [esi + 0xe8]
mov ecx, edi
call fcn.0040e5f7
test al, al
jne 0x40d32b
xor al, al
jmp 0x40d422
lea ecx, [esi + 0x78]
call fcn.0040febf
cmp eax, 1
je 0x40d324
push ebx
xor ebx, ebx
cmp byte [esi + 0xe4], bl
jne 0x40d36d
lea ecx, [esi + 0x20]
call fcn.0040fe16
push dword [esp + 0x10]
mov ecx, edi
call fcn.0040ebbd
mov ecx, esi
call fcn.0040c5a1
mov ecx, eax
call fcn.0040f8de
test al, al
je 0x40d38f
cmp dword [esi + 0x10], ebx
jne 0x40d374
xor al, al
jmp 0x40d421
mov ecx, esi
call fcn.0040ccf7
mov ecx, esi
call fcn.0040cd2f
test al, al
jne 0x40d38f
push 0xffffffffffffff94
mov ecx, esi
call fcn.0040ceaf
mov ecx, esi
call fcn.0040c5a1
movzx edi, word [eax + 0xe]
cmp di, bx
je 0x40d3ac
cmp di, 8
je 0x40d3b2
push 0xffffffffffffff9b
call fcn.0040ceaf
cmp di, 8
jne 0x40d3e1
mov al, byte [esi + 4]
neg al
lea ecx, [esi + 0xc8]
push 0x38
push 0x450e68
push 0xfffffffffffffff1
sbb eax, eax
and eax, ecx
mov dword [esi + 0x50], eax
lea eax, [esi + 0x28]
push eax
call fcn.00410bf0
add esp, 0x10
push eax
mov ecx, esi
call fcn.0040cf13
mov ecx, esi
call fcn.0040c5a1
mov eax, dword [eax + 0x18]
mov dword [esi + 0x64], eax
call fcn.0040c5a1
mov ecx, eax
call fcn.0040f8de
test al, al
je 0x40d402
add dword [esi + 0x64], 0xfffffff4
mov ecx, esi
call fcn.0040c5a1
mov eax, dword [eax + 0x1c]
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x2c], ebx
mov byte [esi + 0xe4], 0xff
mov al, 1
pop ebx
pop edi
pop esi
ret 4

Function at 0x40dae9
Capabilities:
Create directory

Disassembly:
push 0xc
mov eax, 0x44b5af
call fcn.00433137
push dword [ebp + 8]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x10]
call fcn.004054e0
and dword [ebp - 4], 0
push 0x44fc5c
lea ecx, [ebp - 0x10]
call fcn.0040d65d
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040d85d
pop ecx
pop ecx
push dword [ebp - 0x10]
mov ecx, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 1
call fcn.0040cb1f
test eax, eax
je 0x40db4e
push dword [ebp - 0x10]
call fcn.0040c996
cmp eax, 0xffffffff
pop ecx
je 0x40db4e
xor bl, bl
jmp 0x40db50
mov bl, 1
mov ecx, dword [ebp - 0x18]
and dword [ebp - 4], 0
add ecx, 0xfffffff0
call fcn.00402050
test bl, bl
je 0x40db78
mov bl, 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00402050
mov al, bl
call fcn.0043320f
ret
push dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push eax
call fcn.0040d85d
push dword [eax]
mov byte [ebp - 4], 2
call fcn.0040dae9
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov bl, al
neg bl
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00402050
test bl, bl
je 0x40dbad
xor bl, bl
jmp 0x40db65
push 0
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40dba9
jmp 0x40db63
Function at 0x40e2b8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0040e28c
pop ecx
pop ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov ecx, dword [ebp - 4]
cmp eax, 2
sete bl
add ecx, 0xfffffff0
call fcn.00402050
mov al, bl
pop ebx
leave
ret

Function at 0x40ffcf
Capabilities:
Get disk size

Disassembly:
push 0x18
mov eax, 0x44ba69
call fcn.00433137
mov ecx, dword [ecx + 0x1c]
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
call dword [eax + 0x18]
push dword [eax]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.0040e28c
mov eax, dword [eax]
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00402050
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00402050
test bl, bl
je 0x410037
xor eax, eax
jmp 0x410042
mov eax, dword [ebp - 0x18]
imul eax, dword [ebp - 0x1c]
imul eax, dword [ebp - 0x20]
call fcn.0043320f
ret
Function at 0x41cec0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41cf03
call fcn.00417072
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41cf03
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41cf1e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041ca77
test ebx, ebx
mov esi, eax
je 0x41cf1c
test edi, edi
je 0x41cf1c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41fcaf
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x466b10]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x41fcef
push 0x455c00
push 4
push eax
call fcn.00437e1d
push eax
call fcn.00402d47
add esp, 0x10
jmp 0x41fd01
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41fd6f
push edi
call fcn.00437cbf
mov edi, dword [eax]
call fcn.00437cbf
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00435aa4
add esp, 0x18
mov ebx, eax
call fcn.00437cbf
cmp dword [eax], 0
je 0x41fd4f
call fcn.00437cbf
push dword [eax]
call fcn.0041620c
pop ecx
jmp 0x41fd56
call fcn.00437cbf
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41fd6f
cmp ebx, esi
jae 0x41fd6f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41fd71
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00432980
leave
ret