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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sym.___wine_dbg_get_channel_flags
movzx ecx, byte [ebp + 8]
movzx eax, al
sar eax, cl
test al, 1
je 0x4082a8
mov edx, dword [0x40d0a4]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x408298
test byte [0x40926c], 8
jne 0x408240
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x40927c], 8
jne 0x408200
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov ecx, str._04x:
mov dword [esp + 4], ecx
mov dword [esp], esi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x40815b
cmp dword [ebp + 8], 3
jbe 0x4081c0
mov dword [esp], 2
mov ebx, edi
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov esi, dword [ebx]
add ebx, 4
lea ecx, [esi - 0x1010101]
not esi
and ecx, esi
and ecx, 0x80808080
je 0x40816a
mov dword [esp + 0xc], eax
mov esi, ecx
mov eax, 1
mov dword [esp + 4], eax
shr esi, 0x10
test ecx, 0x8080
mov dword [esp], edi
cmove ecx, esi
lea esi, [ebx + 2]
mov dl, cl
cmove ebx, esi
add dl, cl
sbb ebx, 3
sub ebx, edi
mov dword [esp + 8], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp + 0x10]
add eax, esi
inc ebx
mov dword [esp + 0x10], ebx
mov dword [esp], eax
mov dword [esp + 0x14], edx
mov edx, dword [ebp + 8]
mov ecx, dword [edx*4 + 0x40abc0]
mov edx, str._s:_s:_s
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
mov ecx, edi
sub ecx, eax
add ecx, 0xc8
mov dword [esp + 4], ecx
call sym._snprintf.constprop.0
jmp 0x40815b
mov dword [esp], 0x40927c
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x408130
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov ecx, str._04x:
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call sym._sprintf
add esi, eax
jmp 0x408130
mov dword [esp], 0x40926c
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x40811d
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
mov esi, str._3u._03u:
mov dword [esp + 4], esi
lea edi, [esp + 0x28]
mov dword [esp], edi
mov ecx, eax
mul edx
shr edx, 6
mov dword [esp + 8], edx
imul eax, edx, 0x3e8
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea esi, [edi + eax]
jmp 0x408123
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x4081b8
Function at 0x408590
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete dl
movzx edx, dl
inc edx
mov dword [esp], edx
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x401320
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [0x4067a8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push eax
push 0
call edi
mov esi, eax
mov byte [esp + 0xb], 0
test esi, esi
jne 0x401356
push eax
push 0x4060dc
push 0x4060c8
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
xor al, al
pop esi
pop ecx
ret
lea ecx, [esi + 1]
push ecx
call fcn.004019a5
add esp, 4
mov dword [0x4067a8], eax
push eax
push esi
call edi
cmp esi, eax
jae 0x401398
push 0
push 0x406084
push 0x4060b4
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [0x4067a8]
push edx
call fcn.0040199a
add esp, 4
xor al, al
pop edi
pop esi
pop ecx
ret
mov edi, dword [0x4067a8]
cmp esi, 4
jbe 0x40141d
push ebx
lea ebx, [esi - 1]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
shr ebx, 2
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
jne 0x401415
mov eax, dword [0x40605c]
push 0
push 0
push 0
push 0
push 0
push eax
push 0x4065e4
push edi
call ebp
test eax, eax
je 0x401415
mov esi, str.CHASER_CD1
mov eax, 0x4065e4
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x401407
test cl, cl
je 0x401403
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x401407
add eax, 2
add esi, 2
test cl, cl
jne 0x4013e3
xor eax, eax
jmp 0x40140c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401415
mov byte [esp + 0x13], 1
add edi, 4
dec ebx
jne 0x4013b1
pop ebp
pop ebx
mov eax, dword [0x4067a8]
push eax
call fcn.0040199a
mov al, byte [esp + 0xf]
add esp, 4
pop edi
pop esi
pop ecx
ret
Function at 0x401440
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
sub esp, 0x70
push str.0xbe8e2ce1__0xdab6__0x11d6__0xad__0xd0__0x0__0xe0__0x4c__0x53__0xf6__0xe6
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x40677c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401480
push 0
push 0x406084
push 0x406110
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
add esp, 0x70
ret 0x10
call fcn.00401320
inc al
jmp 0x4014a5
mov eax, dword [esp + 0x74]
mov dword [0x4067a0], eax
call fcn.00401210
test eax, eax
jne 0x4014bd
add esp, 0x70
ret 0x10
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 1
push 0
push 0
lea ecx, [esp + 0x28]
push 0
push ecx
call esi
test eax, eax
je 0x4014d2
cmp dword [esp + 0x20], 0x12
je 0x4014fc
lea edx, [esp + 0x1c]
push edx
call edi
lea eax, [esp + 0x1c]
push eax
call ebx
jmp 0x4014d2
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x3c]
mov dword [esp + 0x38], 0x44
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
lea edx, [esp + 0x38]
push ecx
push edx
push eax
push eax
push 0x20
push eax
push eax
push eax
push str.Chaser.bin
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
pop ebx
jne 0x40153b
add esp, 0x70
ret 0x10
mov eax, dword [esp + 0xc]
push eax
call sub.dll.dll_InstallHook
mov ecx, dword [esp + 4]
add esp, 4
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call sub.dll.dll_UninstallHook
mov edx, dword [0x40677c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x70
ret 0x10
Function at 0x4027e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x406230
cmp edx, dword [eax]
je 0x402807
add eax, 8
inc ecx
cmp eax, 0x4062c0
jl 0x4027f8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x406230]
jne 0x402935
mov eax, dword [0x4067b8]
cmp eax, 1
je 0x40290f
test eax, eax
jne 0x402838
cmp dword [0x406180], 1
je 0x40290f
cmp edx, 0xfc
je 0x402935
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40286f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403c00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403cf0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4028b2
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403cf0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x405408
push edi
call fcn.00403e00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403c00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403c10
lea eax, [ebp - 0xa0]
push 0x4053e8
push eax
call fcn.00403c10
push dword [esi + 0x406234]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403c10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00403d6b
add esp, 0x2c
pop edi
jmp 0x402935
lea eax, [ebp + 8]
lea esi, [esi + 0x406234]
push 0
push eax
push dword [esi]
call fcn.00403cf0
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 0x40334f
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40337c
mov ecx, dword [0x426758]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4188a4], eax
push dword [0x40a5c8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040347a
cmp eax, edi
jl 0x403473
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a5c8]
call ebx
test eax, eax
je 0x403470
cmp dword [ebp - 4], esi
jne 0x403470
push dword [ebp + 8]
add dword [0x4188a4], esi
call fcn.0040347a
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403473
cmp dword [ebp + 0x10], edi
jne 0x40343f
cmp dword [ebp + 8], edi
jle 0x40346b
mov esi, 0x414860
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4033ef
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a5c8]
call ebx
test eax, eax
je 0x403470
cmp edi, dword [ebp - 4]
jne 0x403470
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40343b
cmp dword [ebp + 0x14], edi
jne 0x40343b
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4188a4], eax
cmp dword [ebp + 8], 0
jg 0x4033e2
jmp 0x40346b
push 0xfffffffffffffffe
jmp 0x403472
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40344a
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a5c8]
call ebx
test eax, eax
je 0x403470
mov eax, dword [ebp - 4]
add dword [0x4188a4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403473
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40347a
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4188a4]
mov edi, eax
sub esi, dword [0x40c7d4]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403650
push dword [0x4208b4]
call fcn.0040368d
push ebp
push ebp
push dword [0x40c7d4]
push dword [0x40a5c8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x4208b0], esi
mov dword [0x4188a0], ebp
mov eax, dword [0x4188a8]
mov ebx, 0x4000
sub eax, dword [0x4208b4]
cmp eax, ebx
jg 0x4034ed
mov ebx, eax
mov esi, 0x414860
push ebx
push esi
call fcn.0040365b
test eax, eax
je 0x40361b
add dword [0x4208b4], ebx
mov dword [0x40c7f0], esi
mov dword [0x40c7f4], ebx
cmp dword [0x426708], ebp
je 0x40357e
cmp dword [0x4267a0], ebp
jne 0x40357e
cmp dword [esp + 0x10], ebp
je 0x40354b
mov eax, dword [0x4208b0]
push ebp
sub eax, dword [0x4188a4]
sub eax, dword [esp + 0x20]
add eax, dword [0x40c7d4]
mov dword [0x4188a0], eax
call fcn.00406584
jmp 0x40357e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x40357e
mov eax, dword [0x426704]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402faa
push ebp
push 0x6f
push dword [0x426700]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40c7d8
mov dword [0x40c7f8], 0x40c860
mov dword [0x40c7fc], 0x8000
call fcn.00406645
test eax, eax
jl 0x403624
mov esi, dword [0x40c7f8]
mov eax, 0x40c860
sub esi, eax
je 0x4035e5
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x40a5c8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403620
cmp esi, dword [esp + 0x14]
jne 0x403620
add dword [0x40c7d4], esi
cmp dword [0x40c7f4], ebp
jne 0x403513
jmp 0x4035f1
cmp dword [0x40c7f4], ebp
jne 0x403624
cmp ebx, ebp
je 0x403624
mov eax, dword [0x4188a4]
mov ecx, eax
sub ecx, dword [0x40c7d4]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4034d7
push ebp
push ebp
push eax
push dword [0x40a5c8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403629
or eax, 0xffffffff
jmp 0x403652
push 0xfffffffffffffffe
jmp 0x403626
push 0xfffffffffffffffd
pop eax
jmp 0x403652
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403650
mov eax, dword [0x4208b0]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4188a0], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x4058c4
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
mov dword [0x4240f8], 0x44
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
je 0x4058e8
test al, 0x10
jne 0x4058eb
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x10]
push eax
push 0x4240f8
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405916
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x405c87
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4234f8
push esi
call fcn.0040609a
push esi
call fcn.00405c3a
mov edi, eax
test edi, edi
jne 0x405ca8
xor eax, eax
jmp 0x405cfa
push edi
call fcn.004062d6
test byte [0x426710], 0x80
je 0x405cc1
mov al, byte [edi]
test al, al
je 0x405ca4
cmp al, 0x5c
je 0x405ca4
sub edi, esi
jmp 0x405cd9
call fcn.0040651c
test eax, eax
je 0x405cd3
test byte [eax], 0x10
je 0x405ca4
push esi
call fcn.00405bee
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405cc5
call fcn.00405ba7
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d6b
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405d9a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405dde
test edi, edi
jne 0x405da5
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405dd8
Function at 0x405de2
Capabilities:
Get common file path
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push str.MoveFileExA
push str.KERNEL32.dll
call fcn.0040655a
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405e0e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f54
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x424280], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x424280
je 0x405e52
push 1
push 0
push esi
call fcn.00405d6b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f5a
cmp eax, edi
jg 0x405f5a
mov esi, 0x423cf8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f5a
cmp eax, edi
jg 0x405f5a
push esi
push ebp
push str._s_s_r_n
push 0x4238f8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call sub.KERNEL32.dll_lstrcatA
xor eax, eax
push eax
push 0x8000080
push 4
push eax
push eax
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x405f54
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f4d
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f4d
cmp edi, dword [esp + 0x18]
jne 0x405f4d
push str._Rename__r_n
push esi
call fcn.00405cff
test eax, eax
jne 0x405f61
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.0040609a
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4238f8
push eax
call fcn.00405d4b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x426790]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aa10
push eax
call fcn.00405cff
test eax, eax
je 0x405f18
inc eax
lea edx, [esi + edi]
cmp eax, edx
mov ecx, eax
jae 0x405f8a
mov dl, byte [ecx]
mov byte [ecx + ebx], dl
inc ecx
lea edx, [esi + edi]
cmp ecx, edx
jb 0x405f7d
sub eax, esi
jmp 0x405f1a
Function at 0x405f8e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405ff2
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fe1
cmp dword [ebp + 0x14], 1
je 0x405fe3
cmp dword [ebp + 0x14], 2
je 0x405fe3
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4060bc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
test ebx, ebx
jge 0x4060dd
mov ecx, dword [0x425edc]
lea eax, [ebx*4 + 4]
sub ecx, eax
mov ebx, dword [ecx]
mov eax, dword [0x426738]
mov ecx, dword [ebp + 8]
add ebx, eax
mov eax, 0x424ea0
sub ecx, eax
mov edi, eax
cmp ecx, 0x800
jae 0x4062b0
mov edi, dword [ebp + 8]
and dword [ebp + 8], 0
jmp 0x4062b0
mov edx, edi
sub edx, eax
cmp edx, 0x400
jge 0x4062bd
inc ebx
cmp cl, 0xfc
jbe 0x4062a3
movsx eax, byte [ebx + 1]
movsx ecx, byte [ebx]
mov esi, eax
mov edx, ecx
and esi, 0x7f
and edx, 0x7f
shl esi, 7
or esi, edx
mov edx, 0x8000
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], eax
or ecx, edx
or eax, edx
inc ebx
mov dword [ebp - 0x14], ecx
inc ebx
cmp byte [ebp + 0xf], 0xfe
mov dword [ebp - 0xc], eax
jne 0x40624e
and dword [ebp + 0xc], 0
and byte [edi], 0
push 4
pop esi
cmp dword [ebp - 0x10], esi
jne 0x406171
mov dword [ebp + 0xc], str.MicrosoftInternet_ExplorerQuick_Launch
jmp 0x4061e9
mov eax, dword [ebp - 0x18]
cmp eax, 0x2b
jne 0x406190
push edi
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405f8e
jmp 0x4061e4
cmp eax, 0x26
jne 0x4061c0
push edi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00405f8e
cmp byte [edi], 0
jne 0x406246
push str.C:Program_Files
push edi
call fcn.0040609a
jmp 0x4061e4
cmp eax, 0x25
jne 0x4061d3
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x4061e4
cmp eax, 0x24
jne 0x4061e9
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
cmp byte [edi], 0
jne 0x406246
cmp dword [0x426784], 0
jne 0x4061f5
push 2
pop esi
lea eax, [ebp - 4]
dec esi
push eax
push dword [ebp + esi*4 - 0x18]
push dword [0x426704]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40622b
push edi
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call fcn.00405899
cmp dword [ebp - 8], 0
jne 0x406232
jmp 0x40622e
and byte [edi], 0
test esi, esi
jne 0x4061f5
cmp byte [edi], 0
je 0x406246
cmp dword [ebp + 0xc], 0
je 0x406246
push dword [ebp + 0xc]
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call fcn.004062d6
jmp 0x406294
cmp byte [ebp + 0xf], 0xfd
jne 0x406282
cmp esi, 0x1b
jne 0x406267
push dword [0x426704]
push edi
call fcn.00405ff8
jmp 0x406278
mov eax, esi
shl eax, 0xa
add eax, section..ndata
push eax
push edi
call fcn.0040609a
add esi, 0xffffffeb
cmp esi, 6
jae 0x406294
jmp 0x406246
cmp byte [ebp + 0xf], 0xff
jne 0x406294
or eax, 0xffffffff
sub eax, esi
push eax
push edi
call fcn.004060bc
push edi
call sub.KERNEL32.dll_lstrlenA
add edi, eax
mov eax, 0x424ea0
jmp 0x4062b0
jne 0x4062ad
mov cl, byte [ebx]
mov byte [edi], cl
inc edi
inc ebx
jmp 0x4062b0
mov byte [edi], cl
inc edi
mov cl, byte [ebx]
test cl, cl
mov byte [ebp + 0xf], cl
jne 0x406108
and byte [edi], 0
cmp dword [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x4062d2
push eax
push dword [ebp + 8]
call fcn.0040609a
leave
ret 8
Function at 0x40636f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406394
mov eax, dword [0x40a90c]
cmp eax, 0xffffffff
je 0x40638b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a90c], 0xffffffff
jmp 0x406407
cmp dword [0x424e80], ebx
je 0x406407
cmp byte [0x424a80], bl
je 0x4063d3
cmp dword [0x40a90c], 0xffffffff
jne 0x4063dc
push 4
push 0x40000000
push 0x424a80
call fcn.00405d6b
cmp eax, 0xffffffff
mov dword [0x40a90c], eax
je 0x406407
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a90c], 0xffffffff
je 0x406407
push esi
mov esi, 0x4256a0
push 0x40aadc
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a90c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

Function at 0x4065b7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x424684], 0
push esi
jne 0x4065ee
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065c8
mov dword [ecx*4 + 0x424680], eax
inc ecx
cmp ecx, 0x100
jl 0x4065c3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40661f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x424680]
xor eax, esi
inc ecx
dec edx
jne 0x406601
pop edi
not eax
pop esi
ret 0xc