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

Disassembly:
mov eax, 0x41ccfd
call fcn.0041c000
sub esp, 0x424
mov eax, dword [0x426e88]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x430], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp esi, ebx
mov edi, ecx
mov dword [ebp - 0x42c], edi
mov dword [ebp - 0x428], eax
jne 0x4067f7
mov eax, 0x80004003
jmp 0x4069a7
push ebx
lea ecx, [ebp - 0x41c]
call fcn.00401710
mov eax, dword [edi + 0x18]
push dword [eax]
lea ecx, [ebp - 0x41c]
mov dword [ebp - 4], ebx
call fcn.0040141b
push esi
lea ecx, [ebp - 0x41c]
call fcn.0040141b
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x424], eax
je 0x40691b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
inc esi
inc esi
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x4068eb
push ebx
lea eax, [ebp - 0x420]
push eax
push esi
push edi
push dword [ebp - 0x424]
mov dword [ebp - 0x420], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4068b9
cmp dword [ebp - 0x420], ebx
jbe 0x4068b9
push dword [ebp - 0x428]
mov ecx, dword [ebp - 0x42c]
push dword [ebp - 0x430]
push dword [ebp - 0x420]
push edi
call fcn.00406428
mov ebx, eax
jmp 0x4068d9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4068c9
call esi
jmp 0x4068b5
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x40690d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x4068fd
call esi
mov ebx, eax
jmp 0x40690d
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406962
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x40692d
call esi
mov ebx, eax
jmp 0x40693d
call esi
mov ebx, eax
and ebx, 0xffff
or ebx, 0x80070000
sub esp, 0x40c
mov edi, esp
mov ecx, 0x103
lea esi, [ebp - 0x41c]
push str.RunSQLFile:_File_not_found____s_n
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_wprintf
add esp, 0x410
test ebx, ebx
jl 0x40698b
sub esp, 0x40c
mov edi, esp
mov ecx, 0x103
lea esi, [ebp - 0x41c]
push str.RunSQLFile_succeeded:__s_n
rep movsd dword es:[edi], dword [esi]
call sub.msvcrt.dll_wprintf
add esp, 0x410
lea eax, [ebp - 0x418]
cmp dword [ebp - 0x41c], eax
je 0x4069a5
push dword [ebp - 0x41c]
call sub.msvcrt.dll_free
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0041c4f6
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406f90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x74]
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov esi, reloc.OLEAUT32.dll_VariantClear
mov dword [esp + 0x24], 0
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4070b8
push ebp
push 0x801
call dword [sym.imp.msvcrt.dll_malloc]
lea edx, [esp + 0x14]
push edx
mov esi, eax
call fcn.0040c670
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
push ebx
push 0
lea eax, [esp + 0x14]
push eax
push 0x800
push esi
push edi
call ebp
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x407023
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0040df30
add esp, 0xc
test ebx, ebx
jne 0x406ff6
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
call fcn.0040e000
mov esi, eax
add esp, 4
test esi, esi
je 0x4070c0
mov edi, dword [esp + 0x80]
test edi, edi
je 0x4070c0
mov ebx, dword [esp + 0x74]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0x84]
push 1
push eax
push ecx
push edi
push esi
push 2
call fcn.004104b0
mov ebp, dword [esp + 0x90]
add esp, 4
push eax
push ebp
call fcn.0040f6a0
mov ecx, dword [esp + 0xa0]
mov edx, dword [ecx]
add esp, 0x1c
cmp edx, 0x2c
jae 0x4070ac
mov edx, dword [ebx + 4]
push 1
push edx
push ecx
push edi
push esi
push 2
call fcn.004104b0
add esp, 4
push eax
push ebp
call fcn.0040f6a0
add esp, 0x1c
test eax, eax
jne 0x4070c0
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x60
ret
pop edi
mov eax, esi
pop esi
add esp, 0x60
ret
pop ebx
pop ebp
pop edi
mov eax, reloc.OLEAUT32.dll_VariantClear
pop esi
add esp, 0x60
ret
Function at 0x4070d0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x60
mov ecx, dword [esp + 0x64]
mov eax, dword [esp + 0x6c]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push ecx
mov esi, reloc.OLEAUT32.dll_VariantClear
mov dword [esp + 0x24], 0
mov dword [eax], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4071c4
push ebp
push edi
push 0x801
call dword [sym.imp.msvcrt.dll_malloc]
lea edx, [esp + 0x18]
push edx
mov esi, eax
call fcn.0040c670
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
push 0
lea eax, [esp + 0x14]
push eax
push 0x800
push esi
push ebx
call ebp
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x407163
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0040df30
add esp, 0xc
test edi, edi
jne 0x407136
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x14]
push edx
call fcn.0040e000
add esp, 4
test eax, eax
pop edi
pop ebp
je 0x4071b9
mov edx, dword [eax]
mov ecx, dword [esp + 0x70]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax + 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [eax + 0x10]
mov dword [ecx + 0x10], eax
mov ecx, dword [esp + 0x74]
pop esi
mov dword [ecx], 0x14
xor eax, eax
pop ebx
add esp, 0x60
ret
pop esi
mov eax, reloc.OLEAUT32.dll_VariantClear
pop ebx
add esp, 0x60
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x60
ret

Function at 0x407260
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x60
mov eax, dword [esp + 0x6c]
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
mov esi, reloc.OLEAUT32.dll_VariantClear
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407355
push ebp
push edi
push 0x801
call dword [sym.imp.msvcrt.dll_malloc]
lea ecx, [esp + 0x18]
push ecx
mov esi, eax
call fcn.0040c670
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 8
lea esp, [esp]
push 0
lea edx, [esp + 0x14]
push edx
push 0x800
push esi
push ebx
call ebp
mov edi, eax
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x4072ed
push eax
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0040df30
add esp, 0xc
test edi, edi
jne 0x4072c0
push esi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
push ecx
call fcn.0040e000
add esp, 4
test eax, eax
pop edi
pop ebp
je 0x40734a
mov esi, dword [esp + 0x78]
test esi, esi
je 0x40734a
push 1
push eax
push 2
call fcn.004104b0
mov edx, dword [esp + 0x88]
add esp, 4
push eax
mov eax, dword [esp + 0x7c]
push edx
push esi
push eax
call fcn.0040e940
add esp, 0x18
cmp eax, 1
jne 0x40734a
pop esi
xor eax, eax
pop ebx
add esp, 0x60
ret
pop esi
mov eax, reloc.OLEAUT32.dll_VariantClear
pop ebx
add esp, 0x60
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x60
ret
Function at 0x4095d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x15], eax
push esi
mov esi, dword [esp + 0x28]
test esi, esi
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
push edi
mov ebp, reloc.OLEAUT32.dll_VariantClear
mov byte [esp + 0x1c], 0
mov byte [esp + 0x27], al
je 0x4097a7
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4097a7
mov ebx, dword [esp + 0x38]
test ebx, ebx
je 0x4097a7
mov edx, dword [esp + 0x30]
mov ecx, edx
and ecx, 7
jbe 0x40962c
mov eax, 8
sub eax, ecx
jmp 0x40962e
xor eax, eax
lea ecx, [eax + edx + 0xc]
cmp dword [ebx], ecx
jb 0x4097a7
mov ecx, dword [esi]
mov eax, 0x41fbd4
cmp ecx, dword [eax]
mov dword [esp + 0x10], 1
jne 0x40966c
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov dword [ebx], edx
mov eax, 1
pop ebx
add esp, 0x18
ret
mov ecx, dword [0x426400]
mov eax, 0x4f5045
mov ebx, edi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, 0xfffffff4
sub eax, edi
mov dword [ebx + 8], edx
mov dword [esp + 0x14], 0xc
lea ebx, [edi + 0xc]
mov dword [esp + 0x18], eax
jmp 0x4096a0
add eax, ebx
cmp eax, edx
jae 0x40979d
mov ecx, edx
sub ecx, eax
cmp ecx, 8
jb 0x4096c1
mov ecx, dword [eax + esi]
mov dword [ebx], ecx
mov edx, dword [eax + esi + 4]
mov dword [ebx + 4], edx
jmp 0x4096da
add esi, eax
mov eax, ecx
xor edx, edx
mov edi, ebx
mov dword [edi], edx
shr ecx, 2
mov dword [edi + 4], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, 0x54
xor eax, eax
mov edi, edi
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
inc eax
cmp eax, 8
mov cl, dl
jb 0x4096e0
mov eax, dword [0x426400]
sub eax, 0
je 0x40975b
dec eax
je 0x40974c
dec eax
jne 0x409798
mov eax, dword [0x42736c]
test eax, eax
jne 0x409731
push 0x4271d0
push 0x41faa8
call fcn.00406b70
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x40976d
mov dword [0x42736c], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40976d
push ebx
push ebx
push 0x4271d0
call fcn.0040c250
add esp, 0xc
xor ebp, ebp
jmp 0x409771
push 8
push ebx
push 0x41faa8
call fcn.00407b70
jmp 0x409768
push 8
push ebx
push 0x41faa8
call fcn.00408be0
add esp, 0xc
mov ebp, eax
test ebp, ebp
jl 0x40979d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 8
add ebx, 8
test eax, eax
mov dword [esp + 0x14], edx
je 0x40979d
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
jmp 0x4096a0
mov ebp, reloc.OLEAUT32.dll_VariantClear
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x4097c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, reloc.OLEAUT32.dll_VariantClear
je 0x4097f8
test edi, edi
je 0x4097f8
mov eax, dword [esp + 0x34]
test eax, eax
je 0x4097f8
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
add ecx, 0xfffffff4
cmp edx, ecx
jb 0x4097f8
mov ebp, 1
jmp 0x4097fa
xor ebp, ebp
test ebp, ebp
mov edx, ebx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov edx, dword [edx + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edx
je 0x409973
lea eax, [esp + 0x18]
push 0x41fbd4
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
test eax, eax
je 0x409860
mov eax, dword [esp + 0x2c]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0x14
ret
test ebp, ebp
je 0x409973
mov eax, 0xc
sub eax, edi
mov dword [esp + 0x14], eax
jmp 0x409880
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
lea ecx, [ecx]
mov ecx, dword [esp + 0x2c]
add eax, edi
cmp eax, ecx
jae 0x40994d
mov edx, dword [eax + ebx]
mov dword [edi], edx
mov eax, dword [eax + ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
sub eax, 0
je 0x409901
dec eax
je 0x4098f2
dec eax
je 0x4098b0
mov esi, reloc.OLEAUT32.dll_VariantClear
jmp 0x409913
mov eax, dword [0x42750c]
test eax, eax
jne 0x4098db
push 0x427370
push 0x41faa8
call fcn.00406b70
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x409913
mov dword [0x42750c], 1
test ebp, ebp
je 0x409913
push edi
push edi
push 0x427370
call fcn.0040c2c0
add esp, 0xc
xor esi, esi
jmp 0x409913
push 8
push edi
push 0x41faa8
call fcn.00407c10
jmp 0x40990e
push 8
push edi
push 0x41faa8
call fcn.00408c70
add esp, 0xc
mov esi, eax
mov dl, 0x54
xor eax, eax
mov cl, byte [edi + eax]
mov bl, cl
xor bl, dl
mov byte [edi + eax], bl
inc eax
cmp eax, 8
mov dl, cl
jb 0x409917
test esi, esi
jl 0x40994d
mov edx, dword [esp + 0x10]
add edx, 8
add edi, 8
test ebp, ebp
mov dword [esp + 0x10], edx
jne 0x409875
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
test ebp, ebp
je 0x409973
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
cmp eax, ecx
jbe 0x40996d
mov edx, dword [esp + 0x34]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0x14
ret
mov ecx, dword [esp + 0x34]
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x409980
Capabilities:
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x10
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp esi, ebp
setne al
mov dword [esp + 8], ebp
mov dword [esp + 0xc], reloc.OLEAUT32.dll_VariantClear
cmp eax, ebp
je 0x409af8
push ebx
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
push 0x80
push 3
push ebp
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov esi, eax
cmp esi, ebp
je 0x409ac4
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edi, eax
cmp ecx, edi
sbb esi, esi
neg esi
je 0x409ac4
lea edx, [edi + 1]
push edx
call dword [sym.imp.msvcrt.dll_malloc]
mov ebp, eax
xor eax, eax
add esp, 4
test ebp, ebp
setne al
mov esi, eax
test esi, esi
je 0x409ac4
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409a31
cmp dword [esp + 0x18], edi
je 0x409a38
xor esi, esi
jmp 0x409ac4
lea esi, [edi + 0x14]
push esi
call dword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
add esp, 4
test eax, eax
setne dl
mov dword [esp + 0x24], esi
mov dword [esp + 0x10], eax
mov esi, edx
test esi, esi
je 0x409ac4
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push ecx
push edi
push ebp
push 0
call fcn.0040a520
xor edx, edx
add esp, 0x14
test eax, eax
setge dl
mov dword [esp + 0x14], eax
mov esi, edx
test esi, esi
je 0x409ac4
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409abb
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jne 0x409abb
mov esi, 1
jmp 0x409abd
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp ebx, 0xffffffff
je 0x409ad0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
mov edi, dword [sym.imp.msvcrt.dll_free]
je 0x409ae0
push ebp
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409aee
push eax
call edi
add esp, 4
test esi, esi
mov eax, dword [esp + 0x14]
pop edi
pop ebx
jne 0x409afd
mov eax, reloc.OLEAUT32.dll_VariantClear
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x409b10
Capabilities:
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x10
push ebp
xor ebp, ebp
push esi
mov esi, dword [esp + 0x1c]
xor eax, eax
cmp esi, ebp
setne al
mov dword [esp + 8], ebp
mov dword [esp + 0xc], reloc.OLEAUT32.dll_VariantClear
cmp eax, ebp
je 0x409c85
push ebx
push edi
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebp
push 0x80
push 3
push ebp
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov esi, eax
cmp esi, ebp
je 0x409c51
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov edi, eax
cmp ecx, edi
sbb esi, esi
neg esi
je 0x409c51
lea edx, [edi + 1]
push edx
call dword [sym.imp.msvcrt.dll_malloc]
mov ebp, eax
xor eax, eax
add esp, 4
test ebp, ebp
setne al
mov esi, eax
test esi, esi
je 0x409c51
push 0
lea ecx, [esp + 0x1c]
push ecx
push edi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x409bc1
cmp dword [esp + 0x18], edi
je 0x409bc8
xor esi, esi
jmp 0x409c51
push edi
call dword [sym.imp.msvcrt.dll_malloc]
xor edx, edx
add esp, 4
test eax, eax
setne dl
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], edi
mov esi, edx
test esi, esi
je 0x409c51
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x24]
push eax
push ecx
push edi
push ebp
push 1
call fcn.0040a520
xor edx, edx
add esp, 0x14
test eax, eax
setge dl
mov dword [esp + 0x14], eax
mov esi, edx
test esi, esi
je 0x409c51
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x20]
push eax
push ecx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x409c48
mov eax, dword [esp + 0x1c]
cmp eax, dword [esp + 0x24]
jne 0x409c48
mov esi, 1
jmp 0x409c4a
xor esi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp ebx, 0xffffffff
je 0x409c5d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
mov edi, dword [sym.imp.msvcrt.dll_free]
je 0x409c6d
push ebp
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x409c7b
push eax
call edi
add esp, 4
test esi, esi
mov eax, dword [esp + 0x14]
pop edi
pop ebx
jne 0x409c8a
mov eax, reloc.OLEAUT32.dll_VariantClear
pop esi
pop ebp
add esp, 0x10
ret
Function at 0x40a160
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
xor eax, eax
push ebx
push ebp
mov dword [esp + 0x15], eax
push esi
mov esi, dword [esp + 0x28]
test esi, esi
mov dword [esp + 0x1d], eax
mov word [esp + 0x21], ax
push edi
mov ebp, reloc.OLEAUT32.dll_VariantClear
mov byte [esp + 0x1c], 0
mov byte [esp + 0x27], al
je 0x40a337
mov edi, dword [esp + 0x38]
test edi, edi
je 0x40a337
mov ebx, dword [esp + 0x3c]
test ebx, ebx
je 0x40a337
mov edx, dword [esp + 0x30]
mov ecx, edx
and ecx, 7
jbe 0x40a1bc
mov eax, 8
sub eax, ecx
jmp 0x40a1be
xor eax, eax
lea ecx, [eax + edx + 0xc]
cmp dword [ebx], ecx
jb 0x40a337
mov ecx, dword [esi]
mov eax, 0x41fbd4
cmp ecx, dword [eax]
mov dword [esp + 0x10], 1
jne 0x40a1fc
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov dword [ebx], edx
mov eax, 1
pop ebx
add esp, 0x18
ret
mov ecx, dword [0x426400]
mov eax, 0x4f5045
mov ebx, edi
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov eax, 0xfffffff4
sub eax, edi
mov dword [ebx + 8], edx
mov dword [esp + 0x14], 0xc
lea ebx, [edi + 0xc]
mov dword [esp + 0x18], eax
jmp 0x40a230
add eax, ebx
cmp eax, edx
jae 0x40a32d
mov ecx, edx
sub ecx, eax
cmp ecx, 8
jb 0x40a251
mov ecx, dword [eax + esi]
mov dword [ebx], ecx
mov edx, dword [eax + esi + 4]
mov dword [ebx + 4], edx
jmp 0x40a26a
add esi, eax
mov eax, ecx
xor edx, edx
mov edi, ebx
mov dword [edi], edx
shr ecx, 2
mov dword [edi + 4], edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, 0x54
xor eax, eax
mov edi, edi
mov dl, byte [ebx + eax]
xor dl, cl
mov byte [ebx + eax], dl
inc eax
cmp eax, 8
mov cl, dl
jb 0x40a270
mov eax, dword [0x426400]
sub eax, 0
je 0x40a2eb
dec eax
je 0x40a2dc
dec eax
jne 0x40a328
mov eax, dword [0x4276ac]
test eax, eax
jne 0x40a2c1
mov ecx, dword [esp + 0x34]
push 0x427510
push ecx
call fcn.00406b70
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x40a2fd
mov dword [0x4276ac], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a2fd
push ebx
push ebx
push 0x427510
call fcn.0040c250
add esp, 0xc
xor ebp, ebp
jmp 0x40a301
mov edx, dword [esp + 0x34]
push 8
push ebx
push edx
call fcn.00407b70
jmp 0x40a2f8
mov eax, dword [esp + 0x34]
push 8
push ebx
push eax
call fcn.00408be0
add esp, 0xc
mov ebp, eax
test ebp, ebp
jl 0x40a32d
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 8
add ebx, 8
test eax, eax
mov dword [esp + 0x14], edx
je 0x40a32d
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
jmp 0x40a230
mov ebp, reloc.OLEAUT32.dll_VariantClear
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x14]
mov dword [ecx], edx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x40a350
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
push ebp
push esi
xor ecx, ecx
cmp ebx, ecx
push edi
mov edi, dword [esp + 0x38]
mov esi, reloc.OLEAUT32.dll_VariantClear
je 0x40a38e
cmp edi, ecx
je 0x40a38e
mov eax, dword [esp + 0x3c]
cmp eax, ecx
je 0x40a38e
mov edx, dword [esp + 0x30]
mov ebp, dword [eax]
add edx, 0xfffffff4
cmp ebp, edx
jb 0x40a38e
mov ebp, 1
mov dword [esp + 0x10], ebp
jmp 0x40a394
mov dword [esp + 0x10], ecx
mov ebp, ecx
cmp ebp, ecx
mov eax, ebx
mov edx, dword [eax]
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], eax
je 0x40a3f2
lea ecx, [esp + 0x1c]
push 0x41fbd4
push ecx
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
test eax, eax
je 0x40a3f2
mov eax, dword [esp + 0x30]
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0x18
ret
test ebp, ebp
je 0x40a508
mov ebp, dword [esp + 0x34]
mov eax, 0xc
sub eax, edi
mov dword [esp + 0x18], eax
jmp 0x40a413
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
add eax, edi
cmp eax, ecx
jae 0x40a4de
mov edx, dword [eax + ebx]
mov dword [edi], edx
mov eax, dword [eax + ebx + 4]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x20]
sub eax, 0
je 0x40a492
dec eax
je 0x40a487
dec eax
je 0x40a443
mov esi, reloc.OLEAUT32.dll_VariantClear
jmp 0x40a4a0
mov eax, dword [0x42784c]
test eax, eax
jne 0x40a46c
push 0x4276b0
push ebp
call fcn.00406b70
add esp, 8
test eax, eax
mov dword [esp + 0x10], eax
je 0x40a4a0
mov dword [0x42784c], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a4a0
push edi
push edi
push 0x4276b0
call fcn.0040c2c0
add esp, 0xc
xor esi, esi
jmp 0x40a4a0
push 8
push edi
push ebp
call fcn.00407c10
jmp 0x40a49b
push 8
push edi
push ebp
call fcn.00408c70
add esp, 0xc
mov esi, eax
mov dl, 0x54
xor eax, eax
mov cl, byte [edi + eax]
mov bl, cl
xor bl, dl
mov byte [edi + eax], bl
inc eax
cmp eax, 8
mov dl, cl
jb 0x40a4a4
test esi, esi
jl 0x40a4de
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add edx, 8
add edi, 8
test eax, eax
mov dword [esp + 0x14], edx
jne 0x40a40b
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40a508
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
cmp eax, ecx
jbe 0x40a502
mov edx, dword [esp + 0x3c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword [edx], ecx
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x3c]
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x411c00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp fcn.004104e0