joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4176ea
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441630
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x624
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x628], 0
push str.temp.bat
mov eax, dword [ebp + 8]
push eax
push 0x4657b0
push 0x104
lea ecx, [ebp - 0x618]
push ecx
call fcn.004274e8
add esp, 0x14
push 0x104
lea edx, [ebp - 0x514]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x417790
push str.__SelfDelete_WINNT_2000_XP_2003_
call fcn.0042571d
add esp, 4
push str._echo_off_r_n:Repeat_r_ndel__Q___s__r_nping__n_1_localhost___nul_r_nif_exist___s__goto_Repeat_r_ndel__Q___s_
push 0x465840
push 0x400
lea eax, [ebp - 0x410]
push eax
call fcn.004274e8
add esp, 0x10
jmp 0x4177bb
push str.__SelfDelete_WINVISTA
call fcn.0042571d
add esp, 4
push str._echo_off_r_n:Repeat_r_ndel___s__r_nping__n_1_localhost___nul_r_nif_exist___s__goto_Repeat_r_ndel___s__r_n
push 0x4658bc
push 0x400
lea ecx, [ebp - 0x410]
push ecx
call fcn.004274e8
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x618]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x62c], eax
cmp dword [ebp - 0x62c], 0xffffffff
je 0x417924
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x30c
push eax
call fcn.004268ab
add esp, 4
mov dword [ebp - 0x61c], eax
lea ecx, [ebp - 0x618]
push ecx
lea edx, [ebp - 0x514]
push edx
lea eax, [ebp - 0x514]
push eax
lea ecx, [ebp - 0x410]
push ecx
lea edx, [ebp - 0x410]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 0x30c
push eax
mov eax, dword [ebp - 0x61c]
push eax
call fcn.004274e8
add esp, 0x18
push 0
lea ecx, [ebp - 0x620]
push ecx
mov edx, dword [ebp - 0x61c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp - 0x61c]
push eax
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x61c]
push edx
call fcn.004269e5
add esp, 4
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x618]
push ecx
push 0x4658c0
push 0x400
lea edx, [ebp - 0x410]
push edx
call fcn.004274e8
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4178f3
lea eax, [ebp - 0x410]
push eax
push str.__SelfDelete__WINNT_2000_XP_2003...:_ShellExecute__s
call fcn.0042571d
add esp, 8
push 0
push 0
lea ecx, [ebp - 0x410]
push ecx
push 0x465900
push 0x465904
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x417924
lea edx, [ebp - 0x410]
push edx
push str.__SelfDelete__Win95__Win98__Me:_ShellExecute__s
call fcn.0042571d
add esp, 8
push 0
push 0
lea eax, [ebp - 0x410]
push eax
push str.command
push 0x465944
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x417940
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417958
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44163a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x417a3c
cmp dword [ebp + 8], 0
je 0x417a2d
mov ecx, dword [ebp + 8]
call fcn.00404420
test eax, eax
je 0x417a1e
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x417a0f
push 0
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404420
push eax
mov ecx, dword [ebp + 8]
call fcn.00404410
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4179f6
mov byte [ebp - 0x14], 1
jmp 0x417a03
push str.__BufferToFile_Error:_writting_file
call fcn.0042571d
add esp, 4
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417a1c
push str.__BufferToFile_Error:_creating_file
call fcn.0042571d
add esp, 4
jmp 0x417a2b
push str.__BufferToFile_Error:_sbBuffer__Length____0
call fcn.0042571d
add esp, 4
jmp 0x417a3a
push str.__BufferToFile_sbBuffer__NULL
call fcn.0042571d
add esp, 4
jmp 0x417a49
push str.__BufferToFile_szFile__NULL
call fcn.0042571d
add esp, 4
jmp 0x417a65
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441644
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x14], 0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x417b61
cmp dword [ebp + 8], 0
je 0x417b52
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x417b43
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x417b34
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00426bd0
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417b1b
mov byte [ebp - 0x14], 1
jmp 0x417b28
push str.__BufferToFile2_Error:_writting_file
call fcn.0042571d
add esp, 4
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417b41
push str.__BufferToFile2_Error:_creating_file
call fcn.0042571d
add esp, 4
jmp 0x417b50
push str.__BufferToFile2_Error:_szBuffer__NULL
call fcn.0042571d
add esp, 4
jmp 0x417b5f
push str.__BufferToFile2_szBuffer__NULL
call fcn.0042571d
add esp, 4
jmp 0x417b6e
push str.__BufferToFile2_szFile__NULL
call fcn.0042571d
add esp, 4
jmp 0x417b8a
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417ba5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441657
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x21c
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x20]
call fcn.00404440
mov dword [ebp - 4], 0
mov byte [ebp - 4], 1
cmp dword [ebp + 0xc], 0
je 0x417cde
cmp dword [ebp + 8], 0
je 0x417ccf
lea ecx, [ebp - 0x20]
call fcn.004043e0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
je 0x417cc0
push 0
lea ecx, [ebp - 0x224]
push ecx
push 0x200
lea edx, [ebp - 0x220]
push edx
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417c9a
cmp dword [ebp - 0x224], 0
jne 0x417c5d
jmp 0x417c9a
mov ecx, dword [ebp - 0x224]
push ecx
lea edx, [ebp - 0x220]
push edx
lea ecx, [ebp - 0x20]
call fcn.00404330
mov byte [ebp - 0x14], 1
push 0
push 0
lea ecx, [ebp - 0x20]
call fcn.00404420
push eax
mov eax, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x417c98
jmp 0x417c9a
jmp 0x417c2c
push 0
lea ecx, [ebp - 0x20]
call fcn.00404410
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004233c8
add esp, 0xc
mov edx, dword [ebp - 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x417ccd
push str.__FileToBuffer_Error:_creating_file
call fcn.0042571d
add esp, 4
jmp 0x417cdc
push str.__FileToBuffer_Error:_szBuffer__NULL
call fcn.0042571d
add esp, 4
jmp 0x417ceb
push str.__FileToBuffer_Error:_szFile__NULL
call fcn.0042571d
add esp, 4
jmp 0x417d07
mov dword [ebp - 4], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 0x22c], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00404490
mov al, byte [ebp - 0x22c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x417d3d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441661
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push 0x12c
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x417e39
lea eax, [ebp - 0x5c]
push eax
mov ecx, dword [0x46c9cc]
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov dword [ebp - 0x1c], eax
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x46c9cc]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x78]
push ecx
push 0x18
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.GDI32.dll_GetObjectA]
test eax, eax
je 0x417e08
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
push 0x3c
push 0x1a4
push 0
push 0
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.GDI32.dll_DeleteDC]
lea edx, [ebp - 0x5c]
push edx
mov eax, dword [0x46c9cc]
push eax
call dword [sym.imp.USER32.dll_EndPaint]
jmp 0x417e46
push str.__PaintBitmap_Error:_LoadBitmap
call fcn.0042571d
add esp, 4
jmp 0x417e62
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419aca
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441759
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
push str.__ShowQuest_Initialized
call fcn.0042571d
add esp, 4
call fcn.0041fad0
test eax, eax
je 0x419b35
push str.__ShowQuest_Current_User_Is_Local_Administrator
call fcn.0042571d
add esp, 4
push 5
push 0
mov eax, dword [ebp + 8]
push eax
push 0x466e30
push 0x466e3c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x14], eax
jmp 0x419b5f
push str.__ShowQuest_Current_User_Is_NOT_Local_Administrator
call fcn.0042571d
add esp, 4
push 5
push 0
mov ecx, dword [ebp + 8]
push ecx
push str.iexplore
push str.runas
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 0x18], eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__ShowQuest_Finished__ld
call fcn.0042571d
add esp, 8
jmp 0x419b9a
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a5d0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 0x194]
push edx
push 0x202
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x41a621
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x41a621
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41a67a
mov ecx, dword [ebp + 8]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x198], eax
cmp dword [ebp - 0x198], 0
je 0x41a672
mov edx, dword [ebp - 0x198]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00427600
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00426bd0
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x41a67a
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41b244
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov dword [ebp - 4], 1
mov dword [ebp - 0x408], 0x400
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b2a6
push 0
lea edx, [ebp - 0x404]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.004233c8
add esp, 0xc
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx], 0
setne al
jmp 0x41b2a8
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x41b2ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov dword [ebp - 4], 1
mov dword [ebp - 0x808], 0x400
lea eax, [ebp - 0x808]
push eax
lea ecx, [ebp - 0x804]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41b30e
push 0
lea edx, [ebp - 0x804]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.0042347c
add esp, 0xc
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx], 0
setne al
jmp 0x41b310
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x41b386
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov dword [ebp - 4], 3
mov dword [ebp - 0x408], 0x400
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x404]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b423
mov edx, dword [ebp + 0x10]
push edx
call fcn.004234c1
add esp, 4
mov eax, dword [ebp - 0x408]
add eax, 1
push eax
call fcn.004268ab
add esp, 4
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x408]
push edx
lea eax, [ebp - 0x404]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.00425ab0
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x408]
mov byte [ecx + edx], 0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [eax], 0
setne cl
mov al, cl
jmp 0x41b425
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x41b4cc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
call fcn.00426bd0
add esp, 4
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x41b508
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 1
mov eax, dword [ebp + 0x10]
push eax
call fcn.00427954
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x41da3c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x41dab7
cmp dword [ebp + 8], 0
je 0x41dab7
mov ecx, dword [ebp + 8]
call fcn.00404420
test eax, eax
je 0x41dab7
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41dab7
push 0
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00404420
push eax
mov ecx, dword [ebp + 8]
call fcn.00404410
push eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41daad
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x41dbc2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.00404420
test eax, eax
jne 0x41dbdf
mov al, 1
jmp 0x41dc7f
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41dc2d
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x41dc2d
xor al, al
jmp 0x41dc7f
cmp dword [ebp - 0xc], 0xffffffff
je 0x41dc7c
push 2
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x41dc72
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404420
push eax
mov ecx, dword [ebp + 8]
call fcn.00404410
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41dc72
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41e421
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push edi
cmp dword [0x46ca68], 0
jne 0x41e64a
mov dword [ebp - 0x9c], 0
mov ecx, 0x26
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x9c], 0x9c
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
jne 0x41e4b3
mov dword [ebp - 0x9c], 0x94
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x41e4b3
call fcn.0041e7c5
and eax, 0xff
test eax, eax
je 0x41e4ac
mov dword [0x46ca68], 0x50
jmp 0x41e4b3
xor eax, eax
jmp 0x41e64f
mov edx, dword [ebp - 0x8c]
mov dword [ebp - 0xa4], edx
cmp dword [ebp - 0xa4], 1
je 0x41e4d6
cmp dword [ebp - 0xa4], 2
je 0x41e533
jmp 0x41e64a
cmp dword [ebp - 0x98], 4
jne 0x41e4f4
cmp dword [ebp - 0x94], 0
jne 0x41e4f4
mov dword [0x46ca68], 0xa
jmp 0x41e52e
cmp dword [ebp - 0x98], 4
jne 0x41e512
cmp dword [ebp - 0x94], 0xa
jne 0x41e512
mov dword [0x46ca68], 0x14
jmp 0x41e52e
cmp dword [ebp - 0x98], 4
jne 0x41e52e
cmp dword [ebp - 0x94], 0x5a
jne 0x41e52e
mov dword [0x46ca68], 0x1e
jmp 0x41e64a
cmp dword [ebp - 0x98], 6
jne 0x41e56d
cmp dword [ebp - 0x94], 1
jne 0x41e56d
mov eax, dword [ebp - 2]
and eax, 0xff
cmp eax, 1
jne 0x41e55e
mov dword [0x46ca68], 0x64
jmp 0x41e568
mov dword [0x46ca68], 0x6e
jmp 0x41e64a
cmp dword [ebp - 0x98], 6
jne 0x41e5a8
cmp dword [ebp - 0x94], 0
jne 0x41e5a8
mov ecx, dword [ebp - 2]
and ecx, 0xff
cmp ecx, 1
jne 0x41e599
mov dword [0x46ca68], 0x50
jmp 0x41e5a3
mov dword [0x46ca68], 0x5a
jmp 0x41e64a
cmp dword [ebp - 0x98], 5
jne 0x41e5fb
cmp dword [ebp - 0x94], 2
jne 0x41e5fb
mov edx, dword [ebp - 2]
and edx, 0xff
cmp edx, 1
jne 0x41e5d4
mov dword [0x46ca68], 0x3c
jmp 0x41e5f9
mov eax, dword [ebp - 2]
and eax, 0xff
cmp eax, 3
je 0x41e5ef
mov ecx, dword [ebp - 2]
and ecx, 0xff
cmp ecx, 2
jne 0x41e5f9
mov dword [0x46ca68], 0x46
jmp 0x41e64a
cmp dword [ebp - 0x98], 5
jne 0x41e619
cmp dword [ebp - 0x94], 1
jne 0x41e619
mov dword [0x46ca68], 0x3c
jmp 0x41e64a
cmp dword [ebp - 0x98], 5
jne 0x41e637
cmp dword [ebp - 0x94], 0
jne 0x41e637
mov dword [0x46ca68], 0x32
jmp 0x41e64a
cmp dword [ebp - 0x98], 4
ja 0x41e64a
mov dword [0x46ca68], 0x29
mov eax, dword [0x46ca68]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x41f381
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004234c1
add esp, 4
push 0x467e78
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41f442
push str.SHGetFolderPathA
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x41f438
push 0x104
call fcn.004268ab
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
push 0
push 0x2e
push 0
call dword [ebp - 8]
test eax, eax
jne 0x41f438
mov edx, dword [ebp + 8]
cmp dword [edx], 0
je 0x41f438
push 0x104
push 0x467e98
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00427ff0
add esp, 0xc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp + 0xc]
and ecx, 0xff
test ecx, ecx
je 0x41f438
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esp, ebp
pop ebp
ret