joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403500
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov esp, ebp
pop ebp
ret

Function at 0x406490
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
cmp byte [esi], 0
jne 0x4064c2
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push esi
call fcn.004062d0
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.00403dc0
pop ecx
mov ebx, eax
test ebx, ebx
jne 0x4064f5
push 1
call fcn.00405dc0
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [ebx + eax*4]
push eax
push ebx
push esi
call fcn.004062d0
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x415bb4], eax
mov dword [0x415bb8], ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov dword [ebp - 8], eax
test eax, eax
jne 0x40654e
mov eax, dword [0x4162b0]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
jmp 0x406573
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x40655f
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x406571
add dword [ebp - 4], esi
add ebx, esi
cmp byte [ebx], 0
jne 0x40655a
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00403dc0
pop ecx
mov edi, eax
mov dword [0x415bc0], eax
mov eax, dword [0x415bc0]
test eax, eax
jne 0x40659b
push 1
call fcn.00405dc0
pop ecx
mov ebx, dword [ebp - 8]
jmp 0x4065ca
mov edx, ebx
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x4065a5
lea esi, [eax + 1]
cmp byte [ebx], 0x3d
je 0x4065c8
mov ecx, edi
mov edx, ebx
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x4065bb
pop eax
add edi, esi
add ebx, esi
cmp byte [ebx], 0
jne 0x4065a0
mov byte [edi], 0
mov eax, dword [ebp - 8]
mov edx, dword [0x4162b0]
cmp eax, edx
je 0x4065e9
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4086d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, dword [0x4170bc]
cmp eax, edx
jae 0x4086ff
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 1
jne 0x408711
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x4088e4
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0x10], 0
jne 0x40872c
xor eax, eax
jmp 0x4088e4
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x20
je 0x408755
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x80
je 0x408833
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
jmp 0x40881f
lea edi, [ebp - 0x411]
jmp 0x4087a1
mov eax, esi
inc esi
mov bl, byte [eax]
cmp bl, 0xa
jne 0x40879c
inc dword [ebp - 4]
mov eax, edi
inc edi
mov byte [eax], 0xd
mov eax, edi
inc edi
mov byte [eax], bl
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
cmp eax, 0x400
jge 0x4087c2
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x408789
push 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x411]
mov edx, edi
sub edx, eax
mov eax, edx
push eax
lea eax, [ebp - 0x411]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408814
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], eax
lea edx, [ebp - 0x411]
mov ecx, edi
sub ecx, edx
mov edx, ecx
cmp eax, edx
jge 0x40881f
jmp 0x408879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
jmp 0x408879
mov eax, dword [ebp + 0xc]
mov edx, esi
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0x10]
jb 0x408781
jmp 0x408879
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
mov eax, dword [eax + edx*8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x408870
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
jmp 0x408879
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
jne 0x4088de
cmp dword [ebp - 0x10], 0
je 0x4088aa
cmp dword [ebp - 0x10], 5
jne 0x40889b
mov dword [0x415c84], 9
jmp 0x4088a5
mov eax, dword [ebp - 0x10]
push eax
call fcn.00408c30
pop ecx
or eax, 0xffffffff
jmp 0x4088e4
mov eax, dword [ebp + 8]
mov edx, eax
and edx, 0x1f
sar eax, 5
mov eax, dword [eax*4 + 0x4170c0]
test byte [eax + edx*8 + 4], 0x40
je 0x4088cf
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4088cf
xor eax, eax
jmp 0x4088e4
mov dword [0x415c84], 0x1c
or eax, 0xffffffff
jmp 0x4088e4
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x1dd77e96
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x3f42e8c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x402e40
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x403360
test edx, edx
je 0x403360
call fcn.00402e57
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x4033a0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00402e40
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x403411
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x4033d6
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret
Function at 0x408999
Capabilities:
Check if file exists
Copy file
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
xor esi, esi
mov bl, cl
inc esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4089e0
test al, 0x10
jne 0x4089e0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4089e0
test al, 0x10
jne 0x4089e0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea esi, [eax - 1]
neg esi
sbb esi, esi
neg esi
jmp 0x4089f0
test bl, bl
je 0x4089f0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 2
pop esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ac91
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ac91
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x408a0c
Capabilities:
Check if file exists
Copy file
Create directory
Get file attributes
Set file attributes

Disassembly:
push 0xc
mov eax, 0x451b7b
call fcn.0042b785
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x18]
xor esi, esi
mov dword [ebp - 0x14], esi
call fcn.0040c4c5
push 0x4613ac
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.004098a8
pop ecx
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040ac91
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x408a5d
test al, 0x10
jne 0x408a72
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040ac91
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ac91
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
call fcn.0040ac91
mov eax, esi
call fcn.0042b72f
ret
Function at 0x408e8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x408eb4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040967c
jmp 0x408f69
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x408ed6
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x408ed8
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x408f5d
jg 0x408eed
test esi, esi
je 0x408f5d
test ecx, ecx
jl 0x408f36
jg 0x408ef7
test eax, eax
je 0x408f36
cmp edi, ecx
jg 0x408f0b
jl 0x408f01
cmp esi, eax
jae 0x408f0b
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.0042d1c0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x408f39
mov edx, dword [ebp + 8]
test edi, edi
jl 0x408f5d
jg 0x408f43
test esi, esi
je 0x408f5d
cmp dword [ebx + 0x4c], 0
je 0x408f5d
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.00430d81
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408f72
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x408f99
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409743
jmp 0x409068
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x408fbb
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x408fbd
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x40905c
jg 0x408fda
test esi, esi
je 0x40905c
test ecx, ecx
jl 0x409027
jg 0x408fe4
test eax, eax
je 0x409027
cmp ebx, ecx
jg 0x408ff8
jl 0x408fee
cmp esi, eax
jae 0x408ff8
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.0042d1c0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x40902e
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x40905c
jg 0x409038
test esi, esi
je 0x40905c
cmp dword [edi + 0x4c], 0
je 0x40905c
mov ecx, edi
call fcn.00409d21
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.00430fa5
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40929f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x46a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x4092c5
xor eax, eax
jmp 0x409387
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4092ee
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x4092ee
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x409387
cmp dword [esi + 0x4c], 0
je 0x409385
mov ecx, esi
call fcn.00409d21
mov ecx, dword [esi + 0x38]
mov al, bl
test ecx, ecx
jne 0x40931a
push dword [esi + 0x4c]
push eax
call fcn.004086ff
test al, al
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x409385
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x2c]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x409385
cmp eax, 1
jle 0x409354
cmp eax, 3
jne 0x409385
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x40930c
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x34], eax
je 0x409377
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.00430d81
add esp, 0x10
cmp dword [ebp - 0x34], eax
jne 0x409385
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
mov eax, ebx
jne 0x409387
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042aba6
leave
ret 4

