joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f9a
Capabilities:
Enumerate pe sections

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x14]
mov esi, dword [ecx + 0x18]
test byte [0x413020], 8
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x30], ebx
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x34], esi
mov edi, dword [ecx + 0x20]
mov esi, dword [ecx + 0x1c]
mov dword [ebp - 0x2c], eax
movzx ebx, word [ecx + 0x10]
mov eax, dword [ecx + 8]
jne 0x407050
lea edx, [ebp - 0x1c]
xor eax, eax
call sym._get_typeinfo
test eax, eax
mov edx, eax
js 0x407036
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
mov dword [esp + 0x1c], edi
mov edi, dword [ebp - 0x34]
mov dword [esp + 0x18], esi
mov esi, dword [ebp - 0x38]
mov dword [esp + 0xc], ebx
mov ebx, dword [ebp - 0x2c]
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp - 0x30]
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
mov dword [esp + 0x10], edi
call dword [edx + 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x1c]
sub esp, 0x20
mov ecx, dword [eax]
mov dword [esp], eax
call dword [ecx + 8]
mov edx, dword [ebp - 0x2c]
sub esp, 4
mov ecx, dword [ebp - 0x10]
mov eax, edx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 0x24
test eax, eax
je 0x407140
mov dword [ebp - 0x3c], edx
mov ecx, eax
shr ecx, 0x10
je 0x407120
movzx ecx, byte [eax + 0xf]
mov dword [esp + 0x2c], ecx
movzx ecx, byte [eax + 0xe]
mov dword [esp + 0x28], ecx
movzx ecx, byte [eax + 0xd]
mov dword [esp + 0x24], ecx
movzx ecx, byte [eax + 0xc]
mov dword [esp + 0x20], ecx
movzx ecx, byte [eax + 0xb]
mov dword [esp + 0x1c], ecx
movzx ecx, byte [eax + 0xa]
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax + 9]
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 8]
mov dword [esp + 0x10], ecx
movzx ecx, word [eax + 6]
mov dword [esp + 0xc], ecx
movzx ecx, word [eax + 4]
mov dword [esp + 8], ecx
mov eax, dword [eax]
mov dword [esp], str._08x__04x__04x__02x_02x__02x_02x_02x_02x_02x_02x
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x3c]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x34]
mov dword [esp + 0x18], edx
mov eax, dword [ebp - 0x2c]
mov edx, str.shellwindows_Invoke
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp - 0x30]
mov dword [esp + 0x10], eax
mov eax, str._ld__s__ld__08x__p__p__p__p_n
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 0x20], ecx
mov ecx, 0x413020
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x406fdc
mov dword [esp], str._guid_0x_04hx_
movzx eax, ax
mov dword [esp + 4], eax
call sym._wine_dbg_sprintf_1
mov edx, dword [ebp - 0x3c]
jmp 0x4070cb
mov eax, str._null_
jmp 0x4070cb
Function at 0x40bbfa
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ebx
mov eax, dword [ecx]
mov ebx, 0xffffffff
mov dword [ebp - 8], ecx
lock xadd dword [eax + 8], ebx
dec ebx
je 0x40bc30
mov ecx, dword [ebp - 8]
mov eax, ebx
mov ebx, dword [ebp - 4]
mov esp, ebp
pop ebp
lea esp, [ecx - 4]
ret 4
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 4], eax
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x40bc15
Function at 0x40f760
Capabilities:
Get process heap flags

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
mov edx, 0x18
push esi
mov esi, eax
push ebx
sub esp, 0x30
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x40f80b
mov dword [eax + 8], esi
mov ebx, eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [0x41d430]
xor edx, edx
mov dword [esp + 0x24], esi
xor ecx, ecx
xor esi, esi
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, 0x4000000b
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
mov eax, str.Button
mov dword [esp + 0x18], esi
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._CreateWindowExW_48
mov dword [ebx], 0x413074
mov dword [ebx + 0xc], eax
mov eax, dword [0x413078]
sub esp, 0x30
mov dword [ebx + 4], eax
mov dword [eax], ebx
mov dword [0x413078], ebx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x40faf0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x14
call sym._hide_icon
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [edx + 4], eax
mov edx, dword [ebx]
mov dword [eax], edx
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sym._DestroyIcon_4
xor edx, edx
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ebx, dword [ebp - 4]
mov eax, 1
sub esp, 0xc
leave
ret
Function at 0x411130
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
movzx eax, word [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp eax, 1
je 0x411188
cmp eax, 2
jne 0x411179
mov eax, dword [0x413074]
cmp eax, 0x413074
je 0x411172
lea esi, [esi]
lea edi, [edi]
mov edx, dword [eax + 8]
mov esi, eax
mov eax, dword [eax]
cmp ebx, edx
je 0x4111d0
cmp eax, 0x413074
jne 0x411160
mov eax, ebx
call sym._cleanup_systray_window
call sym._sync_taskbar_buttons
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov ecx, dword [0x41d420]
test ecx, ecx
jne 0x411179
test ebx, ebx
je 0x4111ba
mov dword [esp], ebx
lea eax, [ebp - 0xc]
mov dword [esp + 4], eax
call sym._GetWindowThreadProcessId_8
sub esp, 8
test eax, eax
je 0x411179
mov ecx, dword [ebp - 0xc]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x20], ecx
je 0x411179
mov eax, ebx
call sym._add_taskbar_button.part.0
call sym._sync_taskbar_buttons
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov eax, dword [esi]
mov dword [edx], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call sym._DestroyWindow_4
xor edx, edx
mov eax, dword fs:[0x18]
sub esp, 4
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, ebx
sub esp, 0xc
call sym._cleanup_systray_window
jmp 0x411179

Function at 0x411a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
test eax, eax
je 0x411ac0
cmp byte [esi + eax - 1], 0xa
mov ebx, eax
je 0x411ab8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x41d4c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
xor eax, eax
jmp 0x411a7d
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x412100
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 0x4122d8
mov edx, dword [0x41d4c4]
mov eax, dword fs:[0x18]
cmp dword [eax + 0x24], edx
je 0x4122c8
test byte [0x4130b0], 8
jne 0x412270
lea edi, [esp + 0x28]
mov esi, edi
test byte [0x4130c0], 8
jne 0x412230
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 0x41218b
cmp dword [ebp + 8], 3
jbe 0x4121f0
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 0x41219a
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 + 0x419ca4]
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 0x41218b
mov dword [esp], 0x4130c0
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x412160
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 0x412160
mov dword [esp], 0x4130b0
call sym.___wine_dbg_get_channel_flags
and al, 8
je 0x41214d
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 0x412153
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xffffffff
jmp 0x4121e8
Function at 0x4123a0
Capabilities:
Accept command line arguments
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 0x412410
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x68
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test eax, eax
je 0x4124a1
cmp eax, 9
je 0x412490
cmp eax, 0x20
je 0x412490
xor edi, edi
xor esi, esi
jmp 0x412450
cmp eax, 0x5c
je 0x412508
cmp eax, 0x22
je 0x4124f0
xor esi, esi
movzx eax, word [ebx + 2]
add ebx, 2
test eax, eax
je 0x4124a1
cmp eax, 9
sete cl
cmp eax, 0x20
sete dl
or cl, dl
je 0x412450
test edi, 1
jne 0x412450
mov esi, esi
lea edi, [edi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp eax, 9
je 0x412490
cmp eax, 0x20
je 0x412490
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x30], 1
je 0x412510
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
xor edx, edx
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
and esi, 1
jne 0x412462
xor edi, 1
jmp 0x412464
inc esi
jmp 0x412464
mov word [ebp - 0x2c], 1
mov esi, 1
jmp 0x4124ba

Function at 0x432000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40112d
Capabilities:
Encode data using xor

Disassembly:
push ebp
dec word [esp + 0xc]
mov ebp, esp
js 0x40116b
mov eax, dword [ebp + 8]
inc dword [ebp + 8]
mov al, byte [eax]
xor al, byte [ebp + 0x10]
movzx eax, al
add eax, eax
movzx ecx, word [eax + 0x407200]
movzx eax, word [eax + section..data]
shl ecx, 0x10
xor ecx, eax
mov eax, dword [ebp + 0x10]
shr eax, 8
xor ecx, eax
dec word [ebp + 0xc]
mov dword [ebp + 0x10], ecx
jns 0x401137
mov eax, dword [ebp + 0x10]
pop ebp
ret

Function at 0x401298
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x318
push esi
lea ecx, [ebp - 0x108]
push dword [ebp + 8]
push ecx
mov esi, 1
call fcn.004015a5
add esp, 8
cmp byte [ebp - 0x108], 0
je 0x401353
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401353
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4012fb
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor eax, eax
test eax, eax
je 0x401353
jmp 0x401351
cmp eax, 3
jne 0x401353
lea eax, [ebp - 0x318]
lea ecx, [ebp - 0x210]
push eax
lea edx, [ebp - 0x108]
push ecx
push edx
call fcn.004013ee
add esp, 0xc
cmp byte [ebp - 0x210], 0
je 0x401351
cmp byte [ebp - 0x318], 0
je 0x401351
lea ecx, [ebp - 0x210]
call fcn.0040135a
test eax, eax
je 0x401351
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x401353
xor esi, esi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40135a
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
cmp byte [ecx], 0
mov esi, ecx
mov edi, 1
je 0x4013e6
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4013e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40139a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor eax, eax
test eax, eax
je 0x4013e6
jmp 0x4013e4
cmp eax, 3
jne 0x4013e6
lea eax, [ebp - 0x210]
lea ecx, [ebp - 0x108]
push eax
push ecx
push esi
call fcn.004013ee
add esp, 0xc
cmp byte [ebp - 0x108], 0
je 0x4013e4
cmp byte [ebp - 0x210], 0
je 0x4013e4
lea ecx, [ebp - 0x108]
call fcn.0040135a
test eax, eax
je 0x4013e4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4013e6
xor edi, edi
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4015cb
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
lea ecx, [ebp - 0x108]
push dword [ebp + 8]
push ecx
xor bl, bl
call fcn.004015a5
add esp, 8
lea ecx, [ebp - 0x108]
push pe_nt_image_headers32
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x401610
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401612
mov bl, 0xa
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4016cc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
xor bl, bl
mov esi, dword [ebp + 8]
cmp esi, 0xffffffff
je 0x401723
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4016f8
mov bl, 7
xor edi, edi
cmp dword [ebp + 0x10], edi
je 0x401717
cmp dword [ebp - 4], edi
jne 0x401717
mov bl, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x401723
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40172c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
xor bl, bl
cmp dword [ebp + 8], 0xffffffff
je 0x401769
push 0
lea eax, [ebp - 4]
push eax
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40175b
cmp dword [ebp - 4], esi
je 0x40175d
mov bl, 8
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x401769
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov al, bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
xor eax, eax
push esi
mov dword [0x40786c], eax
push edi
mov esi, 1
mov edi, dword [esp + 0x10]
push ebp
mov byte [0x407a90], al
cmp edi, eax
je 0x401b8e
cmp byte [edi], al
je 0x401b8e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401b8e
test al, 0x10
jne 0x401b8e
push edi
push 0x407a90
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x401ba4
push 0x104
mov eax, dword [0x407b94]
push 0x407a90
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [0x407a90], 0
je 0x401c1e
push 0x407a90
call fcn.00404bd2
add esp, 4
test al, al
je 0x401bc2
push 2
jmp 0x401c20
xor ebp, ebp
push ebp
push ebp
push 0x407a80
call fcn.00405874
add esp, 0xc
mov edi, dword [0x407a80]
mov dword [0x407a84], ebp
cmp edi, ebp
je 0x401c2c
mov ebx, 1
test word [edi + 0x1c], bx
je 0x401bf4
mov dword [0x40740c], ebx
push str.AUTORUN.IFF
lea eax, [edi + 0x42]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401c0d
mov dword [0x407a84], ebx
mov dword [edi + 8], ebx
mov edi, dword [edi]
inc dword [0x40786c]
test edi, edi
jne 0x401be8
jmp 0x401c2c
push 1
push 0
xor esi, esi
call fcn.004017a3
add esp, 8
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401e25
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
push ebx
push esi
push edi
lea ebx, [ebp - 0x30c]
mov edi, dword [ebp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
mov esi, dword [sym.imp.USER32.dll_CharNextA]
call esi
cmp byte [eax], 0
je 0x401e5d
push ebx
call esi
push eax
mov ebx, eax
call esi
cmp byte [eax], 0
jne 0x401e50
cmp byte [ebx], 0x5c
je 0x401e6e
push 0x407400
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x30c]
lea eax, [ebp - 0x208]
push ecx
push 0x104
push eax
push 0x4075bc
push str.OPEN
push str.autorun
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
je 0x401ff1
xor ebx, ebx
cmp byte [ebp - 0x208], bl
je 0x401ff7
push 0x100
lea eax, [ebp - 0x40c]
push eax
push 4
push dword [0x407b94]
call dword [sym.imp.USER32.dll_LoadStringA]
lea ecx, [ebp - 0x208]
lea edx, [ebp - 0x60c]
push ecx
push str.Do_you_wish_to_open__s_now_
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp byte [ebp - 0x40c], bl
je 0x401ff7
push 4
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x60c]
push ecx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x401ff7
mov byte [ebp - 0x104], bl
test edi, edi
je 0x401f32
push edi
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [ebp - 0x104]
push edi
call esi
cmp byte [eax], 0
je 0x401f4d
push edi
call esi
push eax
mov edi, eax
call esi
cmp byte [eax], 0
jne 0x401f40
cmp byte [ebp - 0x104], 0
je 0x401f67
cmp byte [edi], 0x5c
je 0x401f67
push 0x407400
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x208]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp byte [ebp - 0x104], 0
lea eax, [ebp - 0x104]
mov ebx, eax
je 0x401f95
cmp byte [eax], 0x5c
jne 0x401f8d
mov ebx, eax
push eax
call esi
cmp byte [eax], 0
jne 0x401f86
cmp byte [ebx], 0x5c
jne 0x401fd4
lea edi, [ebp - 0x104]
push ebx
call esi
push eax
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov byte [ebx], 0
cmp byte [ebp - 0x103], 0x3a
jne 0x401fd6
cmp byte [ebp - 0x102], 0
jne 0x401fd6
push 0x407400
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x401fd6
xor edi, edi
push 5
lea eax, [ebp - 0x208]
push edi
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x401ff7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4025f1
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b4
push ebx
lea ecx, [ebp - 0x1ac]
push esi
push edi
mov esi, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [esi + 0x42]
xor ebx, ebx
push eax
push ecx
call edi
mov byte [ebp - 0x2b0], 0
mov byte [ebp - 0x3b4], 0
lea eax, [ebp - 0x1ac]
cmp byte [ebp - 0x1ac], bl
je 0x402644
cmp byte [eax], 0x5c
jne 0x402638
mov ebx, eax
push eax
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
jne 0x402631
test ebx, ebx
je 0x402672
push ebx
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
mov ebx, eax
je 0x402672
push ebx
lea eax, [ebp - 0x2b0]
push eax
call edi
lea eax, [ebp - 0x1ac]
lea ecx, [ebp - 0x3b4]
push eax
mov byte [ebx], 0
jmp 0x40267f
lea eax, [ebp - 0x1ac]
lea ecx, [ebp - 0x2b0]
push eax
push ecx
call edi
mov eax, dword [ebp + 0xc]
mov ebx, 1
mov dword [ebp - 0x24], eax
cmp dword [esi + 8], ebx
mov dword [ebp - 0x28], 0xd
mov eax, 0
lea ecx, [ebp - 0x2b0]
adc eax, 0xffffffff
mov dword [ebp - 0x14], ecx
and eax, 2
mov dword [ebp - 8], esi
lea edi, [ebp - 0x28]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x10], 0x100
push edi
push 0
push 0x1007
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
lea eax, [ebp - 0x3b4]
push edi
push 0
mov dword [ebp - 0x28], ebx
push 0x1006
mov dword [ebp - 0x14], eax
push dword [ebp + 8]
mov dword [ebp - 0x20], ebx
call dword [sym.imp.USER32.dll_SendMessageA]
movzx eax, word [esi + 0x1e]
mov byte [ebp - 0xa8], 0
test eax, eax
je 0x402731
cmp eax, ebx
je 0x402741
cmp eax, 2
jl 0x402721
cmp eax, 5
jle 0x402751
cmp eax, 6
je 0x402761
cmp eax, 8
je 0x402771
push pe_nt_image_headers32
lea eax, [ebp - 0xa8]
push eax
push 0x10
jmp 0x40277f
push pe_nt_image_headers32
lea eax, [ebp - 0xa8]
push eax
push 0xb
jmp 0x40277f
push pe_nt_image_headers32
lea eax, [ebp - 0xa8]
push eax
push 0xc
jmp 0x40277f
push pe_nt_image_headers32
lea eax, [ebp - 0xa8]
push eax
push 0xd
jmp 0x40277f
push pe_nt_image_headers32
lea eax, [ebp - 0xa8]
push eax
push 0xe
jmp 0x40277f
push pe_nt_image_headers32
lea eax, [ebp - 0xa8]
push eax
push 0xf
push dword [0x407b94]
call dword [sym.imp.USER32.dll_LoadStringA]
cmp byte [ebp - 0xa8], 0
je 0x4027bc
lea eax, [ebp - 0xa8]
push edi
push 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], 2
push 0x1006
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret