joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41fe60
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
mov eax, 0x10
mov ebx, 0x400
push 1
mov word [esp + 0x10], ax
mov word [esp + 0x24], bx
call fcn.0040bbcc
push eax
push 0x2e
push 1
push str.Error_reading_global.env_environment_file_set.
call fcn.0040be61
push 0x431448
call fcn.00401cd0
add esp, 0x18
xor eax, eax
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push 0x431378
push eax
call sym.downcase_dir.exe__string_appends_8
push 0x20
lea eax, [esp + 0x24]
push eax
call sym.downcase_dir.exe__string_append1_8
mov edi, dword [esp + 0x428]
lea eax, [esp + 0xc]
push dword [edi + 0x914]
push eax
call sym.downcase_dir.exe__string_f_int_8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
call sym.downcase_dir.exe__string_append_8
push 0x4313c8
lea eax, [esp + 0x24]
push eax
call sym.downcase_dir.exe__string_appends_8
mov ax, word [esp + 0x22]
cmp ax, bx
jle 0x41ff1c
cwde
push 0x433b4a
sub eax, ebx
push eax
push 0x43144c
call fcn.00401cd0
mov ax, word [esp + 0x2e]
add esp, 0xc
test ax, ax
jle 0x41ff2f
cmp ax, bx
jge 0x41ff2b
movsx esi, ax
jmp 0x41ff31
mov esi, ebx
jmp 0x41ff31
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [esp + 0x30]
push 1
push eax
call fcn.0040be61
push 0x431450
call fcn.00401cd0
movzx ecx, word [edi + 0x50e]
add esp, 0x18
mov eax, ecx
cmp cx, bx
jle 0x41ff83
movsx eax, cx
push 0x433b4b
sub eax, 0x400
push eax
push 0x431454
call fcn.00401cd0
movzx eax, word [edi + 0x50e]
add esp, 0xc
test ax, ax
jle 0x41ff96
cmp ax, bx
jge 0x41ff92
movsx esi, ax
jmp 0x41ff98
mov esi, ebx
jmp 0x41ff98
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [edi + 0x510]
push 1
push eax
call fcn.0040be61
push 0x431458
call fcn.00401cd0
add esp, 0x18
call sym.downcase_dir.exe__sys_bomb_0
pop edi
pop esi
pop ebx
add esp, 0x418
ret 4
Function at 0x4205e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
mov eax, 0x10
mov ebx, 0x400
push 1
mov word [esp + 0x10], ax
mov word [esp + 0x24], bx
call fcn.0040bbcc
push eax
push 0xe
push 1
push str.Error_reading
call fcn.0040be61
mov edi, dword [esp + 0x43c]
add esp, 0x14
movzx ecx, word [edi + 2]
mov eax, ecx
cmp cx, 0x20
jle 0x420646
movsx eax, cx
push 0x433baa
sub eax, 0x20
push eax
push 0x431690
call fcn.00401cd0
movzx eax, word [edi + 2]
add esp, 0xc
test ax, ax
jle 0x42065d
cmp ax, 0x20
jge 0x420656
movsx esi, ax
jmp 0x42065f
mov esi, 0x20
jmp 0x42065f
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [edi + 4]
push 1
push eax
call fcn.0040be61
push 1
call fcn.0040bbcc
push eax
push 0x22
push 1
push str..lan_language_descriptor_file_set.
call fcn.0040be61
push 0x4316b8
call fcn.00401cd0
add esp, 0x2c
xor eax, eax
mov word [esp + 0x22], ax
lea eax, [esp + 0x20]
push str.Error_on_line
push eax
call sym.downcase_dir.exe__string_appends_8
push 0x20
lea eax, [esp + 0x24]
push eax
call sym.downcase_dir.exe__string_append1_8
mov edi, dword [esp + 0x42c]
lea eax, [esp + 0xc]
push dword [edi + 0x914]
push eax
call sym.downcase_dir.exe__string_f_int_8
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x24]
push eax
call sym.downcase_dir.exe__string_append_8
push str._of_file
lea eax, [esp + 0x24]
push eax
call sym.downcase_dir.exe__string_appends_8
mov ax, word [esp + 0x22]
cmp ax, bx
jle 0x420715
cwde
push 0x433bab
sub eax, 0x400
push eax
push 0x4316bc
call fcn.00401cd0
mov ax, word [esp + 0x2e]
add esp, 0xc
test ax, ax
jle 0x420728
cmp ax, bx
jge 0x420724
movsx esi, ax
jmp 0x42072a
mov esi, ebx
jmp 0x42072a
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [esp + 0x30]
push 1
push eax
call fcn.0040be61
push 0x4316c0
call fcn.00401cd0
movzx ecx, word [edi + 0x50e]
add esp, 0x18
mov eax, ecx
cmp cx, bx
jle 0x42077c
movsx eax, cx
push 0x433bac
sub eax, 0x400
push eax
push 0x4316c4
call fcn.00401cd0
movzx eax, word [edi + 0x50e]
add esp, 0xc
test ax, ax
jle 0x42078f
cmp ax, bx
jge 0x42078b
movsx esi, ax
jmp 0x420791
mov esi, ebx
jmp 0x420791
xor esi, esi
push 1
call fcn.0040bbcc
push eax
push esi
lea eax, [edi + 0x510]
push 1
push eax
call fcn.0040be61
push 0x4316c8
call fcn.00401cd0
add esp, 0x18
call sym.downcase_dir.exe__sys_bomb_0
pop edi
pop esi
pop ebx
add esp, 0x418
ret 8
Function at 0x425d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb000]
push edi
jmp 0x425d4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x425d51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x425d40
mov eax, 1
add ebx, ebx
jne 0x425d63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x425d58
jne 0x425d74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425d58
xor ecx, ecx
sub eax, 3
jb 0x425d88
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x425dfa
mov ebp, eax
add ebx, ebx
jne 0x425d93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x425da0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x425dc4
inc ecx
add ebx, ebx
jne 0x425db0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x425da5
jne 0x425dc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x425da5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x425de4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x425dd5
jmp 0x425d46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x425de4
add edi, ecx
jmp 0x425d46
pop esi
mov edi, esi
mov ecx, 0x3d9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x425e02
cmp byte [edi], 1
jne 0x425e02
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 0x425e07
lea edi, [esi + 0x22000]
mov eax, dword [edi]
or eax, eax
je 0x425e76
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25120]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25198]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x425e34
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2519c]
or eax, eax
je 0x425e70
mov dword [ebx], eax
add ebx, 4
jmp 0x425e51
call dword [esi + 0x251ac]
mov ebp, dword [esi + 0x251a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x425eaa
sub esp, 0xffffff80
jmp 0x406458
Function at 0x100c0e2
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01008580
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100c148
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x100e2e4]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100c14c
xor eax, eax
jmp 0x100c159
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
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
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x84], 0
call fcn.004019a4
mov edi, eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
mov eax, edi
or al, 0x40
push eax
lea eax, [0x4046d1]
lea edx, [fcn.00401a14]
sub eax, edx
push eax
push fcn.00401a14
call sub.KERNEL32.dll_VirtualProtect
cmp dword [ebp - 4], 0
je 0x40132e
push edi
call fcn.00401894
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.004018e3
mov eax, edi
add eax, 0x1e200
mov dword [ebp - 0x88], eax
lea eax, [ebp - 0x84]
push eax
mov esi, dword [ebp - 0x88]
mov ecx, esi
mov ebx, edi
sar ebx, cl
sub esi, ebx
push esi
lea esi, [0x4060e4]
xor esi, edi
push esi
call fcn.00401a14
add esp, 0x18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push edi
and dword [ebp - 0x120], 0
xor edi, edi
mov dword [ebp - 0x11c], 0x14
mov byte [ebp - 0x104], 0
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 1
lea eax, [ebp - 0x104]
push eax
call sub.CRYPT32.DLL_CryptBinaryToStringW
push 0
push 0
call sub.SHLWAPI.DLL_PathAppendA
movzx eax, word [ebp - 0x118]
mov edi, eax
sub edi, 0x41
mov eax, edi
pop edi
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
Function at 0x100011c0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x100011d5
xor eax, eax
jmp 0x1000124a
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
add edx, 0x10000
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x10001202
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x38d
jae 0x10001245
mov edx, dword [ebp - 4]
imul edx, edx, 0x48
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 0x40], 0
je 0x10001243
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0xc]
jb 0x1000123f
mov ecx, dword [ebp - 4]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 8]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 0x10]
jb 0x10001243
xor eax, eax
jmp 0x1000124a
jmp 0x100011f9
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x100012b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10326e9c]
mov dword [ebp - 4], eax
jmp 0x100012c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100012e6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100012c0
mov esp, ebp
pop ebp
ret
Function at 0x100012f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10326eac], eax
je 0x1000130e
mov eax, 0x10dd
jmp 0x100013ef
mov eax, dword [0x10326ebc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000138c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000136a
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000136a
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.100010a0
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.100f464e
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x10001316
mov dword [0x10326ebc], 0
call fcn.10001250
mov ecx, dword [0x10326eb8]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x100013d9
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.100f464e
add esp, 4
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x100013a4
mov dword [0x10326eb8], 0
mov dword [0x10326eac], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100018e0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10326eb0], 0
je 0x100018f9
mov eax, dword [0x10326eb0]
jmp 0x10001999
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x1000190b
xor eax, eax
jmp 0x10001999
push 8
call fcn.100f4c6f
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10001961
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000194a
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.100f464e
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10326eb0], eax
mov dword [0x10326eb4], 0
mov eax, dword [ebp - 8]
jmp 0x10001999
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1000197b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x1000192b
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10326eb8]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10326eb8], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x100038d5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
and ecx, 0xfffffffc
mov esp, ecx
mov ebp, dword [esp + 0x30]
mov ecx, 0xfffffff8
mov eax, 2
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
add ebx, 0xb10
mov esi, dword [edx - 4]
mov dword [edx - 4], 0xfffffffe
mov dword [ebx - 0xa44], 0xffffffff
jmp 0x1000380b

Function at 0x10007a60
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
nop
xor eax, eax
test cl, 1
je 0x10007a7b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x10007a86
bts eax, 6
shr ecx, 1
test cl, 1
je 0x10007a91
bts eax, 5
shr ecx, 1
test cl, 1
je 0x10007a9c
bts eax, 4
shr ecx, 1
test cl, 1
je 0x10007aa7
bts eax, 3
shr ecx, 1
test cl, 1
je 0x10007ab2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x10007abd
bts eax, 1
test cl, 2
je 0x10007ac6
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
test bl, 1
je 0x10007b62
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x10007b53
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x10007a70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007b90
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x10197c94
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
push eax
mov dword [edi], 0xffffffff
mov dword [ebp - 8], 0
call fcn.1014b142
add esp, 0xc
test eax, eax
je 0x10007be0
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f4653
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.1014b189
add esp, 4
mov ebx, eax
mov dword [ebp - 0x10], ebx
push dword [ebp - 8]
test ebx, ebx
jne 0x10007c16
call fcn.1014b20b
add esp, 4
xor al, al
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100f4653
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.1014b46d
add esp, 0x10
test eax, eax
je 0x10007c6f
push esi
nop dword [eax + eax]
mov esi, ebx
test eax, eax
je 0x10007c57
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 0xc]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x10007c36
mov ebx, dword [ebp - 0x10]
push dword [ebp - 8]
push 0x400
push 1
push ebx
call fcn.1014b46d
add esp, 0x10
test eax, eax
jne 0x10007c30
pop esi
push ebx
call fcn.1014b59e
push dword [ebp - 8]
call fcn.1014b20b
mov ecx, dword [ebp - 4]
add esp, 8
not dword [edi]
xor ecx, ebp
mov al, 1
pop ebx
pop edi
call fcn.100f4653
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000ba50
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push 0
push 0
push 0
push 0x1000b990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 1
push 0x1000b990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 2
push 0x1000b990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 3
push 0x1000b990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 4
push 0x1000b990
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
test eax, eax
je 0x1000bae3
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp dword [pe_dos_header]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1000c8d0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x101ac06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ebf7
call esi
lea eax, [ebp - 8]
mov byte [0x62ebf7], 0x69
push eax
push dword [ebp - 8]
push 1
push 0x62ebf7
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ee41
call esi
lea eax, [ebp - 8]
mov byte [0x62ee41], 0x69
push eax
push dword [ebp - 8]
push 1
push 0x62ee41
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62eee4
call esi
lea eax, [ebp - 8]
mov byte [0x62eee4], 0x69
push eax
push dword [ebp - 8]
push 1
push 0x62eee4
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ebf8
call esi
lea eax, [ebp - 8]
mov byte [0x62ebf8], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62ebf8
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ebfe
call esi
lea eax, [ebp - 8]
mov byte [0x62ebfe], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62ebfe
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ee42
call esi
lea eax, [ebp - 8]
mov byte [0x62ee42], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62ee42
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62ee48
call esi
lea eax, [ebp - 8]
mov byte [0x62ee48], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62ee48
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62eee5
call esi
lea eax, [ebp - 8]
mov byte [0x62eee5], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62eee5
call esi
lea eax, [ebp - 8]
push eax
push 0x40
push 1
push 0x62eeeb
call esi
lea eax, [ebp - 8]
mov byte [0x62eeeb], 0xeb
push eax
push dword [ebp - 8]
push 1
push 0x62eeeb
call esi
push 0x1000c390
push 0x520ecf
push 0xe8
call fcn.100cf570
push 0x1000c390
push 0x520f1f
push 0xe8
call fcn.100cf570
push 0x1000c390
push 0x63e743
push 0xe8
call fcn.100cf570
push 0x1000c390
push 0x640eb2
push 0xe8
call fcn.100cf570
push 0x1000c390
push 0x7d2dd9
push 0xe8
call fcn.100cf570
push 0x1000c390
push 0x7e6c0f
push 0xe8
call fcn.100cf570
add esp, 0x48
push 0x1000c390
push 0x84aef7
push 0xe8
call fcn.100cf570
push 0x1000c720
push 0x4dada4
push 0xe8
call fcn.100cf570
push 0x1000c610
push 0x63e71b
push 0xe8
call fcn.100cf570
push 0x1000c610
push 0x63eeb6
push 0xe8
call fcn.100cf570
push 0x1000c610
push 0x6410ee
push 0xe8
call fcn.100cf570
push 0x1000c420
push 0x47e15a
push 0xe8
call fcn.100cf570
add esp, 0x48
push 0x1000c850
push 0x54ee78
push 0xe9
call fcn.100cf570
push 0x1000c870
push 0x54ffb7
push 0xe9
call fcn.100cf570
push 0x1000c890
push 0x5880ad
push 0xe9
call fcn.100cf570
push 0x1000c8b0
push 0x560ce6
push 0xe9
call fcn.100cf570
mov ecx, dword [ebp - 4]
add esp, 0x30
xor ecx, ebp
pop esi
call fcn.100f4653
mov esp, ebp
pop ebp
ret
Function at 0x10011dc0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e337
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101ac06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
mov dword [ebx], 0x10197ed4
mov dword [ebx + 0x10], 0x10197ecc
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
push ecx
lea edi, [ebx + 0x18]
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x10], 1
call fcn.100135a0
mov dword [ebp - 4], 1
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100f4c6f
mov esi, eax
xorps xmm0, xmm0
add esp, 4
movq qword [esi], xmm0
push 1
mov byte [ebp - 4], 2
call fcn.100de075
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 4
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, ebx
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8