joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
add eax, 0xa
mov ecx, 0x4416
mov ebx, 0x1c5e
mov esi, 0x4025
mov dword [ebp - 4], eax
mov eax, 0x634c0635
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x402f13
mov edx, dword [ebp + 8]
mov eax, 0x6214
inc byte [edx + 0x114]
mov cl, byte [edx + 0x114]
lea ebx, [ebx]
dec eax
jne 0x402f40
movzx eax, cl
add eax, 0xa
add eax, edx
mov dword [ebp - 8], eax
movzx ecx, byte [eax]
movzx eax, byte [edx + 0x11d]
add eax, ecx
mov dword [ebp + 8], eax
mov byte [edx + 0x11d], al
inc edi
mov eax, 0x2aaaaaab
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov eax, edi
sub eax, ecx
jne 0x402f7e
inc edi
cmp edi, 0x1026
jl 0x402f63
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx eax, al
mov dl, byte [edi]
add ecx, eax
mov al, byte [ecx]
mov byte [edi], al
mov byte [ecx], dl
mov cl, byte [edi]
add cl, dl
mov eax, 0x7142
dec eax
jne 0x402fa5
jmp 0x402fb0
mov eax, 0x27932b49
imul ebx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
jne 0x402fb0
movzx eax, cl
mov ecx, dword [ebp - 4]
mov cl, byte [eax + ecx]
lea esp, [esp]
mov eax, 0x8b70344b
imul esi
add edx, esi
sar edx, 7
mov esi, edx
shr esi, 0x1f
add esi, edx
jne 0x402fd0
movzx eax, cl
movzx ecx, byte [ebp + 0xc]
pop edi
pop esi
xor eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x408680
Capabilities:
Encode data using xor

Disassembly:
or cl, byte [edi + 0x65b3df4f]
xchg esi, eax
sti
xor al, 0xc2
sti
jbe 0x4086ba
aaa
pop esp
or ch, bl
insb byte es:[edi], dx
and esi, esi
or edx, esi
mov bh, 0x68
invalid
push cs
sti
adc byte [esi - 0x727e26fc], cl
ja 0x408690
add al, 0x7f
daa
test byte [edx + 0x7e4830ba], cl
sti
les eax, [ebp - 0x7935f4d6]
xor dh, byte [esi - 0x181f3740]
rol edi, 1
retf
Function at 0x403dfe
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4644a8
call fcn.0045cf28
push ecx
push ebx
push esi
mov esi, ecx
push 4
mov dword [ebp - 0x10], esi
or dword [esi], 0xffffffff
lea ebx, [esi + 4]
mov ecx, ebx
call fcn.00403f02
mov dword [ebx], 0x46b488
xor ebx, ebx
mov dword [esi + 0x28], 4
mov dword [ebp - 4], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x18], 0x46b4a0
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
mov byte [esi + 0x2c], 1
call fcn.00403f3b
lea ecx, [esi + 0x80]
mov byte [esi + 0x7c], bl
push 0xf
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x90]
mov byte [esi + 0x8c], bl
mov byte [esi + 0x8d], bl
push 0xf
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0xa0]
mov byte [esi + 0x9c], bl
mov byte [esi + 0x9d], bl
mov byte [esi + 0x9e], bl
push 0xf
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0xac]
push 0xf
mov byte [ebp - 4], 5
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
mov ecx, dword [ebp - 0xc]
lea eax, [esi + 0xb8]
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 8
mov dword [eax], 0x46b498
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x403f3b
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4644e8
call fcn.0045cf28
push ecx
push ebx
push esi
push edi
push 0xf
mov esi, ecx
pop edi
xor ebx, ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0xc]
push edi
mov dword [ebp - 4], ebx
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x18]
push edi
mov byte [ebp - 4], 1
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x24]
push edi
mov byte [ebp - 4], 2
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x34]
mov byte [esi + 0x30], bl
push edi
mov byte [ebp - 4], 3
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
lea ecx, [esi + 0x40]
push edi
mov byte [ebp - 4], 4
mov dword [ecx], ebx
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebx
call fcn.0040152b
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40854a
Capabilities:
Get common file path

Disassembly:
mov eax, 0x464cd8
call fcn.0045cf28
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x47f8d0], bl
je 0x4085b7
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x40857d
push 0x106
mov ecx, esi
call fcn.0040152b
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x40859a
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x408592
mov word [ecx + edx*2], bx
mov dword [esi + 4], edx
pop edi
cmp eax, ebx
pop esi
jbe 0x4085b3
cmp eax, 0x104
ja 0x4085b3
push 1
pop eax
jmp 0x40860a
xor eax, eax
jmp 0x40860a
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00405bcf
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
call fcn.00408503
test al, al
je 0x4085ff
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00408619
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.004014ed
push dword [ebp - 0x24]
call fcn.00406aa5
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00406aa5
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40870d
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret 8

Function at 0x4087a6
Capabilities:
Set file attributes

Disassembly:
mov eax, 0x464d00
call fcn.0045cf28
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x47f8d0], bl
push esi
jne 0x4087e5
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00408856
push dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call fcn.0040870d
push dword [ebp - 0x24]
mov bl, al
call fcn.00406aa5
pop ecx
mov al, bl
jmp 0x408846
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
je 0x4087fb
mov al, 1
jmp 0x408846
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040152b
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call fcn.0040a3ed
test al, al
je 0x40883b
push dword [ebp + 0xc]
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.00406aa5
cmp esi, ebx
pop ecx
setne al
jmp 0x408846
push dword [ebp - 0x18]
call fcn.00406aa5
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x4088a8
Capabilities:
Delete directory

Disassembly:
mov eax, 0x464d28
call fcn.0045cf28
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x47f8d0], bl
push esi
push dword [ebp + 8]
jne 0x4088e3
lea eax, [ebp - 0x24]
push eax
call fcn.00408856
push dword [eax]
call fcn.00408723
push dword [ebp - 0x24]
mov bl, al
call fcn.00406aa5
pop ecx
mov al, bl
jmp 0x408938
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
call esi
test eax, eax
je 0x4088f3
mov al, 1
jmp 0x408938
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040152b
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call fcn.0040a3ed
push dword [ebp - 0x18]
test al, al
je 0x408930
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.00406aa5
cmp esi, ebx
pop ecx
setne al
jmp 0x408938
call fcn.00406aa5
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x408948
Capabilities:
Move file

Disassembly:
mov eax, 0x464d4c
call fcn.0045cf28
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [0x47f8d0], bl
push esi
push dword [ebp + 0xc]
jne 0x4089a2
lea eax, [ebp - 0x3c]
push eax
call fcn.00408856
mov esi, dword [eax]
push dword [ebp + 8]
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
call fcn.00408856
mov eax, dword [eax]
push esi
push eax
call fcn.00408790
push dword [ebp - 0x30]
mov bl, al
call fcn.00406aa5
push dword [ebp - 0x3c]
call fcn.00406aa5
pop ecx
mov al, bl
pop ecx
jmp 0x408a31
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
call esi
test eax, eax
je 0x4089b5
mov al, 1
jmp 0x408a31
push 0xf
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040152b
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040152b
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408735
push dword [ebp - 0x18]
test al, al
je 0x408a20
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.00406aa5
push dword [ebp - 0x24]
call fcn.00406aa5
pop ecx
cmp esi, ebx
pop ecx
setne al
jmp 0x408a31
call fcn.00406aa5
push dword [ebp - 0x24]
call fcn.00406aa5
pop ecx
xor al, al
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x408a55
Capabilities:
Create directory

Disassembly:
mov eax, 0x464d60
call fcn.0045cf28
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x47f8d0], bl
push esi
jne 0x408a90
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00408856
push dword [eax]
call fcn.00408a41
push dword [ebp - 0x24]
mov bl, al
call fcn.00406aa5
pop ecx
mov al, bl
jmp 0x408afa
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
je 0x408aa4
mov al, 1
jmp 0x408afa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x408af8
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040152b
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call fcn.0040a3ed
test al, al
je 0x408aef
push ebx
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.00406aa5
cmp esi, ebx
pop ecx
setne al
jmp 0x408afa
push dword [ebp - 0x18]
call fcn.00406aa5
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x408d2f
Capabilities:
Delete file

Disassembly:
mov eax, 0x464da8
call fcn.0045cf28
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x47f8d0], bl
push esi
jne 0x408d6a
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.00408856
push dword [eax]
call fcn.00408d0e
push dword [ebp - 0x24]
mov bl, al
call fcn.00406aa5
pop ecx
mov al, bl
jmp 0x408dcf
push ebx
push dword [ebp + 8]
call fcn.004087a6
test al, al
je 0x408dcd
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
call esi
test eax, eax
je 0x408d8a
mov al, 1
jmp 0x408dcf
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040152b
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
push dword [ebp + 8]
call fcn.0040a3ed
push dword [ebp - 0x18]
test al, al
je 0x408dc7
call esi
push dword [ebp - 0x18]
mov esi, eax
call fcn.00406aa5
cmp esi, ebx
pop ecx
setne al
jmp 0x408dcf
call fcn.00406aa5
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x409297
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x47f8d0], 0
je 0x4092b7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x4092dd
push ebx
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call fcn.00408856
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
test eax, eax
setne bl
call fcn.00406aa5
pop ecx
mov al, bl
pop ebx
leave
ret 4
Function at 0x4092e1
Capabilities:
Get common file path

Disassembly:
mov eax, 0x464e74
call fcn.0045cf28
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [0x47f8d0], bl
je 0x40934d
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x409314
push 0x106
mov ecx, esi
call fcn.0040152b
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x409330
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x409328
mov word [ecx + edx*2], bx
mov dword [esi + 4], edx
pop edi
cmp eax, ebx
pop esi
jbe 0x409349
cmp eax, 0x104
ja 0x409349
push 1
pop eax
jmp 0x4093a0
xor eax, eax
jmp 0x4093a0
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00405bcf
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
call fcn.00409251
test al, al
je 0x409395
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00408619
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.004014ed
push dword [ebp - 0x24]
call fcn.00406aa5
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00406aa5
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40966d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x464f10
call fcn.0045cf28
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov eax, dword [esi]
mov dword [esi + 4], ebx
mov word [eax], bx
cmp byte [0x47f8d0], bl
je 0x4096e0
push edi
mov edi, 0x105
cmp dword [esi + 8], edi
jg 0x4096a8
push 0x106
mov ecx, esi
call fcn.0040152b
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x4096c4
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x4096bc
mov word [ecx + edx*2], bx
cmp eax, ebx
mov dword [esi + 4], edx
pop edi
jbe 0x4096dc
cmp eax, 0x104
ja 0x4096dc
push 1
pop eax
jmp 0x409732
xor eax, eax
jmp 0x409732
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.00405bcf
lea eax, [ebp - 0x18]
mov dword [ebp - 4], ebx
push eax
call fcn.00409627
test al, al
je 0x409727
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00408619
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004014ed
push dword [ebp - 0x24]
call fcn.00406aa5
pop ecx
mov bl, 1
push dword [ebp - 0x18]
call fcn.00406aa5
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x40977f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x464f5a
call fcn.0045cf28
sub esp, 0x28
push ebx
xor ebx, ebx
cmp byte [0x47f8d0], bl
push esi
mov dword [ebp - 0x10], ebx
je 0x4097e3
mov esi, dword [ebp + 0x10]
cmp dword [esi + 8], 0x104
jg 0x4097b3
push 0x105
mov ecx, esi
call fcn.0040152b
push dword [esi]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esi]
xor edx, edx
cmp word [ecx], bx
je 0x4097d7
push edi
mov edi, ecx
inc edx
inc edi
inc edi
cmp word [edi], bx
jne 0x4097ce
pop edi
mov word [ecx + edx*2], bx
mov dword [esi + 4], edx
jmp 0x40989b
push 0xf
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.00405bcf
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 4], ebx
je 0x409819
push dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push eax
call fcn.00408856
mov dword [ebp - 0x10], 1
mov esi, dword [eax]
mov byte [ebp - 4], 1
jmp 0x40981b
xor esi, esi
cmp dword [ebp + 8], ebx
je 0x409839
push dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00408856
push 2
pop ecx
or dword [ebp - 0x10], ecx
mov eax, dword [eax]
mov dword [ebp - 4], ecx
jmp 0x40983b
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
push esi
push eax
call fcn.00409742
test byte [ebp - 0x10], 2
mov esi, eax
je 0x40985b
push dword [ebp - 0x28]
and dword [ebp - 0x10], 0xfffffffd
call fcn.00406aa5
pop ecx
test byte [ebp - 0x10], 1
mov dword [ebp - 4], ebx
je 0x40986d
push dword [ebp - 0x34]
call fcn.00406aa5
pop ecx
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00408619
mov ecx, dword [ebp + 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.004014ed
push dword [ebp - 0x34]
call fcn.00406aa5
push dword [ebp - 0x1c]
call fcn.00406aa5
pop ecx
mov eax, esi
pop ecx
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0xc
Function at 0x40a03e
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x465050
call fcn.0045cf28
sub esp, 0x18
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 1
mov eax, dword [esi]
push 0
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x18]
push 0
mov dword [edi + 0x18], eax
push dword [esi + 0x1c]
call fcn.0045d0f0
mov ecx, dword [esi + 0x20]
xor ebx, ebx
add eax, ecx
lea ecx, [ebp - 0x18]
mov dword [edi + 0x20], eax
lea eax, [esi + 0x2c]
adc edx, ebx
push eax
mov dword [edi + 0x24], edx
call fcn.0040702e
and dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
neg eax
sbb eax, eax
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0040a0f7
push eax
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 1
call fcn.004014ed
push dword [ebp - 0x24]
call fcn.00406aa5
push dword [ebp - 0x18]
call fcn.00406aa5
mov eax, dword [esi + 0x24]
pop ecx
pop ecx
mov dword [edi + 0x28], eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40a26d
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4650a4
call fcn.0045cf28
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [eax + 4], ebx
mov eax, dword [eax]
push esi
push edi
mov word [eax], bx
mov si, word [ecx]
xor edi, edi
cmp si, bx
je 0x40a2a1
mov eax, ecx
inc edi
inc eax
inc eax
cmp word [eax], bx
jne 0x40a299
cmp edi, 1
jl 0x40a3da
cmp si, 0x5c
je 0x40a3da
cmp si, 0x2e
jne 0x40a2d2
cmp edi, 1
je 0x40a3da
cmp edi, 2
jne 0x40a2d2
cmp word [ecx + 2], si
je 0x40a3da
push 0xf
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040152b
cmp edi, 3
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ebx
jle 0x40a316
cmp word [edi + 2], 0x3a
jne 0x40a316
cmp word [edi + 4], 0x5c
jne 0x40a316
cmp si, 0x61
jb 0x40a30a
cmp si, 0x7a
jbe 0x40a375
cmp si, 0x41
jb 0x40a316
cmp si, 0x5a
jbe 0x40a375
mov esi, 0x105
cmp dword [ebp - 0x10], esi
jg 0x40a32d
push 0x106
lea ecx, [ebp - 0x18]
call fcn.0040152b
push dword [ebp - 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, dword [ebp - 0x18]
xor ecx, ecx
cmp word [esi], bx
je 0x40a34b
mov edx, esi
inc ecx
inc edx
inc edx
cmp word [edx], bx
jne 0x40a343
lea edx, [ecx + ecx]
cmp eax, ebx
mov word [edx + esi], bx
mov dword [ebp - 0x14], ecx
je 0x40a3cd
cmp eax, 0x104
ja 0x40a3cd
mov eax, dword [ebp - 0x18]
cmp word [edx + eax - 2], 0x5c
je 0x40a375
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.00404630
push 0x47a324
lea ecx, [ebp - 0x3c]
call fcn.004028d7
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
push ecx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00409de7
push edi
push eax
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 2
push eax
call fcn.0040a8ae
mov ecx, dword [ebp + 0xc]
push eax
mov byte [ebp - 4], 3
call fcn.004014ed
push dword [ebp - 0x24]
call fcn.00406aa5
push dword [ebp - 0x30]
call fcn.00406aa5
push dword [ebp - 0x3c]
call fcn.00406aa5
add esp, 0xc
mov bl, 1
push dword [ebp - 0x18]
call fcn.00406aa5
pop ecx
mov al, bl
jmp 0x40a3dc
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x40a56f
Capabilities:
Get file size

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