joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46dbb0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46dbec
mov eax, dword [0x6d4050]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x46dbd6
dec dword [eax + 0x374]
push dword [0x6d4048]
push ecx
call fcn.004490f0
add esp, 8
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x46dc26
mov eax, dword [0x6d4050]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x46dc10
dec dword [eax + 0x374]
push dword [0x6d4048]
push ecx
call fcn.004490f0
add esp, 8
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x46dc60
mov eax, dword [0x6d4050]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x46dc4a
dec dword [eax + 0x374]
push dword [0x6d4048]
push ecx
call fcn.004490f0
add esp, 8
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x46dcb6
mov eax, dword [0x6d4050]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x46dca0
dec dword [eax + 0x374]
push dword [0x6d4048]
push ecx
call fcn.004490f0
add esp, 8
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x46dcf0
mov eax, dword [0x6d4050]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x46dcda
dec dword [eax + 0x374]
push dword [0x6d4048]
push ecx
call fcn.004490f0
add esp, 8
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x46dd2a
mov eax, dword [0x6d4050]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x46dd14
dec dword [eax + 0x374]
push dword [0x6d4048]
push ecx
call fcn.004490f0
add esp, 8
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.0046fe20
Function at 0x47ac40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x686bb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, edx
xor edx, edx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov dword [ebp - 0x18], eax
mov esi, ecx
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], edx
push edi
test eax, eax
js 0x47ac83
cmp eax, ebx
jge 0x47ac83
lea edx, [ebp - 0xc]
push edx
push eax
push ecx
call fcn.0047ac20
mov edx, dword [ebp - 0xc]
add esp, 0xc
push 0
mov ecx, esi
call fcn.0047a300
add esp, 4
test al, al
jne 0x47aca4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret
mov edi, dword [0x6d4050]
xor esi, esi
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x1c], esi
test ebx, ebx
jle 0x47ad82
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov ebx, dword [edi + 0x1ac4]
mov edi, 4
mov dword [ebp - 8], esi
lea esi, [ebp - 8]
mov ecx, dword [ebx + 0xfc]
mov eax, dword [ebx + 0x104]
mov edx, dword [eax + ecx*4 - 4]
not edx
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x670dc8]
sub edi, 1
jne 0x47ace4
lea eax, [ebp - 8]
not edx
push eax
lea ecx, [ebx + 0xfc]
mov dword [ebp - 8], edx
call fcn.00464ff0
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
mov edi, dword [eax]
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x20]
cmp esi, edi
sete bl
call fcn.0047ac20
add esp, 0xc
mov ecx, str.Unknown_item
test al, al
mov dl, bl
lea eax, [ebp - 0x28]
cmovne ecx, dword [ebp - 0x10]
push eax
push 0
mov dword [ebp - 0x10], ecx
call fcn.0047e560
add esp, 8
test al, al
je 0x47ad5a
mov eax, dword [ebp - 0x18]
mov byte [ebp - 0x11], 1
mov dword [eax], esi
cmp esi, edi
jne 0x47ad63
call fcn.004565d0
mov edi, dword [0x6d4050]
inc esi
mov dword [ebp - 0x1c], esi
mov eax, dword [edi + 0x1ac4]
dec dword [eax + 0xfc]
cmp esi, dword [ebp + 0x10]
jl 0x47acc1
mov ecx, dword [edi + 0x1ac4]
cmp dword [edi + 0x1c48], ecx
jne 0x47ada0
mov dword [edi + 0x1d48], ecx
mov dword [edi + 0x1d4c], 2
test dword [ecx + 8], 0x1000000
je 0x47adb0
mov byte [edi + 0x1a7a], 1
call fcn.004560a0
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x11]
xor ecx, ebp
mov byte [edi + 0x1a7a], 0
pop edi
pop esi
pop ebx
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret
Function at 0x480060
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
mov edi, edx
je 0x4800d1
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x4800a8
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x48008f
cmp byte [esi], cl
jne 0x48008f
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x670dc8]
test cl, cl
jne 0x480080
mov ecx, dword [0x6d4050]
not eax
cmp dword [ecx + 0x1b00], eax
jne 0x4800be
mov dword [ecx + 0x1b04], eax
cmp dword [ecx + 0x1b3c], eax
jne 0x480116
pop edi
mov byte [ecx + 0x1b40], 1
pop esi
pop ebp
ret
mov esi, dword [0x6d4050]
xor edx, edx
mov eax, dword [esi + 0x1ac4]
mov ecx, dword [eax + 0xfc]
mov eax, dword [eax + 0x104]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.00449790
add esp, 4
cmp dword [esi + 0x1b00], eax
jne 0x480107
mov dword [esi + 0x1b04], eax
cmp dword [esi + 0x1b3c], eax
jne 0x480116
mov byte [esi + 0x1b40], 1
pop edi
pop esi
pop ebp
ret
Function at 0x483cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fbe30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x686bb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x483d54
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x483d65
push 0x48
push esi
call fcn.005f7cf7
add esp, 8
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
Function at 0x484300
Capabilities:
Access peb ldr_data

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fbf31
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x30
mov eax, dword [0x686bb0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
mov esi, dword [ebx + 0x10]
mov dword [ebp - 0x28], edi
push 0
mov dword [ebp - 0x20], 0
call fcn.004ad790
mov dword [ebp - 4], 0
mov dword [edi], vtable.CryptoPP::BaseN_Decoder.0
mov dword [edi + 4], vtable.CryptoPP::BaseN_Decoder.1.0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x30], 0xffffffff
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004ae2e0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004afe40
mov esi, eax
push 0x14
mov byte [ebp - 4], 3
call fcn.005f83f1
mov ecx, eax
xorps xmm0, xmm0
mov eax, dword [ebx + 8]
add esp, 4
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], str.DecodingLookupArray
mov word [ecx + 8], 1
mov dword [ecx + 0xc], 0
mov dword [ecx], vtable.CryptoPP::AlgorithmParametersTemplate_int_const__.0
mov dword [ecx + 0x10], eax
mov byte [ebp - 4], 4
mov eax, dword [esi + 4]
mov dword [esi + 4], 0
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x24], eax
test edx, edx
je 0x484426
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 4]
mov dword [ebp - 0x18], 0
test edx, edx
je 0x484442
mov eax, dword [edx]
mov ecx, edx
push 1
call dword [eax]
mov ecx, dword [ebp - 0x1c]
mov dword [esi + 4], ecx
mov byte [esi + 8], 1
push esi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.004afdc0
mov dword [ebp - 0x20], 1
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x48446e
mov eax, dword [ecx]
push 1
call dword [eax]
lea eax, [ebx + 0xc]
mov byte [ebp - 4], 2
push eax
push str.Log2Base
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x34], vtable.CryptoPP::NameValuePairs.0
call fcn.0049ba80
push eax
mov ecx, edi
call fcn.004b3ca0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4844a3
mov edx, dword [ecx]
push 1
call dword [edx]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x4844d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fbe30
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x686bb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
cmp eax, ecx
mov edx, dword [esi + 0x38]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x484527
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x484538
push 0x3c
push esi
call fcn.005f7cf7
add esp, 8
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

Function at 0x484560
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fbf60
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x686bb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
cmp eax, ecx
mov edx, dword [esi + 0x24]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x4845dc
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x4845ed
push 0x40
push esi
call fcn.005f7cf7
add esp, 8
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
Function at 0x484d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x484de9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x484de9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x484dd8
cmp esi, edx
jae 0x484de9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x484dc6
cmp esi, edx
jae 0x484de9
cmp word [esi], 0
je 0x484de9
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x494f70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5fd4bd
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x686bb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 3
push 0x6755f4
push 0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.0049ab20
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x50], 0x3c
cmovae eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x50]
push eax
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x4c], 0x40
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.cmd.exe
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x49501c
or esi, 0xffffffff
jmp 0x495040
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x495076
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49506c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49506c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.005f7cf7
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret
Function at 0x4974b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x4974dc
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 edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x4974fe
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x497500
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x497585
jg 0x497515
test esi, esi
je 0x497585
test ecx, ecx
jl 0x497568
jg 0x49751f
test eax, eax
je 0x497568
cmp edi, ecx
jg 0x497533
jl 0x497529
cmp esi, eax
jae 0x497533
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ebx + 0x30]
sub esi, ecx
mov edx, dword [ebp + 8]
sbb edi, dword [esp + 0x10]
add edx, ecx
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
test edi, edi
jl 0x497585
jg 0x49756b
test esi, esi
je 0x497585
jmp 0x49756b
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x497585
push eax
push esi
push 1
push edx
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 [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4975a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x4975cc
jl 0x4975c0
test esi, esi
jne 0x4975cc
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x4975e5
push eax
push esi
push ecx
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
mov eax, dword [ebx + 0x1c]
push edi
mov edi, esi
mov edx, dword [eax]
test edx, edx
je 0x49761f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x49761f
mov edi, dword [ebp + 0xc]
cmp eax, edi
cmovb esi, eax
push esi
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [ebp - 4], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp + 0xc]
cmp dword [ebx + 0x4c], 0
mov edx, edi
je 0x4976a0
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x497648
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov edx, edi
mov ecx, dword [ebp - 4]
cmp edi, 0xfff
jbe 0x49768c
nop word [eax + eax]
push dword [ebx + 0x4c]
push 0xfff
push 1
push ecx
call eax
mov ecx, dword [ebp - 4]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x4976b3
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x497660
test edx, edx
je 0x4976a0
push dword [ebx + 0x4c]
push edi
push 1
push ecx
call eax
mov edx, edi
add esp, 0x10
sub edx, eax
sub esi, edx
mov edx, dword [ebp + 0x10]
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebp + 0x10]
sub esi, edi
pop edi
mov eax, esi
sbb edx, 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x497a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x686bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x497a60
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x497a90
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x497a90
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x497b66
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x497ab9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x497ac5
movsx eax, bl
jmp 0x497afd
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x497b27
sub eax, 1
je 0x497b27
sub eax, 2
jne 0x497b66
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x497b45
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 0x497b66
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x497b66
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret 4
Function at 0x499f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x686bb0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x499fbc
cmp byte [esi + 0x3d], 0
je 0x499fbc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x499faa
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 0x499f71
sub eax, 1
je 0x499f75
sub eax, 2
jne 0x499faa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x499f93
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 0x499faa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.005f7bd4
mov esp, ebp
pop ebp
ret

Function at 0x4ad1c0
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x6d0bc4], 0
jne 0x4ad1ce
call fcn.004c1820
cmp byte [0x6d0bcd], 0
je 0x4ad1ec
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004c1bb0
add esp, 0x10
ret
jmp fcn.004ab570
Function at 0x4cc610
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x18
mov eax, dword [0x686bb0]
xor eax, esp
mov dword [esp + 0x14], eax
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4cc6db
lea eax, [esp + 4]
push eax
push esi
push 2
call fcn.004e5f80
add esp, 0xc
test eax, eax
jne 0x4cc6db
lea eax, [esp + 8]
push eax
push esi
push 0x17
call fcn.004e5f80
add esp, 0xc
test eax, eax
jne 0x4cc6db
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4cc664
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.004e5f50
add esp, 0xc
test eax, eax
je 0x4cc698
sub eax, esi
push eax
push 0x2e
push esi
call fcn.004e5f50
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4cc69a
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
mov ebx, 0x1505
add edi, esi
cmp esi, edi
jae 0x4cc6c6
mov al, byte [esi]
push eax
call fcn.004da7d0
movsx ecx, al
inc esi
mov eax, ebx
add esp, 4
shl eax, 5
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp esi, edi
jb 0x4cc6a8
pop edi
movzx eax, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.005f7bd4
add esp, 0x18
ret
mov ecx, dword [esp + 0x18]
xor eax, eax
pop esi
xor ecx, esp
call fcn.005f7bd4
add esp, 0x18
ret

Function at 0x4cd330
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [0x6830ec]
cmp eax, 0xffffffff
jne 0x4cd372
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4cd358
xor eax, eax
test eax, eax
mov dword [0x6830ec], eax
setg al
ret
push eax
push 0
mov dword [0x6830ec], 1
call fcn.004d6a10
mov eax, dword [0x6830ec]
add esp, 8
test eax, eax
setg al
ret

Function at 0x4cd380
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x2f0], 2
jne 0x4cd3d5
mov eax, dword [0x6830ec]
cmp eax, 0xffffffff
jne 0x4cd3cf
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x4cd3b5
xor eax, eax
test eax, eax
mov dword [0x6830ec], eax
setg al
ret
push eax
push 0
mov dword [0x6830ec], 1
call fcn.004d6a10
mov eax, dword [0x6830ec]
add esp, 8
test eax, eax
setg al
ret
mov al, 1
ret