joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485794
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4857c2
mov eax, ebx
call fcn.00486248
cmp dword [ebx + 0x40], 0
je 0x4857bb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x485833
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x485825
cmp dword [ebx + 8], 0
je 0x4857e4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4857f6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x485825
cmp dword [ebx + 8], 0
je 0x4857d7
cmp eax, 3
je 0x485809
dec eax
jne 0x4857d7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4857d7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4857d7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x485851
cmp dword [ebx + 0x14], 0xcc
je 0x485851
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0048585c
pop ebx
ret

Function at 0x49bc64
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x49bcae
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x20
call fcn.00406ec4
push eax
call fcn.00406d34
mov cl, 1
mov edx, 0x49bccc
mov eax, dword [ebp - 8]
call fcn.0049bba8
mov eax, dword [ebp - 8]
push eax
call fcn.00406da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49bcb8
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x100749c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x10074e3
cmp edx, 0x10
jl 0x10074cf
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x10074bc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x10074e3
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x10074db
and edx, 3
cmp edx, 3
jne 0x10074f7
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x10074fc
cmp edx, 2
jne 0x1007508
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x100750d
cmp edx, 1
jne 0x1007513
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x403140
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f9f8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x40317c
xor eax, eax
jmp 0x40330c
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x4031a5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x4031a5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x40330c
cmp dword [edi + 0x54], 0
je 0x403309
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x4031cd
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x4031f3
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.005237e6
add esp, 8
cmp eax, 0xffffffff
je 0x403309
mov eax, ebx
jmp 0x40330c
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.00403a90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x403210
mov edx, eax
cmp ebx, 0x10
jae 0x40321c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x4032fa
cmp eax, 1
jg 0x4032b0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40325c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x403285
cmp ebx, 0x10
jae 0x40326b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0052497b
add esp, 0x10
cmp esi, eax
jne 0x4032fa
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x4032e6
test esi, esi
jne 0x403210
cmp dword [ebp - 0x1c], 0x20
jae 0x4032fa
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00403b60
jmp 0x403205
cmp eax, 3
jne 0x4032fa
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.005237e6
add esp, 8
cmp eax, 0xffffffff
je 0x4032d0
mov esi, dword [ebp + 8]
jmp 0x4032d3
or esi, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402cc0
mov eax, esi
jmp 0x40330c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402cc0
mov eax, dword [ebp + 8]
jmp 0x40330c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402cc0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret 4
Function at 0x403fd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54fb18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x4040f1
cmp byte [edi + 0x49], 0
je 0x4040f1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x4040de
lea esi, [ebp - 0x2c]
call fcn.00403a90
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x404043
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x404073
dec eax
je 0x404077
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
jne 0x4040d9
jmp 0x4040ec
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x404087
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4040b0
cmp ebx, 0x10
jae 0x404096
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0052497b
add esp, 0x10
cmp esi, eax
jne 0x4040cf
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4040e2
test esi, esi
jne 0x404037
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.00403b60
jmp 0x404031
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402cc0
xor al, al
jmp 0x4040f3
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00402cc0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret
Function at 0x404670
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f96b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5a8f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0054369e
push 4
mov dword [ebp - 4], 0
call fcn.00424622
mov edi, eax
add esp, 4
test edi, edi
je 0x4046ec
call fcn.00543116
mov dword [edi], eax
call fcn.00542ed5
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00542e0a
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4046e2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00542e32
jmp 0x4046ee
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4051b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550002
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
mov dword [ebp - 0x118], ebx
push eax
mov dword [ebp - 0x11c], esi
mov byte [ebp - 0x114], bl
call fcn.005282b0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
add esp, 0xc
mov byte [esi], bl
push 0x104
lea ecx, [ebp - 0x114]
mov dword [ebp - 4], ebx
push ecx
mov dword [ebp - 0x118], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x405240
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
mov ecx, esi
call fcn.00404410
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x405280
cmp dword [esi + 0x14], 0x10
jb 0x405269
mov ecx, dword [esi]
jmp 0x40526b
mov ecx, esi
cmp byte [ecx + eax - 1], 0x5c
je 0x405280
push 1
mov eax, 0x5805c0
mov ecx, esi
call fcn.004042f0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret
Function at 0x4054f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 0
push ebx
call fcn.005282b0
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x40550a
mov eax, dword [esi]
jmp 0x40550c
mov eax, esi
push 0x5805dc
push eax
lea eax, [ebp - 4]
push eax
call fcn.00525621
mov ecx, dword [ebp - 4]
add esp, 0xc
test ecx, ecx
je 0x405548
test eax, eax
jne 0x405548
push ecx
push edi
push 1
push ebx
call fcn.005258b2
mov ecx, dword [ebp - 4]
push ecx
call fcn.00524eef
add esp, 0x14
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x405f30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f8e8
mov eax, dword fs:[0]
push eax
mov eax, dword [0x5a8f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0x18], 0
jne 0x405f6b
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x405fa4
mov eax, dword [ebp + 8]
push eax
jmp 0x405f9c
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x405f77
lea eax, [ebp + 8]
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x405fa4
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042465c
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x406550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f6f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5a8f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
cmp dword [eax + 0x10], edi
jne 0x406596
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push str.IsWow64Process
mov dword [ebp - 4], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x10], edi
cmp esi, edi
je 0x406605
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x406605
cmp dword [ebp - 0x10], edi
je 0x406605
lea esi, [ebp - 0x24]
call fcn.0041d3d0
cmp dword [ebp - 0x18], edi
jne 0x406605
mov eax, dword [ebp - 0x24]
cmp eax, edi
je 0x406605
lea edx, [ebp - 0x1c]
push edx
call eax
test eax, eax
je 0x406605
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
call fcn.00402cf0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40661e
mov dword [ebp - 0x10], edi
jmp 0x40662a
xor ecx, ecx
and al, 0x10
cmp al, 0x10
setne cl
mov dword [ebp - 0x10], ecx
push str.IsWow64Process
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp + 8], edi
cmp esi, edi
je 0x406675
lea edx, [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
je 0x406675
cmp dword [ebp + 8], edi
je 0x406675
cmp dword [ebp - 0x18], edi
je 0x406675
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x406675
mov ecx, dword [ebp - 0x1c]
push ecx
call eax
test eax, eax
je 0x406675
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x406683
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4066a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54f8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5a8f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x18], edi
jne 0x4066fd
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x4066ea
mov eax, dword [ebp + 8]
push eax
call fcn.0042465c
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0041d3d0
cmp dword [ebp - 0x14], edi
jne 0x406735
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x406735
lea ecx, [ebp - 0x18]
push ecx
call eax
cmp eax, edi
je 0x406735
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x24], edi
je 0x40674f
cmp dword [ebp + 0x1c], 0x10
jae 0x406746
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
jmp 0x40675f
cmp dword [ebp + 0x1c], 0x10
jae 0x406758
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, eax
cmp dword [ebp - 0x14], edi
je 0x40677a
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x40677a
mov edx, dword [ebp - 0x18]
push edx
call eax
cmp eax, edi
je 0x40677a
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x40678b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x4067a4
mov eax, dword [ebp + 8]
push eax
call fcn.0042465c
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407d30
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, eax
push esi
call fcn.00406550
add esp, 4
test eax, eax
je 0x407d6d
cmp dword [esi + 0x14], 0x10
jb 0x407d4a
mov eax, dword [esi]
jmp 0x407d4c
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp dword [esi + 0x14], 0x10
jb 0x407d60
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x407d6d
pop esi
ret
mov eax, 1
pop esi
ret
Function at 0x408200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550610
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0xffffffffffffffff
push edi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push esi
mov ebx, edx
mov byte [ecx], 0
call fcn.00403c30
call fcn.004066a0
add esp, 0x20
cmp eax, edi
je 0x408334
push 0x580690
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00409720
add esp, 0xc
mov ecx, eax
mov eax, ebx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00409440
mov esi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], esi
jb 0x40829e
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0042465c
add esp, 4
push 0x44
xor edi, edi
lea edx, [ebp - 0xc0]
push edi
push edx
call fcn.005282b0
xor eax, eax
mov word [ebp - 0x90], ax
mov eax, 0xc
mov ecx, 1
add esp, 0xc
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc0], 0x44
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x18], esi
jae 0x4082f2
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0xc0]
push edx
push edi
push edi
push 0x4000000
push edi
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x70]
cmp eax, edi
jne 0x40833b
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x408334
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0042465c
add esp, 4
xor eax, eax
jmp 0x4083c5
push eax
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
jne 0x408361
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402cc0
xor eax, eax
jmp 0x4083c5
or ebx, 0xffffffff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x4083a3
lea ecx, [ebp - 0x4c]
push ecx
push esi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
cmp eax, edi
jne 0x4083a4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00402cc0
xor eax, eax
jmp 0x4083c5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00402cc0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret
Function at 0x408420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x5a8f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [eax + 0x10], ebx
jne 0x408461
push 0xc
push 0x5806f0
mov ecx, edi
call fcn.00404410
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523079
mov esp, ebp
pop ebp
ret
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
call fcn.00402cf0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40c], eax
cmp eax, 0xffffffff
jne 0x4084e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
mov esi, eax
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.005282b0
push esi
lea ecx, [ebp - 0x404]
push 0x580700
push ecx
call fcn.00523650
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4084c5
sub eax, edx
push eax
lea edx, [ebp - 0x404]
push edx
mov ecx, edi
call fcn.00404410
mov esi, ebx
jmp 0x408569
mov edx, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 0x410]
push ecx
push edx
push esi
push eax
mov dword [ebp - 0x410], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40855c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
mov esi, eax
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.005282b0
push esi
lea ecx, [ebp - 0x404]
push 0x580718
push ecx
call fcn.00523650
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408540
sub eax, edx
push eax
lea edx, [ebp - 0x404]
push edx
mov ecx, edi
call fcn.00404410
mov esi, ebx
jmp 0x408561
mov esi, 1
cmp dword [ebp - 0x40c], ebx
je 0x408576
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523079
mov esp, ebp
pop ebp
ret
Function at 0x4086f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551157
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a8f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x580758
mov dword [edi + 0x10], 0x580760
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00408d60
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.00404670
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x5b10ec]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4