joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483fc0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [ecx + 0x1c]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x1c]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x1c]
mov dword [eax + 8], 0x98badcfe
mov edx, dword [ecx + 0x1c]
mov dword [edx + 0xc], 0x10325476
mov eax, dword [ecx + 0x1c]
mov dword [eax + 0x10], 0xc3d2e1f0
ret

Function at 0x485550
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [ecx + 0x1c]
mov dword [eax], 0x6a09e667
mov edx, dword [ecx + 0x1c]
mov dword [edx + 4], 0xbb67ae85
mov eax, dword [ecx + 0x1c]
mov dword [eax + 8], 0x3c6ef372
mov edx, dword [ecx + 0x1c]
mov dword [edx + 0xc], 0xa54ff53a
mov eax, dword [ecx + 0x1c]
mov dword [eax + 0x10], 0x510e527f
mov edx, dword [ecx + 0x1c]
mov dword [edx + 0x14], 0x9b05688c
mov eax, dword [ecx + 0x1c]
mov dword [eax + 0x18], 0x1f83d9ab
mov ecx, dword [ecx + 0x1c]
mov dword [ecx + 0x1c], 0x5be0cd19
ret

Function at 0x487700
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [ecx + 0x1c]
mov dword [eax], 0x67452301
mov edx, dword [ecx + 0x1c]
mov dword [edx + 4], 0xefcdab89
mov eax, dword [ecx + 0x1c]
mov dword [eax + 8], 0x98badcfe
mov ecx, dword [ecx + 0x1c]
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x488900
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 0xffffffffffffffff
push 0x4bff00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], vtable.CryptoPP::RandomNumberGenerator.0
mov dword [esp + 0x54], 0
push 0xf0000000
push 1
push 0
push 0
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.CryptoPP::NonblockingRng.0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x48899e
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov eax, str.NonblockingRng:_CryptAcquireContext_failed
mov dword [esp + 0x20], 0xf
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488964
sub eax, edx
push eax
push str.NonblockingRng:_CryptAcquireContext_failed
lea ecx, [esp + 0x10]
call fcn.00406650
mov byte [esp + 0x54], 1
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.00488840
push 0x4fbeec
lea edx, [esp + 0x28]
push edx
call fcn.0049e394
mov dword [esp + 0x54], 0xffffffff
mov ecx, dword [esp + 0x4c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x54
ret
Function at 0x488a20
Capabilities:
Generate random numbers via winapi

Disassembly:
mov eax, dword fs:[0]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push 0x4bff38
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x44
push eax
mov eax, dword [ecx + 4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x488aa5
mov dword [esp + 0x14], eax
mov byte [esp + 4], al
mov eax, str.NonblockingRng:_CryptGenRandom_failed
mov dword [esp + 0x18], 0xf
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x488a68
sub eax, edx
push eax
push str.NonblockingRng:_CryptGenRandom_failed
lea ecx, [esp + 8]
call fcn.00406650
mov dword [esp + 0x4c], 0
lea ecx, [esp]
push ecx
lea ecx, [esp + 0x20]
call fcn.00488840
push 0x4fbeec
lea edx, [esp + 0x20]
push edx
call fcn.0049e394
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
add esp, 0x50
ret 8

Function at 0x488ac0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bff60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.00488900
mov dword [esp + 0x24], 0
mov edi, dword [esp + 0x30]
push edi
mov dword [esp + 0x18], edi
call fcn.0048ee0e
mov esi, eax
add esp, 4
mov dword [esp + 0x18], esi
mov byte [esp + 0x24], 1
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.00488a20
mov eax, dword [ebp + 4]
lea ecx, [ebp + 4]
push edi
push esi
call dword [eax + 4]
mov byte [esp + 0x24], 0
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push esi
rep stosb byte es:[edi], al
call fcn.0049e31e
add esp, 4
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.004887c0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x488e60
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, eax
push esi
mov esi, dword [esp + 0x10]
or edx, ecx
or edx, esi
test dl, 3
jne 0x488e90
mov edx, esi
shr edx, 2
test edx, edx
jbe 0x488e9f
sub ecx, eax
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x488e83
pop esi
ret
test esi, esi
jbe 0x488e9f
sub ecx, eax
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x488e96
pop esi
ret
Function at 0x48c770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x10
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0048bb20
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, esi
call fcn.0048beb0
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4dffe4
mov dword [esp + 0x1c], 0xffffffff
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x48c7f8
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
push edi
call fcn.004070a0
push edi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0x18

Function at 0x48c830
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x10
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0048bb20
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, esi
call fcn.0048beb0
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4e0070
mov dword [esp + 0x1c], 0xffffffff
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x48c8b8
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
push edi
call fcn.004070a0
push edi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0x18

Function at 0x48c8f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x10
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0048bb20
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, esi
call fcn.0048c830
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4e00c0
mov dword [esp + 0x1c], 0xffffffff
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x48c978
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
push edi
call fcn.004070a0
push edi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0x18
Function at 0x48c9b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0418
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x10
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0048bb20
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, esi
call fcn.0048c830
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4e012c
mov dword [esp + 0x1c], 0xffffffff
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x48ca38
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
push edi
call fcn.004070a0
push edi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0x18

Function at 0x48caf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x10
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0048bb20
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, esi
call fcn.0048c080
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4e0194
mov dword [esp + 0x1c], 0xffffffff
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x48cb78
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
push edi
call fcn.004070a0
push edi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0x18

Function at 0x48cbb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c0468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x1c], ebx
sub esp, 0x10
lea eax, [esp + 0x3c]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.0048bb20
mov byte [esp + 0x2c], bl
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
mov ecx, esi
call fcn.0048c080
mov byte [esp + 0x1c], 2
mov dword [esi], 0x4e01c4
mov dword [esp + 0x1c], 0xffffffff
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x48cc38
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push edx
push edi
call fcn.004070a0
push edi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret 0x18
Function at 0x48cdd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c049f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov esi, 1
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.00410920
mov edi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.0048bb20
mov dword [esp + 0xc], esi
mov byte [esp + 0x28], bl
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x48ce52
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
push esi
call fcn.004070a0
push esi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x48ce80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c049f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov esi, 1
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.00410920
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.00410920
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.0048bb20
mov dword [esp + 0xc], esi
mov byte [esp + 0x28], bl
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x48cf10
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
call fcn.004070a0
push esi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x48cf30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c049f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov esi, 1
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.00410920
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.00410920
mov edx, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x14]
call fcn.00410920
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
call fcn.00410920
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x14]
call fcn.00410920
mov edx, dword [esp + 0x48]
push edx
lea ecx, [esp + 0x14]
call fcn.00410920
mov edi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
mov ecx, edi
call fcn.0048bb20
mov dword [esp + 0xc], esi
mov byte [esp + 0x28], bl
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x48cff8
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push eax
push esi
call fcn.004070a0
push esi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x48d020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c049f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push esi
push edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov esi, 1
mov dword [esp + 0x28], esi
mov eax, dword [esp + 0x34]
push eax
lea ecx, [esp + 0x14]
call fcn.00410920
mov ecx, dword [esp + 0x38]
push ecx
lea ecx, [esp + 0x14]
call fcn.00410920
mov edx, dword [esp + 0x3c]
push edx
lea ecx, [esp + 0x14]
call fcn.00410920
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x14]
call fcn.00410920
mov ecx, dword [esp + 0x44]
push ecx
lea ecx, [esp + 0x14]
call fcn.00410920
mov edx, dword [esp + 0x48]
push edx
lea ecx, [esp + 0x14]
call fcn.00410920
mov eax, dword [esp + 0x4c]
push eax
lea ecx, [esp + 0x14]
call fcn.00410920
mov ecx, dword [esp + 0x50]
push ecx
lea ecx, [esp + 0x14]
call fcn.00410920
mov edi, dword [esp + 0x30]
lea edx, [esp + 0x10]
push edx
mov ecx, edi
call fcn.0048bb20
mov dword [esp + 0xc], esi
mov byte [esp + 0x28], bl
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x48d104
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
push edx
push esi
call fcn.004070a0
push esi
call fcn.0049db86
add esp, 0x14
mov ecx, dword [esp + 0x20]
mov eax, edi
pop edi
pop esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x48d630
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c060e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x174
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 0x20]
push 0
push 0xa
push eax
lea ecx, [esp + 0xfc]
push ecx
call fcn.0048ba40
mov edi, eax
mov dword [esp + 0x19c], 0
mov edx, dword [esi + 0x1c]
push 0
push 0xa
push edx
lea eax, [esp + 0x128]
push eax
call fcn.0048ba40
mov ebp, eax
mov byte [esp + 0x1ac], 1
mov ecx, dword [esi + 0x18]
push 0
push 0xa
push ecx
lea edx, [esp + 0x90]
push edx
call fcn.0048ba40
mov ebx, eax
mov byte [esp + 0x1bc], 2
mov eax, dword [esi + 0x14]
push 0
push 0xa
push eax
lea ecx, [esp + 0xf4]
push ecx
call fcn.0048ba40
add esp, 0x40
mov dword [esp + 0x1c], eax
mov byte [esp + 0x18c], 3
mov edx, dword [esi + 0x10]
push 0
push 0xa
push edx
lea eax, [esp + 0x134]
push eax
call fcn.0048ba40
mov dword [esp + 0x28], eax
mov byte [esp + 0x19c], 4
mov ecx, dword [esi + 0xc]
push 0
push 0xa
push ecx
lea edx, [esp + 0x9c]
push edx
call fcn.0048ba40
mov dword [esp + 0x30], eax
mov byte [esp + 0x1ac], 5
mov eax, dword [esi + 8]
push 0
push 0xa
push eax
lea ecx, [esp + 0xc8]
push ecx
call fcn.0048ba40
mov dword [esp + 0x44], eax
mov byte [esp + 0x1bc], 6
mov edx, dword [esi + 4]
push 0
push 0xa
push edx
lea eax, [esp + 0x110]
push eax
call fcn.0048b9e0
add esp, 0x40
mov byte [esp + 0x18c], 7
mov edx, dword [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x30], esp
push edi
push ebp
push ebx
push edx
mov edx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x3c]
push edx
push eax
push ecx
call fcn.0048d020
add esp, 0x24
mov byte [esp + 0x19c], 7
push 0x35
push str.u:p4clients_rel_beta_thirdpartycode_bslBSLTime.h
lea ecx, [esp + 0x15c]
call fcn.0048c770
mov bl, 9
mov byte [esp + 0x18c], bl
push eax
lea ecx, [esp + 0x28]
call fcn.0048bfa0
mov byte [esp + 0x18c], 0xa
mov dword [esp + 0x24], 0x4dff8c
mov byte [esp + 0x18c], 0xb
mov dword [esp + 0x24], 0x4dffe4
mov byte [esp + 0x18c], bl
push 0x4fc8e4
lea eax, [esp + 0x28]
push eax
call fcn.0049e394
int3
Function at 0x49d51e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 4], 0
push edi
xor eax, eax
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call fcn.004a42ac
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x49d550
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x49d559
xor eax, eax
inc eax
leave
ret
sub al, 0x32
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
leave
ret

Function at 0x49f7c7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004a43f7
xor esi, esi
inc esi
cmp dword [0x50b724], esi
pop ecx
jne 0x49f7ef
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x50b720], esi
mov byte [0x50b71c], al
jne 0x49f855
mov ecx, dword [0x50cfa0]
test ecx, ecx
je 0x49f836
mov eax, dword [0x50cf9c]
sub eax, 4
cmp eax, ecx
jmp 0x49f82f
mov eax, dword [eax]
test eax, eax
je 0x49f821
call eax
mov eax, dword [0x50cf9c]
sub eax, 4
cmp eax, dword [0x50cfa0]
mov dword [0x50cf9c], eax
jae 0x49f819
mov eax, 0x4ff16c
mov esi, 0x4ff178
cmp eax, esi
mov edi, eax
jae 0x49f855
mov eax, dword [edi]
test eax, eax
je 0x49f84e
call eax
add edi, 4
cmp edi, esi
jb 0x49f846
mov eax, 0x4ff17c
mov esi, 0x4ff184
cmp eax, esi
mov edi, eax
jae 0x49f874
mov eax, dword [edi]
test eax, eax
je 0x49f86d
call eax
add edi, 4
cmp edi, esi
jb 0x49f865
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x49f885
push 8
call fcn.004a4363
jmp 0x49f897
push dword [ebp + 8]
mov dword [0x50b724], 1
call fcn.0049f720
pop ecx
pop ebp
ret

Function at 0x4a00d7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x509334]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4a0152
push ebx
call fcn.004a00a0
test eax, eax
pop ecx
jne 0x4a0124
call fcn.004a0732
mov dword [eax], 0xf
call fcn.004a0729
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0049e993
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4a0164
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4a0114
inc eax
cmp eax, 0x104
ja 0x4a0114
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4a019c
cmp eax, dword [ebp + 0x10]
jg 0x4a017f
mov eax, dword [ebp + 0x10]
push eax
call fcn.0049ebf4
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4a01b1
call fcn.004a0729
mov dword [eax], 0xc
jmp 0x4a0114
cmp eax, dword [ebp + 0x10]
jle 0x4a01b1
call fcn.004a0729
mov dword [eax], 0x22
jmp 0x4a0114
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.004a70c0
pop ecx
pop ecx
jmp 0x4a0116
Function at 0x4a0bc5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4a0bf2
test byte [esp + 8], 0x80
je 0x4a0be0
and eax, 0xfffffffe
jmp 0x4a0be3
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4a0c03
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a073b
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a0c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a073b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a0c49
test byte [esp + 8], 2
je 0x4a0c49
call fcn.004a0729
mov dword [eax], 0xd
call fcn.004a0732
mov dword [eax], 5
jmp 0x4a0c22
xor eax, eax
ret

Function at 0x4a6e7e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x50b91c], ebx
push esi
push edi
jne 0x4a6efe
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4a6f39
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e1644
push edi
call esi
test eax, eax
mov dword [0x50b91c], eax
je 0x4a6f39
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x50b920], eax
call esi
cmp dword [0x50b6e4], 2
mov dword [0x50b924], eax
jne 0x4a6efe
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x50b92c], eax
je 0x4a6efe
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x50b928], eax
mov eax, dword [0x50b928]
test eax, eax
je 0x4a6f43
call eax
test eax, eax
je 0x4a6f2a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x50b92c]
test eax, eax
je 0x4a6f2a
test byte [ebp - 8], 1
jne 0x4a6f43
cmp dword [0x50b6f0], 4
jb 0x4a6f3d
or byte [ebp + 0x12], 0x20
jmp 0x4a6f62
xor eax, eax
jmp 0x4a6f72
or byte [ebp + 0x12], 4
jmp 0x4a6f62
mov eax, dword [0x50b920]
test eax, eax
je 0x4a6f62
call eax
mov ebx, eax
test ebx, ebx
je 0x4a6f62
mov eax, dword [0x50b924]
test eax, eax
je 0x4a6f62
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x50b91c]
pop edi
pop esi
pop ebx
leave
ret