joyce8/EMBER2024-capa huggingface dataset:
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 0x686488
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 0x4a2000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa004
call fcn.004cba10
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov edx, dword [esi + 0x10]
test edx, edx
jne 0x4a2039
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cb998
mov esp, ebp
pop ebp
ret 4
lea ecx, [edi + 0x1c]
cmp ecx, esi
je 0x4a2051
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4a204a
mov eax, dword [esi]
push edx
push eax
call fcn.0044e920
push 0xa000
lea eax, [ebp - 0xa004]
push 0
push eax
call fcn.004e30c0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4a206f
mov esi, dword [esi]
push esi
push 0x5000
lea eax, [ebp - 0xa004]
push eax
push str.feature
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push eax
lea eax, [ebp - 0xa004]
mov ecx, edi
push eax
call fcn.004a2410
mov ecx, dword [ebp - 4]
mov eax, 1
mov dword [edi + 0x18], 1
xor ecx, ebp
pop edi
pop esi
call fcn.004cb998
mov esp, ebp
pop ebp
ret 4

Function at 0x4a2d20
Capabilities:
Hash data with md5

Disassembly:
mov byte [ecx + 0x68], 0
mov eax, ecx
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
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 0x686490
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 0x683a80
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 0x4a59c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66eef0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push 1
push eax
mov dword [ebp - 0x5c], esi
call fcn.004b06b0
push str.cfgs_setup.cfg
push eax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
call fcn.004481e0
add esp, 0x14
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x4a5a52
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a5a48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5b93
push edx
push ecx
call fcn.004cb4db
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push dword [ebp - 0x30]
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x28]
push eax
mov byte [ebp - 4], 3
call fcn.0044e920
push 0x208
mov byte [ebp - 4], 4
call fcn.004cba04
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov edi, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0x104
push edi
push 0x674944
push str.BuildId
push str.Info
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, edi
mov dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a5ad3
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.0044e920
push edi
call fcn.004cb4e9
mov edx, dword [ebp - 0x14]
add esp, 4
cmp edx, 8
jb 0x4a5b2a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a5b20
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5b98
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x4a5b74
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4a5b6a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a5b98
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov eax, esi
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 4
call fcn.004e6589
call fcn.004e6589
int3
Function at 0x4aad40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x718924]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
xor eax, eax
push edi
mov dword [ebp - 0xc], 0
lea edi, [ecx + 2]
mov dword [ebp - 8], 7
mov word [ebp - 0x1c], ax
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aad80
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c]
call fcn.0044e920
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20219
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4aae27
push dword [ebp - 0x20]
call edi
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
push 0x20119
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4aae27
push dword [ebp - 0x20]
call edi
mov esi, 0x80004005
mov edx, dword [ebp - 8]
cmp edx, 8
jb 0x4aae75
mov ecx, dword [ebp - 0x1c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4aae6b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4aae87
jmp 0x4aae6b
mov eax, dword [ebp + 0x18]
add eax, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
push 0
push dword [ebp - 0x30]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x20]
mov esi, eax
call edi
test esi, esi
jne 0x4aadf4
mov eax, dword [ebp - 0x24]
cmp eax, 1
je 0x4aae67
cmp eax, 2
jne 0x4aadf4
xor esi, esi
jmp 0x4aadf9
push edx
push ecx
call fcn.004cb4db
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004cb998
mov esp, ebp
pop ebp
ret
call fcn.004e6589
int3

Function at 0x4ab050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4ab084
xor al, al
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 0x14]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x4ab094
mov ecx, dword [esi]
mov esi, ecx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
sete al
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 0x67e248
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 0x687c60
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 0x710284
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 0x6823d0
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 + 0x6864e4]
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 + 0x6864e0]
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 0x4b2380
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x4b2552
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x4b2552
push edi
mov ecx, esi
call fcn.004b2900
mov edi, eax
cmp edi, 0xffffffff
je 0x4b2549
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4b2535
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4b252b
test eax, eax
je 0x4b252b
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4b2436
call ebx
cmp eax, 0x7a
jne 0x4b252b
push dword [ebp - 4]
call fcn.004cba04
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4b2522
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4b2522
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4b2522
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4b24a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4b252b
push dword [ebp - 4]
call fcn.004cba04
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4b250f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4b250f
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4b250f
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.004cb4e9
push dword [ebp - 8]
call fcn.004cb4e9
add esp, 8
test bl, bl
jne 0x4b2535
jmp 0x4b252b
push ebx
call fcn.004cb4e9
push dword [ebp - 8]
call fcn.004cb4e9
add esp, 8
jmp 0x4b252b
push ebx
call fcn.004cb4e9
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x4b2549
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret