joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4031f0
Capabilities:
Delete file

Disassembly:
sub esp, 0x910
push esi
push edi
mov ecx, 0x121
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
rep stosd dword es:[edi], eax
mov esi, dword [esp + 0x91c]
stosw word es:[edi], ax
stosb byte es:[edi], al
test esi, esi
mov eax, str.backup
jne 0x403222
mov eax, str.restore
push eax
push str.do__s_desktop_wallpaper
call fcn.00402470
add esp, 8
test esi, esi
je 0x40325a
lea eax, [esp + 8]
push eax
call fcn.00403340
lea ecx, [esp + 8]
push 0x431af8
push ecx
call fcn.004034c0
pop edi
xor eax, eax
pop esi
add esp, 0x910
ret 4
mov ecx, 0x121
xor eax, eax
lea edi, [esp + 0x491]
mov byte [esp + 0x490], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 8]
push edx
stosb byte es:[edi], al
call fcn.00403340
lea eax, [esp + 0x490]
push 0x431b1c
push eax
call fcn.00403570
test eax, eax
je 0x4032c0
push 0x431b40
push str.info_in_file_error:__s
call fcn.00402470
add esp, 8
push 0x431b7c
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x910
ret 4
push str.c:_app_desktop_wallpaper_backup.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x48c]
mov eax, dword [esp + 0x914]
cmp ecx, eax
jne 0x403320
lea edx, [esp + 0x510]
lea eax, [esp + 0x88]
push edx
push eax
call fcn.00402be0
test eax, eax
je 0x403320
mov edx, dword [esp + 0x48c]
lea ecx, [esp + 0x88]
push ecx
push edx
push str.desktop_did_not_change__size:__lu___s
call fcn.00402470
add esp, 0xc
xor eax, eax
pop edi
pop esi
add esp, 0x910
ret 4
lea eax, [esp + 0x490]
push eax
call fcn.00403420
pop edi
xor eax, eax
pop esi
add esp, 0x910
ret 4

Function at 0x403aa0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x410]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 0xc]
mov ebx, dword [esp + 0x414]
push ecx
push 0x431d58
push ebx
push esi
call fcn.0041df61
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
push 0x400
push edx
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
je 0x403b27
lea eax, [esp + 0xc]
push eax
push 0x431d5c
push ebx
push esi
call fcn.0041df61
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x400
ret 8
Function at 0x403b60
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x854
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 0x5c]
push 0x400
mov dword [esp + 0x14], eax
push ecx
push str._SYSTEMROOT_Explorer.exe
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x30], 0x431d60
mov dword [esp + 0x2c], 0x431d68
call esi
lea edx, [esp + 0x45c]
push 0x400
push edx
push str._SYSTEMROOT__
call esi
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x460]
push ecx
push edx
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
test eax, eax
jne 0x403c13
lea ecx, [esp + 0x54]
push ecx
push str.start_default_explorer_failed:__s
call fcn.00402470
add esp, 8
or eax, 0xffffffff
add esp, 0x854
ret
mov ecx, dword [esp + 8]
lea edx, [esp + 0x454]
lea eax, [esp + 0x54]
push edx
push eax
push ecx
push str.New_explorer_pid__ld__cmd:__s__path:__s
call fcn.00402470
mov eax, dword [esp + 0x18]
add esp, 0x10
add esp, 0x854
ret

Function at 0x403e00
Capabilities:
Delete file
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c2a0
push 0x41e2f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov byte [ebp - 0x418], bl
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x417]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push str.rundll32____ProgramFiles__maipu_smorelibpub.dll__VDesktopRestoreFiles
push 0x400
lea eax, [ebp - 0x418]
push eax
call fcn.0041df61
add esp, 0xc
push 0x400
lea ecx, [ebp - 0x418]
push ecx
call fcn.00403aa0
mov dword [ebp - 4], ebx
push str.app.exe
call fcn.00403f50
push str.explorer.exe
call fcn.00403f50
push 0x436c2c
call fcn.004040d0
call fcn.004040a0
call fcn.00403b60
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403eaf
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
push ebx
lea edx, [ebp - 0x418]
push edx
call fcn.00404a90
call fcn.004054f0
mov edx, dword [ebp + 8]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 8
jb 0x403edc
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x403f50
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call fcn.0041e3d0
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x403fad
mov eax, dword [esp]
shr eax, 2
je 0x403fad
push ebx
mov ebx, dword [esp + 0x100c]
push esi
push edi
lea esi, [esp + 0x10]
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x403fa4
push eax
push ebx
call fcn.00403ff0
test eax, eax
je 0x403fa4
mov edx, dword [esi]
push edx
call fcn.00403fc0
add esi, 4
dec edi
jne 0x403f8b
pop edi
pop esi
pop ebx
add esp, 0x1004
ret 4

Function at 0x403fc0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x403fe6
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret 4

Function at 0x403ff0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x10c
mov eax, dword [0x431f18]
mov ecx, dword [0x431f1c]
mov dx, word [0x431f20]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [esp + 0x120]
xor ebx, ebx
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40406e
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push ecx
push 4
push edx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40406e
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push 0x104
push eax
push ecx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov eax, dword [esp + 0x11c]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00402be0
test eax, eax
je 0x404089
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret 8

Function at 0x4040d0
Capabilities:
Persist via run registry key

Disassembly:
sub esp, 0x400
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
mov esi, dword [esp + 0x40c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
push str.cmd_in_regist:__s
stosb byte es:[edi], al
call fcn.00402470
push esi
push 0x431f40
lea eax, [esp + 0x18]
push 0x400
push eax
call fcn.0041df61
add esp, 0x18
lea ecx, [esp + 8]
push str.RestoreFiles
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_accept
push ecx
call fcn.00403170
pop edi
pop esi
add esp, 0x400
ret 4
Function at 0x404920
Capabilities:
Delete file

Disassembly:
sub esp, 0x400
push esi
push 1
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
call fcn.004056a0
test eax, eax
je 0x40498e
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 9]
mov byte [esp + 8], 0
push str.__ProgramFiles__maipu_smoreweb_client64.exe_0_0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x400
push eax
call fcn.0041df61
add esp, 0xc
lea ecx, [esp + 8]
push 0x400
push ecx
call fcn.00403aa0
lea edx, [esp + 8]
push 0
push edx
call fcn.00404a90
xor esi, esi
pop edi
jmp 0x404997
push 0
call fcn.00402700
mov esi, eax
mov eax, dword [esp + 0x408]
test eax, eax
je 0x4049ad
push str.c:_app_desktopicon_pos_backup.txt
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop esi
add esp, 0x400
ret 4

Function at 0x404a90
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x14], 0x44
test eax, eax
pop edi
jne 0x404ac4
mov dword [esp + 0x1c], 0x432140
mov dword [esp + 0x18], 0x432148
jmp 0x404acc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
xor eax, eax
lea ecx, [esp]
mov dword [esp], eax
push esi
mov dword [esp + 8], eax
mov esi, dword [esp + 0x5c]
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
mov dword [esp + 0x38], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x404b1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.pub_run_cmd_:__s_failed:__ld
call fcn.00402470
add esp, 0xc
or eax, 0xffffffff
pop esi
add esp, 0x54
ret 8
mov eax, dword [esp + 4]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x404b42
mov ecx, dword [esp + 4]
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
xor eax, eax
pop esi
add esp, 0x54
ret 8

Function at 0x404d20
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push 0
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404d52
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
mov eax, dword [esp + 4]
push eax
push str.read_from_pipe:__d_bytes
call fcn.00402470
mov ecx, dword [esp + 0xc]
add esp, 8
push ecx
push esi
call fcn.004053e0
pop esi
mov eax, dword [esp]
pop ecx
ret 0xc
Function at 0x404d80
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
lea eax, [esp + 8]
push 0
push eax
push esi
push edi
push ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x404db4
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 8]
push edx
push esi
push str.write_bo_pipe:__d_bytes___d_success
call fcn.00402470
mov eax, dword [esp + 0x14]
add esp, 0xc
push eax
push edi
call fcn.004053e0
pop edi
pop esi
mov eax, dword [esp]
pop ecx
ret 0xc
Function at 0x4054f0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x454
push ebp
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
lea ecx, [esp + 8]
push eax
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x18]
xor ebp, ebp
push edx
push eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.00403970
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x405613
cmp dword [esp + 8], ebp
je 0x405613
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
push esi
lea esi, [ebp + 0x41]
lea ecx, [esp + 0x24]
push esi
push 0x432318
push 0x40
push ecx
call fcn.0041df61
add esp, 0x10
lea edx, [esp + 0x64]
lea eax, [esp + 0x24]
push 0x400
push edx
push eax
call ebx
mov edi, str.DeviceTrueCryptVolume
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x68]
push ecx
push str.DeviceTrueCryptVolume
call fcn.00405630
test eax, eax
je 0x4055f6
push esi
push str._c:_
lea edx, [esp + 0x2c]
push 0x40
push edx
call fcn.0041df61
add esp, 0x10
push ebp
call fcn.00402540
push eax
call dword [esp + 0x18]
test eax, eax
je 0x4055e9
push eax
push str.unmountVol_failed:__d
call fcn.00402470
add esp, 8
lea eax, [esp + 0x24]
push ebp
push eax
push 0
call fcn.00403900
xor eax, eax
inc ebp
mov ecx, 0x100
lea edi, [esp + 0x64]
cmp ebp, 0x1a
rep stosd dword es:[edi], eax
jl 0x40556b
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
push ecx
push eax
call fcn.00403b40
pop edi
pop ebp
add esp, 0x454
ret

Function at 0x4077f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
lea eax, [esp]
push str._n_ULOG__t
push 0x400
push eax
call fcn.0041df61
mov edx, dword [esp + 0x410]
lea ecx, [esp + 0x414]
push ecx
mov ecx, 0x400
push edx
sub ecx, eax
lea edx, [esp + eax + 0x14]
push ecx
push edx
call fcn.0041e592
add esp, 0x1c
lea eax, [esp + 1]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0x400
ret

Function at 0x407a60
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov esi, dword [esp + 0x410]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea ecx, [esp + 0xc]
mov ebx, dword [esp + 0x414]
push ecx
push 0x432428
push ebx
push esi
call fcn.0041df61
add esp, 0x10
lea edx, [esp + 0xc]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xc]
push 0x400
push edx
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
je 0x407ae7
lea eax, [esp + 0xc]
push eax
push 0x43242c
push ebx
push esi
call fcn.0041df61
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x400
ret 8
Function at 0x4084f0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1004
call fcn.0041e3d0
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x408530
push 0xffffffffffffffff
call fcn.004078e0
push eax
push 0x432524
call fcn.004077f0
add esp, 8
add esp, 0x1004
ret 4
mov eax, dword [esp]
shr eax, 2
je 0x40857c
push ebx
push esi
push edi
mov edi, dword [esp + 0x1014]
lea esi, [esp + 0x10]
mov ebx, eax
mov eax, dword [esi]
test eax, eax
je 0x408573
push eax
push edi
call fcn.00408590
test eax, eax
je 0x408573
mov edx, dword [esi]
push edx
push edi
push str.Got_Process_to_Terminate:__s:__ld
call fcn.004077f0
mov eax, dword [esi]
add esp, 0xc
push eax
call fcn.00408700
add esi, 4
dec ebx
jne 0x408549
pop edi
pop esi
pop ebx
add esp, 0x1004
ret 4

Function at 0x408590
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x10c
mov eax, dword [str._unknown_]
mov ecx, dword [0x432568]
mov dx, word [0x43256c]
push ebx
push esi
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x1e]
mov word [esp + 0x1c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [esp + 0x120]
xor ebx, ebx
push edi
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408610
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
push 4
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x408626
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push 0x104
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
jmp 0x408626
push 0xffffffffffffffff
call fcn.004078e0
push eax
push edi
push str.OpenProcess__ld__failed:__s
call fcn.004077f0
add esp, 0xc
mov edx, dword [esp + 0x11c]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00407db0
test eax, eax
je 0x408641
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret 8

Function at 0x408700
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push edi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
push str.terminate_Process_ID:__ld
mov esi, eax
call fcn.004077f0
add esp, 8
test esi, esi
je 0x408754
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x408748
push 0xffffffffffffffff
call fcn.004078e0
push eax
push edi
push str.TerminateProcess__ld___failed:__s
call fcn.004077f0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
ret 4
push 0xffffffffffffffff
call fcn.004078e0
push eax
push edi
push str.OpenProcess__ld___failed:__s
call fcn.004077f0
add esp, 0xc
pop edi
pop esi
ret 4
Function at 0x40a500
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42ac9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 8], al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.0040a610
test al, al
jne 0x40a597
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x40a582
mov al, byte [ecx - 1]
cmp al, bl
je 0x40a578
cmp al, 0xff
je 0x40a578
dec al
pop esi
mov byte [ecx - 1], al
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call fcn.0041d2d9
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.0040f8d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
push ecx
mov ecx, esi
call fcn.0040b3a0
mov ecx, eax
call fcn.0040fcb0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.0040fc30
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x40a5ee
mov al, byte [ecx - 1]
cmp al, bl
je 0x40a5e4
cmp al, 0xff
je 0x40a5e4
dec al
mov byte [ecx - 1], al
jmp 0x40a5ee
dec ecx
push ecx
call fcn.0041d2d9
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x40b180
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42ad5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x34]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [0x42c2b8]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
push ebx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.00406170
mov eax, dword [esi + 0x5c]
mov ecx, dword [esp + 0x44]
add esi, 0x30
cmp eax, ebx
mov dword [esp + 0x28], ecx
je 0x40b275
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x40b275
lea ecx, [eax + 0x20]
cmp ecx, edx
jne 0x40b235
mov dword [esp + 0x40], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x34], 2
je 0x40b228
lea edx, [esp + 0xc]
mov ecx, eax
push edx
call fcn.0040eb60
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.0040d370
jmp 0x40b2a0
mov edi, eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
cmp edi, ebx
mov byte [esp + 0x34], 3
je 0x40b2a0
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [eax + 8], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.004068e0
mov eax, dword [esp + 0x28]
mov dword [edi + 0x1c], eax
jmp 0x40b2a0
mov ecx, esi
call fcn.0040d370
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
lea edx, [ecx + 0x20]
mov dword [esi + 0x1c], edx
cmp ecx, ebx
mov byte [esp + 0x34], 1
je 0x40b2a0
lea eax, [esp + 0xc]
push eax
call fcn.0040eb60
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebx
mov dword [esi + 0x2c], edx
je 0x40b2cc
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x40b2c3
cmp al, 0xff
je 0x40b2c3
dec al
mov byte [ecx], al
jmp 0x40b2cc
push ecx
call fcn.0041d2d9
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x419d10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42b5f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.0041d938
mov dword [esi + 0x34], eax
mov eax, dword [0x437ccc]
mov ecx, dword [eax + 4]
cmp ecx, 0xffffffff
jae 0x419d46
inc ecx
mov dword [eax + 4], ecx
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], 0
mov eax, dword [esi + 0x20]
push 0
push 0
push 0
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x1c], 0
mov dword [ecx], 0
mov ecx, esi
call fcn.00419e20
mov cl, byte [esp + 0x18]
xor eax, eax
test cl, 1
mov dword [esi], 0x42c334
jne 0x419db3
mov eax, 4
test cl, 2
jne 0x419dba
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov ecx, dword [esi + 0x2c]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov eax, esi
pop esi
mov dword [ecx], 0
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x401550
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x124]
sub esp, 0x144
mov dword [ebp - 0x124], 0xa
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x116]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 8], 1
mov dword [esp + 4], 1
mov dword [esp], eax
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
movsx ebx, byte [ebp - 0x116]
lea eax, [ebp - 0x120]
sub esp, 0x14
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetCursorPos]
sub ebx, 0x41
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4015c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xa0
mov dword [ebp - 0x88], 0
call fcn.00401550
mov dword [esp], 0x40169c
mov dword [ebp - 0x8c], 0
mov ebx, eax
lea eax, [ebp - 0x8c]
mov dword [esp + 0xc], eax
mov eax, ebx
or eax, 0x40
mov dword [esp + 8], eax
mov eax, 0x4020fe
sub eax, 0x40169c
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401665
mov dword [esp], ebx
lea esi, [ebp - 0x88]
call fcn.00401463
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.004014c4
mov cl, bl
mov dword [esp + 8], esi
lea eax, [ebx + 0x1b800]
sar eax, cl
mov ecx, 0x40300c
shl ebx, cl
mov dword [esp + 4], eax
add ebx, ecx
mov dword [esp], ebx
call fcn.00401e01
lea esp, [ebp - 8]
xor eax, eax
pop ebx
pop esi
pop ebp
ret