joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x62b7351d
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0xd917427
nop
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401e21
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
test eax, eax
jg 0x401e73
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea edx, [eax + 0x40]
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Invalid_command_line:__s_n
mov dword [esp], edx
call sub.msvcrt.dll_fwprintf
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
movzx eax, word [eax]
cmp ax, 0x5c
je 0x401eab
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
movzx eax, word [eax]
movzx eax, ax
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_isalpha]
call eax
test eax, eax
je 0x401ec1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
add eax, 2
movzx eax, word [eax]
cmp ax, 0x3a
jne 0x401ec1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
jmp 0x401eec
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathAppendW]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LocalFree]
call eax
sub esp, 4
nop
leave
ret
Function at 0x402859
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_wcscpy
jmp 0x4029bb
cmp dword [ebp + 0x14], 0
jns 0x402970
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathAppendW]
call eax
sub esp, 8
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__waccess]
call eax
cmp eax, 0xffffffff
je 0x4028d4
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp + 8]
add eax, edx
mov word [eax], 0
jmp 0x4029c5
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp + 8]
add eax, edx
mov word [eax], 0
mov dword [esp + 4], str.mingw_bin
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathAppendW]
call eax
sub esp, 8
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__waccess]
call eax
cmp eax, 0xffffffff
je 0x40292b
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp + 8]
add eax, edx
mov word [eax], 0
jmp 0x4029c5
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp + 8]
add eax, edx
mov word [eax], 0
add dword [ebp + 0x14], 1
cmp dword [ebp + 0x14], 0
jne 0x402970
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea edx, [eax + 0x40]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Top_level_not_found:__s_n
mov dword [esp], edx
call sub.msvcrt.dll_fwprintf
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call eax
sub esp, 4
test eax, eax
jne 0x4029b1
mov eax, dword [sym.imp.msvcrt.dll__iob]
lea edx, [eax + 0x40]
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Invalid_executable_path:__s_n
mov dword [esp], edx
call sub.msvcrt.dll_fwprintf
mov dword [esp], 1
mov eax, dword [sym.imp.KERNEL32.dll_ExitProcess]
call eax
cmp dword [ebp + 0x14], 0
jle 0x4029bb
sub dword [ebp + 0x14], 1
cmp dword [ebp + 0x14], 0
jne 0x402876
leave
ret
Function at 0x403840
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004038a0

Function at 0x4038a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x468440]
test esi, esi
jle 0x40398d
mov edi, dword [0x468444]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4038d4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x403986
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4038c0
mov dword [esp], eax
mov ebx, eax
call fcn.004041c0
test eax, eax
mov edi, eax
je 0x4039ca
lea ebx, [esi + esi*2]
mov esi, dword [0x468444]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.004042f0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x468444]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4039aa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40397f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40397f
mov eax, dword [esp + 0x20]
add ebx, dword [0x468444]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x403994
add dword [0x468440], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x4038de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00403840
mov eax, dword [0x468444]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00403840
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00403840
lea esi, [esi]
Function at 0x403e30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x468458
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x468450]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x403e85
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x403e7e
test esi, esi
je 0x403e7e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x403e60
mov dword [esp], 0x468458
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x21ed5b06
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x512f4464
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x40167d
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x194], eax
push esi
push edi
call fcn.004015c8
mov edi, eax
xor eax, eax
push 0x206
mov word [ebp - 0x74], ax
xor esi, esi
lea eax, [ebp - 0x72]
push esi
push eax
call fcn.00415ab0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x74]
push eax
push edi
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x80], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x7c], esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, esi
jne 0x4016ee
xor eax, eax
jmp 0x40179f
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041169a
mov ebx, eax
pop ecx
cmp ebx, esi
jne 0x401711
xor eax, eax
jmp 0x40179e
push ebx
push edi
push esi
lea eax, [ebp - 0x74]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
mov esi, 0x43cf78
test eax, eax
je 0x40178a
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x42d900
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40178a
mov eax, dword [ebp - 0x78]
push dword [eax + 0x30]
movzx ecx, word [eax + 0xc]
push dword [eax + 0x2c]
push dword [eax + 0x28]
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x18]
push dword [eax + 0x1c]
push dword [eax]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str.FileVersion_:__d._d._d._d___FileVersionMS_:_0x_08x__FileVersionLS_:_0x_08x__ProductVersionMS_:_0x_08x__ProductVersionLS_:_0x_08x__Signature_:_0x_08x__FileFlags_:_0x_08x__FileFlagsMask_:_0x_08x__FileOS_:_0x_08x__FileType_:_0x_08x__FileSubType_:_0x_08x__FileDateMS_:_0x_08x__FileDateLS_:_0x_08x__
push 0x168
push esi
call fcn.004157ed
add esp, 0x4c
push ebx
call fcn.004135c6
movzx eax, word [0x43cf78]
neg eax
sbb eax, eax
pop ecx
and eax, esi
pop ebx
mov ecx, dword [ebp + 0x194]
pop edi
xor ecx, ebp
pop esi
call fcn.00413ea6
add ebp, 0x198
leave
ret
Function at 0x40194a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x88]
sub esp, 0x108
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x84], eax
push ebx
mov ebx, dword [ebp + 0x90]
push 0x103
lea eax, [ebp - 0x7f]
push 0
push eax
mov byte [ebp - 0x80], 0
call fcn.00415ab0
add esp, 0xc
test ebx, ebx
jne 0x40198b
xor eax, eax
jmp 0x4019e1
push esi
push edi
lea edi, [ebx + 1]
mov al, byte [edi]
test al, al
je 0x4019dc
mov esi, edi
sub esi, ebx
cmp al, 0x5c
jne 0x4019d4
push esi
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.00415de0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov byte [ebp + esi - 0x80], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4019c4
test al, 0x10
jne 0x4019d4
push 0
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4019f9
inc edi
mov al, byte [edi]
inc esi
test al, al
jne 0x40199a
xor eax, eax
inc eax
pop edi
pop esi
mov ecx, dword [ebp + 0x84]
xor ecx, ebp
pop ebx
call fcn.00413ea6
add ebp, 0x88
leave
ret 4
xor eax, eax
jmp 0x4019df

Function at 0x4019fd
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, dword [ebp + 0x198]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov dword [ebp - 0x80], esi
call fcn.00415ab0
add esp, 0xc
test esi, esi
jne 0x401a42
xor eax, eax
jmp 0x401ab0
push ebx
push edi
lea edi, [esi + 2]
movzx eax, word [edi]
xor ecx, ecx
cmp cx, ax
je 0x401aab
mov ebx, edi
sub ebx, esi
push 0x5c
pop ecx
cmp cx, ax
jne 0x401a9d
mov esi, ebx
sar esi, 1
add esi, esi
push esi
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call fcn.00415de0
xor eax, eax
mov word [ebp + esi - 0x7c], ax
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a8d
test al, 0x10
jne 0x401a9d
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401ac8
inc edi
inc edi
movzx eax, word [edi]
inc ebx
xor ecx, ecx
inc ebx
cmp cx, ax
jne 0x401a55
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.00413ea6
add ebp, 0x190
leave
ret 4
xor eax, eax
jmp 0x401aae
Function at 0x403267
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4032d0
cmp dword [ebp + 0x10], 1
je 0x4032a8
cmp dword [ebp + 0x10], 2
je 0x4032a8
push 0xd
pop eax
jmp 0x4032d0
mov eax, dword [ebp - 4]
test edi, edi
je 0x4032ca
test eax, eax
je 0x4032c5
test al, 1
jne 0x4032a3
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x4032ca
jmp 0x4032a3
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x4032d6
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x403381
cmp dword [ebp + 0xc], ebx
je 0x403381
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x40337c
push edi
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041169a
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403374
and dword [ebp + 8], ebx
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
push 0x42d900
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403374
mov eax, dword [ebp - 8]
movzx ecx, word [eax + 0xc]
push ecx
movzx ecx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push eax
push str._d._d._d._d
push dword [ebp + 0xc]
call fcn.00416392
add esp, 0x18
inc ebx
push edi
call fcn.004135c6
pop ecx
pop edi
mov eax, ebx
pop esi
jmp 0x403383
xor eax, eax
pop ebx
leave
ret
Function at 0x4069f6
Capabilities:
Print debug messages

Disassembly:
push ebp
sub esp, 0x21c
lea ebp, [esp - 4]
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x21c], eax
push 0xac
mov eax, 0x42b174
call fcn.00413eb5
mov eax, dword [0x43e89c]
mov edi, dword [ebp + 0x228]
test eax, eax
je 0x406b67
xor eax, eax
push 0x1fe
mov word [ebp + 0x1c], ax
xor esi, esi
lea eax, [ebp + 0x1e]
push esi
push eax
call fcn.00415ab0
add esp, 0xc
call fcn.00401880
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x42ef04
lea eax, [ebp + 0x1c]
push 0x100
push eax
call fcn.004157ed
add esp, 0x14
push edi
lea ecx, [ebp - 0x80]
call fcn.00406082
mov edi, eax
mov dword [ebp - 4], esi
push 0x42ef00
lea ecx, [ebp - 0x48]
call fcn.00406082
mov dword [ebp - 0x10], eax
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00406082
mov byte [ebp - 4], 2
push dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00405d84
mov byte [ebp - 4], 3
push edi
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00405d84
mov byte [ebp - 4], 4
push 0x42eefc
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.00406711
mov byte [ebp - 4], 5
push str._Module_Unloading____n
push eax
lea eax, [ebp]
push eax
call fcn.00406711
add esp, 0x30
mov byte [ebp - 4], 7
push esi
push ebx
lea ecx, [ebp - 0x64]
call fcn.00404665
mov byte [ebp - 4], 8
push esi
push ebx
lea ecx, [ebp - 0xb8]
call fcn.00404665
mov byte [ebp - 4], 9
push esi
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404665
mov byte [ebp - 4], 0xa
push esi
push ebx
lea ecx, [ebp - 0x9c]
call fcn.00404665
mov byte [ebp - 4], 0xb
push esi
push ebx
lea ecx, [ebp - 0x48]
call fcn.00404665
mov byte [ebp - 4], 0xc
push esi
push ebx
lea ecx, [ebp - 0x80]
call fcn.00404665
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x406b52
lea eax, [ebp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
push esi
push ebx
lea ecx, [ebp]
call fcn.00404665
mov eax, dword [0x43e89c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x21c]
xor ecx, ebp
call fcn.00413ea6
add ebp, 0x220
leave
ret
Function at 0x407107
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x490
lea ebp, [esp - 4]
mov eax, dword [0x43b690]
xor eax, ebp
mov dword [ebp + 0x490], eax
push 0x24
mov eax, 0x42b22d
call fcn.00413eb5
push 7
pop esi
mov edi, ecx
xor ebx, ebx
push ebx
lea ecx, [ebp + 0x250]
mov dword [ebp + 0x268], esi
call fcn.004034fd
mov dword [ebp - 4], ebx
lea eax, [edi + 0xf8]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040603f
mov byte [ebp - 4], 1
lea eax, [ebp + 0x250]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00406c74
pop ecx
pop ecx
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0040461a
cmp dword [ebp + 0x268], 8
mov eax, dword [ebp + 0x254]
jae 0x40718f
lea eax, [ebp + 0x254]
mov dword [ebp - 0x10], eax
xor eax, eax
push 0x206
mov word [ebp + 0x288], ax
lea eax, [ebp + 0x28a]
push ebx
push eax
call fcn.00415ab0
add esp, 0xc
push dword [ebp + 0x49c]
mov ecx, edi
call fcn.004017b6
push eax
push str.TSLOG
push dword [ebp - 0x10]
lea eax, [ebp + 0x288]
push str._s_s._s__d_..log
push 0x104
push eax
call fcn.004157ed
add esp, 0x1c
lea eax, [ebp]
push eax
lea eax, [ebp + 0x288]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push ebx
lea ecx, [ebp + 0x26c]
mov dword [ebp - 0x14], eax
mov dword [ebp + 0x284], esi
call fcn.004034fd
mov byte [ebp - 4], 2
cmp dword [ebp - 0x14], 0xffffffff
je 0x40728d
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x10]
lea ecx, [ebp + 0x26c]
call fcn.00405cb6
lea eax, [ebp + 0x2c]
push eax
lea ecx, [ebp + 0x26c]
call fcn.00405c99
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x407247
lea eax, [ebp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40727c
cmp dword [ebp + 0x284], 8
mov eax, dword [ebp + 0x270]
jae 0x407267
lea eax, [ebp + 0x270]
push eax
call esi
push eax
call esi
push eax
push str.DeleteLogFile_Failed__ErrorCode_:__d_0x_08x___LogFilePath_:__s
push edi
call fcn.0040b9dc
add esp, 0x14
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407215
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [ebp - 4], bl
push ebx
push 1
lea ecx, [ebp + 0x26c]
call fcn.00404665
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp + 0x250]
call fcn.00404665
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x490]
xor ecx, ebp
call fcn.00413ea6
add ebp, 0x494
leave
ret 4