joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ade80
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x54c3c8
push ecx
call fcn.0049f850
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.004ad030
test eax, eax
jne 0x4adeb0
mov eax, esi
jmp fcn.004ad450
ret
Function at 0x4aff60
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x130]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4affa4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0049f8e0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004afe60
add esp, 4
pop esi
pop ecx
ret
Function at 0x4b0c80
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x8ed4]
mov dword [esp + 4], eax
jne 0x4b0de8
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x4b0cb9
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4b0cc6
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4b0cd3
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4b0d07
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4b0d17
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4b0d23
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4b0d2f
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4b0d3c
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x4b0d49
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov dword [ebx + 0x1eb4], eax
sub eax, edi
sub eax, 2
push eax
lea edx, [ebx + 0x1cb2]
push edx
push 0x3e
mov dword [ebp], edi
call fcn.004b01b0
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 0xc
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x130]
push eax
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x4b0da7
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.0049f8e0
add esp, 0xc
lea edx, [ebx + 0x1cb3]
push 4
push edx
call fcn.004b0a60
mov eax, dword [edi + 0x130]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push eax
call ebp
test eax, eax
jns 0x4b0de5
call esi
mov ecx, dword [esp + 0x10]
push eax
push str.Sending_data_failed___d_
push ecx
call fcn.0049f8e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4b19a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x5857cc]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esi + 0x134]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4b19fa
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.004a2230
add esp, 8
cmp edi, 0xffffffff
jne 0x4b1a34
push str.Error_accept__ing_server_connect
push ebp
call fcn.0049f8e0
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00521458
add esp, 0x88
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.0049f850
push 1
push edi
mov dword [esi + 0x134], edi
call fcn.004c0180
mov dword [esi + 0x13c], 1
mov eax, dword [ebp + 0x16c]
add esp, 0x10
test eax, eax
je 0x4b1aa8
mov ecx, dword [ebp + 0x170]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x4b1aa8
push edi
push esi
call fcn.004a2230
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x134], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00521458
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00521458
add esp, 0x88
ret
Function at 0x4bd070
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x5857cc]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [0x545278]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x4bd0d6
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x4bd0d6
lea edx, [esp]
push edx
call dword [0x583920]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00521458
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00521458
add esp, 0x108
ret
Function at 0x4c01b0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a8]
test esi, esi
jne 0x4c01c9
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.004a44c0
push edx
push eax
call fcn.004a44f0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4c0216
mov eax, dword [ebx + 0x124]
mov ecx, dword [ebx + 0x120]
push eax
push ecx
call fcn.004a44c0
push edx
push eax
call fcn.004a44f0
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x4c0218
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4c1370
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4c13a6
mov edx, dword [esp + 4]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push esi
mov esi, dword [esp + 0x18]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c13b0
sub eax, edx
push eax
call fcn.004bb010
add esp, 4
push 0
push eax
mov eax, dword [esp + 0x14]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 2
push edx
call esi
cmp dword [esp + 4], 0x10
jne 0x4c1405
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push eax
push ecx
push 2
push edx
call esi
mov eax, dword [esp + 0xc]
pop esi
test eax, eax
je 0x4c1415
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x4c1426
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0xc
ret

Function at 0x4c8b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0xc]
pop ebp
jmp fcn.004c8aa0

Function at 0x4c8b80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5857cc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004f3cd0
mov eax, dword [ebp - 0x20]
add esp, 8
cmp dword [ebp - 0xc], 8
jae 0x4c8bac
lea eax, [ebp - 0x20]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4c8bc1
test al, 0x10
jne 0x4c8bc1
mov bl, 1
jmp 0x4c8bc3
xor bl, bl
cmp dword [ebp - 0xc], 8
jb 0x4c8bd5
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0052142e
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00521458
mov esp, ebp
pop ebp
ret 8
Function at 0x4c96e0
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b5ad
mov eax, dword fs:[0]
push eax
mov eax, 0x28ac
call fcn.00521720
mov eax, dword [0x5857cc]
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 + 8]
lea eax, [ebp - 0x28b4]
push eax
lea ecx, [ebp - 0x2890]
xor ebx, ebx
mov dword [ebp - 0x28b0], ebx
push ecx
mov dword [ebp - 0x28b8], edi
mov dword [ebp - 0x28b4], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x28b0], 1
cmp eax, ebx
jne 0x4c97c3
lea esi, [ebp - 0x2890]
mov eax, dword [esi + 0x190]
lea edx, [esi + 0x194]
push edx
push eax
lea ecx, [ebp - 0x28ac]
push ecx
call fcn.004c9610
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.0040cfe0
cmp dword [ebp - 0x2898], 0x10
mov byte [ebp - 4], bl
jb 0x4c97ad
mov edx, dword [ebp - 0x28ac]
push edx
call fcn.0052142e
add esp, 4
mov esi, dword [esi]
cmp esi, ebx
je 0x4c97c3
push 1
push 0x55e2e0
mov ecx, edi
call fcn.0040d0d0
jmp 0x4c9763
mov eax, edi
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.00521458
mov esp, ebp
pop ebp
ret
Function at 0x4ca700
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b819
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x5857cc]
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 esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], esi
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 9
lea eax, [ebp - 0x24]
push eax
push 0x59
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], 1
call edi
cmp eax, ebx
je 0x4ca7c1
push 9
lea eax, [ebp + eax - 0x24]
push eax
push 0x5a
push ebx
mov byte [eax - 1], 0x5f
call edi
cmp eax, ebx
je 0x4ca7c1
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4ca784
sub eax, edx
push eax
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x40]
call fcn.00401bf0
lea edx, [ebp - 0x40]
push edx
mov ecx, esi
mov dword [ebp - 4], 1
call fcn.00414860
cmp dword [ebp - 0x2c], 0x10
mov byte [ebp - 4], bl
jb 0x4ca7c1
mov eax, dword [ebp - 0x40]
push eax
call fcn.0052142e
add esp, 4
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
jne 0x4ca81b
push 5
push str.en_US
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x40], bl
call fcn.00401bf0
lea edx, [ebp - 0x40]
push edx
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00414860
cmp dword [ebp - 0x2c], 0x10
jb 0x4ca81b
mov eax, dword [ebp - 0x40]
push eax
call fcn.0052142e
add esp, 4
mov eax, esi
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.00521458
mov esp, ebp
pop ebp
ret 4
Function at 0x4ce2c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bbee
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x5857cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
call fcn.004ef430
xor ebx, ebx
mov dword [esi], vtable.util::JSON.0
mov dword [esi + 0xc], ebx
mov dword [esi + 0x24], 0xf
mov dword [esi + 0x20], ebx
mov dword [ebp - 4], ebx
mov byte [esi + 0x10], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0x98
mov byte [ebp - 4], 2
mov dword [esi + 0x44], ebx
call fcn.00521440
add esp, 4
cmp eax, ebx
je 0x4ce365
mov dword [esi + 0x40], eax
mov dword [eax], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x40]
mov al, 1
mov byte [ecx + 0x90], al
mov edx, dword [esi + 0x40]
mov byte [edx + 0x91], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], ebx
call dword [0x545468]
push 0x56c290
lea ecx, [ebp - 0x20]
push ecx
mov dword [ebp - 0x20], vtable.std::bad_alloc.0
call fcn.00521446
int3

Function at 0x4ce390
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53bc2e
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5857cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004ef430
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0xffffffffffffffff
lea ecx, [esi + 0x10]
mov dword [esi], vtable.util::JSON.0
mov dword [esi + 0xc], 3
push ebx
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ecx], bl
call fcn.00401a50
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 0x98
mov byte [ebp - 4], 2
mov dword [esi + 0x44], ebx
call fcn.00521440
add esp, 4
cmp eax, ebx
je 0x4ce449
mov dword [esi + 0x40], eax
mov dword [eax], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x40]
mov dword [eax + 8], eax
mov ecx, dword [esi + 0x40]
mov al, 1
mov byte [ecx + 0x90], al
mov edx, dword [esi + 0x40]
mov byte [edx + 0x91], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp + 8], ebx
call dword [0x545468]
push 0x56c290
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], vtable.std::bad_alloc.0
call fcn.00521446
int3
Function at 0x4d3150
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c3cb
mov eax, dword fs:[0]
push eax
sub esp, 0x17c
mov eax, dword [0x5857cc]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x188], eax
xor eax, eax
add ebx, 0xffffffc0
xor esi, esi
mov dword [ebp - 0x184], eax
mov dword [ebp - 0x24], 0x67452301
mov dword [ebp - 0x20], 0xefcdab89
mov dword [ebp - 0x1c], 0x98badcfe
mov dword [ebp - 0x18], 0x10325476
mov dword [ebp - 0x14], 0xc3d2e1f0
mov dword [ebp - 0x184], ebx
cmp ebx, eax
jl 0x4d3221
lea ecx, [esi + 0x40]
cmp esi, ecx
jge 0x4d3208
lea eax, [ebp - 0x164]
movzx edx, byte [edi + esi]
movzx ebx, byte [edi + esi + 1]
shl edx, 8
or edx, ebx
movzx ebx, byte [edi + esi + 2]
shl edx, 8
or edx, ebx
movzx ebx, byte [edi + esi + 3]
shl edx, 8
or edx, ebx
mov dword [eax], edx
add esi, 4
add eax, 4
cmp esi, ecx
jl 0x4d31d4
mov ebx, dword [ebp - 0x184]
lea eax, [ebp - 0x164]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.004d2ea0
add esp, 8
cmp esi, ebx
jle 0x4d31c7
xor eax, eax
mov ebx, dword [ebp + 0x10]
sub ebx, esi
mov ecx, 0xf
jmp 0x4d3230
dec ecx
mov dword [ebp + ecx*4 - 0x160], eax
jns 0x4d3230
cmp ebx, eax
jle 0x4d326b
add esi, edi
mov edi, eax
and edi, 3
mov ecx, 3
sub ecx, edi
movzx edi, byte [esi + eax]
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov edx, eax
shl edi, cl
sar edx, 2
lea edx, [ebp + edx*4 - 0x164]
inc eax
or dword [edx], edi
cmp eax, ebx
jl 0x4d3240
mov ecx, eax
sar ecx, 2
lea edx, [ebp + ecx*4 - 0x164]
and eax, 3
mov ecx, 3
sub ecx, eax
add ecx, ecx
add ecx, ecx
add ecx, ecx
mov eax, 0x80
shl eax, cl
or dword [edx], eax
cmp ebx, 0x38
jl 0x4d32be
lea ecx, [ebp - 0x164]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.004d2ea0
add esp, 8
mov eax, 0xf
lea ecx, [ecx]
dec eax
mov dword [ebp + eax*4 - 0x160], 0
jns 0x4d32b0
mov eax, dword [ebp + 0x10]
lea ecx, [eax*8]
lea edx, [ebp - 0x164]
push edx
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x128], ecx
call fcn.004d2ea0
xor eax, eax
add esp, 8
mov dword [ebp - 0x16c], 0xf
mov dword [ebp - 0x170], eax
mov byte [ebp - 0x180], al
push eax
push 0x14
lea ecx, [ebp - 0x180]
mov dword [ebp - 4], eax
call fcn.00401b40
mov eax, 0x13
mov edi, 0x10
jmp 0x4d3320
mov esi, dword [ebp - 0x180]
cmp dword [ebp - 0x16c], edi
jae 0x4d3334
lea esi, [ebp - 0x180]
or ecx, 0xffffffff
sub ecx, eax
and ecx, 3
add ecx, ecx
mov edx, eax
sar edx, 2
mov edx, dword [ebp + edx*4 - 0x24]
add ecx, ecx
add ecx, ecx
shr edx, cl
dec eax
mov byte [esi + eax + 1], dl
jns 0x4d3320
mov esi, dword [ebp - 0x188]
lea eax, [ebp - 0x180]
push eax
push esi
call fcn.004df620
add esp, 8
cmp dword [ebp - 0x16c], edi
jb 0x4d3381
mov ecx, dword [ebp - 0x180]
push ecx
call fcn.0052142e
add esp, 4
mov eax, esi
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.00521458
mov esp, ebp
pop ebp
ret
Function at 0x4d3d30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53c56f
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5857cc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
xor ebx, ebx
mov dword [edi], vtable.util::JSONWriter.0
mov dword [ebp - 0x18], esi
mov dword [esi], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.00521440
add esp, 4
cmp eax, ebx
je 0x4d3dde
mov dword [esi], eax
mov dword [eax + 4], ebx
xor ecx, ecx
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov eax, 1
mov dword [edi + 0x30], 0xf
mov dword [edi + 0x2c], ebx
mov dword [ebp - 4], eax
mov byte [edi + 0x1c], bl
mov cl, byte [ebp + 8]
lea edx, [ebp - 0x1c]
mov byte [edi + 0x38], cl
push edx
lea ecx, [edi + 4]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], al
call fcn.0047cf00
mov eax, edi
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
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x10], ebx
call dword [0x545468]
push 0x56c290
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], vtable.std::bad_alloc.0
call fcn.00521446
int3
Function at 0x4da060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x5857cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
je 0x4da10a
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ecx]
add edi, edi
add edi, edi
sub eax, 0
je 0x4da0f1
dec eax
jne 0x4da109
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0052143a
add esp, 0xc
xor eax, eax
test edi, edi
je 0x4da0bc
lea esp, [esp]
mov cl, byte [esi]
xor byte [ebp + eax - 0x44], cl
inc eax
inc esi
cmp eax, edi
jb 0x4da0b0
mov ecx, dword [ebp - 0x48]
push ebx
lea edx, [ebp - 0x44]
push edx
call fcn.004d5b60
push edi
lea eax, [ebp - 0x44]
push ebx
push eax
call fcn.00521434
add esp, 0xc
add ebx, edi
dec dword [ebp + 0x10]
jne 0x4da0a6
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret 0x10
sub ebx, esi
jmp 0x4da0f8
mov ecx, dword [ebp - 0x48]
lea edx, [ebx + esi]
push edx
push esi
call fcn.004d5b60
add esi, edi
dec dword [ebp + 0x10]
jne 0x4da0f5
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00521458
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4de3d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5857cc]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
je 0x4de49b
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ecx]
add edi, edi
add edi, edi
sub eax, 0
je 0x4de482
dec eax
jne 0x4de49a
push 0x40
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.0052143a
mov ecx, dword [ebp - 0x48]
add esp, 0xc
push esi
push ebx
call fcn.004da120
test edi, edi
je 0x4de439
lea eax, [ebp - 0x44]
sub eax, esi
mov ecx, edi
nop
mov dl, byte [eax + esi]
xor byte [esi], dl
inc esi
dec ecx
jne 0x4de430
add ebx, edi
dec dword [ebp + 0x10]
je 0x4de49a
mov eax, ebx
sub eax, edi
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x48]
push esi
push ebx
call fcn.004da120
xor eax, eax
test edi, edi
je 0x4de465
mov ecx, dword [ebp - 0x4c]
mov dl, byte [ecx + eax]
xor byte [esi], dl
inc eax
inc esi
cmp eax, edi
jb 0x4de457
add dword [ebp - 0x4c], edi
add ebx, edi
dec dword [ebp + 0x10]
jne 0x4de447
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00521458
mov esp, ebp
pop ebp
ret 0x10
sub esi, ebx
jmp 0x4de489
mov ecx, dword [ebp - 0x48]
lea eax, [esi + ebx]
push eax
push ebx
call fcn.004da120
add ebx, edi
dec dword [ebp + 0x10]
jne 0x4de486
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00521458
mov esp, ebp
pop ebp
ret 0x10