joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401294
Capabilities:
Get common file path

Disassembly:
mov eax, 0x406a43
call fcn.004067f0
sub esp, 0x6c
and dword [ebp - 0x10], 0
push ebx
push 1
pop ebx
mov dword [ebp - 4], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x64
lea eax, [ebp - 0x78]
push 0
push eax
call sub.MSVCRT.dll_memset
nop
nop
nop
nop
lea eax, [ebp - 0x14]
push eax
call fcn.00401360
add esp, 0x10
mov byte [ebp - 4], 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x78]
lea ecx, [ebp + 0xc]
push eax
push 0
call fcn.004031b5
push eax
lea ecx, [ebp - 0x14]
call fcn.004031b5
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x78]
push eax
call fcn.0040366d
mov dword [ebp - 0x10], ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call fcn.0040355b
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040355b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x401360
Capabilities:
Get common file path

Disassembly:
mov eax, 0x406a67
call fcn.004067f0
sub esp, 0x404
and dword [ebp - 0x10], 0
push esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov esi, 0x400
lea eax, [ebp - 0x410]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x410]
push eax
call fcn.0040366d
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x401404
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x406a84
call fcn.004067f0
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 1
pop edi
mov dword [ebp - 4], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp + 8]
push eax
mov esi, 0x40a50c
push esi
call fcn.00404dfd
pop ecx
pop ecx
test al, al
je 0x401488
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00404dfd
pop ecx
pop ecx
test al, al
je 0x4014bf
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp + 8]
push eax
push esi
call fcn.00404e12
pop ecx
pop ecx
test al, al
je 0x4015cc
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.00404e12
pop ecx
pop ecx
test al, al
je 0x4015cc
xor ebx, ebx
mov dword [ebp - 0x18], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [ebp - 4], 2
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x40154e
mov dword [ebp - 0x28], ebx
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.0040355b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040355b
xor eax, eax
jmp 0x401612
mov dword [ebp - 0x20], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [ebp + 0xc]
call fcn.0040318b
mov dword [ebp - 0x24], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [ebp + 0xc]
call fcn.004031b5
mov dword [ebp - 0x1c], eax
nop
nop
nop
push 0
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x18]
call fcn.0040252e
pop ecx
nop
nop
nop
nop
nop
nop
nop
jmp 0x4015c9
mov dword [ebp - 4], edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0040355b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0040355b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401805
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x406acb
call fcn.004067f0
sub esp, 0x14
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
push 1
pop ebx
mov dword [ebp - 4], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x1c], esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x20], 0x4019dd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push dword [ebp + 0xc]
call dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp - 0x1c]
cmp edi, esi
jne 0x4018b8
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 8]
push 0x40a50c
call fcn.0040366d
mov dword [ebp - 0x10], ebx
jmp 0x4019bf
mov dword [ebp - 0x1c], esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [ebp + 0xc]
call fcn.004031b5
mov dword [ebp - 0x20], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 0x8000080
push 3
push 0
push 7
push 0x80000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x401932
mov ecx, dword [ebp + 8]
push 0x40a50c
call fcn.0040366d
mov dword [ebp - 0x10], ebx
jmp 0x4019bf
mov dword [ebp - 0x18], esi
nop
nop
nop
nop
nop
nop
lea ecx, [ebp - 0x14]
call fcn.00403169
mov byte [ebp - 4], 2
nop
nop
lea eax, [ebp - 0x18]
push esi
push eax
push edi
push edi
lea ecx, [ebp - 0x14]
call fcn.00404b89
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edi
lea ecx, [ebp - 0x14]
call fcn.00404b3a
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push dword [ebp - 0x1c]
call fcn.0040252e
pop ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004035a3
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], bl
call fcn.0040355b
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040355b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x4027f2
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
and dword [ebp - 4], 0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x10], str.closesocket
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0xc], str.WS2_32.dll
nop
nop
mov dword [ebp - 8], fcn.00402f56
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [0x40a528], 0
jne 0x4028af
pushal
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [ebp - 8]
add esp, 8
mov dword [0x40a528], eax
popal
cmp dword [0x40a528], 0
je 0x4028c4
push dword [ebp + 8]
call dword [0x40a528]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4029a5
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 4], fcn.00402f56
mov dword [ebp - 8], str.ws2_32.dll
mov dword [ebp - 0xc], str.connect
cmp dword [0x40a554], 0
jne 0x4029fd
pushal
push dword [ebp - 0xc]
push dword [ebp - 8]
mov eax, dword [ebp - 4]
call eax
add esp, 8
mov dword [0x40a554], eax
popal
cmp dword [0x40a554], 0
je 0x402a17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x40a554]
jmp 0x402a1a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40566a
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x406efb
call fcn.004067f0
sub esp, 0x10
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
mov dword [ebp - 4], 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [ebp + 0xc]
call fcn.004031b5
mov esi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, dword [esi]
mov dword [ebp - 0x18], ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [ebp + 0xc]
call fcn.0040318b
push 0xfffffffffffffffc
mov edi, eax
pop eax
sub eax, ebx
add edi, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add esi, 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov dword [ebp - 0x1c], esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add esi, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
xor ecx, ecx
test edi, edi
jle 0x40577e
mov eax, ecx
cdq
idiv dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov al, byte [edx + eax]
xor byte [ecx + esi], al
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc ecx
cmp ecx, edi
jl 0x405761
lea ecx, [ebp - 0x14]
call fcn.00403169
mov byte [ebp - 4], 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push edi
push esi
push edi
lea ecx, [ebp - 0x14]
call fcn.00404b89
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
call fcn.004035a3
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040355b
and byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call fcn.0040355b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x405df4
Capabilities:
Move file

Disassembly:
mov eax, 0x407087
call fcn.004067f0
sub esp, 0x14
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x10], ebx
nop
nop
nop
nop
nop
nop
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.00401084
pop ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], ebx
push eax
call fcn.00401805
pop ecx
pop ecx
mov dword [ebp - 4], 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 1
lea eax, [ebp - 0x1c]
pop edi
push edi
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004035a3
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
call fcn.004065d8
mov byte [ebp - 4], 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea eax, [ebp - 0x14]
mov esi, 0x40a50c
push eax
push esi
call fcn.00404dfd
add esp, 0x14
test al, al
je 0x405ea3
mov ecx, dword [ebp + 8]
push esi
call fcn.0040366d
mov dword [ebp - 0x10], edi
jmp 0x405f64
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
call fcn.004035a3
mov byte [ebp - 4], 4
call section..text
cmp eax, ebx
pop ecx
jne 0x405ed1
mov ecx, dword [ebp + 8]
push esi
call fcn.0040366d
mov dword [ebp - 0x10], edi
jmp 0x405f64
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push eax
call fcn.004035a3
mov byte [ebp - 4], 6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x40a470
push 0x40a46c
lea ecx, [ebp - 0x18]
call fcn.0040387b
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ecx, [ebp - 0x18]
call fcn.004031b5
push eax
lea ecx, [ebp - 0x14]
call fcn.004031b5
push eax
call dword [sym.imp.MSVCRT.dll_rename]
pop ecx
test eax, eax
pop ecx
jne 0x405f49
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
call fcn.004035a3
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], edi
mov byte [ebp - 4], 4
call fcn.0040355b
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.0040355b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], bl
call fcn.0040355b
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x401250
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.00401060
push ebx
call fcn.00401130
mov edi, eax
add esp, 8
test edi, edi
js 0x401311
push 0x44542c
push dword [ebp + 0xc]
call fcn.00426c43
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
test esi, esi
je 0x401311
push ebx
call fcn.004016f0
push 0x8000
mov dword [ebp - 8], eax
call fcn.00428d38
add esp, 8
mov ebx, eax
test edi, edi
je 0x4012de
nop
push dword [ebp - 8]
mov esi, 0x8000
cmp edi, esi
cmovl esi, edi
push esi
push ebx
call fcn.00401320
push dword [ebp - 4]
push esi
push 1
push ebx
call fcn.004279c6
add esp, 0x1c
cmp eax, esi
jl 0x4012db
sub edi, esi
jne 0x4012b0
mov esi, dword [ebp - 4]
cmp dword [0x457b4c], 0
jne 0x4012f5
push dword [0x457d08]
call fcn.004269c4
add esp, 4
push esi
call fcn.004269c4
push ebx
call fcn.00428d33
add esp, 8
test edi, edi
jne 0x401311
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401320
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x457b4c], 0
push esi
je 0x40136e
mov esi, dword [ebp + 0xc]
mov edx, dword [0x457004]
mov ecx, dword [0x457008]
lea eax, [edx + esi]
cmp eax, ecx
jl 0x401348
mov esi, ecx
sub esi, edx
test esi, esi
jle 0x401367
mov ecx, dword [section..data]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.00424030
add esp, 0xc
add dword [0x457004], esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push esi
call fcn.00426e26
add esp, 0x10
mov edi, eax
cmp dword [0x457ce8], 0
je 0x4013db
test edi, edi
jle 0x4013db
mov ecx, dword [0x457d00]
mov edx, edi
mov eax, dword [0x457cf0]
push ebx
mov ebx, dword [0x457cec]
add ebx, dword [0x457cfc]
add eax, ecx
mov cl, byte [0x457d04]
movzx eax, al
mov dword [ebp - 4], eax
nop word [eax + eax]
mov al, byte [esi]
lea esi, [esi + 1]
xor al, bl
sub al, byte [ebp - 4]
add cl, al
mov byte [esi - 1], cl
sub edx, 1
jne 0x4013c0
mov byte [0x457d04], cl
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401760
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00401060
mov ebx, dword [ebp + 0x14]
xor esi, esi
add esp, 4
test ebx, ebx
cmovns esi, ebx
cmp dword [0x457b4c], 0
je 0x4017c5
push edi
call fcn.004016f0
push 0
push dword [ebp + 0x10]
mov dword [0x457004], esi
push dword [ebp + 0xc]
call fcn.00401320
add esp, 0x10
mov esi, eax
cmp dword [0x457b4c], 0
jne 0x401883
push dword [0x457d08]
call fcn.004269c4
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
cmp dword [0x457b48], 0
je 0x40183e
push edi
call fcn.004019d0
add esp, 4
test eax, eax
jne 0x40183e
push dword [0x457d08]
mov ebx, dword [0x457ce0]
call fcn.004269c4
push 0x445420
push 0x457bd8
call fcn.00426c43
mov edi, eax
add esp, 0xc
test edi, edi
je 0x401852
mov ecx, dword [0x457ce4]
add ecx, esi
add ecx, dword [0x457cdc]
push 0
push ecx
push edi
call fcn.00427211
cmp dword [ebp + 0x10], ebx
push edi
cmovl ebx, dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
call fcn.00401320
push edi
mov esi, eax
call fcn.004269c4
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x445420
push edi
call fcn.00426c43
mov edi, eax
add esp, 8
test edi, edi
jne 0x40185a
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
test ebx, ebx
js 0x40186a
push 0
push esi
push edi
call fcn.00427211
add esp, 0xc
push edi
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00426e26
push edi
mov esi, eax
call fcn.004269c4
add esp, 0x14
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x401890
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00401130
mov esi, eax
add esp, 4
test esi, esi
jns 0x4018b0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 1]
push ebx
push eax
call fcn.00422cc0
push edi
mov ebx, eax
call fcn.00401060
add esp, 8
cmp dword [0x457b4c], 0
je 0x401912
push edi
call fcn.004016f0
push 0
push esi
push ebx
mov dword [0x457004], 0
call fcn.00401320
add esp, 0x10
cmp dword [0x457b4c], 0
jne 0x4019bf
push dword [0x457d08]
call fcn.004269c4
add esp, 4
mov byte [ebx + esi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x457b48], 0
je 0x40198e
push edi
call fcn.004019d0
add esp, 4
test eax, eax
jne 0x40198e
mov eax, dword [0x457ce0]
push dword [0x457d08]
mov dword [ebp - 4], eax
call fcn.004269c4
push 0x445420
push 0x457bd8
call fcn.00426c43
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4019bf
mov ecx, dword [0x457ce4]
add ecx, dword [0x457cdc]
push 0
push ecx
push edi
call fcn.00427211
mov eax, dword [ebp - 4]
cmp esi, eax
push edi
cmovl eax, esi
push eax
push ebx
call fcn.00401320
push edi
call fcn.004269c4
add esp, 0x1c
mov byte [ebx + esi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x445420
push edi
call fcn.00426c43
mov edi, eax
add esp, 8
test edi, edi
je 0x4019bf
push 0
push 0
push edi
call fcn.00427211
push edi
push esi
push 1
push ebx
call fcn.00426e26
push edi
call fcn.004269c4
add esp, 0x20
mov byte [ebx + esi], 0
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x410ff0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00423490
push esi
push edi
call fcn.00405c30
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00422d80
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.004228d0
push dword [ebp - 4]
lea eax, [edi + 0x368]
push eax
call fcn.0040c350
lea eax, [ebp - 4]
push eax
call fcn.004229f0
add esp, 0x18
lea eax, [ebp - 0x1004]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x20
lea eax, [ebp - 0x2004]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.00422c20
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x2004]
push eax
call fcn.004228d0
push dword [ebp - 4]
lea esi, [edi + 0x338]
push esi
call fcn.0040c350
push 0x5c
push dword [esi]
call fcn.00422490
push dword [esi]
lea eax, [edi + 0x384]
push eax
call fcn.0040c350
mov eax, dword [esi]
add esp, 0x2c
dec eax
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x4110a0
mov ecx, dword [str.hsptv_]
mov dword [eax], ecx
mov ecx, dword [0x445614]
mov dword [eax + 4], ecx
lea eax, [ebp - 4]
push eax
call fcn.004229f0
push dword [esi]
lea eax, [edi + 0x388]
push eax
call fcn.0040c350
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea esi, [ebx*4]
not esi
and esi, 8
or esi, 2
cmp byte [eax], 0
je 0x4122b7
xorps xmm0, xmm0
mov dword [ebp - 0x44], 0x3c
lea ecx, [ebp - 4]
movlpd qword [ebp - 0x38], xmm0
push ecx
push eax
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
movlpd qword [ebp - 0x20], xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x40], 0xc
mov dword [ebp - 0x3c], 0
call fcn.004228d0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004228d0
add esp, 0x10
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], 1
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.004229f0
lea eax, [ebp - 8]
push eax
call fcn.004229f0
add esp, 8
test esi, esi
je 0x412322
jmp 0x41231c
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.004228d0
add esp, 8
push esi
test bl, 0x10
je 0x4122e3
push 0x44542f
push 0x44542f
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x412309
test bl, 0x20
je 0x412302
push 0x44542f
push 0x44542f
push eax
push str.print
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x412309
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
lea eax, [ebp - 4]
push eax
call fcn.004229f0
add esp, 4
cmp esi, 0x20
jl 0x412322
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x454168
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0xe
push eax
call fcn.00424aaa
int3
Function at 0x412340
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.00423490
mov eax, dword [ebp + 8]
mov byte [ebp - 0x1004], 0
push esi
cmp eax, 6
ja case.default.0x412361
jmp dword [eax*4 + 0x412468]
lea eax, [ebp - 0x1004]
push 0x1000
push eax
call fcn.0042f16e
add esp, 8
jmp 0x412408
mov eax, dword [0x458b18]
mov esi, dword [eax + 0x384]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x412408
push 0x1000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x412408
mov eax, dword [0x458b18]
mov esi, dword [eax + 0x368]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, 0x44542f
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [0x458b18]
add esi, 0x390
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
test eax, 0x10000
je 0x412451
push 0
movzx eax, ax
push eax
lea eax, [ebp - 0x1004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1004]
push eax
call fcn.004228d0
mov eax, dword [0x458b18]
push dword [ebp + 8]
add eax, 0x338
push eax
call fcn.0040c350
lea eax, [ebp + 8]
push eax
call fcn.004229f0
mov eax, dword [0x458b18]
push 0x5c
mov esi, dword [eax + 0x338]
push esi
call fcn.00422490
add esp, 0x1c
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push 0x454168
lea eax, [ebp - 4]
mov dword [ebp - 4], 3
push eax
call fcn.00424aaa
nop
push 0x81004123
and eax, dword [ecx]
xchg ebx, eax
and eax, dword [ecx]
cmpsd dword [esi], dword es:[edi]
and eax, dword [ecx]
mov ebx, 0xcd004123
and eax, dword [ecx]
fldenv [ebx]
inc ecx
add ah, cl
int3