joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417b57
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0x417b82
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0x417b82
cmp al, 0xc0
je 0x417b82
cmp al, 0xcc
je 0x417b82
add edx, 2
cmp dx, cx
jb 0x417b67
pop esi
ret

Function at 0x41a5b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, edx
mov edx, dword [ebp + 0xc]
lea esi, [edi + 4]
push esi
call fcn.0041a551
mov edx, dword [ebp + 8]
pop ecx
push 4
sub edx, edi
pop ecx
mov al, byte [edx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x41a5d3
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x41a5e1
pop edi
pop esi
pop ebp
ret

Function at 0x41c6be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x41c6d8
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x41c6cb
pop esi
pop ebp
ret

Function at 0x41c6db
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, ecx
or eax, edx
push esi
mov esi, dword [ebp + 8]
or eax, esi
test al, 3
jne 0x41c6f8
shr esi, 2
push esi
call fcn.0041c6be
pop ecx
jmp 0x41c709
test esi, esi
je 0x41c709
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x41c6fe
pop esi
pop ebp
ret

Function at 0x41c70c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, edx
mov ebx, ecx
test edi, edi
jle 0x41c732
sub ebx, esi
movzx edx, byte [ebx + esi]
movzx ecx, byte [esi]
xor edx, ecx
or eax, edx
inc esi
sub edi, 1
jne 0x41c721
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41c737
Capabilities:
Encrypt data using aes

Disassembly:
xor eax, eax
mov ecx, 0x458098
push 0x20
pop edx
and eax, dword [ecx]
add ecx, 0x20
sub edx, 1
jne 0x41c741
cmp ecx, str.SHA256wECDSA
jl 0x41c73e
ret
Function at 0x4244c7
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x4245c0
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0xc]
jne 0x4244e9
test esi, esi
jne 0x4245c0
cmp edx, 3
je 0x42451f
cmp edx, 4
je 0x42451f
cmp edx, 5
je 0x42451f
cmp edx, 6
je 0x42451f
cmp edx, 7
je 0x42451f
cmp edx, 8
je 0x42451f
cmp edx, 0xa
je 0x42451f
cmp edx, 0xb
je 0x42451f
cmp edx, 0xc
je 0x42451f
cmp edx, 0xd
jne 0x4245c0
xor ebx, ebx
mov byte [edi + 0x114], dl
push ecx
mov byte [edi + 0x115], bl
call fcn.004244aa
mov dword [ebp - 4], eax
pop ecx
test eax, eax
jne 0x4245c5
cmp byte [edi + 0x114], 6
lea ecx, [edi + 0x70]
jne 0x4245c0
cmp esi, 0x40
ja 0x424564
cmp dword [ebp + 8], ebx
je 0x42458b
push esi
push dword [ebp + 8]
push ecx
call fcn.0042c810
add esp, 0xc
jmp 0x424588
mov edx, dword [ebp + 8]
mov ecx, edi
push esi
call fcn.00429108
pop ecx
test eax, eax
jne 0x4245c5
lea edx, [edi + 0x70]
mov ecx, edi
call fcn.004291d9
mov dword [ebp - 4], eax
test eax, eax
jne 0x4245c5
push 0x20
pop esi
lea ecx, [edi + 0x70]
cmp esi, 0x40
jae 0x4245a3
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push ebx
push eax
call fcn.0042c2a0
add esp, 0xc
mov al, byte [ebx + edi + 0x70]
xor al, 0x5c
mov byte [edi + ebx + 0xb0], al
xor byte [ebx + edi + 0x70], 0x36
inc ebx
cmp ebx, 0x40
jb 0x4245a3
mov eax, dword [ebp - 4]
jmp 0x4245c5
mov eax, 0xffffff53
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x428a57
Capabilities:
Hash data using sha256

Disassembly:
mov edx, ecx
test edx, edx
jne 0x428a0b
mov eax, 0xffffff53
ret
push edi
push 8
xor eax, eax
mov edi, edx
pop ecx
rep stosd dword es:[edi], eax
mov dword [edx], 0x6a09e667
mov dword [edx + 4], 0xbb67ae85
mov dword [edx + 8], 0x3c6ef372
mov dword [edx + 0xc], 0xa54ff53a
mov dword [edx + 0x10], 0x510e527f
mov dword [edx + 0x14], 0x9b05688c
mov dword [edx + 0x18], 0x1f83d9ab
mov dword [edx + 0x1c], 0x5be0cd19
mov dword [edx + 0x60], eax
mov dword [edx + 0x64], eax
mov dword [edx + 0x68], eax
pop edi
ret
test ecx, ecx
jne 0x428a61
mov eax, 0xffffff53
ret
mov dword [ecx + 0x6c], edx
jmp 0x4289ff
Function at 0x42912c
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x42913a
mov eax, 0xffffff53
pop esi
ret
mov eax, dword [esi + 0x60]
push ebx
push edi
lea edi, [esi + 0x20]
mov byte [edi + eax], 0x80
inc dword [esi + 0x60]
mov ecx, dword [esi + 0x60]
push 0x38
pop ebx
cmp ecx, ebx
jbe 0x429187
push 0x40
pop eax
sub eax, ecx
push eax
lea eax, [ecx + edi]
push 0
push eax
call fcn.0042c2a0
push 0x40
pop eax
push eax
mov edx, edi
mov dword [esi + 0x60], eax
mov ecx, edi
call fcn.004289d2
add esp, 0x10
mov edx, edi
mov ecx, esi
call fcn.00428a69
test eax, eax
jne 0x4291d5
and dword [esi + 0x60], eax
mov eax, dword [esi + 0x60]
sub ebx, eax
push ebx
add eax, edi
push 0
push eax
call fcn.0042c2a0
mov ecx, dword [esi + 0x64]
mov edx, edi
mov eax, dword [esi + 0x68]
shr ecx, 0x1d
push 0x40
lea eax, [ecx + eax*8]
mov ecx, edi
mov dword [esi + 0x68], eax
mov eax, dword [esi + 0x64]
shl eax, 3
mov dword [esi + 0x64], eax
call fcn.004289d2
mov eax, dword [esi + 0x68]
add esp, 0x10
mov dword [edi + 0x38], eax
mov edx, edi
mov eax, dword [esi + 0x64]
mov ecx, esi
mov dword [edi + 0x3c], eax
pop edi
pop ebx
pop esi
jmp fcn.00428a69
pop edi
pop ebx
pop esi
ret

Function at 0x4291d9
Capabilities:
Hash data using sha256

Disassembly:
push ebx
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x42920e
test edi, edi
je 0x42920e
call fcn.0042912c
test eax, eax
jne 0x429213
push esi
push 0x20
mov edx, ebx
mov ecx, ebx
call fcn.004289d2
pop ecx
push 8
pop ecx
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
pop esi
pop edi
mov ecx, ebx
pop ebx
jmp 0x4289ff
mov eax, 0xffffff53
pop edi
pop ebx
ret

Function at 0x4292c8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, edx
mov esi, ecx
neg eax
mov dword [ebp - 8], esi
mov dword [ebp - 4], eax
test esi, esi
je 0x429365
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x429365
mov edx, dword [esi]
mov ecx, ebx
inc edx
call fcn.00424c15
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x42936a
xor edx, edx
push edi
cmp dword [esi], edx
jle 0x42932a
mov edi, dword [ebx + 0xc]
mov ecx, esi
call fcn.004292b2
mov ecx, ebx
mov esi, eax
call fcn.004292b2
mov ecx, dword [ebp - 4]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
mov esi, dword [ebp - 8]
cmp edx, dword [esi]
jl 0x429303
jmp 0x429350
mov ecx, dword [ebp - 4]
jmp 0x429350
mov edi, dword [ebx + 0xc]
mov ecx, esi
call fcn.004292b2
mov ecx, ebx
mov esi, eax
call fcn.004292b2
mov ecx, dword [ebp - 4]
xor esi, eax
and esi, ecx
xor dword [edi + edx*4], esi
inc edx
mov esi, dword [ebp - 8]
cmp edx, dword [ebx]
jl 0x42932f
mov eax, dword [ebp - 8]
pop edi
mov eax, dword [eax]
xor eax, dword [ebx]
and eax, ecx
xor dword [ebx], eax
mov eax, dword [ebp - 0xc]
jmp 0x42936a
mov eax, 0xffffff53
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x43b2dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043b15b

Function at 0x43ee7f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043e7ed
Function at 0x43ee8a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043ea28
Function at 0x4014eb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x41d00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x24c]
push 0x3c
xor ebx, ebx
push ebx
push eax
call fcn.004054a0
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x24c], 0x3c
push ebx
push eax
mov dword [ebp - 0x248], 0x40
mov dword [ebp - 0x244], ebx
mov dword [ebp - 0x240], 0x41524c
mov dword [ebp - 0x23c], str.icacls.exe
call fcn.004054a0
push esi
push str._s__t__setintegritylevel_low
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00402129
add esp, 0x28
mov dword [ebp - 0x234], 0x415210
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, 1
jne 0x4015f1
push 0xffffffffffffffff
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4015e5
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], ebx
push eax
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp eax, 1
jne 0x4015e5
cmp dword [ebp - 0x210], ebx
jne 0x4015e5
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x4015f3
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004040c9
mov esp, ebp
pop ebp
ret
Function at 0x40225f
Capabilities:
Set file attributes

Disassembly:
push 0x28
mov eax, 0x414af9
call fcn.00404100
mov eax, dword [ebp + 8]
test eax, eax
je 0x40242c
xor ebx, ebx
cmp word [eax], bx
je 0x40242c
push eax
lea ecx, [ebp + 8]
call fcn.00401135
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
mov eax, dword [eax - 0xc]
dec eax
push eax
call fcn.00402832
cmp ax, 0x5c
jne 0x4022bc
mov eax, dword [ebp + 8]
lea ecx, [ebp + 8]
mov esi, dword [eax - 0xc]
dec esi
push esi
call fcn.00401acc
push esi
lea ecx, [ebp + 8]
call fcn.00401de7
call fcn.00401931
push eax
lea ecx, [ebp - 0x10]
call fcn.004010ab
mov byte [ebp - 4], 1
call fcn.00401931
push eax
lea ecx, [ebp - 0x14]
call fcn.004010ab
push dword [ebp + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 2
push str._sdrmLicense_
push eax
call fcn.0040183c
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push str._sdrmActionTokenTemplateBackup_
push eax
call fcn.0040183c
mov esi, dword [ebp - 0x10]
mov ebx, dword [sym.imp.QQLiveBase.dll_int___cdecl_base::qqlive_base_path_util::CreateAllDirectory_wchar_t_const__]
push esi
call ebx
mov edi, dword [ebp - 0x14]
push edi
call ebx
add esp, 0x20
cmp dword [section..data], 0
je 0x402336
push 0x41d998
call fcn.00402856
pop ecx
test eax, eax
je 0x40234d
and dword [section..data], 0
cmp dword [0x41d99c], 6
sbb eax, eax
inc eax
test eax, eax
je 0x40234d
push dword [ebp + 8]
call fcn.004014eb
pop ecx
push 6
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x34]
push eax
push str.S_1_1_0
call fcn.00403132
pop ecx
pop ecx
test al, al
je 0x402411
push str.db0.storage
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004011ef
push str.drmconfig.ini
lea eax, [ebp + 8]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004011ef
push str.drmcacheinfo.ini
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004011ef
mov ebx, dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
lea eax, [ebp - 0x34]
add esp, 0x24
push eax
push 4
push dword [ebp - 0x20]
call ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp - 0x1c]
call ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp - 0x18]
call ebx
push dword [ebp - 0x24]
call fcn.00409463
push 0x14
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.004054a0
mov ecx, dword [ebp - 0x18]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.00401bf4
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401bf4
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.00401bf4
lea ecx, [edi - 0x10]
call fcn.00401bf4
lea ecx, [esi - 0x10]
call fcn.00401bf4
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401bf4
call fcn.004040da
ret
Function at 0x4028d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
xor esi, esi
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x402956
push edi
push ebx
call fcn.00403d12
pop ecx
mov edi, eax
push edi
push ebx
push dword [ebp - 4]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40294a
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
push 0x415214
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40294a
cmp dword [ebp - 8], esi
je 0x40294a
mov ecx, dword [ebp - 0xc]
inc esi
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
test edi, edi
je 0x402955
push edi
call fcn.00403d1b
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40298a
Capabilities:
Get common file path

Disassembly:
push 0x214
mov eax, 0x414bc3
call fcn.00404134
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.00401931
push eax
mov ecx, esi
call fcn.004010ab
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x21c], 1
call fcn.004054a0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00401e12
push esi
call fcn.00402c7c
pop ecx
mov eax, esi
call fcn.004040ef
ret
Function at 0x402ac7
Capabilities:
Read .ini file

Disassembly:
push 8
mov eax, 0x414c2e
call fcn.00404100
cmp byte [0x41d994], 0
je 0x402aed
xor eax, eax
cmp dword [0x41d990], 1
sete al
jmp 0x402bd6
call fcn.00401931
push eax
lea ecx, [ebp - 0x10]
call fcn.004010ab
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
mov esi, 0x104
push esi
push esi
call fcn.00401acc
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
or ebx, 0xffffffff
lea ecx, [ebp - 0x10]
push ebx
call fcn.00402ee1
push 0x5c
push dword [ebp - 0x10]
call fcn.00405cc1
pop ecx
pop ecx
test eax, eax
jne 0x402b37
mov eax, ebx
jmp 0x402b3c
sub eax, dword [ebp - 0x10]
sar eax, 1
inc eax
lea ecx, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402bdc
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0040119f
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00401bf4
mov edi, dword [ebp - 0x10]
add edi, 0xfffffff0
push edi
call fcn.0040162a
add eax, 0x10
mov dword [ebp - 0x14], eax
mov dword [esp], str.qqlive.ini
lea ecx, [ebp - 0x14]
push esi
mov byte [ebp - 4], 2
call fcn.00401acc
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea ecx, [ebp - 0x14]
call fcn.00402ee1
mov esi, dword [ebp - 0x14]
push esi
push ebx
push str.PackType
push str.Install
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ebx, ebx
mov dword [0x41d990], eax
cmp eax, 1
mov byte [0x41d994], 1
lea ecx, [esi - 0x10]
sete bl
call fcn.00401bf4
mov ecx, edi
call fcn.00401bf4
mov eax, ebx
call fcn.004040da
ret
Function at 0x402530
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x4026cd
mov esi, dword [ebp + 8]
test esi, esi
je 0x4026cd
mov dword [esi + 0xf0], 0xa
mov ecx, dword [edi]
mov eax, ecx
rol ecx, 8
and ecx, 0xff00ff
ror eax, 8
and eax, 0xff00ff00
or eax, ecx
mov dword [esi], eax
lea eax, [esi + 4]
mov edx, dword [edi + 4]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [eax], ecx
mov edx, dword [edi + 8]
mov ecx, edx
ror ecx, 8
and ecx, 0xff00ff00
rol edx, 8
and edx, 0xff00ff
or ecx, edx
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0xc]
mov edi, 0x5fa714
push ebx
mov ebx, ecx
rol ecx, 8
and ecx, 0xff00ff
ror ebx, 8
and ebx, 0xff00ff00
or ebx, ecx
mov ecx, ebx
mov dword [esi + 0xc], ebx
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + 0x5fbc40]
mov ecx, ebx
shr ecx, 8
xor edx, 0x1000000
and ecx, 0xff
and edx, 0xff000000
mov ecx, dword [ecx*4 + 0x5fb840]
and ecx, 0xff0000
xor edx, ecx
mov ecx, ebx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x5fc040]
xor edx, ecx
movzx ecx, bl
mov ecx, dword [ecx*4 + 0x5fc440]
and ecx, 0xff00
xor edx, ecx
mov ecx, dword [eax]
xor edx, dword [esi]
xor ecx, edx
mov dword [esi + 0x10], edx
mov edx, dword [esi + 8]
xor edx, ecx
mov dword [esi + 0x14], ecx
mov ecx, ebx
mov dword [esi + 0x18], edx
xor ecx, edx
mov dword [esi + 0x1c], ecx
pop ebx
mov edi, edi
mov edx, dword [eax + 0x18]
lea eax, [eax + 0x10]
mov ecx, edx
shr ecx, 8
and ecx, 0xff
mov esi, dword [ecx*4 + 0x5fb840]
mov ecx, edx
shr ecx, 0x10
and esi, 0xff0000
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5fbc40]
and ecx, 0xff000000
xor esi, ecx
mov ecx, edx
shr ecx, 0x18
movzx ecx, byte [ecx*4 + 0x5fc040]
xor esi, ecx
movzx ecx, dl
mov ecx, dword [ecx*4 + 0x5fc440]
and ecx, 0xff00
xor esi, ecx
xor esi, dword [eax - 4]
xor esi, dword [edi]
add edi, 4
mov dword [eax + 0xc], esi
mov ecx, dword [eax]
xor ecx, esi
mov dword [eax + 0x10], ecx
mov edx, dword [eax + 4]
xor edx, ecx
mov dword [eax + 0x14], edx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
cmp edi, 0x5fa738
jne 0x402640
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
Function at 0x4026e0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.00402530
add esp, 4
test eax, eax
js 0x4028cc
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [eax + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x402754
lea esi, [eax + 8]
add eax, 8
lea esi, [esi + edi*4]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x402714
mov ebx, dword [ebp + 8]
mov edi, 1
cmp dword [ebx + 0xf0], edi
jle 0x4028c7
lea esi, [ebx + 2]
jmp 0x402770
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x5fc040]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x5fb440]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fac40]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fa840]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fb040]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x5fc040]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x5fb440]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fac40]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fb040]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fa840]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x5fc040]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x5fb440]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fac40]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fb040]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fa840]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x5fc040]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x5fb440]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fac40]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fb040]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5fc040]
xor ecx, dword [eax*4 + 0x5fa840]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebx + 0xf0]
jl 0x402770
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x403990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac77a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x627490]
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, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.00592208
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x403a36
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00570b69
push 0x621ae4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.00575ea5
push edi
push esi
call fcn.0059249e
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.00570ab6
mov esp, ebp
pop ebp
ret 4

Function at 0x403fd0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ac808
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x627490]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.004047d0
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00403f00
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x404041
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.00570b69
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40406a
push dword [esp + 0xc]
call fcn.00448bd1
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc