joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403510
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x429034], 0
je 0x403571
cmp word [0x429208], 0xd7b2
jne 0x403539
cmp dword [0x429210], 0
jbe 0x403539
mov eax, 0x429204
call dword [0x429220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x42605c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403598
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x426020], 0
jne 0x40358d
push 0
push 0x426054
push 0x42605c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40443c
Capabilities:
Get geographical location

Disassembly:
push ebx
mov ebx, esp
sub esp, 0x10
push ebp
xor ebp, ebp
xor edx, edx
mov dword [ebx - 0x10], ebp
push ebx
push 0x4044a2
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebx - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebx - 0x10]
lea edx, [ebx - 0xb]
mov ecx, 7
call fcn.004038dc
mov eax, dword [ebx - 0x10]
lea edx, [ebx - 4]
call fcn.00402ab4
mov ebp, eax
cmp dword [ebx - 4], 0
je 0x40448c
xor ebp, ebp
pop edx
pop ecx
pop ecx
xor eax, eax
mov dword fs:[eax], edx
push 0x4044a9
lea eax, [ebx - 0x10]
call fcn.00403694
ret

Function at 0x405990
Capabilities:
Accept command line arguments

Disassembly:
or eax, eax
push edi
mov edi, edx
jne 0x4059be
add esp, 0xfffffefc
mov ecx, esp
push 0x104
push ecx
push 0
call sub.kernel32.dll_GetModuleFileNameA
xchg ecx, eax
mov edx, esp
mov eax, edi
call fcn.00403784
sub esp, 0xfffffefc
pop edi
ret
push eax
call sub.kernel32.dll_GetCommandLineA_1
pop ecx
inc ecx
call fcn.0040d850
mov edx, eax
call fcn.0040d860
loop 0x4059c6
mov ecx, eax
sub ecx, edx
cmp ecx, 2
jl 0x4059ea
cmp byte [edx], 0x22
jne 0x4059ea
cmp byte [eax - 1], 0x22
jne 0x4059ea
inc edx
dec eax
sub eax, edx
xchg ecx, eax
xchg edi, eax
call fcn.00403784
pop edi
ret
Function at 0x405a08
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
xor ecx, ecx
push ebx
mov ebx, edx
push esi
mov esi, eax
xor eax, eax
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x170], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
push ebp
push 0x405b5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00403694
mov edx, esi
lea eax, [ebp - 4]
call fcn.0040372c
jmp 0x405af7
lea eax, [ebp - 4]
lea ecx, [ebp - 8]
mov edx, 0x405b74
call fcn.0040d780
cmp dword [ebx], 0
je 0x405a76
mov eax, ebx
mov edx, 0x405b74
call fcn.004038fc
cmp dword [ebx], 0
jne 0x405a9d
mov eax, dword [ebp - 8]
call fcn.004038f4
cmp eax, 2
jne 0x405a9d
mov eax, dword [ebp - 8]
cmp byte [eax + 1], 0x3a
jne 0x405a9d
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004036e8
jmp 0x405af7
lea edx, [ebp - 0x168]
lea eax, [ebp - 0x16c]
push 0x200
push 0x160
push edx
push 0
mov edx, dword [ebx]
mov ecx, dword [ebp - 8]
call fcn.00403940
mov eax, dword [ebp - 0x16c]
call fcn.00403af4
push eax
call sub.shell32.dll_SHGetFileInfoA
cmp byte [ebp - 0x15c], 0
je 0x405aed
lea edx, [ebp - 8]
lea edx, [ebp - 0x15c]
mov ecx, 0x104
call fcn.004038dc
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004038fc
cmp dword [ebp - 4], 0
jne 0x405a55
mov eax, dword [ebx]
lea edx, [ebp - 0x170]
call fcn.0040d97c
cmp dword [ebp - 0x170], 0
jne 0x405b31
mov eax, esi
lea edx, [ebp - 0x174]
call fcn.0040d97c
mov edx, dword [ebp - 0x174]
mov eax, ebx
call fcn.004038fc
xor edx, edx
pop eax
pop ecx
pop ecx
mov dword fs:[edx], eax
push 0x405b63
lea eax, [ebp - 0x174]
mov edx, 3
call fcn.004036b8
mov edx, 2
lea eax, [ebp - 8]
call fcn.004036b8
ret

Function at 0x405e08
Capabilities:
Get disk size

Disassembly:
push ebx
push edi
mov ebx, eax
push esi
sub esp, 0xbc
xor esi, esi
mov dword [esp + 0x20], 0x94
mov edi, edx
lea eax, [esp + 0x20]
push eax
call sub.kernel32.dll_GetVersionExA
mov edx, dword [esp + 0x30]
xor eax, eax
cmp edx, 2
jne 0x405e3e
cmp dword [esp + 0x24], 4
setae al
jmp 0x405e6c
cmp edx, 1
jne 0x405e6c
mov edx, dword [esp + 0x24]
cmp edx, 4
seta al
or al, al
jne 0x405e6c
cmp edx, 4
jne 0x405e6c
cmp dword [esp + 0x28], 0
seta al
test al, al
jne 0x405e6c
cmp word [esp + 0x2c], 0x1111
setae al
or al, al
je 0x405e89
push 0x405ef8
call sub.kernel32.dll_GetModuleHandleA_2
mov esi, eax
push 0x405f04
push esi
call sub.kernel32.dll_GetProcAddress
mov esi, eax
or esi, esi
je 0x405ea4
push edi
lea edi, [esp + 0x1c]
push edi
lea eax, [esp + 0x18]
push eax
mov eax, ebx
call fcn.00403af4
push eax
call esi
jmp 0x405eec
lea eax, [esp + 0xc]
push eax
lea esi, [esp + 0xc]
push esi
lea eax, [esp + 0xc]
push eax
lea esi, [esp + 0xc]
mov eax, ebx
push esi
call fcn.00403af4
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
mov eax, dword [esp]
imul dword [esp + 4]
xor edx, edx
lea ecx, [esp + 0xb4]
call fcn.004054bc
lea eax, [esp + 0xb4]
mov edx, dword [esp + 8]
mov ecx, edi
call fcn.0040a970
add esp, 0xbc
pop esi
pop edi
pop ebx
ret
Function at 0x406344
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, edx
push esi
mov esi, eax
add esp, 0xfffffff4
mov dword [esp + 8], 4
xor eax, eax
or esi, esi
mov dword [esp], eax
je 0x406388
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, ebx
push 0
call fcn.00403af4
push eax
push esi
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x406388
cmp dword [esp + 4], 4
je 0x40638d
xor ecx, ecx
mov dword [esp], ecx
mov eax, dword [esp]
sub esp, 0xfffffff4
pop esi
pop ebx
ret

Function at 0x4063d4
Capabilities:
Query environment variable

Disassembly:
push edi
mov edi, esp
add esp, 0xffffffec
push esi
push ebp
mov ebp, ecx
push ebx
mov dword [edi - 0x10], edx
mov dword [edi - 0xc], eax
mov eax, ebp
call fcn.00403694
cmp dword [edi - 0xc], 0
je 0x40647a
xor ebx, ebx
mov dword [edi - 8], ebx
xor eax, eax
mov dword [edi - 0x14], eax
push edi
call fcn.00406398
test al, al
pop ecx
je 0x40647a
cmp dword [edi - 4], 1
je 0x406417
cmp dword [edi - 4], 2
jne 0x40647a
mov eax, dword [edi - 8]
call fcn.00402830
mov dword [edi - 0x14], eax
push edi
call fcn.00406398
or al, al
pop ecx
je 0x406472
cmp dword [edi - 4], 2
jne 0x406468
push 0
push 0
mov eax, dword [edi - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, eax
mov eax, esi
call fcn.00402830
push esi
mov ebx, eax
push ebx
mov eax, dword [edi - 0x14]
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov edx, ebx
mov eax, ebp
call fcn.00403870
mov eax, ebx
call fcn.00402860
jmp 0x406472
mov edx, dword [edi - 0x14]
mov ebx, ebp
call fcn.00403870
mov eax, dword [edi - 0x14]
call fcn.00402860
pop ebx
pop ebp
pop esi
mov esp, edi
pop edi
ret

Function at 0x4064fc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push ebx
push edi
mov edi, eax
mov ebx, ecx
mov dword [ebp - 4], edx
cmp byte [ebp + 8], 0
mov esi, 1
je 0x40651a
mov esi, 2
test edi, edi
je 0x406545
mov eax, ebx
call fcn.004038f4
inc eax
push eax
mov eax, ebx
call fcn.00403af4
push eax
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
push edi
call sub.advapi32.dll_RegSetValueExA
or eax, eax
je 0x406549
xor eax, eax
jmp 0x40654b
mov al, 1
pop edi
pop ebx
pop esi
pop ecx
pop ebp
ret 4

Function at 0x406560
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, eax
push ebx
mov ebx, edx
add esp, 0xfffffff8
test esi, esi
je 0x40658d
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, ebx
call fcn.00403af4
push eax
push esi
call sub.advapi32.dll_RegQueryValueExA_1
or eax, eax
je 0x406591
xor eax, eax
jmp 0x406593
mov al, 1
pop ecx
pop esi
pop ebx
pop esi
ret
Function at 0x406f68
Capabilities:
Read .ini file

Disassembly:
push ebx
mov ebx, esp
sub esp, 0xffc
push eax
sub esp, 4
push edi
mov edi, eax
push esi
mov esi, ecx
push ebp
mov dword [ebx - 4], edx
mov ebp, dword [ebx + 8]
cmp byte [edi + 0x18], 0
jne 0x406fe4
mov byte [ebx - 0x1004], 0
mov eax, dword [edi + 0x19]
call fcn.00403af4
push eax
lea eax, [ebx - 0x1004]
push 0x1000
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebx - 4]
call fcn.00403af4
push eax
mov eax, dword [edi + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
or eax, eax
je 0x406fdb
lea edx, [ebx - 0x1004]
mov eax, ebp
mov ecx, 0x1000
call fcn.004038dc
jmp 0x407015
mov eax, ebp
call fcn.00403694
jmp 0x407015
mov edx, esi
mov eax, ebp
call fcn.004036e8
mov eax, dword [edi + 0x19]
call fcn.00403af4
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebx - 4]
call fcn.00403af4
push eax
mov eax, dword [edi + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop ebp
pop esi
pop edi
mov esp, ebx
pop ebx
ret 4

Function at 0x40aa70
Capabilities:
Get file attributes

Disassembly:
push ebx
push eax
push 0x8001
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40aa8b
dec eax
and al, 0x10
setne al
xchg ebx, eax
push eax
call sub.kernel32.dll_SetErrorMode
xchg ebx, eax
pop ebx
ret

Function at 0x40b8b4
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
or dl, dl
je 0x40b8c0
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40b8d9
push eax
je 0x40b8da
call dword [0x426148]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x426148]
ret

Function at 0x40cbc4
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.0040cb60
je 0x40cbf6
mov eax, ebx
push edx
call fcn.004094c8
pop edx
cmp eax, edx
je 0x40cbf6
or edx, edx
mov eax, ebx
jne 0x40cbe8
pop ebx
inc edx
jmp fcn.004094b8
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.004094b8
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.0040cc14
ret
Function at 0x40d908
Capabilities:
Get file attributes

Disassembly:
call fcn.0040502c
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40d91c
dec eax
and al, 0x10
sete al
ret

Function at 0x40d998
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
xchg ebx, eax
mov eax, esp
push 0x104
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
mov eax, esp
call fcn.00403870
mov edx, ebx
mov eax, dword [edx]
call fcn.00405c64
add esp, 0x104
pop ebx
ret

Function at 0x40e488
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push edi
push esi
mov edi, edx
push ebx
mov word [ebp - 2], cx
push 0
mov esi, eax
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e4bc
xor eax, eax
jmp 0x40e50d
lea eax, [ebp - 0xc]
push eax
mov ax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
or eax, eax
je 0x40e4f0
lea eax, [ebp - 0xc]
lea edi, [ebp - 0x14]
push edi
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
lea edi, [ebp - 0x14]
push edi
push 0
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle
mov ax, word [ebp + 8]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, 1
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ffc4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push edi
push ebx
push esi
mov edi, eax
push ebp
push ecx
mov ebx, dword [edi + 0x24]
mov esi, dword [edi + 0x34]
sub esi, dword [edi + 0x6c]
sub esi, dword [edi + 0x64]
or esi, esi
jne 0x40ffee
cmp dword [edi + 0x64], 0
jne 0x40ffee
cmp dword [edi + 0x6c], 0
jne 0x40ffee
mov esi, ebx
jmp 0x410075
cmp esi, 0xffffffff
jne 0x40fff6
dec esi
jmp 0x410075
mov eax, dword [edi + 0x24]
add eax, 0xfffffefa
add eax, ebx
cmp eax, dword [edi + 0x64]
ja 0x410075
mov ebp, ebx
push ebx
mov eax, dword [edi + 0x30]
mov edx, eax
add edx, ebp
push edx
push eax
call fcn.0040f3a4
sub esp, 0xfffffff4
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
sub dword [edi + 0x54], ebp
mov ebp, dword [edi + 0x44]
mov ecx, ebp
add ecx, ecx
add ecx, dword [edi + 0x3c]
sub ecx, 2
movzx eax, word [ecx]
mov dword [esp], eax
cmp ebx, dword [esp]
ja 0x410043
mov ax, word [esp]
sub ax, bx
jmp 0x410045
xor eax, eax
mov word [ecx], ax
dec ebp
jne 0x41002c
mov eax, ebx
mov edx, eax
add edx, edx
add edx, dword [edi + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp ebx, dword [esp]
ja 0x41006b
mov cx, word [esp]
sub cx, bx
jmp 0x41006d
xor ecx, ecx
dec eax
mov word [edx], cx
jne 0x410054
add esi, ebx
mov ebp, dword [edi]
cmp dword [ebp + 4], 0
je 0x4100d2
mov ecx, esi
mov edx, dword [edi + 0x30]
add edx, dword [edi + 0x64]
mov eax, ebp
add edx, dword [edi + 0x6c]
call fcn.0040fd60
add dword [edi + 0x6c], eax
cmp dword [edi + 0x6c], 3
jb 0x4100bd
mov edx, dword [edi + 0x64]
mov eax, dword [edi + 0x30]
movzx eax, byte [eax + edx]
mov dword [edi + 0x40], eax
mov esi, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
shl eax, cl
mov ecx, dword [edi + 0x64]
movzx esi, byte [esi + ecx + 1]
xor eax, esi
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp dword [edi + 0x6c], 0x106
jae 0x4100d2
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x40ffce
pop edx
pop ebp
pop esi
pop ebx
pop edi
ret

Function at 0x415858
Capabilities:
Hash data with crc32

Disassembly:
push ebx
xor ebx, ebx
push esi
mov esi, 0x4299d0
mov ecx, 8
mov eax, ebx
mov edx, eax
and edx, 1
test dl, dl
je 0x41587a
shr eax, 1
xor eax, 0xedb88320
jmp 0x41587c
shr eax, 1
dec ecx
jne 0x415868
inc ebx
mov dword [esi], eax
add esi, 4
cmp ebx, 0x100
jne 0x415861
mov byte [0x429dd0], 1
pop esi
pop ebx
ret

Function at 0x415898
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, eax
mov esi, edx
push ebx
mov ebx, ecx
cmp byte [0x429dd0], 0
jne 0x4158af
call fcn.00415858
mov eax, ebx
dec eax
or eax, eax
jl 0x4158d8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4299d0]
shr edi, 8
xor ecx, edi
inc edx
dec eax
mov edi, ecx
jne 0x4158b9
mov eax, edi
pop ebx
pop edi
pop esi
ret
Function at 0x41aa38
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push ebp
push edi
push ecx
mov dword [esp], eax
mov edx, dword [0x428854]
mov edx, dword [edx]
mov eax, dword [esp]
mov eax, dword [eax + 0x18]
call fcn.0040b86c
mov ebx, 0xff
mov eax, 0x1a
call fcn.00422b38
mov edi, eax
dec edi
test edi, edi
jl 0x41aaaa
inc edi
xor esi, esi
mov ebp, esi
shl ebp, 2
mov eax, dword [0x4287e4]
mov eax, dword [eax]
mov edx, dword [eax + ebp*4]
mov eax, dword [esp]
mov eax, dword [eax + 0x24]
call fcn.0040df3c
mov eax, dword [0x4287e4]
mov eax, dword [eax]
mov eax, dword [eax + ebp*4 + 4]
call fcn.0040d700
push eax
call sub.kernel32.dll_GetUserDefaultLangID
pop edx
movzx eax, ax
cmp edx, eax
jne 0x41aaa6
mov ebx, esi
inc esi
dec edi
jne 0x41aa6c
cmp ebx, 0xff
jne 0x41aaea
mov eax, 0x1a
call fcn.00422b38
mov edi, eax
dec edi
test edi, edi
jl 0x41aaea
inc edi
xor ebp, ebp
mov eax, ebp
shl eax, 2
mov esi, dword [0x4287e4]
mov esi, dword [esi]
mov eax, dword [esi + eax*4]
mov edx, 0x41ab10
call fcn.00403a40
jne 0x41aae6
mov ebx, ebp
jmp 0x41aaea
inc ebp
dec edi
jne 0x41aac6
cmp ebx, 0xff
jne 0x41aaf4
xor ebx, ebx
mov edx, ebx
mov eax, dword [esp]
mov eax, dword [eax + 0x24]
call fcn.0040c344
pop edx
pop edi
pop ebp
pop esi
pop ebx
ret

Function at 0x41ce54
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebx
mov ebx, edx
add esp, 0xfffffefc
mov dword [esp], pe_nt_image_headers32
test al, al
je 0x41ce75
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
jmp 0x41ce80
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
lea edx, [esp + 4]
mov ecx, pe_nt_image_headers32
mov eax, ebx
call fcn.004038dc
add esp, 0x104
pop ebx
ret
Function at 0x41e80c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor edx, edx
xor edi, edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov byte [ebp - 1], al
push ebp
push 0x41e9eb
push dword fs:[edi]
mov dword fs:[edi], esp
mov eax, dword [0x4287f8]
mov eax, dword [eax]
mov edx, dword [eax + 0xe4]
mov eax, dword [0x42a004]
mov eax, dword [eax + 0x5c]
call fcn.0040b86c
mov eax, dword [0x428840]
mov eax, dword [eax]
call fcn.0040bd64
mov eax, 0x28
call fcn.00422b38
mov edi, eax
dec edi
test edi, edi
jl 0x41e9d0
inc edi
xor ebx, ebx
mov esi, ebx
add esi, esi
lea esi, [esi + esi*2]
mov eax, dword [0x4287f4]
mov eax, dword [eax]
mov eax, dword [eax + esi*4 + 0x10]
call fcn.0040d700
xor edx, edx
mov dl, byte [ebp - 1]
cmp eax, edx
jne 0x41e9c8
mov eax, dword [0x4287f4]
mov eax, dword [eax]
xor edx, edx
mov eax, dword [eax + esi*4 + 4]
lea ecx, [ebp - 0xc]
call fcn.0041d480
mov eax, dword [0x4287f4]
mov eax, dword [eax]
mov eax, dword [eax + esi*4 + 8]
lea ecx, [ebp - 0x10]
xor edx, edx
call fcn.0041d480
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
call fcn.00405c8c
mov eax, dword [0x4287f4]
mov eax, dword [eax]
mov eax, dword [eax + esi*4 + 0xc]
call fcn.0040d700
mov dword [ebp - 8], eax
mov eax, dword [0x4287f4]
mov eax, dword [eax]
mov eax, dword [eax + esi*4 + 0x14]
call fcn.0040d700
dec eax
jne 0x41e983
mov edx, 0x3c
xor ecx, ecx
lea eax, [ebp - 0x50]
call fcn.00402a94
mov dword [ebp - 0x50], 0x3c
mov eax, dword [0x428840]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, 0x41e9fc
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0xc]
call fcn.00403af4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x14]
call fcn.00403af4
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x10]
call fcn.00403af4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], 0x240
lea eax, [ebp - 0x50]
push eax
call sub.shell32.dll_ShellExecuteExA
or eax, eax
je 0x41e9b7
jmp 0x41e966
mov eax, dword [0x428840]
mov eax, dword [eax]
call fcn.0040bd64
push 0x32
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x41e95a
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
jmp 0x41e9b7
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403af4
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403af4
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403af4
push eax
push 0x41e9fc
mov eax, dword [0x428840]
mov eax, dword [eax]
mov eax, dword [eax + 0x1c]
push eax
call sub.shell32.dll_ShellExecuteA
push 0
push 0x2800
mov eax, dword [0x42a004]
call fcn.0041d648
inc ebx
dec edi
jne 0x41e86f
pop eax
pop ecx
pop ecx
xor edx, edx
mov dword fs:[edx], eax
push 0x41e9f2
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004036b8
ret
Function at 0x41eecc
Capabilities:
Delete file

Disassembly:
push ebx
sub esp, 0x10
mov ebx, eax
cmp dword [0x42a02c], 0
jle 0x41eeeb
mov eax, dword [0x42a038]
call fcn.00403af4
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, ebx
call fcn.0040ab20
mov dword [esp], eax
mov eax, dword [esp]
mov edx, 0x41efa0
call fcn.00406a68
mov eax, 0x75
call fcn.00422b38
cmp eax, dword [0x42a02c]
jne 0x41ef29
mov eax, 0x76
call fcn.00422b38
cdq
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp 0x41ef3c
mov eax, 0x5f
call fcn.00422b38
cdq
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
cmp dword [0x42a034], 1
jne 0x41ef6b
mov eax, 0x5f
call fcn.00422b38
mov edx, eax
imul edx, dword [0x42a02c]
mov eax, dword [0x42882c]
add edx, dword [eax]
mov eax, dword [0x42a030]
xor ecx, ecx
call fcn.00406b50
push dword [esp + 0xc]
push dword [esp + 0xc]
mov eax, dword [esp + 8]
call fcn.0041ecc8
mov eax, dword [esp]
call fcn.0040a210
mov eax, 0x42a038
mov edx, ebx
call fcn.004036e8
sub esp, 0xfffffff0
pop ebx
ret
Function at 0x41f208
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov esi, edx
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xc], ecx
mov esi, eax
xor ebx, ebx
push ebp
push 0x41f3c6
push dword fs:[ebx]
mov dword fs:[ebx], esp
mov byte [ebp - 0x1d], 1
lea eax, [esi + esi*2]
mov ebx, dword [0x42885c]
mov ebx, dword [ebx]
mov eax, dword [ebx + eax*4]
lea ecx, [ebp - 0x24]
xor edx, edx
call fcn.0041d480
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004036e8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00403af4
push eax
call sub.kernel32.dll_GetFileAttributesA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41f35d
test bl, 0x10
jne 0x41f35d
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00403af4
push eax
call sub.kernel32.dll_CreateFileA
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push edi
call sub.kernel32.dll_GetFileTime
push edi
call sub.kernel32.dll_CloseHandle
lea eax, [esi + esi*2]
mov edx, dword [0x42885c]
mov edx, dword [edx]
mov eax, dword [edx + eax*4 + 4]
call fcn.0040d700
cmp eax, 4
ja case.default.0x41f2cf
jmp dword [eax*4 + 0x41f2d6]
push ebp
call fcn.0041f008
pop ecx
jmp case.default.0x41f2cf
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x14]
call fcn.00405c1c
dec eax
jne 0x41f30a
push ebp
call fcn.0041f008
pop ecx
jmp case.default.0x41f2cf
mov byte [ebp - 0x1d], 0
jmp case.default.0x41f2cf
mov byte [ebp - 0x1d], 1
jmp case.default.0x41f2cf
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x14]
call fcn.00405c1c
dec eax
sete byte [ebp - 0x1d]
jmp case.default.0x41f2cf
mov byte [ebp - 0x1d], 0
cmp byte [ebp - 0x1d], 0
je 0x41f372
test bl, 1
je 0x41f34b
and ebx, 0xfffffffe
push ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00403af4
push eax
call sub.kernel32.dll_SetFileAttributesA
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00403af4
push eax
call sub.kernel32.dll_DeleteFileA
jmp 0x41f372
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x28]
mov eax, dword [eax]
call fcn.00405c8c
mov eax, dword [ebp - 0x28]
call fcn.00405ce4
cmp byte [ebp - 0x1d], 0
jne 0x41f382
mov eax, dword [ebp - 0xc]
call fcn.00403694
jmp 0x41f3a8
lea eax, [esi + esi*2]
mov edx, dword [0x42885c]
mov edx, dword [edx]
mov eax, dword [edx + eax*4 + 8]
call fcn.0040d700
dec eax
jne 0x41f3a8
mov edx, dword [ebp - 0xc]
mov edx, dword [edx]
mov eax, dword [0x42a03c]
call fcn.0040c46c
xor eax, eax
pop edx
pop ecx
mov bl, byte [ebp - 0x1d]
pop ecx
mov dword fs:[eax], edx
push 0x41f3cd
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004036b8
ret