joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 1
lea eax, [esp + 0x17]
push 1
push eax
call fcn.004231b4
add esp, 0x10
cmp eax, 1
jne 0x40102a
movzx esi, byte [esp + 0xf]
xor eax, eax
jmp 0x40103b
push edi
call fcn.00437228
mov esi, dword [esp + 0x14]
add esp, 4
neg eax
sbb eax, eax
test eax, eax
mov ebx, esi
jne 0x40107e
push edi
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call fcn.004231b4
add esp, 0x10
cmp eax, 1
jne 0x40106e
movzx esi, byte [esp + 0xf]
shl esi, 8
xor eax, eax
add esi, ebx
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
call fcn.00437228
add esp, 4
test eax, eax
je 0x40105d
or eax, 0xffffffff
pop esi
mov dword [ebp], 0
pop ebp
pop ebx
add esp, 8
ret

Function at 0x401090
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 1
lea eax, [esp + 0x17]
push 1
push eax
call fcn.004231b4
add esp, 0x10
cmp eax, 1
jne 0x4010ba
movzx esi, byte [esp + 0xf]
xor eax, eax
jmp 0x4010cb
push edi
call fcn.00437228
mov esi, dword [esp + 0x14]
add esp, 4
neg eax
sbb eax, eax
test eax, eax
mov ebx, esi
jne 0x4010fe
push edi
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call fcn.004231b4
add esp, 0x10
cmp eax, 1
jne 0x4010f1
movzx esi, byte [esp + 0xf]
xor eax, eax
jmp 0x4010fe
push edi
call fcn.00437228
add esp, 4
neg eax
sbb eax, eax
mov edx, esi
shl edx, 8
add ebx, edx
test eax, eax
jne 0x401136
push edi
push 1
lea eax, [esp + 0x17]
push 1
push eax
call fcn.004231b4
add esp, 0x10
cmp eax, 1
jne 0x401129
movzx esi, byte [esp + 0xf]
xor eax, eax
jmp 0x401136
push edi
call fcn.00437228
add esp, 4
neg eax
sbb eax, eax
mov ecx, esi
shl ecx, 0x10
add ebx, ecx
test eax, eax
jne 0x40117e
push edi
push 1
lea edx, [esp + 0x17]
push 1
push edx
call fcn.004231b4
add esp, 0x10
cmp eax, 1
jne 0x40116e
movzx esi, byte [esp + 0xf]
shl esi, 0x18
xor eax, eax
add esi, ebx
mov dword [ebp], esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push edi
call fcn.00437228
add esp, 4
test eax, eax
je 0x40115d
or eax, 0xffffffff
pop esi
mov dword [ebp], 0
pop ebp
pop ebx
add esp, 8
ret
Function at 0x401190
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [esp + 0x18]
push 2
push 0
mov ebp, 0xffff
push esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], 0
call fcn.004371a3
add esp, 0xc
test eax, eax
je 0x4011c3
pop esi
xor eax, eax
pop ebp
add esp, 0xc
ret
push edi
push esi
call fcn.004373ef
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0x14], edi
jae 0x4011dd
mov dword [esp + 0xc], edi
mov ebp, eax
push 0x404
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x4011f7
pop edi
pop esi
pop ebp
add esp, 0xc
ret
push ebx
mov ebx, 4
cmp ebp, ebx
jbe 0x4012a6
jmp 0x401218
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
lea eax, [ebx + 0x400]
cmp eax, ebp
mov ebx, ebp
ja 0x401226
mov ebx, eax
mov ebp, edi
sub ebp, ebx
mov eax, edi
sub eax, ebp
cmp eax, 0x404
mov edi, 0x404
ja 0x40123c
mov edi, eax
mov eax, dword [esp + 0x20]
push 0
push ebp
push eax
call fcn.004371a3
add esp, 0xc
test eax, eax
jne 0x4012a6
mov ecx, dword [esp + 0x20]
push ecx
push 1
push edi
push esi
call fcn.004231b4
add esp, 0x10
cmp eax, 1
jne 0x4012a6
lea eax, [edi - 3]
test eax, eax
jle 0x40129c
lea ecx, [ecx]
sub eax, 1
cmp byte [eax + esi], 0x50
jne 0x40128e
cmp byte [eax + esi + 1], 0x4b
jne 0x40128e
cmp byte [eax + esi + 2], 5
jne 0x40128e
cmp byte [eax + esi + 3], 6
je 0x401294
test eax, eax
jg 0x401270
jmp 0x40129c
add eax, ebp
mov dword [esp + 0x14], eax
jne 0x4012a6
cmp ebx, dword [esp + 0x10]
jb 0x401210
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret
Function at 0x401bd0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
jne 0x401bf3
mov eax, 0xffffff9a
add esp, 8
ret
push esi
mov esi, dword [eax + 0x7c]
test esi, esi
jne 0x401c03
lea eax, [esi - 0x66]
pop esi
add esp, 8
ret
cmp dword [esi], 0
jne 0x401c12
mov eax, 0xffffff9c
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
jne 0x401c21
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x5c]
cmp ecx, eax
mov dword [esi + 0x14], ecx
jbe 0x401c35
mov dword [esi + 0x14], eax
cmp dword [esi + 0x14], 0
push ebx
push ebp
push edi
jbe 0x401d60
cmp dword [esi + 8], 0
jne 0x401ca8
mov eax, dword [esi + 0x58]
test eax, eax
jbe 0x401ca8
mov edi, 0x4000
cmp eax, edi
jae 0x401c62
mov edi, eax
test edi, edi
je 0x401d6c
mov ecx, dword [esi + 0x68]
add ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x60]
push 0
push ecx
push edx
call fcn.004371a3
add esp, 0xc
test eax, eax
jne 0x401d76
mov eax, dword [esi + 0x60]
mov ecx, dword [esi]
push eax
push 1
push edi
push ecx
call fcn.004231b4
add esp, 0x10
cmp eax, 1
jne 0x401d76
mov edx, dword [esi]
add dword [esi + 0x3c], edi
sub dword [esi + 0x58], edi
mov dword [esi + 4], edx
mov dword [esi + 8], edi
cmp dword [esi + 0x64], 0
jne 0x401d07
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 8]
cmp eax, edi
jae 0x401cba
mov edi, eax
xor eax, eax
test edi, edi
jbe 0x401cd3
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
mov edx, dword [esi + 0x10]
mov byte [eax + edx], cl
add eax, 1
cmp eax, edi
jb 0x401cc0
mov ebx, dword [esi + 0x10]
test ebx, ebx
mov eax, dword [esi + 0x50]
jne 0x401ce1
xor eax, eax
jmp 0x401cea
mov edx, edi
mov ecx, ebx
call fcn.00403620
sub dword [esi + 0x5c], edi
sub dword [esi + 8], edi
sub dword [esi + 0x14], edi
add dword [esi + 4], edi
add dword [esi + 0x18], edi
add ebx, edi
add dword [esp + 0x10], edi
mov dword [esi + 0x50], eax
mov dword [esi + 0x10], ebx
jmp 0x401d4f
mov ebp, dword [esi + 0x18]
mov ebx, dword [esi + 0x10]
lea edx, [esi + 4]
push edx
call fcn.00401fc0
mov edi, dword [esi + 0x18]
mov ecx, eax
mov eax, dword [esi + 0x50]
add esp, 4
sub edi, ebp
test ebx, ebx
mov dword [esp + 0x14], ecx
jne 0x401d2f
xor eax, eax
jmp 0x401d3c
mov edx, edi
mov ecx, ebx
call fcn.00403620
mov ecx, dword [esp + 0x14]
sub dword [esi + 0x5c], edi
add dword [esp + 0x10], edi
cmp ecx, 1
mov dword [esi + 0x50], eax
je 0x401d60
test ecx, ecx
jne 0x401d81
cmp dword [esi + 0x14], 0
ja 0x401c42
cmp dword [esp + 0x14], 0
jne 0x401d81
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
add esp, 8
ret
pop edi
pop ebp
pop ebx
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
Function at 0x403610
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x403617
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00403620
Function at 0x403620
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, edx
test esi, esi
not eax
je 0x403652
lea esp, [esp]
test cl, 3
je 0x403652
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x443988]
add ecx, 1
sub esi, 1
jne 0x403630
cmp esi, 0x20
push ebx
push edi
jb 0x40383c
mov edi, esi
shr edi, 5
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x443d88]
xor edx, dword [ebx*4 + 0x444188]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x443988]
add ecx, 4
xor edx, dword [eax*4 + 0x444588]
add ecx, 4
xor edx, dword [ecx - 8]
add ecx, 4
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x443d88]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x444188]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x443988]
add ecx, 4
xor eax, dword [edx*4 + 0x444588]
add ecx, 4
xor eax, dword [ecx - 0x10]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x443d88]
xor edx, dword [ebx*4 + 0x444188]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x443988]
xor edx, dword [eax*4 + 0x444588]
xor edx, dword [ecx - 0xc]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x443d88]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x444188]
mov ebx, edx
and edx, 0xff
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x443988]
xor eax, dword [edx*4 + 0x444588]
xor eax, dword [ecx - 8]
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x443d88]
xor edx, dword [ebx*4 + 0x444188]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x443988]
xor edx, dword [eax*4 + 0x444588]
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x443d88]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x444188]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x443988]
and edx, 0xff
xor eax, dword [edx*4 + 0x444588]
xor eax, dword [ecx]
add ecx, 4
mov edx, eax
shr edx, 0x10
movzx ebx, ah
and edx, 0xff
mov edx, dword [edx*4 + 0x443d88]
xor edx, dword [ebx*4 + 0x444188]
mov ebx, eax
and eax, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x443988]
add ecx, 4
xor edx, dword [eax*4 + 0x444588]
sub esi, 0x20
xor edx, dword [ecx - 4]
mov eax, edx
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x443d88]
movzx ebx, dh
xor eax, dword [ebx*4 + 0x444188]
mov ebx, edx
shr ebx, 0x18
xor eax, dword [ebx*4 + 0x443988]
and edx, 0xff
xor eax, dword [edx*4 + 0x444588]
sub edi, 1
jne 0x403662
cmp esi, 4
jb 0x403889
mov edx, esi
shr edx, 2
xor eax, dword [ecx]
add ecx, 4
mov edi, eax
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x443d88]
movzx ebx, ah
xor edi, dword [ebx*4 + 0x444188]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x443988]
and eax, 0xff
xor edi, dword [eax*4 + 0x444588]
sub esi, 4
sub edx, 1
mov eax, edi
jne 0x403846
test esi, esi
pop edi
pop ebx
je 0x4038ad
nop
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x443988]
add ecx, 1
sub esi, 1
jne 0x403890
not eax
pop esi
ret
Function at 0x40450f
Capabilities:
Send data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
cmp dword [ebp + 0x10], esi
jne 0x404521
xor al, al
jmp 0x404586
push edi
mov edi, dword [ebp + 0x14]
push esi
push esi
push esi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x2c], 0x28
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x404570
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
jne 0x404574
xor al, al
jmp 0x404585
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
setne al
pop edi
pop esi
leave
ret

Function at 0x404589
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4045a0
test al, 0x10
je 0x4045a0
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x405c3e
Capabilities:
Get file version info

Disassembly:
push ebp
sub esp, 0x20c
lea ebp, [esp - 4]
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push 0x24
mov eax, 0x4374ee
call fcn.0041f559
mov eax, dword [ebp + 0x21c]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x30], eax
jne 0x405c78
xor eax, eax
jmp 0x405de1
push dword [ebp + 0x218]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, esi
je 0x405c71
push 0x208
lea eax, [ebp + 2]
push esi
push eax
mov word [ebp], si
call fcn.0041f640
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push esi
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
push edi
jne 0x405cc3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405c71
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x28], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
je 0x405c71
push edi
call fcn.0041d1c2
pop ecx
push eax
push edi
push dword [ebp - 0x28]
mov dword [ebp - 0x10], eax
lea eax, [ebp]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x405c71
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x10]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call sub.VERSION.dll_VerQueryValueW
xor edi, edi
test dword [ebp - 0x18], 0xfffffffc
mov dword [ebp - 0x20], esi
jbe 0x405dd5
push 0x450200
lea ecx, [ebp - 0x24]
call fcn.00404fd7
mov eax, dword [ebp - 0x1c]
lea eax, [eax + edi*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push ecx
push eax
lea eax, [ebp - 0x24]
push str.StringFileInfo_04x_04xCompanyName
push eax
mov dword [ebp - 4], esi
call fcn.00405ba4
mov ebx, dword [ebp - 0x24]
add esp, 0x10
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x2c], esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x405d93
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push str.StringFileInfo040904e4CompanyName
push dword [ebp - 0x10]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x405da9
cmp dword [ebp - 0x14], esi
je 0x405da9
push dword [ebp - 0x30]
push dword [ebp - 0x14]
call fcn.0041e16d
test eax, eax
pop ecx
pop ecx
jne 0x405dc6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx - 0x10]
call fcn.00404981
mov eax, dword [ebp - 0x18]
inc edi
shr eax, 2
cmp edi, eax
jb 0x405d2c
jmp 0x405dd5
lea ecx, [ebx - 0x10]
mov dword [ebp - 0x20], 1
call fcn.00404981
push dword [ebp - 0x10]
call fcn.0041f61b
mov eax, dword [ebp - 0x20]
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.0041f54a
add ebp, 0x210
leave
ret
Function at 0x40669d
Capabilities:
Create directory

Disassembly:
push 0x10
mov eax, 0x4375a5
call fcn.0041f559
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], edi
call fcn.004065bc
push 0x450200
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.00404fd7
mov eax, dword [ebp - 0x10]
xor ebx, ebx
xor esi, esi
cmp dword [eax - 0xc], edi
mov byte [ebp - 4], 1
jbe 0x406734
push esi
push 0x43be70
lea ecx, [ebp - 0x10]
call fcn.00404f9e
mov esi, eax
push esi
push edi
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x10]
call fcn.00405576
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00405e66
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00404981
inc ebx
cmp ebx, 1
je 0x40672b
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp esi, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x406734
mov eax, dword [ebp - 0x10]
inc esi
cmp esi, dword [eax - 0xc]
jb 0x4066d9
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00404981
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404981
mov eax, dword [ebp - 0x18]
call fcn.0041f5f8
ret

Function at 0x406753
Capabilities:
Get common file path

Disassembly:
push 0x41c
mov eax, 0x4375e2
call fcn.0041f5c2
mov ebx, dword [ebp + 8]
xor esi, esi
push 0x450200
mov ecx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ebx
mov dword [ebp - 0x424], esi
call fcn.00404fd7
mov edi, 0x206
push edi
lea eax, [ebp - 0x41e]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x424], 1
mov word [ebp - 0x420], si
call fcn.0041f640
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push esi
push esi
push 0x801a
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x406831
push edi
lea eax, [ebp - 0x216]
push esi
push eax
mov word [ebp - 0x218], si
call fcn.0041f640
lea eax, [ebp - 0x420]
push eax
push 0x43be74
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0041fcfb
add esp, 0x1c
lea eax, [ebp - 0x218]
push eax
mov ecx, ebx
call fcn.00405f20
lea eax, [ebp - 0x218]
push eax
call fcn.00404589
test eax, eax
pop ecx
jne 0x406831
lea eax, [ebp - 0x218]
push eax
call fcn.0040669d
test eax, eax
pop ecx
jne 0x406831
mov ecx, ebx
call fcn.00404e0d
mov eax, ebx
call fcn.0041f60c
ret
Function at 0x406c6e
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x4376e1
call fcn.0041f559
cmp dword [ebp + 8], 0
je 0x406d5b
push dword [ebp + 8]
call fcn.0041ed7c
test eax, eax
pop ecx
je 0x406d5b
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.004065bc
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00406753
mov dword [esp], str.FailRecord.dat
push 0x104
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00405685
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00404e51
push dword [ebp - 0x10]
call fcn.004045d0
test eax, eax
pop ecx
push 0x20
jne 0x406cec
push str.w_ccsUNICODE
jmp 0x406cf1
push str.a_ccsUNICODE
push dword [ebp - 0x10]
call fcn.00420374
mov esi, eax
add esp, 0xc
test esi, esi
je 0x406d45
push ecx
mov ecx, esp
mov dword [ebp + 8], esp
push str.ox9Us__an_23J
call fcn.004065bc
lea eax, [ebp - 0x14]
push eax
call fcn.00406ac8
pop ecx
pop ecx
push 0x43beb4
lea ecx, [ebp - 0x14]
call fcn.00405efb
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 0xc]
push esi
push 1
add ecx, ecx
push ecx
push eax
call fcn.004202f2
push esi
call fcn.00420117
add esp, 0x14
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404981
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00404981
call fcn.0041f5f8
ret

Function at 0x406d61
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0041f640
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
je 0x406db5
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x406dbc
cmp dword [ebp - 0x7c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0041f54a
add ebp, 0xa0
leave
ret

Function at 0x406dd2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x406de9
test al, 0x10
jne 0x406de9
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x406dec
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5ec]
sub esp, 0x66c
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x5e8], eax
mov eax, dword [ebp + 0x5f4]
push ebx
mov ebx, dword [ebp + 0x5f8]
push esi
push edi
mov edi, 0x103
push edi
push eax
mov dword [ebp - 0x80], eax
lea esi, [edi + 1]
lea eax, [ebp + 0x3e0]
push esi
push eax
mov dword [ebp - 0x7c], 1
call fcn.00420549
push 0x43bf44
lea eax, [ebp + 0x3e0]
push esi
push eax
call fcn.004204cf
push ebx
lea eax, [ebp + 0x3e0]
push esi
push eax
call fcn.004204cf
add esp, 0x28
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x3e0]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x406e7a
xor eax, eax
inc eax
jmp 0x406f05
lea eax, [ebp - 0x4c]
push eax
push 0x43bf40
call fcn.0042049d
test eax, eax
pop ecx
pop ecx
je 0x406edb
lea eax, [ebp - 0x4c]
push eax
push 0x43bf38
call fcn.0042049d
test eax, eax
pop ecx
pop ecx
je 0x406edb
push edi
push dword [ebp - 0x80]
lea eax, [ebp + 0x1d8]
push esi
push eax
call fcn.00420549
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x1d8]
push esi
push eax
call fcn.004204cf
add esp, 0x1c
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406edb
and dword [ebp - 0x7c], eax
lea eax, [ebp - 0x78]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406e7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0x12
je 0x406f02
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0x5e8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f54a
add ebp, 0x5ec
leave
ret

Function at 0x406ffd
Capabilities:
Delete file

Disassembly:
push esi
push edi
xor edi, edi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x407022
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 0x64
cmp edi, dword [esp + 0x10]
jb 0x407001
pop edi
mov eax, esi
pop esi
ret
Function at 0x4075bd
Capabilities:
Get file version info

Disassembly:
push 0x10
mov eax, 0x43771f
call fcn.0041f559
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 0x20], 8
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 0x80004005
jae 0x4075e7
lea eax, [ebp + 0xc]
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, edi
jbe 0x40764f
push esi
call fcn.0041d1c2
cmp dword [ebp + 0x20], 8
mov ebx, eax
mov eax, dword [ebp + 0xc]
pop ecx
jae 0x407609
lea eax, [ebp + 0xc]
push ebx
push esi
push edi
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x407648
push 0x34
pop esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x43be70
push ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x407648
push esi
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.0041fd40
add esp, 0xc
mov dword [ebp - 0x10], edi
push ebx
call fcn.0041f61b
pop ecx
push edi
push 1
lea ecx, [ebp + 8]
call fcn.0040735a
mov eax, dword [ebp - 0x10]
call fcn.0041f5f8
ret

Function at 0x407a52
Capabilities:
Create directory

Disassembly:
push 0x5c
mov eax, 0x437752
call fcn.0041f5c2
mov eax, dword [ebp + 8]
xor esi, esi
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x4c], esi
call fcn.004079e2
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], 7
call fcn.00407290
xor ebx, ebx
xor edi, edi
cmp dword [ebp - 0x34], esi
mov byte [ebp - 4], 1
jbe 0x407af4
push edi
push 0x43be70
lea ecx, [ebp - 0x48]
call fcn.00407319
mov edi, eax
push edi
push esi
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x48]
call fcn.00407a04
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.004076c8
push esi
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.0040735a
inc ebx
cmp ebx, 1
je 0x407aee
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x407ade
lea eax, [ebp - 0x28]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp edi, 0xffffffff
mov dword [ebp - 0x4c], eax
je 0x407af4
inc edi
cmp edi, dword [ebp - 0x34]
jb 0x407a8f
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040735a
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0040735a
mov eax, dword [ebp - 0x4c]
call fcn.0041f60c
ret