joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f017
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x411
lea ecx, [ebp - 4]
mov byte [0x4acf1b], 1
call fcn.00435d80
push 0x822
push 0
push dword [ebp - 4]
call fcn.0047fd70
mov edi, dword [ebp - 4]
add esp, 0xc
push 0x104
add edi, 0x410
push edi
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push str.PE_IDBASE
push 0x1000
mov esi, 0x4acf10
push esi
call fcn.004380d1
push str.WM_PE_BASE
push 0x5000
push esi
call fcn.004380d1
push str.PE_MENU_IDBASE
push 0x100
push esi
call fcn.004380d1
mov esi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
add esp, 0x24
push edi
push 0x49654a
call esi
push edi
mov ebx, 0x4acf10
push str.MyName
mov ecx, ebx
call fcn.00435749
push 0x5c
push 0
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
xor edi, edi
cmp eax, edi
je 0x40f0de
lea edi, [eax + 2]
push edi
push 0x496536
call esi
push edi
push str.MyName0
mov ecx, ebx
call fcn.00435749
xor edi, edi
push edi
push edi
push str.Desktop
call fcn.0040ef87
push edi
push edi
push str.Favorites
call fcn.0040ef87
push edi
push edi
push str.Programs
call fcn.0040ef87
push edi
push edi
push str.SendTo
call fcn.0040ef87
push edi
push edi
push str.Personal
call fcn.0040ef87
push edi
push str.Start_Menu
push 0x495b14
call fcn.0040ef87
add esp, 0x48
push edi
push str.Cache
push str.IECache
call fcn.0040ef87
push edi
push edi
push str.Startup
call fcn.0040ef87
push str.MicrosoftInternet_ExplorerQuick_Launch
push str.AppData
push str.QuickLaunch
call fcn.0040ef87
add esp, 0x24
lea ecx, [ebp - 4]
call fcn.0043092f
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40f19f
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14b8
call fcn.00480210
push esi
mov esi, 0x4ab294
and word [ebp - 0x14b8], 0
mov edx, dword [esi]
mov word [ebp - 0x64], 0x26
lea ecx, [ebp - 0x62]
movsx ax, byte [edx]
mov word [ecx], ax
inc ecx
inc ecx
inc edx
test ax, ax
jne 0x40f1c5
push 0xa28
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x62]
push eax
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
lea eax, [ebp - 0x14b8]
push eax
lea eax, [ebp - 0x64]
push eax
mov ecx, 0x4acf10
call fcn.00435749
add esi, 4
cmp esi, 0x4ab2a8
jl 0x40f1b2
pop esi
leave
ret
Function at 0x410482
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [esp + 4], 0
push esi
mov esi, ecx
mov byte [esi], 0
je 0x4104b0
test byte [0x4ada94], 4
jne 0x4104b0
push 2
mov byte [esi], 1
or byte [0x4ada94], 4
push str.SeDebugPrivilege
call fcn.0040f24d
pop ecx
pop ecx
mov eax, esi
pop esi
ret 4

Function at 0x4104b6
Capabilities:
Acquire debug privileges

Disassembly:
cmp byte [ecx], 0
je 0x4104d0
and byte [0x4ada94], 0xfb
push 4
push str.SeDebugPrivilege
call fcn.0040f24d
pop ecx
pop ecx
ret

Function at 0x4104d1
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, 0x4ad684
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00403127
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
pop ecx
push 0x5c
push dword [ebp + 8]
mov byte [ebp - 4], al
jmp 0x410529
push dword [ebp + 8]
and word [esi], 0
call fcn.0047f62b
test eax, eax
pop ecx
jne 0x41051e
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
mov word [esi], 0x5c
push 0x5c
add esi, 2
push esi
call edi
mov esi, eax
test esi, esi
jne 0x410503
cmp byte [ebp - 4], al
je 0x41053f
push dword [ebp - 8]
call fcn.00403138
pop ecx
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x41094e
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push 0x40
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.0047fd70
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatusEx]
cmp dword [ebp + 8], 0
je 0x410983
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
leave
ret
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
leave
ret
Function at 0x41121e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
push esi
xor esi, esi
cmp dword [0x4acd88], esi
push edi
jne 0x4113d0
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryW]
push str.GdiPlus.dll
call ebx
mov edi, eax
cmp edi, esi
jne 0x41131e
push 1
push esi
lea eax, [ebp - 4]
push eax
push str._SystemRoot_WinSxS
mov ecx, 0x4acf10
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call fcn.0043e7f3
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0xc]
push eax
call fcn.0047f714
add esp, 0xc
test eax, eax
je 0x41130e
push dword [ebp - 4]
call fcn.0040c2f3
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
pop ecx
cmp word [ebp - 0x248], 0x2e
je 0x4112fb
test byte [ebp - 0x274], 0x10
je 0x4112fb
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x248]
push eax
call esi
push edi
mov dword [ebp - 0x14], eax
call esi
mov ecx, dword [ebp - 0x14]
lea eax, [eax + ecx + 0x1e]
push eax
lea ecx, [ebp - 8]
call fcn.00435d80
lea eax, [ebp - 0x248]
push eax
push dword [ebp - 4]
push str._s_sGdiPlus.dll
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push dword [ebp - 8]
call ebx
lea ecx, [ebp - 8]
mov edi, eax
call fcn.0043092f
test edi, edi
jne 0x41130e
lea eax, [ebp - 0x274]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040466f
test eax, eax
jne 0x411298
lea ecx, [ebp - 4]
call fcn.0043092f
lea ecx, [ebp - 0xc]
call fcn.00402b5c
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GdiplusStartup
push edi
call esi
push str.GdiplusShutdown
push edi
mov dword [0x4acd88], eax
call esi
push str.GdipLoadImageFromFile
push edi
mov dword [0x4acd8c], eax
call esi
push str.GdipDisposeImage
push edi
mov dword [0x4acd9c], eax
call esi
push str.GdipCreateFromHDC
push edi
mov dword [0x4acd90], eax
call esi
push str.GdipDrawImageRectI
push edi
mov dword [0x4acd94], eax
call esi
push str.GdipCreateBitmapFromHBITMAP
push edi
mov dword [0x4acd98], eax
call esi
push str.GdipSaveImageToFile
push edi
mov dword [0x4acda8], eax
call esi
push str.GdipGetImageEncodersSize
push edi
mov dword [0x4acdac], eax
call esi
push str.GdipGetImageEncoders
push edi
mov dword [0x4acda0], eax
call esi
push str.GdipDrawImageI
push edi
mov dword [0x4acda4], eax
call esi
push str.GdipGetImageWidth
push edi
mov dword [0x4acdb0], eax
call esi
push str.GdipGetImageHeight
push edi
mov dword [0x4acdb4], eax
call esi
mov dword [0x4acdb8], eax
xor esi, esi
pop ebx
cmp dword [0x4ace44], esi
jne 0x4113ff
cmp dword [0x4acd9c], esi
je 0x4113ff
xor eax, eax
mov dword [ebp - 0x24], 1
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0x4ace44
call dword [0x4acd88]
cmp dword [ebp + 8], esi
mov dword [ebp - 0x10], esi
je 0x411419
mov eax, dword [0x4acd9c]
cmp eax, esi
je 0x411419
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 8]
call eax
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x414838
Capabilities:
Shutdown system

Disassembly:
mov eax, dword [esp + 8]
or byte [0x4b0003], 0x80
push ebp
push esi
push edi
mov esi, eax
mov edi, eax
and eax, 0xfffffffe
push eax
push dword [esp + 0x1c]
and esi, 0xfffffffe
shl esi, 0x1e
and edi, 0x70
call fcn.0040df1f
push 2
push str.SeShutdownPrivilege
call fcn.0040f24d
push 2
push str.SeRemoteShutdownPrivilege
call fcn.0040f24d
xor ebp, ebp
add esp, 0x18
mov dword [esp + 0x14], ebp
call fcn.0040d786
shrd eax, edx, 0x10
shr edx, 0x10
cmp eax, 0x60002
jb 0x4148b1
cmp edi, ebp
je 0x4148b1
xor eax, eax
cmp dword [esp + 0x10], ebp
setne al
push eax
push 1
push ebp
push 0x4949a4
push ebp
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
push ebx
lea eax, [esp + 0x18]
push eax
push 1
push 2
or esi, 1
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutW]
push 1
push 0x16
mov ebx, 0xffff
push ebx
call esi
lea eax, [esp + 0x18]
push eax
push 1
push 2
push ebp
push ebp
push 0x10
push ebx
call esi
lea eax, [esp + 0x18]
push eax
push 1
push 2
push ebp
push ebp
push 2
push ebx
call esi
cmp edi, ebp
pop ebx
je 0x414925
push str.NtShutdownSystem
push str.NTDLL
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ecx, eax
xor eax, eax
inc eax
cmp ecx, ebp
je 0x414927
xor eax, eax
cmp dword [esp + 0x10], ebp
sete al
inc eax
push eax
call ecx
jmp 0x414927
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x415070
Capabilities:
Check mutex on windows

Disassembly:
test byte [0x4b0003], 1
je 0x415088
push str.UCallBackhWnd
call fcn.0040e402
test eax, eax
pop ecx
jne 0x41508b
xor eax, eax
ret
push edi
push str.GlobalPECMD:main_u
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov edi, eax
test edi, edi
je 0x4150c6
push esi
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
sub esi, 0xb7
neg esi
sbb esi, esi
push edi
inc esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
pop esi
jne 0x4150c6
xor eax, eax
inc eax
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x415bc1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
add esi, 0x84
lea eax, [esi + 0x325]
push eax
lea ecx, [ebp - 0xc]
call fcn.00435d80
cmp word [ebx], 0x5c
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
lea edi, [eax + esi*2]
mov dword [ebp - 8], 2
jne 0x415c9a
and dword [ebp + 8], 0
push 0x2c
push ebx
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
test esi, esi
je 0x415c30
and word [esi], 0
inc esi
inc esi
push esi
call dword [sym.imp.USER32.dll_CharUpperW]
movzx esi, word [esi]
test si, si
je 0x415c30
mov dword [ebp + 8], esi
push edi
inc ebx
push 0x324
inc ebx
call dword [sym.imp.KERNEL32.DLL_GetLogicalDriveStringsW]
cmp word [edi], 0
mov esi, edi
je 0x415d01
mov ax, word [ebp + 8]
cmp word [esi], ax
jb 0x415c87
mov edi, dword [ebp - 4]
push ebx
push esi
push str._s_sFonts
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
push edi
call fcn.0047f62b
add esp, 0x14
test eax, eax
je 0x415c87
push 0x497270
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push edi
call fcn.00415b09
pop ecx
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x415c4a
jmp 0x415d01
push ebx
call fcn.0040eec0
and dword [ebp + 8], 0
mov esi, eax
push esi
call fcn.0047f62b
test eax, eax
pop ecx
pop ecx
je 0x415ccb
push esi
lea ecx, [ebp + 8]
call fcn.00440487
push 0x497270
lea ecx, [ebp + 8]
call fcn.00435dd0
mov esi, dword [ebp + 8]
push esi
push 0x49764c
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
push esi
call fcn.0040c2f3
push esi
call fcn.0047f62b
add esp, 0x14
test eax, eax
je 0x415cf9
push dword [ebp - 4]
call fcn.00415b09
pop ecx
mov dword [ebp - 8], eax
lea ecx, [ebp + 8]
call fcn.0043092f
lea ecx, [ebp - 0xc]
call fcn.0043092f
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41895b
Capabilities:
Check for time delay via gettickcount
Log keystrokes via application hook

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, 0x4ad684
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
xor ebx, ebx
test byte [esp + 0x32], 1
jne 0x418984
cmp dword [0x4aceb8], ebx
jne 0x418984
mov dword [0x4aceb4], ebx
movzx eax, byte [esp + 0x30]
add dword [0x4aceb8], 1
cmp dword [0x4aceb0], ebx
mov dword [esp + 0x30], eax
jne 0x4189c9
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
push 0x41885c
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
cmp eax, ebx
mov dword [0x4aceb0], eax
jne 0x4189c9
sub dword [0x4aceb8], 1
xor esi, esi
jmp 0x418ab9
push ebp
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ebp, dword [sym.imp.KERNEL32.DLL_GetTickCount]
call ebp
mov esi, dword [esp + 0x30]
mov edi, eax
add edi, esi
cmp esi, 0x3e8
jb 0x4189f0
push ebx
call fcn.00432240
pop ecx
cmp dword [esp + 0x34], 2
jne 0x418a86
cmp esi, ebx
jne 0x418a86
push 0xa
pop esi
jmp 0x418a86
cmp dword [esp + 0x34], 2
je 0x418a19
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x418a92
cmp byte [0x4ab290], bl
jle 0x418a92
push 0xa
pop eax
cmp esi, eax
ja 0x418a2a
mov eax, esi
push 0x4bf
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
jmp 0x418a7e
cmp dword [0x4aceb4], ebx
jne 0x418a92
cmp dword [esp + 0x34], 2
je 0x418a54
call ebp
mov esi, edi
sub esi, eax
cmp esi, ebx
jle 0x418a86
push 1
push ebx
push ebx
push ebx
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x418a86
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp byte [0x4ab290], bl
jg 0x418a3b
cmp dword [0x4aceb4], ebx
je 0x418a08
push 0x4ad684
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4aceb4]
sub dword [0x4aceb8], 1
pop ebp
jne 0x418ab2
mov dword [0x4aceb4], ebx
mov esi, eax
mov edi, 0x4ad684
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x4196c1
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xd0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov dword [0x4ad030], eax
call fcn.0040c09b
call fcn.0042c298
xor ebx, ebx
mov esi, 0x4acf10
push ebx
mov ecx, esi
call fcn.0040cabb
call fcn.00404932
mov edi, 0x4ad684
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [0x4acc30]
or eax, dword [0x4acc34]
jne 0x41971c
push 0x4acc30
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0x4acc38
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
push 0x4ace94
call dword [sym.imp.KERNEL32.DLL_GetSystemTimeAsFileTime]
call fcn.00410232
push ebx
push 0x2eba
call fcn.0040f18f
push 0xd6fbf
push 0x311f1
lea eax, [ebp - 0x60]
push str._06lu_06lu
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x60]
push eax
push 0x497a96
mov ecx, esi
call fcn.00435749
lea eax, [ebp - 0x60]
push eax
push str.PECMDVER
mov ecx, esi
call fcn.00435749
push str.X86_U
lea ecx, [ebp + 0x68]
call fcn.004403c3
push dword [0x4ab0d0]
lea ecx, [ebp + 0x68]
call fcn.00435dd0
push dword [ebp + 0x68]
mov ecx, esi
push 0x497a6c
call fcn.00435749
push 0x497a68
push 0x497a58
mov ecx, esi
call fcn.00435799
push ebx
push 0x2ec7
call fcn.0040f18f
call fcn.0040f017
push ebx
push 0x2ec9
call fcn.0040f18f
mov eax, dword [ebp + 0x78]
mov dword [0x4ace04], eax
mov eax, dword [ebp + 0x7c]
mov dword [0x4ab26c], eax
call fcn.00430f76
push str.WM_TaskbarRestart
push dword [0x4ad04c]
mov esi, 0x4acf10
push esi
call fcn.004380a5
mov edi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
add esp, 0x1c
push str.__PID
call edi
push eax
push esi
call fcn.004380a5
add esp, 0xc
push str.__PPID
call edi
push eax
call fcn.00403f4e
pop ecx
push eax
push esi
call fcn.004380a5
push str.__HINST
push dword [0x4ace04]
push esi
call fcn.004380a5
add esp, 0x18
push 0x4979ec
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
push eax
push esi
call fcn.004380a5
add esp, 0xc
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
add eax, 0x2ed2
push ebx
push eax
call fcn.0040f18f
movzx eax, word [0x4b0010]
push str.SYSCODEPAGE
push eax
push esi
call fcn.004380a5
add esp, 0x14
push 0x20a
lea ecx, [ebp + 0x6c]
call fcn.00435d80
push dword [ebp + 0x6c]
mov edi, 0x208
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push dword [ebp + 0x6c]
mov ecx, esi
push 0x4976a0
call fcn.00435799
push dword [ebp + 0x6c]
mov ecx, esi
push str._CD
call fcn.00435799
mov eax, dword [ebp + 0x6c]
mov word [eax + 4], bx
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurDrv
call fcn.00435799
mov eax, dword [ebp + 0x6c]
push edi
push eax
push ebx
mov word [eax], bx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push dword [ebp + 0x6c]
mov ecx, esi
push str.CurFile
call fcn.00435799
call fcn.0040f19f
lea ecx, [ebp + 0x6c]
call fcn.0043092f
lea ecx, [ebp + 0x68]
call fcn.0043092f
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret
Function at 0x41a464
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x41a48b
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.0040c92b
test eax, eax
je 0x41a48b
call fcn.0040c9b2
test eax, eax
mov dword [esp + 0xc], eax
jne 0x41a492
xor eax, eax
jmp 0x41a554
mov ecx, dword [esi + 0x10]
mov ecx, dword [ecx + 0x34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_VirtualAlloc]
push ebp
push edi
push 0x40
mov ebp, 0x3000
push ebp
push eax
push ecx
call ebx
mov edi, eax
test edi, edi
jne 0x41a4ca
push 0x40
push ebp
push dword [esp + 0x20]
push eax
call ebx
mov edi, eax
test edi, edi
jne 0x41a4ca
xor eax, eax
jmp 0x41a551
push dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00410685
mov eax, dword [esi + 0x10]
xor ebx, ebx
cmp dword [eax + 0xa0], ebx
jbe 0x41a4f7
cmp dword [eax + 0xa4], ebx
jbe 0x41a4f7
push edi
mov ecx, esi
call fcn.0040c7ed
test eax, eax
je 0x41a4c3
push edi
mov ecx, esi
call fcn.0040c84c
test eax, eax
jne 0x41a512
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
jmp 0x41a4c3
mov eax, dword [esi + 0x10]
mov dword [eax + 0x34], edi
mov eax, dword [esi + 0x10]
mov eax, dword [eax + 0x28]
push ebx
xor ebp, ebp
inc ebp
push ebp
add eax, edi
push edi
mov dword [esi + 4], eax
call eax
test eax, eax
jne 0x41a54a
push ebx
push ebx
push edi
call dword [esi + 4]
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_VirtualFree]
mov dword [esi + 4], ebx
jmp 0x41a4c3
mov dword [esi], ebp
mov dword [esi + 8], edi
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret 8
Function at 0x42c82c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0xff
lea edi, [ebp - 0x40b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 8
lea eax, [ebp - 0x409]
push str.MSWIN4.1
push eax
mov byte [ebp - 0x40c], 0xeb
mov byte [ebp - 0x40b], 0x3c
mov byte [ebp - 0x40a], 0x90
call fcn.00480710
mov eax, dword [ebp + 0xc]
push 0xb
mov dword [ebp - 0x3f0], eax
lea eax, [ebp - 0x3e1]
push str.NO_NAME
mov esi, 0x200
xor ebx, ebx
push eax
mov word [ebp - 0x401], si
mov word [ebp - 0x3fe], 1
mov byte [ebp - 0x3fc], 2
mov word [ebp - 0x3fb], 0xf0
mov byte [ebp - 0x3f7], 0xf0
mov word [ebp - 0x3f4], 0x3f
mov word [ebp - 0x3f2], 0xff
mov byte [ebp - 0x3e8], 0x80
mov byte [ebp - 0x3e6], 0x29
mov dword [ebp - 0x3e5], ebx
call fcn.00480710
push 8
lea eax, [ebp - 0x3d6]
push str.FAT12
push eax
call fcn.00480710
movzx eax, word [ebp - 0x3fb]
movzx edi, word [ebp - 0x401]
shl eax, 5
lea eax, [eax + edi - 1]
cdq
idiv edi
movzx ecx, byte [ebp - 0x3fc]
add ecx, 0x100
add esp, 0x24
push ebx
push ebx
push esi
push dword [ebp + 0x10]
mov word [ebp - 0x20e], 0xaa55
push dword [ebp + 0xc]
mov word [ebp - 0x3f9], 0x11
mov byte [ebp - 0x3ff], 1
mov edx, eax
mov eax, ecx
sub eax, edx
movzx edx, word [ebp - 0x3fe]
sub eax, edx
add eax, 0x10
xor edx, edx
div ecx
mov word [ebp - 0x3f6], ax
call fcn.0047fe80
push edx
push eax
push dword [ebp + 8]
call fcn.0043181b
add esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_WriteFile]
call ebx
movzx eax, byte [ebp - 0x3fc]
movzx edi, word [ebp - 0x3fb]
mov dword [ebp - 8], eax
movzx eax, word [ebp - 0x3f6]
shl edi, 5
add edi, 0x1ff
sar edi, 9
dec eax
push 0x400
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.0047fd70
movzx eax, word [ebp - 0x3fe]
add esp, 0xc
sub eax, 2
js 0x42c9ef
inc eax
mov dword [ebp + 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call ebx
dec dword [ebp + 0x10]
jne 0x42c9d7
mov eax, dword [ebp - 8]
test eax, eax
mov dword [ebp - 0x40c], 0xfffff8
jbe 0x42ca45
mov ecx, dword [ebp - 0xc]
dec ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
jl 0x42ca40
inc eax
mov dword [ebp + 0x10], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call ebx
dec dword [ebp + 0x10]
jne 0x42ca28
dec dword [ebp - 8]
jne 0x42ca0a
push 0x400
lea eax, [ebp - 0x40c]
push 0
push eax
call fcn.0047fd70
push 0x1a
lea eax, [ebp - 0x40c]
push str.____________b
push eax
call fcn.00480710
add esp, 0x18
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x40c]
push eax
push dword [ebp + 8]
call ebx
add edi, 0xfffffffe
js 0x42ca9d
inc edi
push 0
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call ebx
dec edi
jne 0x42ca87
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43174a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0xf003f
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004316e0
add esp, 0x10
test eax, eax
jne 0x431792
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x431794
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 0x20006
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004316e0
add esp, 0x10
test eax, eax
jne 0x4317dc
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x4317de
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004316e0
add esp, 0x10
test eax, eax
jne 0x431819
push esi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret