joyce8/EMBER2024-capa huggingface dataset:
Function at 0x646c5ec0
Capabilities:
Get process heap flags

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, 0x78
mov ebx, dword [ecx]
mov esi, dword [ecx + 4]
test byte [0x646cf018], 8
jne 0x646c6050
test esi, esi
je 0x646c6088
cmp ebx, 2
ja 0x646c6088
test ebx, ebx
je 0x646c5f08
test byte [0x646cf018], 1
jne 0x646c6098
lea eax, [ebp - 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0x1c], eax
lea eax, [ebp - 0x24]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x28]
mov dword [esp + 0x28], 0x258
mov dword [esp + 0x20], 0xd8
mov dword [esp + 0x18], 0x444
mov dword [esp + 0x10], 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x646d2610
mov dword [esp], 1
call sym._NsiAllocateAndGetTable_52
mov dword [ebp - 0x3c], eax
sub esp, 0x34
test eax, eax
je 0x646c5f90
mov eax, dword [ebp - 0x3c]
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 8
imul eax, dword [ebp - 0x2c], 0x548
mov dword [esp + 4], 8
mov edx, dword fs:[0x18]
add eax, 8
mov dword [esp + 8], eax
mov eax, dword [edx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [esi], eax
sub esp, 0xc
test eax, eax
je 0x646c60c5
mov edx, dword [ebp - 0x2c]
xor ebx, ebx
mov dword [eax], edx
test edx, edx
jne 0x646c5fe2
jmp 0x646c6024
mov eax, dword [esi]
imul edx, ebx, 0x548
imul edi, ebx, 0x258
lea eax, [eax + edx + 8]
mov edx, dword [ebp - 0x28]
mov ecx, dword [edx + ebx*8 + 4]
mov edx, dword [edx + ebx*8]
mov dword [eax], edx
add edi, dword [ebp - 0x1c]
imul edx, ebx, 0x444
mov dword [eax + 4], ecx
add edx, dword [ebp - 0x24]
imul ecx, ebx, 0xd8
inc ebx
mov dword [esp], edi
add ecx, dword [ebp - 0x20]
call sym._if_row2_fill
cmp dword [ebp - 0x2c], ebx
ja 0x646c5fe0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call sym._NsiFreeTable_16
sub esp, 0x10
jmp 0x646c5f79
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.level__u__table__p_n
mov dword [esp + 8], str.GetIfTable2Ex
mov dword [esp + 4], 0x646cf018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
test esi, esi
jne 0x646c5eee
lea esi, [esi]
mov dword [ebp - 0x3c], 0x57
jmp 0x646c5f79
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.level__u_not_fully_supported_n
mov dword [esp + 8], str.GetIfTable2Ex
mov dword [esp + 4], 0x646cf018
mov dword [esp], 0
call sym._wine_dbg_log.constprop.0
jmp 0x646c5f08
mov dword [ebp - 0x3c], 0xe
jmp 0x646c6024
Function at 0x646cd150
Capabilities:
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x10
mov ebx, dword [ecx]
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
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_HeapFree]
mov eax, 1
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret 4

Function at 0x646cd1b0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
mov esi, dword fs:[0x18]
sub esp, 0x2c
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x646cd275
mov ebx, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], str..Nsi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebx], eax
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x646cd250
lea esp, [ebp - 0xc]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 8], ebx
mov ebx, 0xffffffff
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
jmp 0x646cd23d
mov dword [esi + 0x34], 0x2afe
or ebx, 0xffffffff
jmp 0x646cd23d
Function at 0x646cdb70
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]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x646cdbcb
cmp byte [esi + ebx - 1], 0xa
je 0x646cdb9f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x646de0c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x401098
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov dword [ebp - 4], 0
push 0xa
push dword [ebp + 8]
push 0
call sub.kernel32.dll_FindResourceA
or eax, eax
jne 0x4010b8
jmp 0x4010d8
push eax
push eax
push 0
call sub.kernel32.dll_SizeofResource
mov dword [0x406320], eax
pop eax
push eax
push 0
call sub.kernel32.dll_LoadResource
or eax, eax
jne 0x4010d5
jmp 0x4010d8
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 4

Function at 0x4010e0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
pushal
mov esi, dword [ebp + 0xc]
lea ebx, [ebp - 0x400]
push esi
push ebx
call sub.kernel32.dll_lstrcpyA
xor ecx, ecx
jmp 0x4010ff
inc ecx
cmp byte [ecx + ebx], 0x5c
jne 0x4010fe
mov byte [ecx + ebx], 0
lea esi, [ecx + esi + 1]
mov edi, 0x4047ba
push str.HKEY_CLASSES_ROOT
push ebx
call edi
or eax, eax
jne 0x401125
mov eax, 0x80000000
jmp 0x401186
push str.HKEY_CURRENT_CONFIG
push ebx
call edi
or eax, eax
jne 0x401138
mov eax, 0x80000005
jmp 0x401186
push str.HKEY_CURRENT_USER
push ebx
call edi
or eax, eax
jne 0x40114b
mov eax, 0x80000001
jmp 0x401186
push str.HKEY_LOCAL_MACHINE
push ebx
call edi
or eax, eax
jne 0x40115e
mov eax, 0x80000002
jmp 0x401186
push str.HKEY_USERS
push ebx
call edi
or eax, eax
jne 0x401171
mov eax, 0x80000003
jmp 0x401186
push str.HKEY_DYN_DATA
push ebx
call edi
or eax, eax
jne 0x401184
mov eax, 0x80000006
jmp 0x401186
jmp 0x4011b1
mov byte [ebx], 0
push dword [ebp + 0x10]
push esi
push eax
push ebx
call fcn.00404960
test dword [ebp + 0x14], 1
je 0x4011a3
push ebx
call fcn.0040122d
cmp byte [ebx], 0
je 0x4011b1
push ebx
push dword [ebp + 8]
call sub.kernel32.dll_SetEnvironmentVariableA
popal
leave
ret 0x10
Function at 0x401b63
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
push esi
push edi
push ebx
push ecx
push edx
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push 0x4060e2
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
xor edi, edi
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_LoadLibraryA
or eax, eax
je 0x401c32
mov dword [0x40633e], eax
mov esi, 0x406091
mov ebx, 0x40632a
jmp 0x401bf1
push esi
push dword [0x40633e]
call sub.kernel32.dll_GetProcAddress
or eax, eax
je 0x401bda
mov dword [ebx], eax
add ebx, 4
jmp 0x401bd2
inc esi
cmp byte [esi], 0
jne 0x401bd1
inc esi
jmp 0x401bf1
push dword [0x40633e]
call sub.kernel32.dll_FreeLibrary
mov dword [0x40633e], 0
jmp 0x401c32
cmp byte [esi], 0
jne 0x401bba
push 0
push 0xac44
push 0xffffffffffffffff
call dword [0x40632a]
cmp eax, 1
jne 0x401c32
call dword [0x40632e]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add eax, 4
push 6
push ecx
push 0
push eax
push 1
call dword [0x406332]
cmp eax, 1
jne 0x401c32
call dword [0x406336]
inc edi
mov eax, edi
pop edx
pop ecx
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x401c60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
push 0
push 0
call sub.kernel32.dll_CreateThread
push eax
call sub.kernel32.dll_CloseHandle
popal
leave
ret 4

Function at 0x401d27
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4067ac
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcpyA
push str..BAK
push esi
call sub.kernel32.dll_lstrcatA
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x401d5e
push 0
push esi
push dword [ebp + 8]
call sub.kernel32.dll_CopyFileA
mov al, 0
jmp 0x401d60
mov al, 1
mov byte [0x406bc4], al
popal
leave
ret 4

Function at 0x401d6a
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, 0x4067ac
cmp dword [ebp + 8], 0
jne 0x401da0
cmp byte [0x406bc4], 0
jne 0x401d8f
push 0
push 0x4063ac
push esi
call sub.kernel32.dll_CopyFileA
cmp byte [0x406bc4], 0
jne 0x401e07
push esi
call sub.kernel32.dll_DeleteFileA
jmp 0x401e07
push 0x6b
push dword [0x406346]
call sub.user32.dll_IsDlgButtonChecked
cmp byte [0x406feb], 1
jne 0x401dcb
cmp byte [0x406fec], 1
jne 0x401dc6
mov eax, 1
jmp 0x401dcb
mov eax, 0
cmp eax, 1
jne 0x401e05
push 0x400
push 0x407410
push 0xd
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x407410
call fcn.00401ce6
push esi
call fcn.00401ce6
push dword [0x406bac]
push esi
call sub.kernel32.dll_SetFileAttributesA
jmp 0x401e07
jmp 0x401d8f
popal
leave
ret 4
Function at 0x402175
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x406bb0]
or esi, esi
je 0x4021cd
push dword [0x406bb8]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x406bbc]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push dword [0x406bc0]
push esi
call sub.kernel32.dll_SetFilePointer
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
push dword [ebp + 8]
call fcn.00401d6a
push dword [0x406bac]
push 0x4063ac
call sub.kernel32.dll_SetFileAttributesA
popal
leave
ret 4

Function at 0x4021fc
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 0x401], 0
push 1
push 8
call fcn.00401057
or eax, eax
je 0x402259
mov esi, eax
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._bassmod.dll
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.00404844
mov byte [ebp - 0x401], 1
popal
movzx eax, byte [ebp - 0x401]
leave
ret
Function at 0x402d80
Capabilities:
Get common file path
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffba0
push esi
push edi
push ebx
push 0x70
push dword [0x406346]
call sub.user32.dll_GetDlgItem
or eax, eax
je 0x402f2c
mov dword [ebp - 0x404], eax
push 0
push dword [ebp - 0x404]
call sub.user32.dll_ShowWindow
mov esi, 0x4073ee
push 9
push dword [0x40634a]
call fcn.004021d2
mov dword [esi + 4], eax
push eax
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x402f2c
push dword [0x406346]
pop dword [esi]
lea ebx, [ebp - 0x414]
push ebx
push dword [ebp - 0x404]
call sub.user32.dll_GetWindowRect
lea edi, [ebp - 0x424]
push edi
push dword [0x406346]
call sub.user32.dll_GetWindowRect
mov eax, dword [ebx]
sub eax, dword [edi]
mov dword [esi + 8], eax
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 4]
sub eax, dword [edi + 4]
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
lea ecx, [esi + 0xc]
push ecx
push eax
push dword [0x406346]
call fcn.00401430
push 1
push 0x12
call fcn.00401057
or eax, eax
je 0x402e3e
mov eax, dword [eax + 1]
mov dword [esi + 0x1d], eax
push 1
push 0xb
call fcn.00401057
or eax, eax
je 0x402e53
mov eax, dword [eax + 1]
jmp 0x402e65
cmp dword [esi + 0x1d], 0
je 0x402e60
mov eax, 0xfe
jmp 0x402e65
mov eax, 0xff
mov byte [esi + 0x1c], al
lea ebx, [ebp - 0x460]
push 0x3c
push ebx
call sub.kernel32.dll_RtlZeroMemory
mov dword [ebx], 7
mov byte [ebx + 0x17], 1
mov byte [ebx + 0x1a], 4
push str.MS_SANS_SERIF
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push 1
push 0x13
call fcn.00401057
or eax, eax
je 0x402f1d
mov edi, eax
push dword [edi + 0x11]
pop dword [esi + 0x18]
push dword [edi + 5]
pop dword [ebx]
test dword [edi + 9], 1
je 0x402ebc
mov dword [ebx + 0x10], 0x2bc
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
lea edx, [edi + 0x15]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x95]
push edx
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
lea edx, [edi + 0x9b]
mov ecx, dword [edi + 0xd]
lea eax, [ebp - 0x400]
push eax
push ecx
push edx
call fcn.00402f31
lea edx, [edi + 0x15]
cmp byte [edx], 0
jne 0x402f13
xor ebx, ebx
jmp 0x402f1d
push edx
lea eax, [ebx + 0x1c]
push eax
call sub.kernel32.dll_lstrcpyA
push ebx
call sub.gdi32.dll_CreateFontIndirectA
mov dword [esi + 0x14], eax
push esi
call fcn.0040170b
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403780
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf0
push esi
push edi
push ebx
push 0x400
push 0x40ec10
push 4
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40ec10
call fcn.00401ce6
lea eax, [ebp - 0x400]
push eax
push 0x400
call sub.kernel32.dll_GetTempPathA
push str._regpatch.reg
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov esi, dword [ebp + 8]
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x40c], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x404], eax
lea eax, [esi + 9]
push dword [ebp - 0x404]
push eax
call fcn.00403a0a
mov ecx, dword [ebp - 0x404]
test dword [esi + 5], 1
je 0x403853
mov eax, dword [esi + 1]
add eax, 0x100000
mov dword [ebp - 0x410], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 0x408], eax
push dword [ebp - 0x410]
push dword [ebp - 0x408]
push dword [ebp - 0x404]
call fcn.0040396d
mov ecx, dword [ebp - 0x408]
push eax
push ecx
lea eax, [ebp - 0x400]
push eax
call fcn.00404844
test eax, eax
je 0x4038ac
mov edi, 0x4063ac
push str._s__
push edi
call sub.kernel32.dll_lstrcpyA
lea eax, [ebp - 0x400]
push eax
push edi
call sub.kernel32.dll_lstrcatA
push 0x4062a5
push edi
call sub.kernel32.dll_lstrcatA
push 5
push 0
push edi
push str.regedit.exe
push 0x4062a7
push dword [0x406346]
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
ja 0x4038cf
push 0x400
push 0x40f010
push 0x27
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40f010
call fcn.00401ce6
jmp 0x4038f0
push 0x400
push 0x40f410
push 0x28
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40f410
call fcn.00401ce6
push 0x1f4
call sub.kernel32.dll_Sleep
push 0x4000
push dword [ebp - 0x40c]
push dword [ebp - 0x404]
call sub.kernel32.dll_VirtualFree
test dword [esi + 5], 1
je 0x40392f
push 0x4000
push dword [ebp - 0x410]
push dword [ebp - 0x408]
call sub.kernel32.dll_VirtualFree
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_DeleteFileA
push 0x400
push 0x40f810
push 0xc
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x40f810
call fcn.00401ce6
push 0x4060ef
call fcn.00401ce6
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x40396d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
mov eax, dword [ebp + 0x10]
add eax, 0x100000
mov dword [ebp - 8], eax
push 4
push 0x1000
push eax
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov esi, dword [ebp - 4]
or eax, eax
je 0x4039ec
push dword [ebp + 8]
push esi
call sub.kernel32.dll_lstrcmpA
or eax, eax
je 0x4039ec
mov bl, 0
jmp 0x4039e4
lodsb al, byte [esi]
cmp word [esi], 0x5b0a
jne 0x4039c6
mov bl, 1
cmp al, 0x5c
jne 0x4039da
or bl, bl
jne 0x4039da
cmp byte [esi], 0x5c
je 0x4039da
cmp byte [esi - 2], 0x5c
je 0x4039da
stosb byte es:[edi], al
stosb byte es:[edi], al
cmp word [esi], 0xd5d
jne 0x4039e4
mov bl, 0
cmp byte [esi], 0
jne 0x4039bc
mov byte [edi], 0
push 0x4000
push dword [ebp - 8]
push dword [ebp - 4]
call sub.kernel32.dll_VirtualFree
push dword [ebp + 0xc]
call sub.kernel32.dll_lstrlenA
pop edi
pop esi
leave
ret 0xc
Function at 0x4040e3
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
push ebx
cmp byte [0x4063a2], 1
jne 0x40410f
push 5
push dword [0x40635e]
call sub.user32.dll_ShowWindow
push 0
push dword [0x406362]
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x184
push dword [0x40635e]
call sub.user32.dll_SendMessageA
push 0x400
push 0x412018
push 0
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x412018
call fcn.00401ce6
push 0x4060ef
call fcn.00401ce6
call fcn.004011b6
xor ebx, ebx
jmp 0x40418b
cmp byte [esi], 3
jne 0x404166
push esi
call fcn.004032ee
jmp 0x40418b
cmp byte [esi], 4
jne 0x404173
push esi
call fcn.004035b4
jmp 0x40418b
cmp byte [esi], 0x11
jne 0x404180
push esi
call fcn.00403d00
jmp 0x40418b
cmp byte [esi], 5
jne 0x40418b
push esi
call fcn.00403780
inc ebx
push ebx
call fcn.00401098
mov esi, eax
or esi, esi
jne 0x404159
push 0x400
push 0x412418
push 1
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x412418
call fcn.00401ce6
push dword [0x4063a7]
call fcn.004041ef
push 0x6c
push dword [0x406346]
call sub.user32.dll_GetDlgItem
push 0
push eax
call sub.user32.dll_EnableWindow
push 1
push 0
push 0
push dword [0x406346]
call sub.user32.dll_RedrawWindow
pop ebx
pop edi
pop esi
leave
ret
Function at 0x404226
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov esi, dword [ebp + 8]
xor ecx, ecx
jmp 0x40426a
inc ecx
cmp ecx, dword [0x406bb4]
jne 0x40426a
push 0x400
push 0x412818
push 0x16
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x412818
call fcn.00401ce6
xor eax, eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10
cmp dword [ecx + esi], 0x4550
jne 0x404235
add esi, ecx
mov eax, dword [ebp + 8]
add eax, dword [0x406bb4]
cmp dword [eax - 4], 0x32505564
jne 0x4042aa
push 0x400
push 0x412c18
push 0x17
push dword [0x406342]
call sub.user32.dll_LoadStringA
push 0x412c18
call fcn.00401ce6
jmp 0x40425f
push esi
movzx eax, word [esi + 6]
dec eax
imul eax, eax, 0x28
movzx ecx, word [esi + 0x14]
add esi, 0x18
add esi, ecx
mov edi, esi
or dword [edi + 0x24], 0x80000000
add edi, eax
pop esi
cmp dword [ebp + 0xc], 4
jne 0x4042d3
mov ecx, dword [esi + 0x34]
jmp 0x4042d5
xor ecx, ecx
mov dword [0x4045ad], ecx
mov ebx, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
mov dword [0x4045a5], ebx
add dword [0x4045a5], ecx
mov eax, dword [edi + 0xc]
add eax, dword [edi + 0x10]
mov dword [esi + 0x28], eax
cmp dword [ebp + 0xc], 4
jne 0x404306
mov eax, dword [edi + 0xc]
mov ebx, dword [edi + 0x10]
add eax, ebx
jmp 0x404308
xor eax, eax
mov dword [0x4045b1], eax
mov eax, dword [ebp + 8]
add eax, dword [edi + 0x14]
add eax, dword [edi + 0x10]
mov ecx, 0x404391
mov ebx, 0x237
mov edx, eax
add edx, ebx
push edx
push ebx
push ecx
push eax
call sub.kernel32.dll_RtlMoveMemory
pop edx
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx + 0x16]
lea ecx, [eax + ecx]
mov ebx, dword [0x406320]
sub ebx, eax
push ebx
push ecx
push edx
call sub.kernel32.dll_RtlMoveMemory
mov eax, dword [ebp + 0x10]
push 0x100
push eax
call fcn.00404940
add dword [edi + 8], eax
add dword [edi + 0x10], eax
or dword [edi + 0x24], 0xe0000000
mov eax, dword [edi + 0xc]
add eax, dword [edi + 8]
mov ebx, dword [esi + 0x38]
push ebx
push eax
call fcn.00404940
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 8]
add eax, dword [0x406bc0]
mov dword [eax - 4], 0x32505564
xor eax, eax
inc eax
pop edi
pop esi
pop edx
pop ecx
pop ebx
leave
ret 0x10

Function at 0x404844
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
jne 0x40486f
xor eax, eax
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
push dword [ebp - 4]
call sub.kernel32.dll_FlushFileBuffers
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x404960
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], 1
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegOpenKeyA
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.advapi32.dll_RegCreateKeyExA
or eax, eax
jne 0x4049e2
mov eax, 4
mov dword [ebp - 4], eax
inc dword [ebp - 0xc]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 8]
call sub.advapi32.dll_RegQueryValueExA
push eax
push dword [ebp - 8]
call sub.advapi32.dll_RegCloseKey
pop eax
leave
ret 0x10

Function at 0x404a60
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
pushal
cmp dword [ebp + 8], 0
jne 0x404aa0
push 0
call sub.kernel32.dll_GetModuleHandleA
lea esi, [ebp - 0x200]
push 0x200
push esi
push eax
call sub.kernel32.dll_GetModuleFileNameA
push esi
call sub.kernel32.dll_lstrlenA
push esi
add esi, eax
jmp 0x404a95
dec esi
cmp byte [esi], 0x5c
jne 0x404a94
mov byte [esi], 0
pop esi
jmp 0x404aa3
mov esi, dword [ebp + 8]
push esi
call sub.kernel32.dll_SetCurrentDirectoryA
popal
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
or esi, esi
je 0x404b7a
push esi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x404b7a
cmp byte [esi], 0
je 0x404b7a
lea edi, [ebp - 0x401]
jmp 0x404b4f
lodsb al, byte [esi]
stosb byte es:[edi], al
cmp byte [esi], 0x5c
je 0x404b59
cmp byte [esi], 0
jne 0x404b4d
cmp al, 0x3a
je 0x404b4d
lodsb al, byte [esi]
stosb byte es:[edi], al
mov byte [edi], 0
push 0
lea eax, [ebp - 0x401]
push eax
call sub.kernel32.dll_CreateDirectoryA
cmp byte [esi - 1], 0
jne 0x404b4b
mov byte [ebp - 1], 1
popal
movzx eax, byte [ebp - 1]
leave
ret 4

Function at 0x404b90
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
pushal
mov byte [ebp - 1], 0
mov esi, dword [ebp + 8]
or esi, esi
je 0x404bfe
push esi
call sub.kernel32.dll_lstrlenA
or eax, eax
je 0x404bfe
mov ebx, eax
push 0
call sub.user32.dll_OpenClipboard
cmp eax, 1
jne 0x404bfe
add ebx, 2
push ebx
push 0x2042
call sub.kernel32.dll_GlobalAlloc
or eax, eax
je 0x404bf9
mov ebx, eax
push ebx
call sub.kernel32.dll_GlobalLock
or eax, eax
je 0x404bf9
mov edi, eax
push esi
push edi
call sub.kernel32.dll_lstrcpyA
call sub.user32.dll_EmptyClipboard
cmp eax, 1
jne 0x404bf9
push edi
call sub.kernel32.dll_GlobalUnlock
push ebx
push 1
call sub.user32.dll_SetClipboardData
call sub.user32.dll_CloseClipboard
popal
movzx eax, byte [ebp - 1]
leave
ret 4