joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cf986
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x5f931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4cf9ba
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4cf9ba
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x4cfa72
push esi
mov esi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x4cf9d9
cmp dx, 0x5c
jne 0x4cf9db
mov esi, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4cf9cd
cmp esi, ebx
je 0x4cfa23
sub esi, ebx
lea eax, [ebp - 0x414]
and esi, 0xfffffffe
push esi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp esi, 0x208
jae 0x4cfa80
xor eax, eax
mov word [ebp + esi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push edi
call fcn.004cf986
pop ecx
pop ecx
xor eax, eax
mov word [ebp - 0x20c], ax
pop esi
test edi, edi
je 0x4cfa41
lea eax, [ebp - 0x20c]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4cfa72
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005364e2
leave
ret
call fcn.005368d1
int3

Function at 0x4d011d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4d01cb
cmp dword [esi + 4], 0xffffffff
jne 0x4d01cb
push edi
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
pop ecx
movzx eax, word [esi + eax*2 + 0x242]
cmp eax, 0x5c
je 0x4d0172
cmp eax, 0x2f
je 0x4d0172
push 0x55a440
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
pop ecx
pop ecx
cmp dword [ebp + 0x10], 1
pop edi
jne 0x4d0194
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4d0194
mov eax, 0x2000000
jmp 0x4d01d0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004d2873
add esp, 0x10
test eax, eax
jne 0x4d01b2
mov eax, dword [ebp - 4]
jmp 0x4d01d0
push eax
call fcn.004d2f16
pop ecx
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x4d01d0
mov eax, 0x1000000
pop esi
leave
ret 0xc
Function at 0x4d069a
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x579080]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x4d2970
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
imul ecx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x4d29a3
push 0
lea eax, [ebp + 0x10]
push eax
push ecx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4d299e
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x4d29cd
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret

Function at 0x4d2ae3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4d2af1
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4d2bb0
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
sub edi, 1
jne 0x4d2b09
pop edi
test esi, esi
je 0x4d2bcc
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x579080]
inc edx
sub esi, 1
jne 0x4d2bb4
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4d4de5
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4d4df3
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x4d4eb2
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
sub edi, 1
jne 0x4d4e0b
pop edi
test esi, esi
je 0x4d4ece
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
inc edx
sub esi, 1
jne 0x4d4eb6
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x4d55c6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov ecx, ebx
push edi
mov dword [ebp + 8], ecx
mov edi, ebx
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
jmp 0x4d57dc
cmp eax, 3
jb 0x4d5645
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4d5682
mov eax, dword [esi + 0x6af84]
sub eax, ecx
cmp eax, 0x7efa
ja 0x4d5682
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x4d566c
mov dword [esi + 0x6afa0], eax
push ecx
push esi
call fcn.004d6158
pop ecx
pop ecx
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x4d5767
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.004d510a
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x4d572c
cmp ecx, 3
jb 0x4d572c
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov eax, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af7c]
mov dword [ebp + 8], eax
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x4d56c4
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
jmp 0x4d5762
mov edx, dword [esi + 0x6af84]
add edx, edi
mov edi, ebx
mov dword [esi + 0x6af84], edx
movzx ecx, byte [esi + edx + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x4d578c
movzx eax, byte [esi + ecx + 0x1af70]
push eax
push ebx
push esi
call fcn.004d510a
add esp, 0xc
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
test eax, eax
je 0x4d57bf
mov ecx, dword [esi + 0x6af74]
lea eax, [esi + 0x1af70]
sub edx, ecx
add eax, ecx
push ebx
push edx
xor edx, edx
test ecx, ecx
cmovs eax, edx
push eax
push esi
call fcn.004d59c8
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
mov eax, dword [esi + 0x6af90]
cmp eax, 0x106
jae 0x4d57d9
push esi
call fcn.004d5881
mov eax, dword [esi + 0x6af90]
pop ecx
mov ecx, dword [ebp + 8]
test eax, eax
jne 0x4d55ee
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x4d57f6
lea ebx, [esi + 0x1af70]
add ebx, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push ebx
push esi
call fcn.004d59c8
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d602c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebx - 1]
cmp eax, 7
jbe 0x4d604a
mov dword [esi + 0x6afa4], str.bad_pack_level
xor edi, edi
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x4d606e
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call sub.VCRUNTIME140.dll_memset
movzx eax, word [ebx*8 + 0x57994a]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x579948]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x57994c]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x57994e]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x4d60d1
mov eax, dword [ebp + 0x10]
or word [eax], 4
jmp 0x4d60dc
cmp ebx, 8
jl 0x4d60dc
mov eax, dword [ebp + 0x10]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x4d6143
cmp eax, 0xffffffff
je 0x4d6143
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x4d611e
push esi
call fcn.004d5881
pop ecx
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x4d6126
jmp 0x4d6153
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4d6f47
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x4d6f9d
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x4d6fda
sub esi, eax
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
add eax, ecx
push esi
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.004d4de5
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x4d6fdc
cmp dword [edi + 0x7c], 0
je 0x4d6fd3
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d6fda
mov esi, dword [ebp - 4]
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.004d4de5
add esp, 0xc
jmp 0x4d6f96
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x4d7455
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x5799b0]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x5799b0]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x4d749e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp byte [esi + 0x2d], 0
je 0x4d7516
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x4d74cd
cmp dword [esi + 0x40], edi
jae 0x4d74cd
push ecx
call fcn.0053660f
and dword [esi + 0x3c], 0
xor eax, eax
pop ecx
test eax, eax
jne 0x4d74e1
lea eax, [edi + edi]
push eax
call fcn.00536606
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x4d7513
lea ecx, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ecx
call fcn.004d7570
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
lea ecx, [esi + 0x30]
cmp ebx, edi
jb 0x4d74f5
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4d7545
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x4d7531
mov dword [esi + 0x14], 0x30000
jmp 0x4d7567
push edi
add ecx, edx
push ebx
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x4d7569
mov eax, dword [esi + 4]
test eax, eax
je 0x4d7560
push 0
lea ecx, [ebp + 8]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
jmp 0x4d7569
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4dad2d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jge 0x4dad4f
push str.in_Json::Value::operator___int_index_:_index_cannot_be_negative
push 0x29a
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
pop ecx
pop ecx
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop ebp
jmp fcn.004dad55

Function at 0x4db2f3
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
sub eax, 0
je 0x4db385
sub eax, 1
je 0x4db37e
sub eax, 1
je 0x4db36e
sub eax, 1
je 0x4db31f
dec eax
sub eax, 1
jne 0x4db385
cmp byte [esi], al
setne al
jmp 0x4db387
mov edx, SysReAllocString
xor ecx, ecx
call fcn.00536fc0
movsd xmm1, qword [esi]
comisd xmm1, xmm0
jb 0x4db355
mov edx, SysReAllocString
or ecx, 0xffffffff
call fcn.00536fc0
movsd xmm1, qword [esi]
comisd xmm0, xmm1
jb 0x4db355
movaps xmm0, xmm1
pop esi
jmp fcn.00536e6f
push str.double_out_of_Int64_range
push 0x29a
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
pop ecx
pop ecx
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.004db970
test al, al
jne 0x4db37e
push str.LargestUInt_out_of_Int64_range
jmp 0x4db35a
mov eax, dword [esi]
mov edx, dword [esi + 4]
pop esi
ret
xor eax, eax
xor edx, edx
pop esi
ret

Function at 0x4db41b
Capabilities:
Terminate process

Disassembly:
jmp 0x4db4af
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
sub eax, 0
je 0x4db52f
sub eax, 1
je 0x4db518
sub eax, 1
je 0x4db528
sub eax, 1
je 0x4db4d7
dec eax
sub eax, 1
jne 0x4db52f
cmp byte [esi], al
setne al
jmp 0x4db531
movsd xmm0, qword [esi]
comisd xmm0, xmmword [0x57a570]
jb 0x4db4ff
or ecx, 0xffffffff
mov edx, ecx
call fcn.00536f80
comisd xmm0, xmmword [esi]
jb 0x4db4ff
movsd xmm0, qword [esi]
pop esi
jmp fcn.00536e60
push str.double_out_of_UInt64_range
push 0x29a
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
pop ecx
pop ecx
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.004dba8f
test al, al
jne 0x4db528
push str.LargestInt_out_of_UInt64_range
jmp 0x4db504
mov eax, dword [esi]
mov edx, dword [esi + 4]
pop esi
ret
xor eax, eax
xor edx, edx
pop esi
ret

Function at 0x4db535
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
movsx eax, byte [esi + 8]
sub eax, 0
je 0x4db5bc
sub eax, 1
je 0x4db5a8
sub eax, 1
je 0x4db598
sub eax, 1
je 0x4db55d
dec eax
sub eax, 1
jne 0x4db5bc
cmp byte [esi], al
pop esi
setne al
ret
movsd xmm0, qword [esi]
comisd xmm0, xmmword [0x57a570]
jb 0x4db57f
movsd xmm1, qword [0x57a588]
comisd xmm1, xmm0
jb 0x4db57f
pop esi
jmp 0x536e51
push str.double_out_of_UInt_range
push 0x29a
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
pop ecx
pop ecx
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call fcn.004dbae3
test al, al
jne 0x4db5b8
push str.LargestUInt_out_of_UInt_range
jmp 0x4db584
call fcn.004dbae3
test al, al
jne 0x4db5b8
push str.LargestInt_out_of_UInt_range
jmp 0x4db584
mov eax, dword [esi]
pop esi
ret
xor eax, eax
pop esi
ret
mov ecx, 1
movsd xmm5, qword [0x5c5088]
jmp fcn.00536e7c
Function at 0x4db6b8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0xffffffff
jne 0x4db6d0
push dword [ebp + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
mov esi, eax
mov eax, SysReAllocString
cmp esi, 0x7fffffff
cmovae esi, eax
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
jne 0x4db708
push str.in_Json::Value::duplicateStringValue__:_Failed_to_allocate_string_value_buffer
push 0x29a
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
pop ecx
pop ecx
push 0x7b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push esi
push dword [ebp + 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [edi + esi], 0
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4dd28b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5f931c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x20], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x1c]
test edx, edx
jle 0x4dd36f
cmp dword [ebp + 0xc], 0
push edi
push 0x10
pop edi
jne 0x4dd31a
sub eax, esi
mov dword [ebp - 0x18], eax
lea eax, [edx - 1]
shr eax, 4
inc eax
mov dword [ebp - 0x1c], eax
push edi
lea eax, [ebp - 0x14]
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
push esi
push ebx
push 0
push dword [ebp - 0x24]
call fcn.004dd42d
mov ecx, dword [ebp - 0x18]
add esp, 0x1c
mov edx, edi
mov al, byte [ecx + esi]
xor byte [esi], al
inc esi
sub edx, 1
jne 0x4dd2f2
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call sub.VCRUNTIME140.dll_memcpy
sub dword [ebp - 0x18], edi
add esp, 0xc
add ebx, edi
sub dword [ebp - 0x1c], 1
jne 0x4dd2d3
jmp 0x4dd36e
mov ecx, esi
sub ebx, eax
sub ecx, eax
dec edx
shr edx, 4
inc edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov dword [ebp - 0x28], edi
mov al, byte [ebx + ecx]
xor al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
sub edi, 1
jne 0x4dd333
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x24]
call fcn.004dd42d
push 0x10
pop edi
push edi
push esi
push dword [ebp - 0x20]
call sub.VCRUNTIME140.dll_memcpy
add dword [ebp - 0x18], edi
add esp, 0x1c
mov eax, dword [ebp - 0x20]
add ebx, edi
add esi, edi
sub dword [ebp - 0x1c], 1
jne 0x4dd32b
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005364e2
leave
ret
Function at 0x4ddda8
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x5f931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor esi, esi
inc ebx
push edi
mov dword [ebp - 0x808], ebx
mov edx, ebx
mov edi, 0x100
mov eax, edx
mov dword [ebp + esi*4 - 0x804], edx
and al, 0x80
mov dword [ebp + edx*4 - 0x404], esi
movzx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
xor ecx, edx
inc esi
movzx edx, cl
cmp esi, edi
jl 0x4dddd0
mov esi, ebx
mov edx, 0x603fd0
mov eax, esi
mov dword [edx], esi
and al, 0x80
movzx ecx, al
lea eax, [esi + esi]
neg ecx
sbb ecx, ecx
add edx, 4
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
cmp edx, 0x603ff8
jl 0x4dde02
mov byte [0x601dd0], 0x63
mov byte [0x602f33], 0
mov ecx, dword [ebp + ebx*4 - 0x404]
lea eax, [ebp - 0x408]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx eax, cl
xor ebx, eax
mov ecx, eax
shr ecx, 7
add eax, eax
or ecx, eax
movzx edx, cl
mov ecx, edx
shr ecx, 7
lea eax, [edx + edx]
or ecx, eax
xor ecx, 0x63
movzx eax, cl
xor eax, edx
xor ebx, eax
mov eax, dword [ebp - 0x808]
mov byte [eax + 0x601dd0], bl
mov byte [ebx + 0x602ed0], al
mov ebx, eax
inc ebx
mov dword [ebp - 0x808], ebx
cmp ebx, edi
jl 0x4dde33
xor esi, esi
mov edi, 0xff
movzx edx, byte [esi + 0x601dd0]
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx eax, cl
mov ecx, eax
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, edx
shl ecx, 8
xor ecx, eax
mov dword [esi*4 + 0x601ed0], ecx
rol ecx, 8
mov dword [esi*4 + 0x6022d0], ecx
rol ecx, 8
mov dword [esi*4 + 0x6026d0], ecx
rol ecx, 8
mov dword [esi*4 + 0x602ad0], ecx
movzx ecx, byte [esi + 0x602ed0]
test ecx, ecx
je 0x4ddf29
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp - 0x3cc]
cdq
idiv edi
mov eax, dword [ebp + edx*4 - 0x804]
mov dword [ebp - 0x808], eax
jmp 0x4ddf30
and dword [ebp - 0x808], 0
test ecx, ecx
je 0x4ddf4d
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp - 0x3e0]
cdq
idiv edi
mov ebx, dword [ebp + edx*4 - 0x804]
jmp 0x4ddf4f
xor ebx, ebx
test ecx, ecx
je 0x4ddf6c
mov eax, dword [ebp + ecx*4 - 0x404]
add eax, dword [ebp - 0x3d0]
cdq
idiv edi
mov edi, dword [ebp + edx*4 - 0x804]
jmp 0x4ddf6e
xor edi, edi
test ecx, ecx
je 0x4ddf90
mov eax, dword [ebp + ecx*4 - 0x404]
mov ecx, 0xff
add eax, dword [ebp - 0x3d8]
cdq
idiv ecx
mov eax, dword [ebp + edx*4 - 0x804]
jmp 0x4ddf92
xor eax, eax
shl eax, 8
xor eax, edi
mov edi, 0xff
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, dword [ebp - 0x808]
mov dword [esi*4 + 0x602fd0], eax
rol eax, 8
mov dword [esi*4 + 0x6033d0], eax
rol eax, 8
mov dword [esi*4 + 0x6037d0], eax
rol eax, 8
mov dword [esi*4 + 0x603bd0], eax
inc esi
cmp esi, 0x100
jl 0x4ddeaa
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005364e2
leave
ret