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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1084
call fcn.0052ce20
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x38]
push 0x40
xor ebx, ebx
push ebx
push eax
mov dword [esi], vtable.bnl::HTTPFetcherHost.0
call fcn.00544d60
add esp, 0xc
lea eax, [esp + 0x38]
lea ecx, [esi + 8]
push 0x40
push eax
call fcn.004b7ac1
mov ecx, dword [esi + 0xf0]
mov edx, eax
mov eax, dword [esi + 0xe4]
mov dword [esp + 0x34], ecx
mov ecx, dword [esi + 0xec]
push 0x36
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0xe8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x94]
push 0x6a0814
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0x80]
push str.bnl_downloader
mov dword [esp + 0x3c], str.num5xx
mov dword [esp + 0x34], str.num404
mov dword [esp + 0x2c], str.num4xx
mov dword [esp + 0x24], str.num3xx
mov dword [esp + 0x1c], 0x6a0804
mov dword [esp + 0x20], edx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x88], str.summaryperformance_s_s_s_s_s
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0x1000
mov dword [esp + 0x94], ebx
mov dword [esp + 0x98], 2
call fcn.00496ede
lea edx, [esp + 0x10]
lea ecx, [esp + 0x78]
call fcn.004b1465
lea edx, [esp + 0x18]
mov ecx, eax
call fcn.004b14a7
lea edx, [esp + 0x20]
mov ecx, eax
call fcn.004b14a7
lea edx, [esp + 0x28]
mov ecx, eax
call fcn.004b14a7
lea edx, [esp + 0x30]
mov ecx, eax
call fcn.004b14a7
lea ecx, [esp + 0x78]
call fcn.0049b68e
lea edi, [esi + 0xd0]
mov ecx, dword [edi]
mov eax, dword [ecx]
jmp 0x4aacc3
mov edx, dword [eax + 8]
mov dword [edx + 8], ebx
mov eax, dword [eax]
cmp eax, ecx
jne 0x4aacbb
lea ecx, [esi + 0xd8]
call fcn.0049aa6a
mov ecx, edi
call fcn.0049aace
push 0xc
push 1
push dword [edi]
call fcn.0040631c
mov eax, dword [esi + 0xa8]
add esp, 0xc
test eax, eax
je 0x4aacf8
push eax
call fcn.0052c08b
pop ecx
pop edi
mov dword [esi], vtable.blz::atomic_ref_count_base_struct_bnl::HTTPFetcherHost_.0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b5b1b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x4b5b32
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x4b68cf
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x4b6917
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4b68df
jmp 0x4b6924
cmp dword [esi], 0x4e0
jb 0x4b6924
call fcn.004b695e
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret

Function at 0x4b695e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4b696e
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov ecx, dword [edi + 4]
xor ecx, dword [edi]
and ecx, 0x7fffffff
xor ecx, dword [edi]
lea edi, [edi + 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd50]
xor eax, ecx
mov dword [edi - 0x9c4], eax
sub ebx, 1
jne 0x4b69ae
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], ebx
pop esi
pop ebx
ret
Function at 0x4b84ad
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [ebp + 0xc]
sub esp, 0x2a0
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x4b85e0
dec eax
cmp eax, 1
ja 0x4b85e0
lea edx, [esp + 0x228]
call fcn.004bb89b
push 0x80
lea eax, [esp + 0x22c]
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4b85dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov edi, 0x2733
cmp esi, edi
je 0x4b8577
and dword [esp + 0xc], 0
lea eax, [esp + 0x28]
and dword [esp + 0x1c], 0
lea ecx, [esp + 0xc]
push 0xf9
push 0x6a2490
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], str.error_connecting_socket_descriptor__d:__s
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0x200
mov dword [esp + 0x28], 4
mov dword [esp + 0x2c], str.Downloader
call fcn.00496d52
push dword [ebp + 8]
lea ecx, [esp + 0x10]
call fcn.00497435
lea edx, [esp + 8]
mov ecx, eax
call fcn.004b80fd
lea ecx, [esp + 0xc]
call fcn.0042bc04
cmp esi, 0x2719
je 0x4b85e0
cmp esi, 0x2740
je 0x4b85d8
cmp esi, 0x2741
je 0x4b85d8
cmp esi, 0x274d
jne 0x4b859b
push 9
jmp 0x4b85e2
cmp esi, 0x2743
jne 0x4b85a7
push 0xd
jmp 0x4b85e2
cmp esi, 0x271d
jne 0x4b85b3
push 8
jmp 0x4b85e2
cmp esi, 0x2748
jne 0x4b85bf
push 4
jmp 0x4b85e2
cmp esi, 0x274c
jne 0x4b85cb
push 0xc
jmp 0x4b85e2
push 2
pop eax
push 0xe
cmp esi, edi
pop ecx
cmove eax, ecx
jmp 0x4b85e3
push 7
jmp 0x4b85e2
xor eax, eax
jmp 0x4b85e3
push 6
pop eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b892c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push dword [edi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b8a53
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov edi, 0x2733
cmp esi, edi
je 0x4b89e3
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x200]
and dword [ebp - 0x20c], 0
lea ecx, [ebp - 0x21c]
push 0x250
push 0x6a2490
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x218], str.error_receiving_data_from_socket_descriptor__d:__s
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0x200
mov dword [ebp - 0x208], 4
mov dword [ebp - 0x204], str.Downloader
call fcn.00496d52
push dword [ebp + 8]
lea ecx, [ebp - 0x21c]
call fcn.00497435
lea edx, [ebp + 0x10]
mov ecx, eax
call fcn.004b80fd
lea ecx, [ebp - 0x21c]
call fcn.0042bc04
cmp esi, 0x271e
jne 0x4b8a02
push 0x252
push str..._bnl_dl2_net_source_netStandardSocketNetwork.cpp
push str.err___10014L
call fcn.0054db53
add esp, 0xc
cmp esi, 0x2719
je 0x4b8a4e
cmp esi, 0x2726
je 0x4b8a4e
cmp esi, edi
jne 0x4b8a1a
push 0xf
jmp 0x4b8a50
cmp esi, 0x274d
jne 0x4b8a26
push 9
jmp 0x4b8a50
cmp esi, 0x2746
jne 0x4b8a32
push 0xa
jmp 0x4b8a50
cmp esi, 0x2745
jne 0x4b8a3e
push 0xb
jmp 0x4b8a50
xor eax, eax
cmp esi, 0x2749
sete al
add eax, 2
jmp 0x4b8a72
push 6
pop eax
jmp 0x4b8a72
test esi, esi
jns 0x4b8a6e
push 0x2a0
push str..._bnl_dl2_net_source_netStandardSocketNetwork.cpp
push str.r___0
call fcn.0054db53
add esp, 0xc
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b8a7a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push dword [edi]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b8b96
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
mov edi, 0x2733
cmp esi, edi
je 0x4b8b31
and dword [ebp - 0x21c], 0
lea eax, [ebp - 0x200]
and dword [ebp - 0x20c], 0
lea ecx, [ebp - 0x21c]
push 0x2b2
push 0x6a2490
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x218], str.error_sending_data_to_socket_descriptor__d:__s
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0x200
mov dword [ebp - 0x208], 4
mov dword [ebp - 0x204], str.Downloader
call fcn.00496d52
push dword [ebp + 8]
lea ecx, [ebp - 0x21c]
call fcn.00497435
lea edx, [ebp + 0x10]
mov ecx, eax
call fcn.004b80fd
lea ecx, [ebp - 0x21c]
call fcn.0042bc04
cmp esi, 0x271e
jne 0x4b8b50
push 0x2b4
push str..._bnl_dl2_net_source_netStandardSocketNetwork.cpp
push str.err___10014L
call fcn.0054db53
add esp, 0xc
cmp esi, 0x2719
je 0x4b8b91
cmp esi, 0x2726
je 0x4b8b91
cmp esi, edi
jne 0x4b8b68
push 0xf
jmp 0x4b8b93
cmp esi, 0x2746
jne 0x4b8b74
push 0xa
jmp 0x4b8b93
cmp esi, 0x2749
jne 0x4b8b80
push 3
jmp 0x4b8b93
push 2
pop eax
push 7
cmp esi, 0x2747
pop ecx
cmove eax, ecx
jmp 0x4b8bb5
push 6
pop eax
jmp 0x4b8bb5
test esi, esi
jns 0x4b8bb1
push 0x2fa
push str..._bnl_dl2_net_source_netStandardSocketNetwork.cpp
push str.w___0
call fcn.0054db53
add esp, 0xc
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4b8bbd
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
xor eax, eax
cmp byte [ebp + 0xc], al
push esi
sete al
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push 0x8004667e
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x4b8c81
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
and dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x21c]
and dword [ebp - 0x20c], 0
mov esi, eax
push 0x30a
lea eax, [ebp - 0x200]
mov dword [ebp + 8], esi
push 0x6a2490
mov dword [ebp - 0x218], str.error_setting_socket_blocking_flag:__s
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x210], 0x200
mov dword [ebp - 0x208], 4
mov dword [ebp - 0x204], str.Network
call fcn.00496d52
lea edx, [ebp + 8]
lea ecx, [ebp - 0x21c]
call fcn.004b80fd
lea ecx, [ebp - 0x21c]
call fcn.0042bc04
cmp esi, 0x2719
je 0x4b8c7c
cmp esi, 0x2726
je 0x4b8c7c
push 2
jmp 0x4b8c7e
push 6
pop eax
jmp 0x4b8c83
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4b9efc
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x612800
call fcn.00609528
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
mov dword [ebx], eax
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebx + 0xc], eax
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
xor eax, eax
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], eax
mov dword [ebp - 4], eax
lea esi, [ebx + 0x14]
mov dword [ebp + 8], esi
lea ecx, [esi + 4]
mov eax, dword [edi + 0x14]
mov dword [esi], eax
lea eax, [edi + 0x18]
push eax
call fcn.004058cd
lea eax, [edi + 0x30]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x1c]
call fcn.004058cd
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4bc218
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, 0x610dc1
call fcn.00609528
sub esp, 0x224
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x10]
push esi
call fcn.004227ca
xor ebx, ebx
pop ecx
mov byte [ebp - 0xd], bl
cmp byte [edi + 0x59], bl
jne 0x4bc24a
mov byte [edi + 0x58], 1
jmp 0x4bc2d7
push ebx
push 1
lea eax, [ebp - 0xd]
push eax
push dword [edi + 0xc]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4bc2d7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
mov dword [ebp - 0x230], ebx
push 0x126
lea eax, [ebp - 0x214]
mov dword [ebp - 0x22c], str.error_sending_poll_notification:__s
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 0x200
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 4
mov dword [ebp - 0x218], str.Network
call fcn.00496d52
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x230]
call fcn.004b80fd
lea ecx, [ebp - 0x230]
call fcn.0042bc04
push esi
mov dword [ebp - 4], 1
call fcn.004227e9
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4bc67b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
mov esi, ecx
push 0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4bc687
pop esi
jns 0x4bc728
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4bc728
and dword [ebp - 0x230], 0
lea ecx, [ebp - 0x230]
and dword [ebp - 0x220], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push 0x1f1
push str..._bnl_dl2_net_source_netSelectSocketPollSet.cpp
mov dword [ebp - 0x22c], str.error_reading_from_notification_pipe:__s
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], 0x200
mov dword [ebp - 0x21c], 4
mov dword [ebp - 0x218], str.Network
call fcn.00496d52
lea edx, [ebp - 4]
lea ecx, [ebp - 0x230]
call fcn.004b80fd
lea ecx, [ebp - 0x230]
call fcn.0042bc04
push 2
pop eax
jmp 0x4bc72a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4cdacc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov esi, edx
mov byte [ebp - 1], 1
mov ebx, 0x1b6
mov edx, 0x8000
push ebx
call fcn.005136f2
mov edi, eax
pop ecx
cmp edi, 0xffffffff
jne 0x4cdaf9
xor al, al
jmp 0x4cdb92
push ebx
mov edx, 0x8301
mov ecx, esi
call fcn.005136f2
mov dword [ebp - 8], eax
pop ecx
cmp eax, 0xffffffff
jne 0x4cdb18
push edi
call fcn.005639b5
pop ecx
jmp 0x4cdaf2
mov ebx, 0x10000
push ebx
call fcn.0052c2c8
mov esi, eax
push ebx
push esi
push edi
call fcn.0056d67a
movzx ebx, byte [ebp - 1]
mov ecx, eax
xor eax, eax
add esp, 0x10
cmp ecx, 0xffffffff
cmove ebx, eax
jmp 0x4cdb71
push ecx
push esi
push dword [ebp - 8]
call fcn.00563614
xor ecx, ecx
movzx ebx, bl
push 0x10000
cmp eax, 0xffffffff
push esi
push edi
cmove ebx, ecx
call fcn.0056d67a
mov ecx, eax
movzx ebx, bl
xor edx, edx
add esp, 0x18
cmp ecx, 0xffffffff
cmove ebx, edx
test ecx, ecx
jg 0x4cdb40
push dword [ebp - 8]
call fcn.005639b5
push edi
call fcn.005639b5
pop ecx
pop ecx
test esi, esi
je 0x4cdb90
push esi
call fcn.0052c08b
pop ecx
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ce725
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push edi
mov edi, ecx
cmp dword [edi + 0x34], 0xffffffff
jne 0x4ce7bc
call fcn.004ce27f
test al, al
jne 0x4ce7bc
push 0xdb
xor ebx, ebx
mov dword [ebp - 0x21c], str.FileBufferHandler___WriteToFile_error:__s
lea eax, [ebp - 0x204]
mov dword [ebp - 0x220], ebx
push str..._bnl_tact_sourcegamemisc_handlersMemoryBufferHandler.cpp
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0x200
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], 4
mov dword [ebp - 0x208], str.FileBufferHandler
call fcn.00496d52
push dword [ebp + 8]
lea ecx, [ebp - 0x220]
call fcn.004971d9
lea ecx, [ebp - 0x220]
call fcn.0042bc04
xor al, al
jmp 0x4ce951
push esi
push 0x2000
call fcn.0052c2c8
mov ecx, dword [ebp + 8]
mov edx, 0x8301
mov esi, eax
mov dword [esp], 0x1b6
call fcn.005136f2
mov ebx, eax
mov dword [ebp - 4], ebx
pop ecx
cmp ebx, 0xffffffff
jne 0x4ce87a
push 0xe4
xor ebx, ebx
mov dword [ebp - 0x21c], str.Failed_to_create_file__s:__s
lea eax, [ebp - 0x204]
mov dword [ebp - 0x220], ebx
push str..._bnl_tact_sourcegamemisc_handlersMemoryBufferHandler.cpp
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0x200
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], 4
mov dword [ebp - 0x208], str.FileBufferHandler
call fcn.00496d52
push dword [ebp + 8]
lea ecx, [ebp - 0x220]
call fcn.004971d9
call fcn.005555d1
push dword [eax]
call fcn.005af7cc
pop ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.004971d9
lea ecx, [ebp - 0x220]
call fcn.0042bc04
jmp 0x4ce943
push 0x2000
push esi
push dword [edi + 0x34]
call fcn.0056d67a
add esp, 0xc
test eax, eax
jle 0x4ce89e
push eax
push esi
push ebx
call fcn.00563614
add esp, 0xc
test eax, eax
jg 0x4ce87a
cmp eax, 0xffffffff
je 0x4ce93a
push 0xf2
xor ebx, ebx
mov dword [ebp - 0x21c], str.Failed_to_write_into__s:__s
lea eax, [ebp - 0x204]
mov dword [ebp - 0x220], ebx
push str..._bnl_tact_sourcegamemisc_handlersMemoryBufferHandler.cpp
lea ecx, [ebp - 0x220]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], 0x200
mov dword [ebp - 0x210], ebx
mov dword [ebp - 0x20c], 4
mov dword [ebp - 0x208], str.FileBufferHandler
call fcn.00496d52
push dword [ebp + 8]
lea ecx, [ebp - 0x220]
call fcn.004971d9
call fcn.005555d1
push dword [eax]
call fcn.005af7cc
pop ecx
push eax
lea ecx, [ebp - 0x220]
call fcn.004971d9
lea ecx, [ebp - 0x220]
call fcn.0042bc04
push dword [ebp - 4]
call fcn.005639b5
jmp 0x4ce942
push ebx
call fcn.005639b5
mov bl, 1
pop ecx
test esi, esi
je 0x4ce94e
push esi
call fcn.0052c08b
pop ecx
mov al, bl
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4d5ff1
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x60], 0
jne 0x4d6011
push 0x6ae
push str..._bnl_tact_sourcegameencodingDecoder.cpp
push str.m_haveKey
call fcn.0054db53
add esp, 0xc
and dword [esi + 0xc0], 0
lea ecx, [esi + 0x68]
and dword [esi + 0xc4], 0
mov byte [esi + 0x65], 1
pop esi
jmp fcn.00570cc0
Function at 0x4d6752
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x227c
call fcn.0052ce20
push ebx
push esi
mov ebx, edx
mov dword [esp + 8], ecx
push edi
push 0x100
mov edx, 0x8000
mov ecx, ebx
call fcn.005136f2
mov edi, eax
pop ecx
cmp edi, 0xffffffff
jne 0x4d678c
xor eax, eax
inc eax
jmp 0x4d6858
lea ecx, [esp + 0x10]
call fcn.00570cc0
push 0x2000
lea eax, [esp + 0x28c]
push eax
push edi
call fcn.0056d67a
mov esi, eax
lea ecx, [esp + 0x1c]
add esp, 0xc
test esi, esi
jle 0x4d67c5
push esi
lea eax, [esp + 0x28c]
push eax
call fcn.00570cf0
jmp 0x4d6795
push dword [esp + 0xc]
call fcn.00570310
push edi
call fcn.005639b5
pop ecx
test esi, esi
jns 0x4d6856
and dword [esp + 0x6c], 0
lea eax, [esp + 0x88]
and dword [esp + 0x7c], 0
lea ecx, [esp + 0x6c]
push 0x24
push str..._bnl_tact_sourceutilMD5Util.cpp
mov dword [esp + 0x78], str.Failed_to_get_MD5_for__s_:__s
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], 0x200
mov dword [esp + 0x88], 4
mov dword [esp + 0x8c], str.MD5Util
call fcn.00496d52
push ebx
lea ecx, [esp + 0x70]
call fcn.004971d9
call fcn.005555d1
push dword [eax]
call fcn.005af7cc
pop ecx
push eax
lea ecx, [esp + 0x70]
call fcn.004971d9
lea ecx, [esp + 0x6c]
call fcn.0042bc04
jmp 0x4d6784
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4def59
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [ecx + 0x24], 0xffffffff
jne 0x4def67
push 2
pop eax
jmp 0x4def8d
push esi
mov esi, dword [ebp + 0xc]
push dword [esi]
push dword [ebp + 8]
push dword [ecx + 0x24]
call fcn.0056d67a
add esp, 0xc
cmp eax, 0xffffffff
jne 0x4def88
and dword [esi], 0
push 0xf
pop eax
jmp 0x4def8c
mov dword [esi], eax
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4e21a3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x6110ed
call fcn.00609528
push ecx
push ebx
push esi
mov eax, 0x719f58
mov ebx, ecx
push edi
push eax
mov edi, edx
mov dword [ebp - 0x10], eax
call fcn.004227ca
pop ecx
and dword [ebp - 4], 0
mov esi, dword [0x7194d0]
test esi, esi
jne 0x4e21dd
call fcn.004e35da
mov esi, dword [0x7194d0]
mov eax, dword [esi]
mov dword [0x7194d0], eax
mov eax, dword [esi + 0x50]
test eax, eax
je 0x4e21f1
inc dword [eax + 0xa84]
push 0x719f58
mov dword [ebp - 4], 1
call fcn.004227e9
xor eax, eax
mov dword [esi], eax
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x44], edi
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov word [esi + 0x48], ax
mov byte [esi + 0x4a], al
mov eax, esi
mov dword [esi + 0x40], ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x4e3d99
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0x100
mov edx, dword [ebp + 8]
push esi
mov eax, dword [edx]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
mov dword [ecx + 8], eax
mov eax, dword [edx + 8]
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x10], eax
jne 0x4e3dca
add edx, 0x10
mov esi, str.expand_32_byte_k
jmp 0x4e3dcf
mov esi, str.expand_16_byte_k
mov eax, dword [edx]
mov dword [ecx + 0x2c], eax
mov eax, dword [edx + 4]
mov dword [ecx + 0x30], eax
mov eax, dword [edx + 8]
mov dword [ecx + 0x34], eax
mov eax, dword [edx + 0xc]
mov dword [ecx + 0x38], eax
mov eax, dword [esi]
mov dword [ecx], eax
mov eax, dword [esi + 4]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 8]
mov dword [ecx + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [ecx + 0x3c], eax
pop esi
pop ebp
ret 8
Function at 0x4e5428
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov edx, ecx
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
and dword [ebp + 8], 0
movzx eax, byte [edx + 0x111]
movzx ebx, byte [edx + 0x110]
mov dword [ebp - 4], eax
lea eax, [edi + esi]
cmp edi, eax
cmova esi, ecx
mov dword [ebp + 0xc], esi
test esi, esi
je 0x4e549b
lea eax, [ebx + 1]
movzx ebx, al
mov eax, dword [ebp - 4]
movzx ecx, byte [edx + ebx + 0x10]
add eax, ecx
movzx eax, al
mov dword [ebp - 4], eax
mov esi, dword [ebp - 4]
movzx eax, byte [edx + eax + 0x10]
mov byte [edx + ebx + 0x10], al
add eax, ecx
movzx eax, al
mov byte [edx + esi + 0x10], cl
mov al, byte [eax + edx + 0x10]
xor byte [edi], al
inc edi
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp + 0xc]
jb 0x4e545d
mov eax, dword [ebp - 4]
pop edi
pop esi
mov byte [edx + 0x110], bl
mov byte [edx + 0x111], al
pop ebx
mov esp, ebp
pop ebp
ret 8