joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49cab0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x49cc70
cmp dword [edi + 0x18], 0
je 0x49cc70
cmp dword [edi + 0x7c], 0
je 0x49cad9
push edi
call fcn.0049c9e0
add esp, 4
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0049d120
add esp, 0x10
test eax, eax
je 0x49caff
mov eax, 0xffffff99
pop edi
add esp, 8
ret
push esi
push 0x84
call fcn.004e6971
mov esi, eax
add esp, 4
test esi, esi
je 0x49cb44
push 0x4000
call fcn.004e6971
mov ecx, dword [esp + 0x18]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x49cb4f
push esi
call fcn.004e6956
add esp, 4
pop esi
mov eax, 0xffffff98
pop edi
add esp, 8
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x49cbab
lea eax, [esi + 4]
mov dword [esi + 0x24], 0
push eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.0049aae0
add esp, 4
test eax, eax
jne 0x49cbab
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x49cbcf
mov al, byte [edi + 0x39]
jmp 0x49cbd2
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov edx, dword [esp + 0x18]
mov dword [esi + 0x7c], eax
test edx, edx
je 0x49cc51
mov al, byte [edx]
test al, al
je 0x49cc51
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
mov eax, dword [eax*4 + 0x685b78]
xor eax, ecx
mov ecx, dword [esi + 0x78]
mov dword [esi + 0x70], eax
movzx eax, al
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x685b78]
mov dword [esi + 0x78], ecx
add edx, 1
jne 0x49cc04
mov eax, dword [esp + 0xc]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
add esp, 8
ret
mov eax, 0xffffff9a
pop edi
add esp, 8
ret
Function at 0x4a1920
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.0049ebf0
mov ecx, eax
call fcn.004a1fa0
push ebx
test eax, eax
je 0x4a194f
call fcn.0049ebf0
mov ecx, eax
call fcn.004a20c0
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.0049ea30
mov ecx, eax
call fcn.004a1fa0
test eax, eax
je 0x4a1973
push ebx
call fcn.0049ea30
mov ecx, eax
call fcn.004a20c0
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword fs:[0x2c]
mov ecx, dword [0x72249c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x721894]
cmp eax, dword [ecx + 4]
jg 0x4a1a00
movzx eax, bl
xor eax, 0x811c9dc5
mov dword [ebp + 8], ebx
imul ecx, eax, 0x1000193
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, ebx
shr eax, 0x10
imul ecx, ecx, 0x1000193
movzx eax, al
shr ebx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, 0x721874
xor eax, ebx
imul eax, eax, 0x1000193
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0049e150
mov eax, dword [eax + 4]
test eax, eax
je 0x4a19f7
cmp eax, dword [0x721878]
je 0x4a19f7
mov eax, dword [eax + 0xc]
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x721894
call fcn.004cb872
add esp, 4
cmp dword [0x721894], 0xffffffff
jne 0x4a198f
mov ecx, 0x721874
call fcn.0049e3c0
push 0x672f00
call fcn.004cb72a
push 0x721894
call fcn.004cb828
add esp, 8
jmp 0x4a198f

Function at 0x4a1bb0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
lea ecx, [ecx*4 + 2]
mul ecx
mov ebx, dword [edi + 4]
mov ecx, ebx
mov esi, edx
mov byte [ebp - 1], 0
mov edx, dword [edi]
sub ecx, edx
shr esi, 1
cmp esi, ecx
jae 0x4a1be5
lea eax, [edx + esi]
jmp 0x4a1c0f
jbe 0x4a1c12
mov eax, dword [edi + 8]
sub eax, edx
cmp esi, eax
jbe 0x4a1bfe
lea eax, [ebp - 1]
mov ecx, edi
push eax
push esi
call fcn.004766e0
jmp 0x4a1c12
sub esi, ecx
push esi
push 0
push ebx
call fcn.004e30c0
add esp, 0xc
lea eax, [esi + ebx]
mov dword [edi + 4], eax
mov edx, dword [edi]
mov esi, 8
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
add ecx, edi
mov dword [ebp + 0x10], edx
mov dword [ebp + 0xc], ecx
mov bl, byte [edi]
cmp edi, ecx
jae 0x4a1ca9
lea ecx, [ecx]
mov al, bl
cmp esi, 6
jbe 0x4a1c41
and al, 0x3f
shr bl, 6
sub esi, 6
jmp 0x4a1c75
inc edi
cmp edi, ecx
jae 0x4a1c4a
mov bl, byte [edi]
jmp 0x4a1c4c
xor bl, bl
mov ecx, 6
sub ecx, esi
mov dword [ebp + 8], ecx
je 0x4a1c6f
mov dl, byte [ecx*4 + 0x686394]
mov ecx, esi
and dl, bl
shl dl, cl
mov cl, byte [ebp + 8]
or al, dl
mov edx, dword [ebp + 0x10]
shr bl, cl
mov ecx, dword [ebp + 0xc]
add esi, 2
cmp al, 0xa
jae 0x4a1c7d
add al, 0x30
jmp 0x4a1c9f
cmp al, 0x24
jae 0x4a1c85
add al, 0x37
jmp 0x4a1c9f
cmp al, 0x3e
jae 0x4a1c8d
add al, 0x3d
jmp 0x4a1c9f
mov eax, 0x2d
mov ecx, 0x5f
cmove ecx, eax
mov al, cl
mov ecx, dword [ebp + 0xc]
mov byte [edx], al
inc edx
mov dword [ebp + 0x10], edx
cmp edi, ecx
jb 0x4a1c30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1cb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 1
lea eax, [ebp - 4]
push eax
push str.WPS_OFFICE6_ROOT_DIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push edi
push esi
test eax, eax
je 0x4a1ce0
push str.WPS_OFFICE6_ROOT_DIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x4a1cff
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.004e3808
add esp, 8
test eax, eax
je 0x4a1cff
xor ecx, ecx
mov word [eax], cx
push str._cfgs
push edi
push esi
call fcn.004e6696
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4a1d70
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66ea4c
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x80], edi
lea esi, [edi + 0x10]
mov dword [ebp - 0x84], edi
push 0x18
mov dword [ebp - 0x80], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004cb4ab
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x18], 0
xor eax, eax
mov dword [ebp - 4], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 7
mov word [edi + 0x1c], ax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.004a2d20
push 3
push 0x686428
lea ecx, [ebp - 0x7c]
call fcn.004a3100
lea ecx, [ebp - 0x7c]
call fcn.004a2d50
test eax, eax
je 0x4a1e33
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [eax + 4]
mov dword [edi + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [edi + 0xc], ecx
jmp 0x4a1e50
xor eax, eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call fcn.004e6683
mov dword [eax], 0x16
call fcn.004e6579
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x4a2ea0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xc0], eax
push ebx
push esi
push edi
test ecx, ecx
jne 0x4a2edd
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4a2ed4
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xbc]
mov byte [ebp - 0x54], 0
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xbc], 0x67452301
mov dword [ebp - 0xb8], 0xefcdab89
mov dword [ebp - 0xb4], 0x98badcfe
mov dword [ebp - 0xb0], 0x10325476
call fcn.0048f860
cmp byte [ebp - 0x54], 0
jne 0x4a3063
mov eax, dword [ebp - 0xb8]
lea edx, [ebp - 0xc]
mov ebx, dword [ebp - 0xbc]
lea esi, [ebp - 0xac]
mov edi, dword [ebp - 0xac]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp - 0xa8]
mov byte [ebp - 0x54], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc0], eax
jmp 0x4a2f90
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 4]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4a2f90
mov edx, edi
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0xbc]
push eax
push 0x686430
call fcn.0048f860
push 8
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0048f860
lea edx, [ebp - 0x64]
lea esi, [ebp - 0xbc]
mov edi, edi
mov ecx, dword [esi]
lea esi, [esi + 4]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
mov byte [edx + 1], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [edx + 2], al
lea eax, [ebp - 0x54]
mov byte [edx + 3], cl
add edx, 4
cmp edx, eax
jb 0x4a3000
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0xac], edi
mov dword [ebp - 0xa8], eax
push 0x42
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
lea ebx, [ebp - 0x50]
xor edi, edi
xor esi, esi
lea ebx, [ebx]
movzx eax, byte [ebp + edi - 0x64]
push eax
push 0x683a20
mov eax, 0x21
push 2
sub eax, esi
push eax
push ebx
call fcn.0048f9b0
add esi, 2
lea edi, [edi + 1]
add esp, 0x14
add ebx, 4
cmp esi, 0x20
jl 0x4a3080
mov ebx, dword [ebp - 0xd0]
lea ecx, [ebp - 0x50]
xor eax, eax
lea edx, [ecx + 2]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
jmp 0x4a30d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a30d0
sub ecx, edx
lea eax, [ebp - 0x50]
sar ecx, 1
push ecx
push eax
mov ecx, ebx
call fcn.0044e920
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb998
mov esp, ebp
pop ebp
ret
Function at 0x4ab3d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66f2cb
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x718924]
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, ecx
mov dword [ebp - 0x348], esi
cmp dword [esi + 0x18], 8
lea eax, [esi + 4]
jb 0x4ab411
mov eax, dword [eax]
push 0x67e1fc
push eax
call fcn.004f545d
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4ab627
push 2
push 0
push ebx
call fcn.004f82ba
push ebx
call fcn.004f88d6
add esp, 0x10
cmp eax, 0x201
jl 0x4ab61a
push 0x202
lea eax, [ebp - 0x214]
push 0
push eax
call fcn.004e30c0
push 2
push 0xfffffdff
push ebx
call fcn.004f82ba
push ebx
push 0x201
lea eax, [ebp - 0x214]
push 1
push eax
call fcn.004f6a2f
add esp, 0x28
cmp byte [ebp - 0x214], 0x3b
jne 0x4ab61a
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0xf
mov byte [ebp - 0x244], 0
push 0x210
mov dword [ebp - 4], 0
call fcn.004cb4ab
add esp, 4
mov dword [ebp - 0x34c], eax
mov edi, eax
mov dword [ebp - 0x234], 0x200
mov ecx, 0x80
mov dword [ebp - 0x230], 0x20f
lea esi, [ebp - 0x213]
mov dword [ebp - 0x244], eax
rep movsd dword es:[edi], dword [esi]
push 0x10
push 0x687c00
lea ecx, [ebp - 0x22c]
mov byte [eax + 0x200], 0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x218], 0xf
mov byte [ebp - 0x22c], 0
call fcn.0045d850
cmp dword [ebp - 0x218], 0x10
lea eax, [ebp - 0x344]
mov edi, dword [ebp - 0x22c]
lea esi, [ebp - 0x22c]
push 0x100
push 0
push eax
cmovae esi, edi
call fcn.004e30c0
mov ecx, dword [ebp - 0x21c]
add esp, 0xc
add ecx, esi
cmp esi, ecx
je 0x4ab570
jmp 0x4ab560
movzx eax, byte [esi]
inc esi
mov byte [ebp + eax - 0x344], 1
cmp esi, ecx
jne 0x4ab560
mov esi, dword [ebp - 0x34c]
mov ecx, esi
lea edx, [esi + 0x200]
cmp esi, edx
jae 0x4ab594
movzx eax, byte [ecx]
cmp byte [ebp + eax - 0x344], 0
je 0x4ab5e8
inc ecx
cmp ecx, edx
jb 0x4ab582
or ecx, 0xffffffff
mov eax, dword [ebp - 0x348]
cmp ecx, 0xffffffff
je 0x4ab5ec
mov byte [eax + 0x3e], 1
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x4ab5d8
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4ab5ce
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab643
push ecx
push edi
call fcn.004cb4db
add esp, 8
push 0x210
push esi
call fcn.004cb4db
add esp, 8
jmp 0x4ab61e
sub ecx, esi
jmp 0x4ab597
mov byte [eax + 0x3e], 0
mov eax, dword [ebp - 0x218]
cmp eax, 0x10
jb 0x4ab5d8
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x4ab5ce
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4ab643
jmp 0x4ab5ce
mov byte [esi + 0x3e], 1
push ebx
call fcn.004f67c5
add esp, 4
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.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3
Function at 0x4af620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66f778
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x718924]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004cb4ab
mov edi, eax
add esp, 4
test edi, edi
je 0x4af6bd
push 1
mov dword [ebp - 4], 0
call fcn.004c925f
add esp, 4
mov dword [edi + 4], eax
jmp 0x4af6bf
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov edi, dword [edi + 4]
mov ecx, edi
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 1
push eax
call fcn.0046ea60
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx ebx, ax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4af719
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
test eax, eax
je 0x4af719
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov word [esi + 0x40], bx
jne 0x4af736
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4af759
cmp byte [ebp + 0xc], 0
je 0x4af745
push esi
call fcn.004c9a78
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4af765
mov esi, str.ios_base::badbit_set
jmp 0x4af775
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x14]
push 1
push eax
call fcn.00494510
add esp, 8
lea ecx, [ebp - 0x28]
push eax
push esi
call fcn.00491670
push 0x71021c
lea eax, [ebp - 0x28]
push eax
call fcn.004e2005
int3
Function at 0x4b1cc0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66ad98
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x718924]
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 fs:[0x2c]
mov ecx, dword [0x72249c]
mov ebx, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x72192c]
cmp eax, dword [ecx + 4]
jg 0x4b1e79
cmp dword [0x718718], 0
jne 0x4b1e25
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
xor esi, esi
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
cmp eax, 1
jl 0x4b1dac
jne 0x4b1d4c
push 2
push 0x682370
jmp 0x4b1da1
xor esi, esi
mov edi, 0x112
lea eax, [edi + esi]
cdq
sub eax, edx
mov edx, dword [ebp - 0x2c]
sar eax, 1
lea ecx, [eax + eax*2]
sub edx, dword [ecx*4 + 0x686484]
jns 0x4b1d6e
mov edi, eax
jmp 0x4b1d74
test edx, edx
jle 0x4b1d7f
mov esi, eax
mov eax, edi
sub eax, esi
cmp eax, 1
jg 0x4b1d53
jmp 0x4b1da9
lea eax, [eax + eax*2]
mov edx, dword [eax*4 + 0x686480]
mov ecx, edx
lea esi, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b1d90
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0044e920
mov esi, dword [ebp - 0x18]
mov edx, dword [0x71871c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4b1df3
mov ecx, dword [0x718708]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4b1de9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4b1eaf
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov eax, dword [ebp - 0x28]
mov dword [0x718708], eax
mov eax, dword [ebp - 0x24]
mov dword [0x71870c], eax
mov eax, dword [ebp - 0x20]
mov dword [0x718710], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x718714], eax
mov eax, dword [ebp - 0x14]
mov dword [0x718718], esi
mov dword [0x71871c], eax
test esi, esi
je 0x4b1e47
mov eax, dword [ebx + 4]
push 0x718708
cmp eax, dword [ebx + 8]
je 0x4b1e3f
mov ecx, eax
call fcn.00451440
add dword [ebx + 4], 0x18
jmp 0x4b1e47
push eax
mov ecx, ebx
call fcn.004698b0
mov ecx, dword [ebx + 4]
mov eax, 0x2aaaaaab
sub ecx, dword [ebx]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
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.004cb998
mov esp, ebp
pop ebp
ret
push 0x72192c
call fcn.004cb872
add esp, 4
cmp dword [0x72192c], 0xffffffff
jne 0x4b1d0e
push 0x6730e0
call fcn.004cb72a
push 0x72192c
call fcn.004cb828
add esp, 8
jmp 0x4b1d0e
call fcn.004e6589
int3
Function at 0x4b4910
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x4b4931
lea eax, [eax - 1]
dec esi
cmp byte [eax], 0x3d
je 0x4b4925
mov dword [ebp + 0xc], esi
xor eax, eax
test esi, esi
je 0x4b49e8
push ebx
mov edx, 1
mov dword [ebp + 8], 2
lea ebx, [esi - 1]
sub edx, ecx
shr ebx, 2
push edi
lea edi, [ecx + 2]
mov dword [ebp - 4], edx
inc ebx
jmp 0x4b4960
movsx ecx, byte [edi - 1]
mov dh, byte [ecx + 0x6885a0]
movsx ecx, byte [edi - 2]
mov dl, byte [ecx + 0x6885a0]
mov cl, dh
sar cl, 4
and cl, 3
shl dl, 2
or dl, cl
mov ecx, dword [ebp + 0x10]
mov byte [eax + ecx], dl
inc eax
mov ecx, dword [ebp + 8]
cmp ecx, esi
jae 0x4b49d4
movsx ecx, byte [edi]
mov esi, dword [ebp + 0x10]
shl dh, 4
mov dl, byte [ecx + 0x6885a0]
mov cl, dl
sar cl, 2
and cl, 0xf
or cl, dh
mov byte [eax + esi], cl
inc eax
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
add ecx, edi
cmp ecx, esi
jae 0x4b49d1
movsx ecx, byte [edi + 1]
shl dl, 6
mov cl, byte [ecx + 0x6885a0]
and cl, 0x3f
or cl, dl
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], cl
inc eax
mov ecx, dword [ebp + 8]
add ecx, 4
add edi, 4
mov dword [ebp + 8], ecx
sub ebx, 1
jne 0x4b4960
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4b4c80
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x4b4d81
mov eax, dword [ebp + 8]
mov edx, 1
push ebx
mov ebx, dword [ebp + 0x10]
sub edx, eax
dec ecx
mov dword [ebp - 0x10], edx
push edi
lea edi, [eax + 1]
mov dword [ebp - 4], 1
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
inc ecx
mov dword [ebp - 0xc], ecx
movzx eax, byte [edi - 1]
mov ecx, dword [ebp + 0xc]
shr eax, 2
mov al, byte [eax + 0x688558]
mov byte [esi + ebx], al
lea eax, [esi + 2]
mov dl, byte [edi - 1]
and dl, 3
shl dl, 4
cmp dword [ebp - 4], ecx
jae 0x4b4d55
movzx ecx, byte [edi]
shr cl, 4
add cl, dl
movzx ecx, cl
movzx ecx, byte [ecx + 0x688558]
mov byte [esi + ebx + 1], cl
lea ecx, [eax + ebx]
mov dh, byte [edi]
inc eax
mov dword [ebp - 8], ecx
and dh, 0xf
mov ecx, dword [ebp - 0x10]
add ecx, edi
shl dh, 2
cmp ecx, dword [ebp + 0xc]
jae 0x4b4d40
mov dl, byte [edi + 1]
mov ebx, dword [ebp - 8]
mov cl, dl
shr cl, 6
add cl, dh
movzx ecx, cl
movzx ecx, byte [ecx + 0x688558]
mov byte [ebx], cl
mov ebx, dword [ebp + 0x10]
movzx ecx, dl
and ecx, 0x3f
mov cl, byte [ecx + 0x688558]
mov byte [eax + ebx], cl
jmp 0x4b4d6b
movzx ecx, dh
mov edx, dword [ebp - 8]
mov cl, byte [ecx + 0x688558]
mov byte [edx], cl
mov cl, 0x3d
mov byte [eax + ebx], cl
jmp 0x4b4d6b
movzx ecx, dl
mov cl, byte [ecx + 0x688558]
mov byte [esi + ebx + 1], cl
mov byte [eax + ebx], 0x3d
inc eax
mov byte [eax + ebx], 0x3d
add dword [ebp - 4], 3
lea esi, [eax + 1]
add edi, 3
sub dword [ebp - 0xc], 1
jne 0x4b4cc0
pop edi
pop ebx
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4b9640
Capabilities:
Decode data using base64 via dword translation table
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x10]
add eax, 3
shr eax, 2
lea eax, [eax + eax*2]
push eax
call fcn.004cba04
mov ecx, ebx
add esp, 4
mov esi, eax
cmp dword [ecx + 0x14], 0x10
jb 0x4b966c
mov ecx, dword [ecx]
mov ebx, dword [ebx + 0x10]
lea eax, [ebx - 1]
add eax, ecx
cmp byte [eax], 0x3d
jne 0x4b9689
lea esp, [esp]
lea eax, [eax - 1]
dec ebx
cmp byte [eax], 0x3d
je 0x4b9680
push edi
xor edi, edi
test ebx, ebx
je 0x4b9726
mov eax, 1
mov dword [ebp + 8], 2
sub eax, ecx
lea edx, [ecx + 2]
mov dword [ebp - 8], eax
lea eax, [ebx - 1]
shr eax, 2
inc eax
mov dword [ebp - 4], eax
movsx eax, byte [edx - 1]
mov ch, byte [eax + 0x688ae8]
movsx eax, byte [edx - 2]
mov cl, byte [eax + 0x688ae8]
mov al, ch
sar al, 4
and al, 3
shl cl, 2
or cl, al
mov eax, dword [ebp + 8]
mov byte [edi + esi], cl
inc edi
cmp eax, ebx
jae 0x4b9717
movsx eax, byte [edx]
shl ch, 4
mov cl, byte [eax + 0x688ae8]
mov al, cl
sar al, 2
and al, 0xf
or al, ch
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp - 8]
add eax, edx
cmp eax, ebx
jae 0x4b9714
movsx eax, byte [edx + 1]
shl cl, 6
mov al, byte [eax + 0x688ae8]
and al, 0x3f
or al, cl
mov byte [edi + esi], al
inc edi
mov eax, dword [ebp + 8]
add eax, 4
add edx, 4
sub dword [ebp - 4], 1
mov dword [ebp + 8], eax
jne 0x4b96b2
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4b972f
mov dword [eax], edi
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4b9752
lea eax, [ebp + 8]
cmp ecx, eax
je 0x4b9752
mov edx, dword [ecx]
mov eax, esi
xor esi, esi
mov dword [ecx], eax
test edx, edx
je 0x4b9752
push edx
call fcn.004cb4e9
add esp, 4
test edi, edi
pop edi
setne bl
test esi, esi
je 0x4b9765
push esi
call fcn.004cb4e9
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret