joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x402f50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
jmp 0x402f5b
push eax
mov eax, esp
push eax
mov ebx, esp
push eax
mov esi, esp
push eax
mov dword [ebp - 0x14], esp
push eax
mov edi, esp
mov dword [eax], edx
mov dword [ebx], ecx
mov dword [esi], 0x1505
mov dword [edi], 0
mov dword [edi], 0
jmp 0x402f83
mov ecx, dword [edi]
cmp ecx, dword [eax]
jae 0x403048
jmp 0x402f8f
mov ecx, dword [ebx]
mov edx, dword [edi]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x14]
mov byte [edx], cl
movzx ecx, byte [edx]
cmp ecx, 0
sete cl
test cl, 1
jne 0x402fab
jmp 0x402fb0
jmp 0x40304a
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], eax
mov ebx, dword [esi]
shl ebx, 5
mov eax, dword [esi]
mov dword [ebp - 0x10], eax
mov edx, ebx
and edx, eax
mov ecx, edx
xor ecx, 0xffffffff
and ecx, 2
mov eax, edx
and eax, 0xfffffffd
imul eax, ecx
mov ecx, edx
and ecx, 2
or edx, 2
imul edx, ecx
add edx, eax
mov ecx, ebx
xor ecx, 0xffffffff
mov eax, ebx
xor eax, 0xffffffff
and ecx, eax
mov eax, dword [ebp - 0x10]
or eax, eax
xor eax, 0xffffffff
xor ecx, 0xffffffff
xor eax, 0xffffffff
and ecx, eax
or ebx, dword [ebp - 0x10]
xor ebx, 0xffffffff
xor ecx, 0xffffffff
xor ebx, 0xffffffff
and ecx, ebx
add ecx, edx
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
mov edx, ecx
xor edx, 0xffffffff
and edx, 0xd8ef833
and ecx, 0xf27107cc
sub ecx, edx
mov edx, ecx
and edx, eax
or ecx, eax
add edx, ecx
add edx, 0xd8ef833
mov dword [esi], edx
mov eax, dword [edi]
sub eax, 0xffffffff
mov dword [edi], eax
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
jmp 0x402f83
jmp 0x40304a
mov eax, dword [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x407050
Capabilities:
Parse pe header

Disassembly:
mov dword [0x4745dc], 0x4666e4
mov dword [0x4745e0], 0x4666fa
mov dword [0x4745e4], 0x466710
mov dword [0x4745e8], 0x466724
mov dword [0x4745ec], 0x46673c
jmp fcn.00406030
Function at 0x44b950
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
sub esp, 0x3c
mov eax, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov eax, dword [esp + 0x44]
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov eax, dword [esp + 4]
mov esi, dword [eax + 0x3c]
mov eax, ecx
and eax, esi
mov edx, ecx
or edx, esi
xor edx, 0xffffffff
or ecx, esi
xor ecx, 0xffffffff
xor edx, 0xffffffff
xor ecx, 0xffffffff
and edx, ecx
add eax, edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 0x78]
xor edx, edx
sub edx, ecx
add edx, 0
sub eax, edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
add eax, dword [ecx + 0x20]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 0x24]
sub eax, 0xe60fc7aa
sub eax, 0x57f955f7
add eax, 0xe60fc7aa
add eax, ecx
add eax, 0x57f955f7
mov dword [esp + 0x2c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
cmp eax, dword [ecx + 0x18]
jb 0x44ba0b
mov dword [esp + 8], 2
jmp 0x44ba8d
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0xc]
mov ecx, dword [ecx + edx*4]
xor ecx, 0xffffffff
and ecx, 0xffffffff
or ecx, 0
add ecx, 0
add ecx, 1
sub eax, ecx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call fcn.0044bb10
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x48]
cmp eax, dword [esp + 0x24]
jne 0x44ba66
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
movzx eax, word [eax + ecx*2]
mov dword [esp + 0x14], eax
mov dword [esp + 8], 2
jmp 0x44ba6e
mov dword [esp + 8], 0
cmp dword [esp + 8], 0
jne 0x44ba8b
jmp 0x44ba77
jmp 0x44ba79
jmp 0x44ba7b
mov eax, dword [esp + 0xc]
sub eax, 0xffffffff
mov dword [esp + 0xc], eax
jmp 0x44b9f1
jmp 0x44ba8d
jmp 0x44ba8f
cmp dword [esp + 0x14], 0
sete al
test al, 1
jne 0x44ba9d
jmp 0x44bab1
jmp 0x44ba9f
mov dword [esp + 0x18], 0
mov dword [esp + 8], 1
jmp 0x44bafb
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x10]
add eax, dword [ecx + 0x1c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov ecx, dword [ecx + edx*4]
and ecx, ecx
xor ecx, 0xffffffff
and ecx, 0xffffffff
xor ecx, 0xffffffff
xor ecx, 0xffffffff
or ecx, 0
sub ecx, 0xffffffff
sub eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], eax
mov dword [esp + 8], 1
jmp 0x44bafb
mov eax, dword [esp + 0x18]
add esp, 0x3c
pop esi
ret
Function at 0x44c010
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
sub esp, 0x24
mov dword [esp + 0x1c], 0xc
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x20], 0x10
mov eax, dword fs:[0x30]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
mov edx, eax
and edx, ecx
shl edx, 1
xor eax, ecx
add eax, edx
mov eax, dword [eax]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
add eax, 0x8d6516c2
add eax, ecx
sub eax, 0x8d6516c2
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], 0
je 0x44c0a8
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x30]
lea ecx, [0x46633a]
mov dword [esp], eax
mov dword [esp + 4], ecx
call dword [0x46e2e4]
sub esp, 8
cmp eax, 0
jne 0x44c0a8
jmp 0x44c0c1
jmp 0x44c0aa
jmp 0x44c0ac
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
cmp eax, ecx
setne al
test al, 1
jne 0x44c070
jmp 0x44c0bf
jmp 0x44c0c1
jmp 0x44c0c3
mov eax, dword [esp + 8]
mov eax, dword [eax + 0x18]
add esp, 0x24
ret

Function at 0x458750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45877d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45877d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401b50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x457d60
push 0x67
push edi
mov dword [0x456a14], 0
call esi
push 0x64
push 0x457ce0
push 0x6d
push edi
call esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push 0x6b
push edi
mov dword [ebp - 0x4c], 0x30
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x401cb0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], edi
call esi
push 0x7f00
push 0
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x6c
push dword [ebp - 0x38]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 5
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0x457ce0
call esi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push 0
push 0x457ce0
push 0
mov dword [0x457dc4], edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
jne 0x401c27
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push dword [ebp + 0x14]
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push 0
push 0
mov dword [ebp + 8], eax
lea eax, [ebp - 0x1c]
push 0
push eax
call esi
test eax, eax
je 0x401c98
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
push dword [ebp - 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorA]
test eax, eax
jne 0x401c87
lea eax, [ebp - 0x1c]
push eax
call edi
lea eax, [ebp - 0x1c]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x401c67
pop ebx
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x402770
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x443318
push dword [ebp + 8]
push dword [0x457dc4]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40282c
push 0x46ff20
push 0x470120
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x44331c
push 0x470120
call esi
push dword [ebp + 0xc]
push 0x470120
call esi
push edi
push dword [0x457dc4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push dword [0x457dc4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push 0x470120
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40282c
push 0
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42b3d4
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042b2a8

Function at 0x42e0b1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042da6f
Function at 0x10001480
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
xor esi, esi
mov dword [ebp - 0x14], 0
cmp byte [ebp + 0xc], 0
mov eax, ecx
push edi
mov edi, edx
mov dword [ebp - 4], eax
cmovne esi, edi
test esi, esi
jne 0x100014a9
mov byte [ebp - 8], 0
jmp 0x100014c9
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
mov eax, dword [ebp - 4]
setne byte [ebp - 8]
push edi
push eax
push dword [ebp + 8]
call fcn.1000e5f0
add esp, 0xc
cmp byte [ebp - 8], 0
je 0x100014f3
mov eax, dword [ebp - 0xc]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp + 0xc], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10001500
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
cmp byte [ebp + 0xc], 0
mov eax, edx
push edi
cmovne esi, eax
mov dword [ebp - 4], eax
xor edi, edi
mov dword [ebp - 0x18], edi
test esi, esi
jne 0x10001527
xor bl, bl
jmp 0x1000154c
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
push ecx
push 0x40
push esi
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
setne bl
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], bl
push ecx
call fcn.1000e5f0
add esp, 0xc
test bl, bl
je 0x10001575
mov eax, dword [ebp - 0x10]
lea ecx, [ebp + 0xc]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp + 0xc], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001580
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 0x40
push 1
push esi
mov edi, ecx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov cl, byte [esi]
mov byte [ebp - 1], cl
test eax, eax
je 0x100015ce
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov cl, byte [ebp - 1]
movzx eax, cl
sub eax, 0xe8
je 0x1000168c
sub eax, 1
je 0x1000168c
sub eax, 0x16
jne 0x1000167d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
inc esi
mov dword [ebp - 0x14], 1
push 1
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov cl, byte [esi]
mov byte [ebp - 1], cl
test eax, eax
je 0x1000162c
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov cl, byte [ebp - 1]
cmp cl, 0x15
je 0x10001636
cmp cl, 0x25
jne 0x1000167d
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0x40
add esi, 2
mov dword [ebp - 0x14], 4
push 4
push esi
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x10001670
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [esi]
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
inc esi
mov dword [eax], esi
call fcn.10006430
add esp, 4
add eax, 4
add eax, esi
mov dword [edi], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100016b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.10001580
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe9
test eax, eax
je 0x1000170a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x1000174a
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push ecx
mov edx, esp
mov dword [ebp - 4], ecx
mov dword [edx], eax
call fcn.10001580
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x18], esi
push eax
push 0x40
push 1
push esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov byte [esi], 0xe8
test eax, eax
je 0x100017ba
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
mov edi, dword [ebp + 0xc]
inc esi
push eax
push 0x40
push 4
sub edi, esi
mov dword [ebp - 0x14], 4
push esi
sub edi, 4
mov dword [ebp - 0x18], esi
call ebx
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], edi
test eax, eax
je 0x100017fa
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100054f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 1
jne 0x10005559
mov eax, dword [0x10030210]
test eax, eax
jne 0x1000551d
push 0x100295e0
push str.Toner.log
call fcn.1000f5f2
add esp, 8
mov dword [0x10030210], eax
test eax, eax
je 0x10005543
push str.start
push eax
call fcn.100012c0
push dword [0x10030210]
push 0xa
call fcn.1000f431
push dword [0x10030210]
call fcn.1000f8fc
add esp, 0x14
push 0
push 0
push dword [ebp + 8]
push 0x10005440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc

Function at 0x10006430
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov esi, dword [esi]
test eax, eax
je 0x10006476
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10006480
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
push 0x40
push 1
push esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 8]
mov bl, byte [esi]
test eax, eax
je 0x100064c7
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x10]
mov dword [ebp - 4], ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b3d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov ecx, 0x401000
call fcn.1000b550
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10005a70
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000b42e
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 4], eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, 0x53ec8b55
jne 0x1000b440
mov eax, 0x3e9
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x401000
call fcn.1000b570
cmp eax, 0x16197be9
jne 0x1000b45b
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8245bc
call fcn.1000b570
cmp eax, 0x94bf
jne 0x1000b476
mov eax, 0x3f3
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x8252fc
call fcn.1000b570
cmp eax, 0x94bf
jne 0x1000b491
mov eax, 0x44d
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x82533c
call fcn.1000b570
cmp eax, 0x94bf
jne 0x1000b4ac
mov eax, 0x457
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858d51
call fcn.1000b570
cmp eax, 0x3539f633
jne 0x1000b4c7
mov eax, 0xc80
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, 0x858c61
call fcn.1000b570
xor ecx, ecx
mov edx, 0xc8a
cmp eax, 0x3539f633
pop esi
cmove ecx, edx
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x1000b570
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
call fcn.1000b550
mov dword [ebp - 4], eax
lea ecx, [ebp - 4]
lea eax, [ebp - 8]
push eax
call fcn.10005a70
mov dword [ebp - 0x14], 4
mov esi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0xc]
mov esi, dword [esi]
test eax, eax
je 0x1000b5c9
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
push ecx
push dword [ebp - 0x14]
mov dword [ebp - 4], ecx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10014979
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100148fb
Function at 0x4e08ab
Capabilities:
Encode data using xor

Disassembly:
pushal
repne scasb al, byte es:[edi]
pushfd
pushfd
mov dword [esp], 0x11244d56
lea esp, [esp + 0x2c]
jne 0x4db26e
cwde
pushal
pop eax
pushfd
mov byte [edi - 1], 0
not ah
lea eax, [ebx*8 - 0x5b96524a]
lea eax, [0x6930d38b]
pop eax
xor byte [ecx + 0x58], ch
mov dword [esp + 0x18], ebx
lahf
mov ah, byte [esp + 0x14]
lea eax, [0x4dc937]
push dword [esp]
pushfd
call fcn.004e41d2
jg 0x4db1c2
mov cl, 0x3f
mov ds, word [edx + ecx*2]
cmp byte [edi + 0x16], ah
inc esp
shl byte [ecx + 0x6f], cl
lodsd eax, dword [esi]
mov bl, 0x3a
jo 0x4db20f
invalid
mov dword [0x7ce1], eax
cmpsd dword [esi], dword es:[edi]
pop ebp
stc
adc eax, 0x13a0d4b3
retf 0x44b1
stc
mov al, 0x2e
jmp 0x4db196
jmp 0x4df824