joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40242a
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov eax, dword [ebp + 0xc]
push eax
push str.Add_Files__s
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401ec1
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
lea ecx, [ebp - 0x350]
push ecx
call fcn.0043a8c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x402492
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40249b
lea eax, [ebp - 0x350]
mov dword [ebp - 8], eax
push 0x140
push 0
lea ecx, [ebp - 0x148]
push ecx
call fcn.0043a830
add esp, 0xc
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x40260f
lea ecx, [ebp - 0x148]
push ecx
call fcn.00402651
add esp, 4
test eax, eax
jne 0x40259e
lea edx, [ebp - 0x148]
push edx
call fcn.00402631
add esp, 4
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [ebp - 0x350]
push ecx
push 0x472a88
mov edx, dword [ebp + 0x10]
push edx
call fcn.00401ec1
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebp - 0x350]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401f00
add esp, 0xc
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0
je 0x40254a
mov dword [ebp - 0x358], str.done
jmp 0x402554
mov dword [ebp - 0x358], str.failed
mov eax, dword [ebp - 0x358]
push eax
lea ecx, [ebp - 0x350]
push ecx
push str._s__s
mov edx, dword [ebp + 0x10]
push edx
call fcn.00401ec1
add esp, 0x10
cmp dword [ebp - 0x14c], 0
jne 0x40258a
cmp dword [ebp + 0x10], 0
je 0x40258a
push str.Error_adding_file
call dword [ebp + 0x10]
mov eax, dword [ebp - 0x150]
add eax, dword [ebp - 0x14c]
mov dword [ebp - 0x150], eax
jmp 0x4025bf
lea ecx, [ebp - 0x148]
push ecx
call fcn.00402631
add esp, 4
push eax
push str.skip__s
mov edx, dword [ebp + 0x10]
push edx
call fcn.00401ec1
add esp, 0xc
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4024cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0x12
je 0x402605
mov edx, dword [ebp - 0x354]
push edx
push 0x472ac0
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401ec1
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x150]
push edx
push str.Files:__u_files_added
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401ec1
add esp, 0xc
mov eax, dword [ebp - 0x150]
mov esp, ebp
pop ebp
ret
Function at 0x402664
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x354
mov dword [ebp - 0x150], 0
mov dword [ebp - 0x14c], 0
mov eax, dword [ebp + 0xc]
push eax
push str.Add_Folder__s
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00401ec1
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x350]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x472af4
lea ecx, [ebp - 0x350]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x5c
lea edx, [ebp - 0x350]
push edx
call fcn.0043a8c0
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4026de
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x4026e7
lea ecx, [ebp - 0x350]
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040242a
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x150]
add edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
cmp dword [ebp - 0x14c], 0
jne 0x40272d
cmp dword [ebp + 0x10], 0
je 0x40272d
push 0x472af8
call dword [ebp + 0x10]
push 0x140
push 0
lea eax, [ebp - 0x148]
push eax
call fcn.0043a830
add esp, 0xc
lea ecx, [ebp - 0x148]
push ecx
lea edx, [ebp - 0x350]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x402871
lea eax, [ebp - 0x148]
push eax
call fcn.00402651
add esp, 4
test eax, eax
je 0x402821
push 0x472b08
lea ecx, [ebp - 0x148]
push ecx
call fcn.00402631
add esp, 4
push eax
call fcn.0043b330
add esp, 8
test eax, eax
je 0x402821
push 0x472b0c
lea edx, [ebp - 0x148]
push edx
call fcn.00402631
add esp, 4
push eax
call fcn.0043b330
add esp, 8
test eax, eax
je 0x402821
lea eax, [ebp - 0x148]
push eax
call fcn.00402631
add esp, 4
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x350]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402664
add esp, 0xc
mov dword [ebp - 0x14c], eax
mov edx, dword [ebp - 0x150]
add edx, dword [ebp - 0x14c]
mov dword [ebp - 0x150], edx
cmp dword [ebp - 0x14c], 0
jne 0x402821
cmp dword [ebp + 0x10], 0
je 0x402821
push str.empty_folder
call dword [ebp + 0x10]
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402764
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x354], eax
cmp dword [ebp - 0x354], 0x12
je 0x402867
mov edx, dword [ebp - 0x354]
push edx
push str.error__d
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401ec1
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x150]
push edx
push str.Folder:__u_files_added
mov eax, dword [ebp + 0x10]
push eax
call fcn.00401ec1
add esp, 0xc
mov eax, dword [ebp - 0x150]
mov esp, ebp
pop ebp
ret
Function at 0x402893
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
test eax, eax
je 0x4028a6
xor eax, eax
jmp 0x4029dc
mov dword [ebp - 0x18], 0
mov dword [ebp - 0xc], 0
push 0x472b44
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043aeb1
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x4028d5
xor eax, eax
jmp 0x4029dc
push 0x200
call fcn.0043982d
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x14]
push edx
push 0x200
push 1
mov eax, dword [ebp - 0x10]
push eax
call fcn.00451525
add esp, 0x10
test eax, eax
je 0x4029bb
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x180], 0x44415354
je 0x40291f
jmp 0x4029bb
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x1fc], 0
cmp dword [ebp - 0x18], 0
jne 0x402940
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
jmp 0x402952
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x1fc], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1a4]
cmp eax, dword [ebp - 4]
jae 0x40296c
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x1a4], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x1a0]
and ecx, 0xfffffe00
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x1a4]
lea ecx, [eax + ecx + 0x400]
mov dword [ebp - 8], ecx
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0043c143
add esp, 0xc
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], ecx
push 0x200
call fcn.0043982d
add esp, 4
mov dword [ebp - 0x10], eax
jmp 0x4028ec
cmp dword [ebp - 0x10], 0
je 0x4029cd
mov edx, dword [ebp - 0x10]
push edx
call fcn.004397f5
add esp, 4
mov eax, dword [ebp - 0x14]
push eax
call fcn.0043ad76
add esp, 4
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret
Function at 0x403e8b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x3c], 0
je 0x403e9f
or eax, 0xffffffff
jmp 0x403f3b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 4], 0
jne 0x403f13
call fcn.0043fed9
mov dword [eax], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x40]
push eax
push 0x1000
push 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x44]
push edx
call fcn.00451525
add esp, 0x10
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 4], 0
jne 0x403f08
mov eax, dword [ebp + 8]
mov dword [eax + 0x3c], 1
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x40]
mov eax, dword [edx + 0xc]
and eax, 0x20
test eax, eax
je 0x403f03
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], 0xffffffff
or eax, 0xffffffff
jmp 0x403f3b
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x44]
mov dword [edx], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
sub eax, 1
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov al, byte [eax]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
add edx, 1
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
pop ebp
ret
Function at 0x4042f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404310
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x5c]
cmp edx, 0x77
je 0x40431a
mov eax, 0xfffffffe
jmp 0x4043c4
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 0
je 0x4043a1
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x404383
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
push ecx
push 0x1000
push 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
push eax
call fcn.0043b01f
add esp, 0x10
cmp eax, 0x1000
je 0x404379
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], 0xffffffff
jmp 0x4043a1
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0x1000
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.0040591f
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0
je 0x40439f
jmp 0x4043a1
jmp 0x40432b
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
call fcn.00406def
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
sub eax, dword [edx + 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4043ca
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4043ef
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx + 0x5c]
cmp edx, 0x77
je 0x4043f9
mov eax, 0xfffffffe
jmp 0x4044e9
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 4]
mov edx, 0x1000
sub edx, dword [ecx + 0x10]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
je 0x404460
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x40]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
push ecx
call fcn.0043b01f
add esp, 0x10
cmp eax, dword [ebp - 0xc]
je 0x40444a
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], 0xffffffff
or eax, 0xffffffff
jmp 0x4044e9
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x48]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0x1000
cmp dword [ebp - 8], 0
je 0x404468
jmp 0x4044bc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0040591f
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x10], 0
jne 0x404496
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 1
je 0x404496
mov dword [ebp - 0x10], 0
jmp 0x40449d
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
cmp dword [edx + 0x38], 0
je 0x4044b7
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 1
je 0x4044b7
jmp 0x4044bc
jmp 0x404403
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x40]
push edx
call fcn.0043be36
add esp, 4
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 1
jne 0x4044dd
mov dword [ebp - 0x14], 0
jmp 0x4044e6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8
Function at 0x406def
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x406dff
xor eax, eax
jmp 0x406fd6
cmp dword [0x472df8], 0
je 0x406e0d
call fcn.00406d28
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x406f8e
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x588860]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x588860]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x588860]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x588860]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x588860]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x588860]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x588860]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
xor eax, edx
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
mov edx, dword [eax*4 + 0x588860]
xor edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0x10]
sub ecx, 8
mov dword [ebp + 0x10], ecx
jmp 0x406e16
cmp dword [ebp + 0x10], 0
je 0x406fd0
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ecx, dword [ebp + 8]
xor ecx, eax
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
mov eax, dword [ecx*4 + 0x588860]
xor eax, edx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
cmp dword [ebp + 0x10], 0
jne 0x406f94
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret 0xc
Function at 0x4119b0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4736d4], 2
je 0x4119c6
mov dword [ebp - 4], 5
jmp 0x4119cd
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esp, ebp
pop ebp
ret

Function at 0x4144b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4713e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x404], 0
push 0x3ff
push 0
lea eax, [ebp - 0x403]
push eax
call fcn.0043a830
add esp, 0xc
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [edx + 0x474100]
test eax, eax
je 0x4144fd
mov eax, 0x474100
jmp 0x4145de
push 0x400
push 0x474100
call fcn.0041bca0
add esp, 8
test eax, eax
jne 0x41451d
mov eax, 0x474100
jmp 0x4145de
push 0x474100
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movzx ecx, byte [eax + 0x4740ff]
cmp ecx, 0x5c
je 0x414544
push 0x468b9c
push 0x474100
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x474100
lea edx, [ebp - 0x404]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Setup32.log
push 0x474100
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [0x468b98], 0
je 0x4145d9
mov dword [0x468b98], 0
push 0x474100
call fcn.004152d0
add esp, 4
cmp eax, 0x200000
jbe 0x4145d9
push 0x400
push 0
call fcn.00431bd0
add esp, 4
push eax
lea eax, [ebp - 0x404]
push eax
call fcn.004140e0
add esp, 0xc
push 0x400
push str._Setup32.log
lea ecx, [ebp - 0x404]
push ecx
call fcn.004140e0
add esp, 0xc
push 3
lea edx, [ebp - 0x404]
push edx
push 0x474100
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov eax, 0x474100
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439b24
mov esp, ebp
pop ebp
ret
Function at 0x4145f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.00439b40
mov eax, dword [0x4713e0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x468bbc
push 0x468bc0
call fcn.00428f70
add esp, 8
push eax
call fcn.004396d4
add esp, 4
test eax, eax
je 0x41462b
jmp 0x4147d7
mov eax, 1
imul ecx, eax, 0xfff
mov dword [ebp - 0x1218], ecx
cmp dword [ebp - 0x1218], 0x1000
jae 0x41464a
jmp 0x41464f
call fcn.0043920a
mov edx, dword [ebp - 0x1218]
mov byte [ebp + edx - 0x1004], 0
lea eax, [ebp - 0x1004]
mov dword [ebp - 0x1208], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._08x:
mov ecx, dword [ebp - 0x1208]
lea edx, [ebp - 0x1004]
sub ecx, edx
mov eax, 0xfff
sub eax, ecx
push eax
mov ecx, dword [ebp - 0x1208]
push ecx
call fcn.0043b0a1
add esp, 0x10
add eax, dword [ebp - 0x1208]
mov dword [ebp - 0x1208], eax
mov edx, dword [ebp - 0x1208]
mov dword [ebp - 0x121c], edx
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1208]
lea eax, [ebp - 0x1004]
sub edx, eax
mov ecx, 0xfff
sub ecx, edx
push ecx
mov edx, dword [ebp - 0x1208]
push edx
call fcn.0043b14d
add esp, 0x10
mov dword [ebp - 0x1210], eax
cmp dword [ebp - 0x1210], 0
jge 0x4146f8
mov dword [ebp - 0x1210], 0
mov eax, dword [ebp - 0x1208]
add eax, dword [ebp - 0x1210]
mov dword [ebp - 0x1208], eax
mov ecx, dword [ebp - 0x1208]
lea edx, [ebp - 0x1004]
sub ecx, edx
mov dword [ebp - 0x1224], ecx
mov eax, dword [ebp - 0x121c]
push eax
push 0x468bd8
call fcn.004147f0
add esp, 8
lea ecx, [ebp - 0x1220]
push ecx
lea edx, [ebp - 0x1204]
push edx
push str.Setup32WriteToLog
call fcn.00419040
add esp, 8
push eax
call fcn.00419120
add esp, 8
call fcn.004144b0
mov dword [ebp - 0x120c], eax
cmp dword [ebp - 0x120c], 0
je 0x4147c8
mov eax, dword [ebp - 0x120c]
movzx ecx, byte [eax]
test ecx, ecx
je 0x4147c8
push 0x468bf0
mov edx, dword [ebp - 0x120c]
push edx
call fcn.0043aeb1
add esp, 8
mov dword [ebp - 0x1214], eax
cmp dword [ebp - 0x1214], 0
je 0x4147c8
mov eax, dword [ebp - 0x1214]
push eax
mov ecx, dword [ebp - 0x1224]
push ecx
push 1
lea edx, [ebp - 0x1004]
push edx
call fcn.0043b01f
add esp, 0x10
mov eax, dword [ebp - 0x1214]
push eax
call fcn.0043ad76
add esp, 4
lea ecx, [ebp - 0x1220]
push ecx
call fcn.00419150
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439b24
mov esp, ebp
pop ebp
ret
Function at 0x4150e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4713e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 0x468478
call fcn.004147f0
add esp, 8
lea ecx, [ebp - 0x144]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0xffffffff
je 0x415168
mov eax, dword [ebp - 0x144]
and eax, 0x10
jne 0x415143
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x41516a
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415124
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439b24
mov esp, ebp
pop ebp
ret

Function at 0x415180
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
push eax
call fcn.00439e43
add esp, 4
test eax, eax
je 0x41520c
mov ecx, 1
shl ecx, 0
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
cmp eax, 0x3a
jne 0x41520c
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
test eax, eax
je 0x4151ec
mov ecx, 1
shl ecx, 1
mov edx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
cmp eax, 0x5c
jne 0x41520c
mov ecx, 1
imul edx, ecx, 3
mov eax, dword [ebp + 8]
movsx ecx, byte [eax + edx]
test ecx, ecx
jne 0x41520c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41520c
cmp dword [ebp - 4], 1
je 0x41520c
mov eax, 1
jmp 0x41520e
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x415220
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
mov eax, dword [0x4713e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.DirXist___s__r_n
call fcn.004147f0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
call fcn.00415180
add esp, 4
test eax, eax
je 0x41525b
mov eax, 1
jmp 0x4152c1
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0xffffffff
je 0x4152bf
mov ecx, dword [ebp - 0x144]
and ecx, 0x10
je 0x41529a
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x4152c1
lea eax, [ebp - 0x144]
push eax
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41527b
mov edx, dword [ebp - 0x148]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439b24
mov esp, ebp
pop ebp
ret
Function at 0x4152d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x4713e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push str.FileXist___s__r_n
call fcn.004147f0
add esp, 8
lea ecx, [ebp - 0x144]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0xffffffff
je 0x41536d
mov eax, dword [ebp - 0x144]
and eax, 0x10
jne 0x415348
cmp dword [ebp - 0x128], 0
je 0x415334
mov dword [ebp - 0x14c], 0xffffffff
jmp 0x415340
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x14c], ecx
mov eax, dword [ebp - 0x14c]
jmp 0x41536f
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x415314
mov ecx, dword [ebp - 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00439b24
mov esp, ebp
pop ebp
ret

Function at 0x415870
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
call fcn.004157a0
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop ebp
ret