joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402150
Capabilities:
Set registry value

Disassembly:
sub esp, 0x524
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x1d]
push ebx
push eax
mov dword [esp + 0x14], ebx
mov byte [esp + 0x24], bl
call sub.MSVCR80.dll_memset
push 0x206
lea ecx, [esp + 0x12e]
push ebx
push ecx
mov word [esp + 0x134], bx
call sub.MSVCR80.dll_memset
push 0x206
lea edx, [esp + 0x342]
push ebx
mov esi, 0x104
push edx
mov dword [esp + 0x34], esi
mov word [esp + 0x348], bx
call sub.MSVCR80.dll_memset
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x554]
add esp, 0x24
cmp esi, ebx
mov dword [esp + 0x14], ebx
jne 0x4021d3
pop esi
lea eax, [ebx + 0x57]
pop ebx
add esp, 0x524
ret
mov ecx, dword [esi + 0x104]
mov ebx, dword [esp + 0x540]
push ebp
mov ebp, dword [esp + 0x540]
push edi
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
call fcn.00401ac0
mov ebx, dword [esp + 0x28]
push 2
push ebx
call dword [sym.imp.MSVCR80.dll_calloc]
mov edi, eax
add esp, 0x14
test edi, edi
jne 0x402219
lea eax, [edi + 8]
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x524
ret
mov edx, dword [esp + 0x53c]
push edx
push esi
push 0x40318c
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push 0x104
push eax
call dword [sym.imp.MSVCR80.dll__snprintf_s]
mov ecx, dword [esi + 0x104]
mov edx, dword [esp + 0x560]
push edi
push ecx
push edx
push ebp
mov eax, ebx
call fcn.00401b40
add esp, 0x28
cmp dword [esi + 0x104], 1
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x128]
lea edx, [esp + 0x24]
push ecx
push edx
jne 0x402290
call fcn.00402380
mov edx, dword [esp + 0x54c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x33c]
push ecx
push edx
call fcn.00402380
jmp 0x4022af
call fcn.00402470
mov edx, dword [esp + 0x54c]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x33c]
push ecx
push edx
call fcn.00402470
lea eax, [esp + 0x28]
add esp, 0x18
push eax
call fcn.00402520
or eax, 2
push eax
push 0
lea ecx, [esp + 0x130]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x402314
mov ecx, dword [esp + 0x10]
lea edx, [ebx + ebx]
push edx
push edi
push 7
push eax
lea eax, [esp + 0x33c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x402309
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x524
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 0x40157f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
mov ecx, dword [ebp + 8]
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.length___const
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
shr eax, 1
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._VirtualAlloc_16
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x401672
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x401637
lea eax, [ebp - 0x30]
mov dword [esp + 8], 2
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], edx
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.substr_unsigned_int__unsigned_int__const
sub esp, 0xc
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
lea eax, [ebp - 0x30]
mov dword [esp], eax
call method.std::__cxx11.stoul_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const__unsigned_int__int_
mov byte [ebp - 0x15], al
mov eax, dword [ebp - 0xc]
shr eax, 1
mov edx, eax
mov eax, dword [ebp - 0x14]
add edx, eax
movzx eax, byte [ebp - 0x15]
mov byte [edx], al
lea eax, [ebp - 0x30]
mov ecx, eax
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::basic_string__
add dword [ebp - 0xc], 2
jmp 0x4015cd
mov eax, dword [ebp - 0x14]
call eax
mov dword [esp + 8], 0x8000
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFree_12
sub esp, 0xc
jmp 0x401673
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40c8c0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x595050
call sym._EnterCriticalSection_4
mov ebx, dword [0x595048]
sub esp, 4
test ebx, ebx
je 0x40c90b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x40c904
test esi, esi
je 0x40c904
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40c8e0
mov dword [esp], 0x595050
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x40caf0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40cb40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x40cc14
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40cb7e
cmp eax, 4
jne 0x40cba0
test esi, esi
je 0x40cb92
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x40cb84
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x40cbdf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x40cbd1
cmp ecx, 0x40
je 0x40cb92
cmp ecx, 4
je 0x40cb92
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.0040caf0
lea esi, [esi]
Function at 0x4164a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov dword [esp + 4], 0
mov dword [esp], 2
call sym._setlocale
test eax, eax
je 0x416574
mov dword [esp], eax
mov esi, eax
mov ebx, esp
call sym._strlen
lea edx, [eax + 1]
add eax, 0x10
shr eax, 4
shl eax, 4
call fcn.004183f0
sub esp, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sym._memcpy
mov dword [esp + 4], 0x552024
mov dword [esp], 2
mov esi, eax
call sym._setlocale
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._strcmp
test eax, eax
je 0x416580
mov dword [esp + 4], esi
mov dword [esp], 2
call sym._setlocale
mov eax, esi
mov dword [esp + 4], 0x2e
mov dword [esp], eax
call sym._strchr
test eax, eax
je 0x416570
add eax, 1
mov dword [esp], eax
call sym._atoi
mov edi, eax
lea eax, [ebp - 0x2c]
mov dword [esp + 4], eax
mov dword [esp], edi
call sym._GetCPInfo_8
sub esp, 8
test eax, eax
je 0x416570
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x4165c0
xor edi, edi
mov esp, ebx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.LC_ALL
call sym._getenv
test eax, eax
jne 0x416532
mov dword [esp], str.LC_CTYPE
call sym._getenv
test eax, eax
jne 0x416532
mov dword [esp], str.LANG
call sym._getenv
test eax, eax
jne 0x416532
mov eax, esi
jmp 0x416532
mov esp, ebx
jmp 0x416574

Function at 0x418770
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call sym._GetLastError_0
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call sym._SetLastError_4
mov eax, ebx
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4187a0
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
je 0x4187c8
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp sym._GetLastError_0
Function at 0x41c9b0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
mov dword [0x595a64], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0xffff
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._CreateSemaphoreW_16
sub esp, 0x10
mov dword [0x595a68], eax
call sym._TlsAlloc_0
cmp eax, 0xffffffff
je 0x41ca18
mov dword [esp + 4], dbg.emutls_destroy
mov dword [esp], eax
mov dword [0x595a60], eax
call sym.___mingwthr_key_dtor
test eax, eax
jne sym._emutls_init.cold
add esp, 0x1c
ret
call sym._GetLastError_0
jmp 0x41ca08
Function at 0x41ca20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebp, dword [0x595034]
mov esi, dword [esp + 0x40]
test ebp, ebp
jne 0x41ca48
mov eax, dword [esi + 8]
test eax, eax
je 0x41caa0
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [esi + 8]
test edi, edi
je 0x41cab0
mov ebx, dword [0x595a60]
call sym._GetLastError_0
mov dword [esp], ebx
mov ebp, eax
call sym._TlsGetValue_4
sub esp, 4
mov ebx, eax
mov dword [esp], ebp
call sym._SetLastError_4
sub esp, 4
test ebx, ebx
je 0x41cb40
mov ebp, dword [ebx]
cmp ebp, edi
jb 0x41cb90
lea ebx, [ebx + edi*4]
mov eax, dword [ebx]
test eax, eax
jne 0x41ca3c
mov eax, esi
call sym._emutls_alloc
mov dword [ebx], eax
jmp 0x41ca3c
mov eax, esi
call sym._emutls_alloc
mov dword [esi + 8], eax
jmp 0x41ca3c
mov edi, dword [0x595034]
test edi, edi
je 0x41cc18
mov ebx, dword [0x4b00a8]
test ebx, ebx
je 0x41cbe8
mov dword [esp], 0x595a64
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x41cc5b
mov edi, dword [esi + 8]
test edi, edi
je 0x41cc23
mov eax, dword [0x595034]
test eax, eax
je 0x41ca4f
mov dword [esp], 0x595a64
call sym._InterlockedDecrement_4
sub esp, 4
test eax, eax
js 0x41ca4f
mov eax, dword [0x595a68]
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call sym._ReleaseSemaphore_12
sub esp, 0xc
jmp 0x41ca4f
lea eax, [edi + 0x21]
mov dword [esp + 4], 4
lea ebp, [edi + 0x20]
mov dword [esp], eax
call sym._calloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov dword [eax], ebp
mov eax, dword [0x595a60]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym._TlsSetValue_8
sub esp, 8
test eax, eax
jne 0x41ca86
call sym._GetLastError_0
jmp 0x41ca86
lea edx, [ebp + ebp]
cmp edi, edx
jbe 0x41cb9b
lea edx, [edi + 0x20]
lea eax, [edx*4 + 4]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x1c], edx
call sym.___mingw_realloc
mov ebx, eax
test eax, eax
je sym.___emutls_get_address.cold
mov edx, dword [esp + 0x1c]
mov dword [eax], edx
sub edx, ebp
lea eax, [eax + ebp*4 + 4]
shl edx, 2
mov dword [esp + 4], 0
mov dword [esp + 8], edx
mov dword [esp], eax
call sym._memset
jmp 0x41cb62
mov dword [esp], 0x4b00ac
call sym._InterlockedIncrement_4
sub esp, 4
test eax, eax
jne 0x41cc4f
call sym._emutls_init
mov dword [0x4b00a8], 1
mov edx, dword [0x595034]
test edx, edx
jne 0x41cacc
mov edi, dword [esi + 8]
test edi, edi
jne 0x41ca4f
mov eax, dword [0x595a5c]
lea edi, [eax + 1]
mov dword [0x595a5c], edi
mov dword [esi + 8], edi
jmp 0x41caee
mov dword [esp], 0
call sym._Sleep_4
sub esp, 4
mov ecx, dword [0x4b00a8]
test ecx, ecx
je 0x41cc40
jmp 0x41cc0a
mov eax, dword [0x595a68]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
test eax, eax
je 0x41cae3
mov dword [esp], 0x595a64
call sym._InterlockedDecrement_4
sub esp, 4
jmp 0x41cae3
Function at 0x41fc50
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x4b1b1c], 0
jne method.__gnu_cxx.__verbose_terminate_handler____clone_.cold_
mov byte [0x4b1b1c], 1
call sym.___cxa_current_exception_type
test eax, eax
je 0x4a845a
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx], 0x2a
mov dword [esp + 8], 0
sete al
mov dword [esp + 4], 0
add ebx, eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
mov dword [esp], ebx
call sym.___cxa_demangle
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x30
mov dword [esp + 4], 1
mov esi, eax
lea ebp, [edi + 0x40]
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
mov dword [esp + 0xc], ebp
call sym._fwrite
mov edx, dword [esp + 0x1c]
mov dword [esp + 4], ebp
test edx, edx
jne 0x41fd28
mov dword [esp], esi
call sym._fputs
lea eax, [edi + 0x40]
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x54f865
call sym._fwrite
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x4a8455
mov dword [esp], esi
call sym.___mingw_aligned_free
jmp 0x4a8455
mov dword [esp], ebx
call sym._fputs
jmp 0x41fcec
Function at 0x6b381028
Capabilities:
Encode data using xor

Disassembly:
push ebp
movzx eax, al
shl eax, 4
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 8
mov dword [ebp - 0x10], eax
lea eax, [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov ebx, edx
xor ecx, ecx
lea edi, [esi + eax]
mov al, byte [edi + ecx]
inc ecx
xor byte [ebx], al
inc ebx
cmp ecx, 4
jne 0x6b38104c
add dword [ebp - 0x10], 4
add edx, 4
cmp edx, dword [ebp - 0x14]
jne 0x6b381042
pop eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6b3811a4
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, 0x10
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x2c], esi
je 0x6b381373
cmp eax, 0x10
jne 0x6b381361
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x1c]
mov ecx, 4
lea edx, [ebp - 0x1c]
lea esi, [eax + 0xf0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
call fcn.6b381028
mov dword [ebp - 0x28], 1
lea edx, [ebp - 0x1c]
lea edi, [ebp - 0x18]
mov ecx, edx
mov byte [ebp - 0x21], 0
mov eax, ecx
movzx esi, byte [eax]
inc byte [ebp - 0x21]
add eax, 4
mov bl, byte [esi + str.cw]
mov byte [eax - 4], bl
cmp byte [ebp - 0x21], 4
jne 0x6b381207
inc ecx
cmp edi, ecx
jne 0x6b381201
mov al, byte [ebp - 0x17]
mov cl, byte [ebp - 0x1b]
cmp dword [ebp - 0x28], 0xe
mov byte [ebp - 0x1b], al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0xf]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0x1a]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 0x16]
mov byte [ebp - 0x1a], al
mov al, byte [ebp - 0xe]
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0x11]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x11], al
je 0x6b381321
lea eax, [edx + 0x10]
mov dword [ebp - 0x30], eax
mov al, byte [edx]
mov cl, byte [edx + 1]
mov bl, 0x1b
add edx, 4
xor ecx, eax
mov byte [ebp - 0x21], al
mov al, byte [edx - 2]
xor al, byte [edx - 1]
movzx edi, byte [ebp - 0x21]
mov byte [ebp - 0x22], al
mov esi, eax
mov eax, ecx
shr al, 7
xor esi, ecx
add ecx, ecx
imul eax, ebx
xor edi, esi
xor edi, eax
mov al, byte [edx - 3]
xor al, byte [edx - 2]
xor ecx, edi
mov edi, eax
shr al, 7
imul eax, ebx
mov byte [edx - 4], cl
mov ecx, esi
xor cl, byte [edx - 3]
add edi, edi
xor ecx, eax
mov al, byte [ebp - 0x22]
xor ecx, edi
movzx edi, byte [edx - 1]
shr al, 7
mov byte [edx - 3], cl
mov ecx, esi
xor cl, byte [edx - 2]
imul eax, ebx
xor esi, edi
xor ecx, eax
mov al, byte [ebp - 0x22]
add eax, eax
xor eax, ecx
mov cl, byte [ebp - 0x21]
xor cl, byte [edx - 1]
mov byte [edx - 2], al
mov eax, ecx
add ecx, ecx
shr al, 7
imul eax, ebx
xor esi, eax
xor ecx, esi
mov byte [edx - 1], cl
cmp dword [ebp - 0x30], edx
jne 0x6b38127c
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
call fcn.6b381028
inc dword [ebp - 0x28]
jmp 0x6b3811f9
mov ecx, dword [ebp + 8]
mov eax, 0xe
lea edx, [ebp - 0x1c]
call fcn.6b381028
mov eax, 0xf
mov edi, dword [ebp + 8]
mov dl, byte [edi + eax + 0xf0]
cmp dl, 0xff
jne 0x6b381354
mov byte [edi + eax + 0xf0], 0
sub eax, 1
jae 0x6b381336
jmp 0x6b38135f
mov edi, dword [ebp + 8]
inc edx
mov byte [edi + eax + 0xf0], dl
xor eax, eax
mov ebx, dword [ebp - 0x20]
mov dl, byte [ebp + eax - 0x1c]
inc eax
inc dword [ebp - 0x20]
xor byte [ebx], dl
jmp 0x6b3811be
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6b38b4c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], ebx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
mov dword [esp], eax
call fcn.6b3923c8
mov dword [esp + 4], ebx
lea esi, [ebx + eax]
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.6b3923c8
mov dword [esp + 4], ebx
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call fcn.6b3923c8
add eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [edi + edi]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], edi
je 0x6b38b584
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [eax + edi*4]
mov dword [esp], eax
call fcn.6b3923c8
lea ecx, [ebx + eax]
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
call fcn.6b38bab8
mov ecx, dword [ebp - 0x2c]
cmp eax, 0xa6caa1c5
jne 0x6b38b572
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call fcn.6b3923c8
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], ebx
add eax, ebx
movzx edx, word [edx]
mov eax, dword [eax + edx*4]
mov dword [esp], eax
call fcn.6b3923c8
jmp 0x6b38b586
mov dword [esp], ecx
inc edi
call fcn.6b38bab8
cmp eax, 0xffe885ef
jne 0x6b38b512
jmp 0x6b38b54a
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6b38b5d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov eax, dword [0x6b39733c]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 0x48e]
test eax, eax
je 0x6b38b69b
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x444]
test edx, edx
jne 0x6b38b69b
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], 0
mov esi, dword [eax + ecx + 0x78]
add esi, eax
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
add ecx, eax
add edi, eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x18]
add ebx, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], edi
je 0x6b38b692
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
mov esi, dword [edi + esi*4]
cmp word [eax + esi], 0x775a
jne 0x6b38b68d
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
test ebx, ebx
movzx esi, word [edi + esi*2]
jne 0x6b38b66b
mov edi, dword [ebp - 0x18]
mov ebx, dword [edi + esi*4]
add ebx, eax
jmp 0x6b38b68d
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx + esi*4]
add edi, eax
mov esi, edi
sub edi, ebx
mov ecx, edi
cmp ebx, esi
jbe 0x6b38b683
mov edi, ebx
sub edi, esi
mov ecx, edi
test edx, edx
je 0x6b38b68b
cmp edx, ecx
jbe 0x6b38b68d
mov edx, ecx
inc dword [ebp - 0x10]
jmp 0x6b38b63a
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x444], edx
add esp, 0x18
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6b38ba64
Capabilities:
Hash data using djb2

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x6b38bab0
mov ecx, ebx
mov eax, 0x1505
mov dl, byte [ecx]
test esi, esi
jne 0x6b38ba89
test dl, dl
jne 0x6b38ba97
jmp 0x6b38bab0
mov edi, ecx
sub edi, ebx
cmp esi, edi
jbe 0x6b38bab0
cmp dl, 1
adc ecx, 0
cmp dl, 0x60
jbe 0x6b38baa5
cmp dword [ebp + 0x10], 0
je 0x6b38baa5
sub edx, 0x20
imul eax, eax, 0x21
movzx edx, dl
inc ecx
add eax, edx
jmp 0x6b38ba7d
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6b38bab8
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov eax, 0x1505
mov ebp, esp
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
inc ecx
test dl, dl
je 0x6b38bad2
imul eax, eax, 0x21
add eax, edx
jmp 0x6b38bac3
pop ebp
ret

Function at 0x6b38d43c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
push edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov cl, byte [edx + esi*4]
mov byte [eax + esi*4], cl
mov cl, byte [edx + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov cl, byte [edx + esi*4 + 2]
mov byte [eax + esi*4 + 2], cl
mov cl, byte [edx + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
inc esi
cmp esi, 8
jne 0x6b38d44b
mov dl, byte [eax + 0x1e]
mov edi, esi
movzx ebx, byte [eax + 0x1c]
movzx ecx, byte [eax + 0x1d]
mov byte [ebp - 0xd], dl
mov dl, byte [eax + 0x1f]
mov byte [ebp - 0xe], dl
and edi, 7
jne 0x6b38d4c2
movzx edx, byte [ebp - 0xd]
movzx edi, byte [ecx + str.cw]
mov bl, byte [ebx + str.cw]
mov cl, byte [edx + str.cw]
movzx edx, byte [ebp - 0xe]
mov byte [ebp - 0xe], bl
mov ebx, esi
mov dl, byte [edx + str.cw]
shr ebx, 3
mov byte [ebp - 0xd], dl
mov edx, edi
xor dl, byte [ebx + 0x6b398298]
mov ebx, edx
jmp 0x6b38d4ed
cmp edi, 4
jne 0x6b38d4ed
movzx edx, byte [ebp - 0xd]
movzx edi, byte [ebp - 0xe]
mov bl, byte [ebx + str.cw]
mov cl, byte [ecx + str.cw]
mov dl, byte [edx + str.cw]
mov byte [ebp - 0xd], dl
mov dl, byte [edi + str.cw]
mov byte [ebp - 0xe], dl
mov dl, byte [ebp - 0xd]
xor dl, byte [eax + 2]
inc esi
add eax, 4
xor bl, byte [eax - 4]
xor cl, byte [eax - 3]
mov byte [eax + 0x1e], dl
mov dl, byte [ebp - 0xe]
xor dl, byte [eax - 1]
mov byte [eax + 0x1c], bl
mov byte [eax + 0x1d], cl
mov byte [eax + 0x1f], dl
cmp esi, 0x3c
jne 0x6b38d46f
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret