joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431e70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x26c
mov eax, dword [0x551764]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x10], 0
call fcn.0042aff0
test al, al
je 0x431ebe
lea eax, [esp + 0x10]
push eax
call dword [0x576b1c]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x431f18
test al, 0x10
je 0x431ee1
mov ecx, dword [esp + 0x14]
mov edx, esi
push 0
push ebx
push edi
call fcn.004298d0
mov esi, eax
jmp 0x431f2b
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x431f0e
push dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
push edi
call esi
add esp, 0xc
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x431f2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x431f2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
push esi
push dword [esp + 0x24]
call fcn.00424f10
add esp, 0xc
mov edi, dword [esp + 0x10]
call fcn.0042aff0
test al, al
je 0x431f42
push edi
call dword [0x576b18]
mov ecx, dword [esp + 0x274]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004c715a
mov esp, ebp
pop ebp
ret

Function at 0x432240
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov eax, dword [esi]
test eax, eax
je 0x4322b6
cmp word [eax], bx
je 0x4322b6
push edi
cmp dword [ebp + 8], ebx
jne 0x4322a3
push ebx
push ebx
push 3
push ebx
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43227b
pop edi
pop esi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esi + 0x220]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x432295
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
pop edi
mov dword [esi + 0x224], ebx
mov eax, ebx
mov dword [esi + 0x220], edx
pop esi
pop ebx
pop ebp
ret
mov dword [esi + 0x220], ebx
xor eax, eax
mov dword [esi + 0x224], ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x433c70
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x433c84
mov dword [esp + 0x18], fcn.00433010
jmp fcn.00443c10
mov dword [esp + 0x18], fcn.00432ac0
jmp fcn.00443960
Function at 0x448930
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004c79c0
mov eax, dword [0x551764]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x448996
cmp edi, dword [esi]
je 0x44898d
test ebp, ebp
je 0x448a10
test ebx, ebx
js 0x448a10
mov eax, 1
mov dword [esi], edi
jmp 0x44899c
mov edi, dword [esi]
test edi, edi
je 0x448a10
test ebp, ebp
je 0x448b2a
push edi
call fcn.004a2760
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x4489d0
push 0x28
push str.....openssl_1.1.0ecryptohmachmac.c
push str.assertion_failed:_j____int_sizeof_ctx__key_
call fcn.00443e00
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x448a2b
push dword [esp + 0x10]
push edi
push dword [esi + 4]
call fcn.00459370
add esp, 0xc
test eax, eax
je 0x448a10
push ebx
push ebp
push dword [esi + 4]
call fcn.00459520
add esp, 0xc
test eax, eax
je 0x448a10
lea ebp, [esi + 0x10]
push ebp
lea eax, [esi + 0x14]
push eax
push dword [esi + 4]
call fcn.004592f0
add esp, 0xc
test eax, eax
jne 0x448a47
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004c715a
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x448a10
push ebx
lea eax, [esi + 0x14]
push ebp
push eax
call fcn.004c9ec0
lea ebp, [esi + 0x10]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x448a6a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x14]
add eax, ecx
push 0
push eax
call fcn.004ca440
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x14]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x448a70
push edx
push edi
push dword [esi + 8]
call fcn.00459370
add esp, 0xc
test eax, eax
je 0x448a10
push edi
call fcn.004a2760
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 8]
call fcn.00459520
add esp, 0x10
test eax, eax
je 0x448a10
xor ecx, ecx
nop dword [eax]
mov al, byte [esi + ecx + 0x14]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x448ac0
push dword [esp + 0x10]
push edi
push dword [esi + 0xc]
call fcn.00459370
add esp, 0xc
test eax, eax
je 0x448a10
push edi
call fcn.004a2760
push eax
lea eax, [esp + 0x20]
push eax
push dword [esi + 0xc]
call fcn.00459520
add esp, 0x10
test eax, eax
je 0x448a10
push dword [esi + 8]
push dword [esi + 4]
call fcn.00459530
add esp, 8
test eax, eax
je 0x448a10
mov eax, 1
jmp 0x448a12
test eax, eax
je 0x448b0a
jmp 0x448a6e
Function at 0x467210
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call fcn.00479f50
push 0x62
push esi
mov edi, eax
mov ebx, 1
call fcn.004c87b0
add esp, 0x10
mov ecx, 0x11
test eax, eax
cmove ebx, ecx
test edi, edi
jne 0x4672c7
push 0x4a
push str.....openssl_1.1.0ecrypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00444a30
push 0x504324
push esi
push 0x504328
push dword [esp + 0x30]
push str.fopen_
push 5
call fcn.00444220
add esp, 0x2c
call fcn.004d2319
cmp dword [eax], 2
je 0x4672a9
call fcn.004d2319
cmp dword [eax], 6
je 0x4672a9
push 0x53
push str.....openssl_1.1.0ecrypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00444a30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x51
push str.....openssl_1.1.0ecrypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00444a30
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0x5042c0
call fcn.00453dc0
mov esi, eax
add esp, 4
test esi, esi
jne 0x4672e9
push edi
call fcn.004d11aa
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
ret
push 0
push esi
call fcn.004539d0
push edi
push ebx
push 0x6a
push esi
call fcn.00453a00
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x47a0d0
Capabilities:
Generate random numbers via winapi
Get memory capacity

Disassembly:
mov eax, 0x6c
call fcn.004c79c0
mov eax, dword [0x551764]
xor eax, esp
mov dword [esp + 0x68], eax
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47a146
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x47a13a
mov eax, 8
call fcn.004c79c0
movsd xmm0, qword [0x50fce8]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.00455260
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0xf0000040
push 0x16
push str.Intel_Hardware_Cryptographic_Service_Provider
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x47a1aa
lea eax, [esp + 0x28]
push eax
push 0x40
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x47a19e
mov eax, 8
call fcn.004c79c0
movsd xmm0, qword [0x50fce8]
lea eax, [esp + 0x30]
movsd qword [esp], xmm0
push 0x40
push eax
call fcn.00455260
add esp, 0x10
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
call fcn.0047a230
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, 8
call fcn.004c79c0
movsd xmm0, qword [0x501100]
lea eax, [esp + 0x10]
movsd qword [esp], xmm0
push 0x20
push eax
call fcn.00455260
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 4], eax
mov eax, 8
call fcn.004c79c0
movsd xmm0, qword [0x501100]
lea eax, [esp + 0xc]
movsd qword [esp], xmm0
push 4
push eax
call fcn.00455260
mov ecx, dword [esp + 0x78]
add esp, 0x10
xor ecx, esp
mov eax, 1
call fcn.004c715a
add esp, 0x6c
ret
Function at 0x4b6b30
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x14]
xor ebx, ebx
test esi, esi
jle 0x4b6c1c
mov edx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
inc edi
nop word [eax + eax]
cmp esi, 3
jl 0x4b6bad
movzx ecx, byte [edi - 1]
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
movzx eax, byte [eax + 0x521430]
mov byte [edx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x521430]
mov byte [edx + 1], al
mov eax, ecx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x521430]
mov byte [edx + 2], al
add edx, 3
and ecx, 0x3f
movzx eax, byte [ecx + 0x521430]
mov byte [edx], al
jmp 0x4b6c01
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp esi, 2
jne 0x4b6bc1
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + 0x521430]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x521430]
mov byte [edx + 1], cl
cmp esi, 1
jne 0x4b6beb
lea eax, [esi + 0x3c]
jmp 0x4b6bf8
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x521430]
mov byte [edx + 2], al
add edx, 3
mov byte [edx], 0x3d
sub esi, 3
add ebx, 4
add edi, 3
inc edx
test esi, esi
jg 0x4b6b50
pop edi
pop esi
mov eax, ebx
mov byte [edx], 0
pop ebx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
ret

Function at 0x4dd057
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004dced6

Function at 0x4df02f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004decef
Function at 0x404bc0
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
push edi
mov esi, eax
push esi
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x404bff
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x404bff
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
xor ecx, ecx
test eax, eax
je 0x404bf3
mov eax, edx
mov esi, dword [eax + 4]
add eax, 4
inc ecx
test esi, esi
jne 0x404be8
cmp ebx, ecx
jge 0x404bff
mov eax, dword [edx + ebx*4]
mov eax, dword [eax]
pop edi
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

Function at 0x404c10
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x4e6be0]
sub esp, 0x10
test eax, eax
push ebp
mov ebp, dword [esp + 0x20]
jl 0x404c7f
push edi
mov eax, 0x10
mov eax, dword [esp + 0x1c]
push eax
xor ecx, ecx
lea edi, [esp + 0xc]
mov word [esp + 0xc], 2
call sub.WSOCK32.dll_htons
test esi, esi
mov word [esp + 0xa], ax
pop edi
jne 0x404c51
push 0xffffffffffffffff
call sub.WSOCK32.dll_htonl
jmp 0x404c5c
push ebx
xor ebx, ebx
mov eax, esi
call fcn.00404bc0
pop ebx
mov edx, dword [esp + 0x1c]
push 0x10
lea ecx, [esp + 8]
push ecx
push 0
push ebp
mov dword [esp + 0x18], eax
mov eax, dword [0x4e6be0]
push edx
push eax
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x404c87
or eax, 0xffffffff
pop ebp
add esp, 0x10
ret
mov eax, ebp
pop ebp
add esp, 0x10
ret

Function at 0x409030
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
jle 0x40905b
push esi
push edi
jmp 0x409040
movzx esi, byte [ecx]
movzx esi, byte [esi + 0x4ac8c8]
lea edi, [eax*8]
xor esi, edi
xor eax, esi
inc ecx
dec edx
jne 0x409040
pop edi
pop esi
ret

Function at 0x409ad0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push esi
xor esi, esi
push edi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
call fcn.00409ab0
mov edi, eax
cmp edi, esi
jne 0x409af9
pop edi
mov eax, 7
pop esi
add esp, 8
ret
push ebx
push ebp
call fcn.004091c0
test eax, eax
je 0x409b44
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x409b2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x409b84
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x409b84
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409b10
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
call ebx
push edi
call ebp
mov esi, eax
cmp esi, 0xffffffff
jne 0x409b6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov dword [esp + 0x14], eax
jne 0x409b84
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 5
mov dword [esp + 0x10], eax
jge 0x409b84
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x409b50
push edi
call fcn.00498e36
add esp, 4
cmp esi, 0xffffffff
pop ebp
pop ebx
jne 0x409ba3
cmp dword [esp + 0xc], 2
jne 0x409ba3
pop edi
xor eax, eax
pop esi
add esp, 8
ret
pop edi
mov eax, 0xa0a
pop esi
add esp, 8
ret
Function at 0x4138e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
mov eax, dword [esi + 0x78]
push ebx
mov ebx, dword [esi + 0xa0]
push ebp
mov ebp, dword [esi + 0x84]
xor edx, edx
cmp ebp, eax
push edi
mov dword [esp + 0xc], edx
jbe 0x4138ff
mov ebp, eax
cmp dword [esi + 0x64], edx
jle 0x413937
xor ecx, ecx
jmp 0x413910
mov eax, dword [esi + 0x60]
mov edi, dword [eax + ecx + 8]
or edi, dword [eax + ecx + 0xc]
lea eax, [eax + ecx + 8]
jne 0x41392c
mov edi, dword [esi + 0x48]
mov dword [eax], edi
mov edi, dword [esi + 0x4c]
mov dword [eax + 4], edi
mov eax, dword [esi + 0x64]
inc edx
add ecx, 0x30
cmp edx, eax
jl 0x413910
mov eax, esi
call fcn.0040b210
mov ecx, eax
mov dword [esi + 0x48], eax
mov al, byte [esi + 8]
test al, al
mov dword [esi + 0x4c], edx
mov dword [esi + 0x50], ecx
mov dword [esi + 0x54], edx
jne 0x413974
cmp byte [esi + 5], 4
je 0x413974
mov eax, dword [esi + 0x38]
call fcn.00407bb0
test ah, 2
jne 0x413974
xor eax, eax
mov ecx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
jmp 0x41398f
mov edx, dword [0x4acfcc]
mov dword [ebx], edx
mov eax, dword [0x4acfd0]
mov dword [ebx + 4], eax
lea ecx, [ebx + 8]
or eax, 0xffffffff
call fcn.00408fa0
lea edi, [esi + 0x2c]
push edi
push 4
call fcn.00412de0
mov eax, dword [edi]
add esp, 8
lea ecx, [ebx + 0xc]
call fcn.00408fa0
mov eax, dword [esi + 0x1c]
lea ecx, [ebx + 0x10]
call fcn.00408fa0
mov eax, dword [esi + 0x78]
lea ecx, [ebx + 0x14]
call fcn.00408fa0
mov eax, dword [esi + 0x84]
lea ecx, [ebx + 0x18]
call fcn.00408fa0
lea ecx, [ebp - 0x1c]
mov edx, ecx
shr ecx, 2
xor eax, eax
lea edi, [ebx + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp edi, dword [esi + 0x78]
jae 0x413a18
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
push eax
mov eax, dword [esi + 0x3c]
push ecx
push ebp
push ebx
call fcn.00407af0
mov edx, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
add esp, 0x10
add edx, ebp
adc ecx, 0
add edi, ebp
test eax, eax
mov dword [esp + 0xc], eax
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ecx
je 0x4139e3
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
ret
Function at 0x414370
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, eax
mov ebp, dword [esi + 0x64]
push edi
mov edi, dword [esp + 0x1c]
cmp edi, ebp
jle 0x414473
mov al, byte [esi + 6]
test al, al
je 0x414473
lea eax, [esp + 0x14]
push eax
call fcn.00414010
add esp, 4
test eax, eax
jne 0x414475
mov ebx, dword [esi + 0x60]
lea ecx, [edi + edi*2]
shl ecx, 4
push ecx
call fcn.004127c0
mov edx, eax
add esp, 4
test edx, edx
je 0x41447d
lea eax, [ebp + ebp*2]
shl eax, 4
lea ebx, [eax + edx]
mov eax, edi
sub eax, ebp
lea ecx, [eax + eax*2]
shl ecx, 4
mov edi, ebx
mov dword [esp + 0x10], ebx
mov ebx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, ebx
and ecx, 3
rep stosb byte es:[edi], al
cmp ebp, dword [esp + 0x1c]
mov dword [esi + 0x60], edx
jge 0x414473
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
add edi, 0x18
mov dword [edi - 4], ebx
mov ecx, dword [esi + 0x3c]
cmp dword [ecx], 0
je 0x414425
mov eax, dword [esi + 0x4c]
test eax, eax
mov ecx, dword [esi + 0x48]
jl 0x414425
jg 0x41441d
test ecx, ecx
jbe 0x414425
mov dword [edi - 0x18], ecx
mov dword [edi - 0x14], eax
jmp 0x414432
mov edx, dword [esi + 0x78]
mov dword [edi - 0x18], edx
mov dword [edi - 0x14], 0
mov eax, dword [esi + 0x30]
push ebx
mov dword [edi], eax
call fcn.00413460
add esp, 4
test eax, eax
mov dword [edi - 8], eax
je 0x41447d
mov ecx, esi
call fcn.0040b4b0
test eax, eax
je 0x414460
mov ecx, dword [esi + 0xac]
lea eax, [edi + 4]
call fcn.0040c1e0
lea eax, [ebp + 1]
mov ebp, eax
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x1c]
add edi, 0x30
cmp ebp, eax
jl 0x414402
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 8
ret
Function at 0x418ba0
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x4e70e4]
sub esp, 0x310
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x31c]
push esi
je 0x418bd6
push eax
push 0x4ac3ac
lea eax, [esp + 0x14]
push eax
push 0xe6
call fcn.004189f0
add esp, 0x10
jmp 0x418c5a
call fcn.004091c0
test eax, eax
je 0x418c13
lea ecx, [esp + 0x114]
push ecx
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ebx, [esp + 0x114]
call fcn.00409270
mov esi, eax
test esi, esi
jne 0x418c3c
pop esi
pop ebp
mov eax, 7
pop ebx
add esp, 0x310
ret
lea eax, [esp + 0x114]
push eax
push 0xe6
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 0x114]
push ecx
call fcn.004093b0
mov esi, eax
add esp, 4
test esi, esi
je 0x418c04
push esi
lea edx, [esp + 0x10]
push 0x4ac3ac
push edx
push 0xe6
call fcn.004189f0
push esi
call fcn.00498e36
add esp, 0x14
mov ecx, str.etilqs_
call fcn.00408380
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.00408380
lea eax, [esi + eax + 0x11]
cmp eax, ebp
jl 0x418c86
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x310
ret
lea ecx, [esp + 0xc]
call fcn.00408380
test eax, eax
jbe 0x418c9d
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x418c9d
dec eax
jne 0x418c94
lea ecx, [esp + 0xc]
push ecx
push str._setilqs_
push edi
add ebp, 0xffffffef
push ebp
mov byte [esp + eax + 0x1c], 0
call fcn.004189f0
mov ecx, edi
call fcn.00408380
mov esi, eax
lea edx, [esi + edi]
push edx
push 0xf
call fcn.00412de0
add esp, 0x18
mov ecx, 3
movzx eax, byte [edi + esi]
xor edx, edx
mov ebx, 0x3e
div ebx
add esi, 5
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 5], al
movzx eax, byte [edi + esi - 4]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 3]
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 4], dl
xor edx, edx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 3], al
movzx eax, byte [edi + esi - 2]
xor edx, edx
div ebx
movzx eax, byte [edi + esi - 1]
mov dl, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 2], dl
xor edx, edx
div ebx
dec ecx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi - 1], al
jne 0x418cd2
mov byte [esi + edi], 0
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x310
ret
Function at 0x418ef0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x110
lea eax, [esp + 8]
push eax
push 0x104
push ecx
push edx
mov dword [esp + 0x14], 0x200
call fcn.00418e10
add esp, 0x10
test eax, eax
jne 0x418fc2
push esi
lea eax, [esp + 0xc]
call fcn.00409ab0
mov esi, eax
test esi, esi
je 0x418fa9
push edi
call fcn.004091c0
test eax, eax
mov eax, esi
je 0x418f6d
cmp word [esi], 0
je 0x418f56
cmp word [eax], 0x5c
je 0x418f51
add eax, 2
cmp word [eax], 0
jne 0x418f40
jmp 0x418f56
mov word [eax], 0
lea eax, [esp + 8]
push eax
mov ecx, eax
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x418f99
cmp byte [esi], 0
je 0x418f84
cmp byte [eax], 0x5c
je 0x418f81
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x418f72
jmp 0x418f84
mov byte [eax], 0
lea ecx, [esp + 8]
push ecx
mov edx, ecx
push edx
lea eax, [esp + 0x14]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.00498e36
add esp, 4
test edi, edi
pop edi
jne 0x418fb6
mov eax, 0x200
pop esi
add esp, 0x110
ret
mov eax, dword [esp + 8]
pop esi
add esp, 0x110
ret
mov eax, dword [esp + 4]
add esp, 0x110
ret

Function at 0x41a470
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x41a47d
xor eax, eax
pop ebx
ret
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, 0x44
call fcn.00412930
mov edi, eax
test edi, edi
jne 0x41a497
pop edi
pop esi
pop ebx
ret
mov eax, dword [ebx]
push ebp
mov ebp, dword [esp + 0x1c]
push ebp
push eax
push esi
call fcn.00415950
mov dword [edi], eax
mov ecx, dword [ebx + 8]
push ebp
push ecx
push esi
call fcn.0041a330
mov dword [edi + 8], eax
mov edx, dword [ebx + 0xc]
push ebp
push edx
push esi
call fcn.00420310
mov dword [edi + 0xc], eax
mov eax, dword [ebx + 0x10]
push ebp
push eax
push esi
call fcn.00415950
mov dword [edi + 0x10], eax
mov ecx, dword [ebx + 0x14]
push ebp
push ecx
push esi
call fcn.00420310
mov dword [edi + 0x14], eax
mov edx, dword [ebx + 0x18]
push ebp
push edx
push esi
call fcn.00415950
mov dword [edi + 0x18], eax
mov al, byte [ebx + 4]
add esp, 0x48
mov byte [edi + 4], al
mov ecx, dword [ebx + 0x1c]
push ebp
push ecx
push esi
call fcn.0041a470
mov dword [edi + 0x1c], eax
mov edx, dword [ebx + 0x28]
push ebp
push edx
push esi
call fcn.00420310
mov dword [edi + 0x28], eax
mov eax, dword [ebx + 0x2c]
push ebp
push eax
push esi
call fcn.00420310
mov dword [edi + 0x2c], eax
xor eax, eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
xor ecx, ecx
mov cx, word [ebx + 6]
add esp, 0x24
mov dword [edi + 0x24], eax
or eax, 0xffffffff
pop ebp
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], eax
and ecx, 0xfff7
mov dword [edi + 0x40], eax
mov word [edi + 6], cx
mov eax, edi
pop edi
pop esi
pop ebx
ret