joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4368e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcd93
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push esi
push edi
mov eax, dword [0x55bc74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x40], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x3c], eax
mov eax, dword [ecx + 0x1c]
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0x20]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x20], eax
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
lea eax, [ebp - 0x54]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 0x10]
lea ecx, [ebp - 0xa4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00437e70
mov esi, eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], 0
call fcn.004f4bc0
push 1
mov dword [ebp - 0x10], eax
mov ecx, esi
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.00439280
mov esi, dword [ebp - 0x58]
or edi, 0xffffffff
test esi, esi
je 0x4369d4
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4369d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4369d4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x4369f9
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4369f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x4369f9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4372d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcf3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x55bc74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ebx, dword [ebp + 8]
lea edi, [ecx + 8]
mov dword [ebp + 8], edi
mov eax, dword [ebx]
lea esi, [ebx + 8]
mov dword [ecx], eax
mov eax, dword [ebx + 4]
mov dword [ecx + 4], eax
mov ecx, edi
push esi
call fcn.00425810
mov al, byte [esi + 0xc]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [edi]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x18]
sub eax, dword [esi]
and eax, 0xfffffff8
add dword [edi + 0x18], eax
mov esi, dword [ebp - 0x10]
mov eax, dword [ebx + 0x28]
mov dword [ebp - 4], 0
mov dword [esi + 0x28], eax
lea ecx, [esi + 0x40]
mov eax, dword [ebx + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [ebx + 0x38]
mov dword [esi + 0x38], eax
lea eax, [ebx + 0x40]
push eax
call fcn.00437f10
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x437390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fcf3b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x55bc74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea edi, [ebx + 8]
mov esi, dword [ebp + 0x10]
mov ecx, edi
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebx + 4], eax
mov dword [ebp + 8], edi
call fcn.00425810
mov al, byte [esi + 0xc]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x10]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
mov eax, dword [edi]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x18]
sub eax, dword [esi]
and eax, 0xfffffff8
add dword [edi + 0x18], eax
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov dword [ebp - 4], 0
mov dword [ebx + 0x30], 0
call fcn.004f4bc0
push dword [ebp + 0x14]
mov dword [ebx + 0x34], eax
lea ecx, [ebx + 0x40]
mov dword [ebx + 0x38], 0
call fcn.00437f10
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x43a580
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x54d9d0
push 0x4f6c98
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x55bc74]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
push 0x80
lea eax, [ebp - 0x11c]
push eax
call fcn.0043bce0
add esp, 0x14
lea eax, [ebp - 0x11c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x120], edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test edi, edi
jne 0x43a608
call ebx
jmp 0x43a6a6
cmp eax, 0xb7
jne 0x43a618
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi], 0
jne 0x43a65e
mov dword [ebp - 4], 0
push bind
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x43a654
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x43a6a6
mov dword [ebp - 4], 0xfffffffe
mov byte [esi], 1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x43a6a6
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004f6b29
mov esp, ebp
pop ebp
ret
Function at 0x4732d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
test edx, edx
je 0x473397
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
cmp edx, 0x20
jb 0x473374
push edi
mov eax, edx
mov edi, edx
and eax, 0x1f
xorps xmm3, xmm3
sub edi, eax
mov ebx, esi
movaps xmm2, xmm3
mov eax, ebp
sub ebx, ebp
nop word [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [esi + ecx + 0x10]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, edi
jb 0x473310
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x473390
sub esi, ebp
lea eax, [ecx + ebp]
sub edx, ecx
nop
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x473380
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
movzx eax, bl
pop ebx
ret

Function at 0x473510
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004f75e0
mov eax, dword [0x55bc74]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x4735af
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4735af
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.0043bcd0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f6b29
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.0043bcd0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call sub.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.004733d0
test eax, eax
jle 0x47363f
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004f6b29
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.004f6b29
add esp, 0x108
ret
Function at 0x4754e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.004f75e0
mov eax, dword [0x55bc74]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x475505
push 0
sub ecx, edx
mov dword [ebp - 0x1c], 8
push 0
lea eax, [ecx + 1]
push eax
push edi
push 8
push 0xfde9
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x475570
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x475563
push 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
test esi, esi
jg 0x475570
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jmp 0x4755ec
lea eax, [esi + esi]
call fcn.004f77b0
mov eax, esp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
push edi
push dword [ebp - 0x1c]
push 0xfde9
call esi
test eax, eax
je 0x47564b
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4755a0
push 8
sub ecx, edx
lea eax, [ebp - 0x14]
push eax
lea eax, [ecx + 1]
push eax
push ebx
push 0
push 0xfde9
call esi
test eax, eax
je 0x47564b
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__wfopen
mov esi, eax
add esp, 8
test esi, esi
jne 0x4755fe
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
je 0x4755ee
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 9
jne 0x47564b
push ebx
push edi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x47564b
push 0x556320
call fcn.00475b60
mov edi, eax
add esp, 4
test edi, edi
jne 0x47561f
push esi
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fclose
add esp, 4
jmp 0x4756b3
push 0
push edi
call fcn.00475770
push esi
push 1
push 0x6a
push edi
call fcn.004757a0
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6b29
mov esp, ebp
pop ebp
ret
push 0xa8
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00474ac0
push 0x50be28
push ebx
push 0x50e0c8
push edi
push str.fopen_
push 5
call fcn.004740d0
add esp, 0x2c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__errno
cmp dword [eax], 2
jne 0x47569b
push 0xab
push str..crypto_bio_bss_file.c
push 0x80
jmp 0x4756a7
push 0xad
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.00474ac0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f6b29
mov esp, ebp
pop ebp
ret
Function at 0x484230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004f75e0
mov eax, dword [0x55bc74]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.0047daa0
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0047d900
add esp, 0xc
test eax, eax
je 0x484332
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0047d5e0
add esp, 0xc
test eax, eax
je 0x484332
lea eax, [esp + 0x20]
push eax
call fcn.0047d840
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x484350
push edi
call fcn.0047ea90
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.00488020
mov esi, eax
add esp, 0xc
test esi, esi
je 0x484332
push esi
call fcn.00488840
add esp, 4
test eax, eax
jle 0x484332
push dword [ebp]
push ebx
push 1
push pe_nt_image_headers32
push 0xffffffffffffffff
push esi
call fcn.00487dc0
add esp, 0x18
test eax, eax
jle 0x484332
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.00488760
add esp, 0x14
test eax, eax
jle 0x484332
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.00487fb0
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004f6b29
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x484368
cmp dword [edi], edx
je 0x484392
inc eax
add ecx, 4
cmp eax, 4
jl 0x484355
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.00474ac0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004f6b29
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x4843c6
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.00474ac0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004f6b29
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f6b29
add esp, 0x6c
ret
Function at 0x48aa60
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004f75e0
mov eax, dword [0x55bc74]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x48aac6
cmp edi, dword [esi]
je 0x48aabd
test ebp, ebp
je 0x48ab40
test ebx, ebx
js 0x48ab40
mov eax, 1
mov dword [esi], edi
jmp 0x48aacc
mov edi, dword [esi]
test edi, edi
je 0x48ab40
test ebp, ebp
je 0x48ac5b
push edi
call fcn.00484040
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x48ab00
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00473670
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x48ab5b
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.0047d680
add esp, 0xc
test eax, eax
je 0x48ab40
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.0047d830
add esp, 0xc
test eax, eax
je 0x48ab40
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0047d5e0
add esp, 0xc
test eax, eax
jne 0x48ab77
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f6b29
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x48ab40
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call sub.VCRUNTIME140.dll_memcpy
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x48ab9a
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x48aba0
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.0047d680
add esp, 0xc
test eax, eax
je 0x48ab40
push edi
call fcn.00484040
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0047d830
add esp, 0x10
test eax, eax
je 0x48ab40
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x48abf0
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.0047d680
add esp, 0xc
test eax, eax
je 0x48ab40
push edi
call fcn.00484040
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0047d830
add esp, 0x10
test eax, eax
je 0x48ab40
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.0047d900
add esp, 8
test eax, eax
je 0x48ab40
mov eax, 1
jmp 0x48ab42
test eax, eax
je 0x48ac39
jmp 0x48ab9e
Function at 0x4d7fe0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov eax, dword [ebp + 4]
cmp eax, dword [ecx + 4]
jge 0x4d7ff7
mov edi, ecx
jmp 0x4d7ffb
mov edi, ebp
mov ebp, ecx
mov ebx, dword [esp + 0x10]
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x4d800b
mov eax, ebx
jmp 0x4d8015
push eax
push ebx
call fcn.004851f0
add esp, 8
test eax, eax
jne 0x4d801d
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x4d803b
mov eax, dword [edi]
mov ecx, dword [ebp]
mov edx, dword [eax + esi*4]
mov eax, dword [ebx]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x4d8025
cmp esi, dword [edi + 4]
jge 0x4d8050
mov eax, dword [edi]
mov ecx, dword [ebx]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
cmp esi, dword [edi + 4]
jl 0x4d8040
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
pop esi
test ecx, ecx
jle 0x4d8074
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x4d8071
dec ecx
test ecx, ecx
jg 0x4d8063
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4f3a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fedc2
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x55bc74]
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
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], esi
cmp dword [edi + 0x14], 8
jb 0x4f3ab1
mov eax, dword [edi]
jmp 0x4f3ab3
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
jne 0x4f3ad2
push esi
push edi
push ebx
call fcn.004f38e0
add esp, 0xc
jmp 0x4f3bce
test eax, 0x400
je 0x4f3b8d
cmp dword [edi + 0x14], 8
jb 0x4f3ae7
mov eax, dword [edi]
jmp 0x4f3ae9
mov eax, edi
push eax
lea ecx, [ebp - 0x28]
call fcn.004f1910
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2000000
push 3
push 0
push 7
push 0
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x2c], esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00416b40
cmp esi, 0xffffffff
jne 0x4f3b42
push dword [ebp - 0x34]
push edi
push ebx
call fcn.004f38e0
add esp, 0xc
jmp 0x4f3bce
push edi
call fcn.004f3440
add esp, 4
test al, al
jne 0x4f3b75
mov eax, dword [ebp - 0x38]
push eax
push edi
call fcn.004f3520
add esp, 8
mov dword [ebx], 9
mov dword [ebx + 4], eax
push esi
mov dword [ebp - 4], 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4f3bce
push esi
mov dword [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4f3b9f
mov dword [esi], 0
call fcn.004f4bc0
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x30], 3
push eax
push edi
test al, 0x10
jne 0x4f3bb6
mov dword [ebp - 0x30], 2
call fcn.004f3520
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx]
add esp, 8
mov dword [ebx], eax
mov eax, dword [ecx + 4]
mov dword [ebx + 4], eax
mov eax, ebx
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.004f6b29
mov esp, ebp
pop ebp
ret
Function at 0x4f6100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ff1de
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x55bc74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x55bc5c]
cmp eax, 0xffffffff
jne 0x4f6136
xor ebx, ebx
jmp 0x4f613f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
mov dword [ebp - 4], 0
setne cl
test cl, cl
je 0x4f618b
lea edi, [ebx + 0x14]
cmp dword [edi + 4], 0
mov esi, dword [ebx + 0xc]
sete al
test al, al
je 0x4f61ca
test esi, esi
jne 0x4f61d0
push 0x4f5410
push 0x561248
call fcn.004f5100
mov eax, dword [0x55bc5c]
add esp, 8
cmp eax, 0xffffffff
je 0x4f618b
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4f61b8
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x4f61b8
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4f6215
nop
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4f61fb
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x4f61d0
lea edi, [ebx + 0x14]
cmp dword [ebx + 0x18], 0
je 0x4f6155
nop
mov esi, dword [edi]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x4f6238
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x4f6238
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
mov ecx, edi
push eax
call fcn.0040a720
cmp dword [ebx + 0x18], 0
jne 0x4f6220
jmp 0x4f6155

Function at 0x4f62b0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, ecx
mov edx, dword [edi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x4f6310
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4f62da
pop edi
xor al, al
pop ebx
ret
mov eax, dword [edi]
push esi
add eax, 4
lock inc dword [eax]
mov esi, dword [edi]
mov eax, dword [esi + 8]
test eax, eax
je 0x4f62f8
cmp eax, 0xffffffff
je 0x4f62f8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop edi
mov al, 1
pop ebx
ret