Function at 0x409d6f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x46a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x409df1
cmp byte [esi + 0x3d], 0
je 0x409df1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x409dc3
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x409dc7
sub eax, 1
je 0x409dcb
dec eax
sub eax, 1
je 0x409df1
xor al, al
jmp 0x409df3
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x409de8
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00430d81
add esp, 0x10
cmp edi, eax
jne 0x409dc3
cmp byte [esi + 0x3d], 0
sete al
jmp 0x409df3
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0042aba6
leave
ret
Function at 0x40bc1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40bc70
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40bc70
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40bc62
cmp esi, ecx
jae 0x40bc70
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40bc50
cmp esi, ecx
jae 0x40bc70
cmp word [esi], 0
je 0x40bc70
mov eax, esi
jmp 0x40bc72
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40d3c7
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov edi, edx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x40d4e5
push 1
push edi
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x40d4e5
push 0x104
push eax
mov esi, 0x46cd10
push esi
call fcn.0042cff0
push 0x104
push 0
push 0x46cb08
call fcn.0042cff0
add esp, 0x18
push esi
push 0x208
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x40d4dd
xor eax, eax
mov dword [ebp - 0x10], eax
cmp word [0x46cd10], ax
je 0x40d4dd
mov dword [ebp - 0x14], eax
push 0x4616a8
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d4be
push 0x4616b0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40d4be
mov ax, word [esi]
mov esi, 0x46cb08
mov word [ebp - 0xc], ax
mov eax, dword [ebp - 0x14]
push 0x104
push esi
mov ax, word [eax + 0x46cd12]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x40d4e5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
push 0x46cb08
push ebx
call fcn.00439a95
add esp, 0xc
test eax, eax
je 0x40d4f6
mov eax, dword [ebp - 0x10]
add eax, 4
mov dword [ebp - 0x10], eax
add eax, eax
mov dword [ebp - 0x14], eax
lea esi, [eax + 0x46cd10]
xor eax, eax
cmp word [esi], ax
jne 0x40d44e
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042aba6
leave
ret
lea ecx, [ebp - 0xc]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebx + esi*2]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
inc eax
jmp 0x40d4e7
Function at 0x40d511
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x294
mov eax, dword [0x46a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, ecx
call fcn.0040d320
and dword [ebp - 0x264], 0
xorps xmm0, xmm0
and dword [ebp - 0x218], 0
mov dword [ebp - 0x21c], esi
movlpd qword [ebp - 0x214], xmm0
call fcn.0040d2d2
test eax, eax
jne 0x40d56b
mov dword [ebp - 0x21c], esi
xor esi, esi
mov dword [ebp - 0x218], esi
jmp 0x40d56d
xor esi, esi
mov eax, dword [0x46cf20]
test eax, eax
je 0x40d648
push 0x18
pop ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x294], ecx
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x27c]
mov dword [ebp - 0x278], esi
push ecx
push 0x1010
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x270], esi
push ecx
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x288], esi
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x284], esi
mov dword [ebp - 0x280], esi
call eax
push eax
push str.NtOpenProcess_PROCESS_QUERY_LIMITED_INFORMATION_status___x_n
call fcn.0040bcc0
mov eax, dword [0x46cf24]
pop ecx
pop ecx
test eax, eax
je 0x40d648
push dword [ebp - 0x264]
call eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x264], esi
push eax
lea eax, [ebp - 0x294]
push eax
push 1
lea eax, [ebp - 0x264]
push eax
call dword [0x46cf20]
mov esi, eax
push esi
push str.NtOpenProcess_PROCESS_TERMINATE_status___x_n
call fcn.0040bcc0
pop ecx
pop ecx
test esi, esi
jns 0x40d659
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.NtOpenProcess_PROCESS_TERMINATE_error___ld__n
call fcn.0040bcc0
pop ecx
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042aba6
leave
ret
mov eax, dword [0x46cf1c]
test eax, eax
je 0x40d648
push 1
push dword [ebp - 0x264]
call eax
test eax, eax
jns 0x40d67e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.TerminateProcess__error___ld__n
jmp 0x40d641
push dword [ebp - 0x264]
call dword [0x46cf24]
and dword [ebp - 0x264], 0
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
call fcn.0042cff0
lea edx, [ebp - 0x20c]
mov ecx, ebx
call fcn.0040d3c7
lea eax, [ebp - 0x20c]
push eax
push str.change_Path_to___s___n
call fcn.0040d860
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x260]
push ebx
push eax
call fcn.0042cff0
add esp, 0x20
mov dword [ebp - 0x260], esi
lea eax, [ebp - 0x260]
push edi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x461438
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40d731
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x20c]
push eax
push str.CreateProcess_error_path____s___lastError____ld__n
call fcn.0040d860
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0xc
push dword [edi]
call esi
push dword [edi + 4]
call esi
jmp 0x40d648
call fcn.0040d3af
xor eax, eax
inc eax
jmp 0x40d64a