joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412d2f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2014
call fcn.00416da0
push ebx
push esi
lea eax, [ebp - 0x2014]
push edi
mov esi, ecx
push eax
mov dword [ebp - 0x14], esi
call fcn.00412379
xor edi, edi
cmp eax, edi
jl 0x412ee7
lea eax, [ebp - 0xa]
push eax
lea eax, [ebp - 0x2014]
push eax
call fcn.00412ef4
pop ecx
test eax, eax
pop ecx
jne 0x412d7a
mov eax, 0x80020009
jmp 0x412ee7
mov ecx, esi
call fcn.00412351
lea eax, [ebp - 0x1014]
mov ecx, esi
push eax
call fcn.00412379
cmp eax, edi
jl 0x412ee7
movzx eax, word [ebp - 0xa]
sub eax, 8
je 0x412eaf
sub eax, 9
je 0x412e14
dec eax
dec eax
jne 0x412ed6
lea eax, [ebp - 0x1014]
test eax, eax
jne 0x412dbf
xor ebx, ebx
jmp 0x412df4
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
lea eax, [esi + esi]
add eax, 3
and al, 0xfc
call fcn.00416da0
mov ebx, esp
push esi
push ebx
lea eax, [ebp - 0x1014]
push 0xffffffffffffffff
push eax
push edi
push edi
mov word [ebx], di
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push ebx
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 4
jmp 0x412ec7
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test al, 1
mov dword [ebp - 8], eax
jne 0x412e50
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00416da0
mov dword [ebp - 4], esp
push ebx
push edi
push dword [ebp - 4]
call fcn.004160d0
add esp, 0xc
cmp dword [ebp - 4], edi
jne 0x412e5a
mov eax, 0x80004005
jmp 0x412ee7
cmp dword [ebp - 8], 0
jle 0x412e94
mov ecx, dword [ebp - 4]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
mov al, byte [ebp + edi - 0x1014]
push eax
call fcn.00412f7b
pop ecx
mov ecx, edi
push 4
and ecx, 1
shl ecx, 2
mov edx, ecx
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 8]
jl 0x412e60
mov eax, dword [ebp + 8]
push ebx
push dword [ebp - 4]
mov eax, dword [eax]
push 3
push 0
push dword [ebp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
xor edi, edi
jmp 0x412ed6
lea eax, [ebp - 0x1014]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x1014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.00412379
cmp eax, edi
jl 0x412ee7
xor eax, eax
lea esp, [ebp - 0x2020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x414a60
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov ebp, ecx
push edi
mov edi, dword [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp + 0x220], ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 4]
mov eax, ecx
mov esi, edi
mov edi, edx
push 4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esp + 0x1c]
xor edi, edi
neg edx
sbb edx, edx
mov eax, dword [esp + 0x14]
and edx, 3
push edi
neg ebx
sbb ebx, ebx
push 0x90000020
and ebx, 0xc0000000
push 3
push edi
add ebx, 0xc0000000
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp + 0x10c], eax
je 0x414b3e
cmp eax, edi
je 0x414b3e
mov edx, dword [ebp]
push edi
push edi
mov ecx, ebp
call dword [edx + 0xc]
mov esi, eax
cmp esi, edi
je 0x414b12
mov eax, dword [ebp + 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 0x10c], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov ecx, dword [ebp + 0x10c]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp]
mov ecx, ebp
mov dword [ebp + 0x108], eax
mov word [ebp + 0x228], di
call dword [edx + 0x28]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0xc
call fcn.00415150
pop edi
pop esi
pop ebp
mov eax, 0x5de
pop ebx
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4178d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041affb
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4178f6
test byte [esp + 8], 2
je 0x4178f6
mov dword [0x422a8c], 0xd
mov dword [0x422a90], 5
jmp 0x4178d1
xor eax, eax
ret
Function at 0x41aea8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x421f80
cmp edx, dword [eax]
je 0x41aeca
add eax, 8
inc ecx
cmp eax, 0x422010
jl 0x41aebb
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x421f80]
jne 0x41aff8
mov eax, dword [0x422a78]
cmp eax, 1
je 0x41afd2
test eax, eax
jne 0x41aefb
cmp dword [0x421b04], 1
je 0x41afd2
cmp edx, 0xfc
je 0x41aff8
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41af32
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00416130
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00416230
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41af75
lea eax, [ebp - 0x1a4]
push eax
call fcn.00416230
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4211d4
push edi
call fcn.00416b70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00416130
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00416140
lea eax, [ebp - 0xa0]
push 0x41f29c
push eax
call fcn.00416140
push dword [esi + 0x421f84]
lea eax, [ebp - 0xa0]
push eax
call fcn.00416140
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041b9b6
add esp, 0x2c
pop edi
jmp 0x41aff8
lea eax, [ebp + 8]
lea esi, [esi + 0x421f84]
push 0
push eax
push dword [esi]
call fcn.00416230
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x414460
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x414482
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414489
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414478
mov eax, 1
add ebx, ebx
jne 0x41449b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414490
jne 0x4144ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414490
xor ecx, ecx
sub eax, 3
jb 0x4144c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414532
mov ebp, eax
add ebx, ebx
jne 0x4144cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4144d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4144fc
inc ecx
add ebx, ebx
jne 0x4144e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4144dd
jne 0x4144f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4144dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41451c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41450d
jmp 0x41447e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41451c
add edi, ecx
jmp 0x41447e
pop esi
mov edi, esi
mov ecx, 0x210
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41453a
cmp byte [edi], 5
jne 0x41453a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41453f
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x4145ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a2b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a368]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41456c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1a36c]
or eax, eax
je 0x4145a8
mov dword [ebx], eax
add ebx, 4
jmp 0x414589
call dword [esi + 0x1a37c]
mov ebp, dword [esi + 0x1a370]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4145e2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x4012e0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0x104
push esi
push edi
mov edi, dword [esp + 0x110]
mov esi, ecx
test edi, edi
je 0x4013af
call fcn.004013e0
mov al, byte [esp + 0x114]
mov byte [esi + 4], 1
test al, al
jne 0x401340
lea eax, [esp + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 8]
push str..bak
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x401385
push edi
push str.Error_opening_log_file__s_n
push 0
push esi
mov byte [esi + 5], 1
mov byte [esi + 4], 0
call fcn.004013c0
add esp, 0x10
pop edi
pop esi
add esp, 0x104
ret 8
mov cl, byte [esp + 0x114]
test cl, cl
je 0x4013a8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
pop edi
pop esi
add esp, 0x104
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
pop esi
add esp, 0x104
ret 8
Function at 0x401400
Capabilities:
Print debug messages
Write file on windows

Disassembly:
sub esp, 0x424
push ebx
push ebp
push esi
push edi
push 0
mov esi, ecx
call fcn.0040c469
mov edx, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esi + 0x28]
add esp, 4
cmp eax, edx
je 0x4014cc
push ecx
mov dword [ecx], eax
call fcn.0040c450
push 0x18
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0040c3b6
add esp, 0x10
lea ecx, [esp + 0x2c]
push 0x4350f4
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [esi + 0x10]
push edi
call ebp
mov al, byte [esi + 5]
test al, al
je 0x401470
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [esi + 6]
test al, al
je 0x40149a
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call ebx
lea edx, [esp + 0x1c]
push eax
push edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov al, byte [esi + 4]
test al, al
je 0x4014c5
cmp dword [esi + 0xc], 0xffffffff
je 0x4014c5
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push eax
push ecx
call ebx
push eax
mov eax, dword [esi + 0xc]
lea edx, [esp + 0x20]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x43c]
mov edx, dword [esp + 0x438]
push ecx
push edx
lea eax, [esp + 0x3c]
push 0x3fe
push eax
call fcn.0040c366
add esp, 0x10
lea edi, [esi + 0x10]
mov byte [esp + 0x432], 0
push edi
call ebp
mov al, byte [esi + 5]
test al, al
je 0x40150e
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov al, byte [esi + 6]
test al, al
je 0x401538
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x38]
push edx
push eax
call ebx
lea ecx, [esp + 0x3c]
push eax
push ecx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
mov al, byte [esi + 4]
test al, al
je 0x401563
cmp dword [esi + 0xc], 0xffffffff
je 0x401563
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x38]
push edx
push eax
call ebx
mov edx, dword [esi + 0xc]
lea ecx, [esp + 0x3c]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x424
ret 8
Function at 0x403190
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x42899b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
push ebx
push esi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
lea eax, [esp + 0xc]
push eax
push esi
mov dword [esp + 0x14], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403220
mov ebx, dword [esp + 0x144]
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0xc]
call fcn.0041f352
mov edx, dword [esp + 8]
push ebx
push edx
call fcn.0040c925
add esp, 8
test eax, eax
je 0x40323b
lea ecx, [esp + 8]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0041f2e4
lea eax, [esp + 0xc]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4031d6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0x134]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x138
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 8]
mov dword [esp + 0x13c], 0xffffffff
call fcn.0041f2e4
mov eax, esi
jmp 0x403222

Function at 0x403990
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x428b58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0xc]
call fcn.0042038a
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0
call fcn.0042030d
mov eax, dword [0x435764]
mov dword [esp + 0x2c], eax
push 0
lea ecx, [esp + 0x30]
mov byte [esp + 0x3c], 2
mov dword [esp + 0x20], vtable.CFileException.0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0xffffffff
call fcn.0041f46d
lea ecx, [esi + 0x68]
push str..down
lea edx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x44], 3
call fcn.0041f579
mov eax, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0x8002
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x44], 4
call fcn.0042049c
test eax, eax
lea ecx, [esp + 8]
mov byte [esp + 0x38], 3
sete bl
call fcn.0041f2e4
test bl, bl
je 0x403a82
mov dword [esi + 0x78], 0
mov dword [esp + 0x1c], vtable.CFileException.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 5
call fcn.0041f2e4
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.004203df
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret
lea ecx, [esp + 0xc]
call fcn.00420796
lea ecx, [esp + 0xc]
mov dword [esi + 0x78], eax
call fcn.004206b7
mov dword [esp + 0x1c], vtable.CFileException.0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x38], 6
call fcn.0041f2e4
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.004203df
mov ecx, dword [esp + 0x30]
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x4040a0
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x428c50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov ecx, dword [esi + 0xa0]
mov eax, dword [ecx]
call dword [eax + 0x30]
shr eax, 0x14
lea edi, [esi + 0xbc]
xor ebx, ebx
push eax
push ebx
mov ecx, edi
call fcn.00401cb0
push 5
mov ecx, edi
call fcn.0041ea45
lea ecx, [ebp - 0x3c]
call fcn.0042038a
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.0042030d
mov ecx, dword [0x435764]
mov dword [ebp - 0x1c], ecx
push ebx
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x2c], vtable.CFileException.0
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xffffffff
call fcn.0041f46d
lea ebx, [esi + 0x68]
push str..down
lea edx, [ebp - 0x18]
push ebx
push edx
mov byte [ebp - 4], 3
call fcn.0041f579
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
push ecx
push 0xb002
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call fcn.0042049c
test eax, eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
sete byte [ebp - 0x11]
call fcn.0041f2e4
mov al, byte [ebp - 0x11]
test al, al
je 0x40417f
mov dword [ebp - 0x2c], vtable.CFileException.0
mov byte [ebp - 4], 5
jmp 0x40429b
mov eax, dword [esi + 0x78]
push 0
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
call fcn.0042063e
mov ecx, dword [esi + 0xa0]
lea eax, [ebp - 0x43c]
push 0x400
push eax
mov edx, dword [ecx]
mov dword [ebp - 4], 3
call dword [edx + 0x34]
test eax, eax
jle 0x4041fe
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x43c]
push eax
add edx, eax
push ecx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x18], edx
call fcn.004205f3
mov edx, dword [ebp - 0x18]
mov ecx, edi
shr edx, 0x14
push edx
call fcn.00401cd0
mov ecx, dword [esi + 0xa0]
lea edx, [ebp - 0x43c]
push 0x400
push edx
mov eax, dword [ecx]
mov dword [ebp - 4], 3
call dword [eax + 0x34]
test eax, eax
jg 0x4041b6
lea ecx, [ebp - 0x3c]
call fcn.004206b7
push 0
mov ecx, edi
call fcn.0041ea45
mov esi, dword [ebx]
push str..down
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.0041f579
mov eax, dword [eax]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
lea ecx, [ebp - 0x18]
sete byte [ebp - 0x11]
call fcn.0041f2e4
mov al, byte [ebp - 0x11]
test al, al
je 0x40424f
push 0
push 0
push 0x435584
call fcn.00422f7f
push str..down
lea ecx, [ebp - 0x18]
push ebx
push ecx
call fcn.0041f579
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x18]
call fcn.0041f2e4
mov dword [ebp - 0x2c], vtable.CFileException.0
mov byte [ebp - 4], 9
jmp 0x40429b
lea ecx, [ebp - 0x1c]
call fcn.0041f2e4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 0xffffffff
call fcn.004203df
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4043b0
Capabilities:
Check for time delay via gettickcount
Create process on windows
Delete file
Get number of processors
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x428ca0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
mov eax, dword [0x435764]
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
push str.__VERYSILENT__SUPPRESSMSGBOXES__NORESTART__DIR_
push ecx
mov dword [esp + 0x84], 0
call fcn.0041ac85
add esp, 8
lea edx, [esp + 0x10]
lea ebp, [esi + 0x68]
lea eax, [esp + 0x1c]
push edx
push ebp
push eax
call fcn.0041f513
lea ecx, [esi + 0x16c]
lea edx, [esp + 0x18]
push ecx
mov ebx, 1
push eax
push edx
mov byte [esp + 0x88], bl
call fcn.0041f513
push 0x435348
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x84], 2
push eax
call fcn.0041f579
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x80], 3
call fcn.0041f41d
lea ecx, [esp + 0x14]
mov byte [esp + 0x7c], 2
call fcn.0041f2e4
lea ecx, [esp + 0x18]
mov byte [esp + 0x7c], bl
call fcn.0041f2e4
lea ecx, [esp + 0x1c]
mov byte [esp + 0x7c], 0
call fcn.0041f2e4
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x20], ecx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x24], ecx
mov word [esp + 0x60], ax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ecx
call fcn.0042586b
mov eax, dword [eax + 4]
mov esi, dword [esi + 0x64]
push esi
mov ecx, eax
call fcn.00403190
mov esi, eax
test esi, esi
je 0x4044f1
push 0
push ebx
push 0x4355b4
call fcn.00422f7f
cmp eax, ebx
jne 0x404577
push esi
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4044f1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea edx, [esp + 0x20]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edx
push eax
push 0
push 0
push 0x10
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404524
push eax
push eax
push 0x435334
call fcn.00422f7f
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov edx, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x2710
push edx
mov edi, eax
call ebx
test eax, eax
je 0x40455f
call esi
sub eax, edi
cmp eax, 0xea60
ja 0x40459b
mov eax, dword [esp + 0x20]
push 0x2710
push eax
call ebx
test eax, eax
jne 0x404544
push 0
push 0
push str.upgradetool
call fcn.00422f7f
mov ebp, dword [ebp]
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov dword [esp + 0x7c], 0xffffffff
call fcn.0041f2e4
mov ecx, dword [esp + 0x74]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x70
ret
push 0
push 0
push 0x435310
call fcn.00422f7f
jmp 0x404577
Function at 0x412451
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x436bd0
cmp edx, dword [eax]
je 0x412473
add eax, 8
inc ecx
cmp eax, 0x436c60
jl 0x412464
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x436bd0]
jne 0x4125a1
mov eax, dword [0x43b85c]
cmp eax, 1
je 0x41257b
test eax, eax
jne 0x4124a4
cmp dword [0x4364d4], 1
je 0x41257b
cmp edx, 0xfc
je 0x4125a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4124db
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413d80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040da00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41251e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040da00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d878
push edi
call fcn.00410e10
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413d80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413d90
lea eax, [ebp - 0xa0]
push 0x42d858
push eax
call fcn.00413d90
push dword [esi + 0x436bd4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413d90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00415aab
add esp, 0x2c
pop edi
jmp 0x4125a1
lea eax, [ebp + 8]
lea esi, [esi + 0x436bd4]
push 0
push eax
push dword [esi]
call fcn.0040da00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41a180
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040dc50
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41a24b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41a24b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41a1fe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41a209
or bh, 8
and edi, 0x8000000
je 0x41a224
mov eax, dword [0x43cfdc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41a24b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret