joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ef2e
Capabilities:
Check for time delay via gettickcount
Delete file
Move file

Disassembly:
push 0x34
mov eax, 0x5b5f75
call fcn.005718de
cmp dword [0x639d08], 0
je 0x41f0c5
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
sub eax, dword [0x63a070]
cmp eax, 0x927c0
jb 0x41f0c5
mov edi, 0x400000
cmp dword [0x639cf8], edi
jg 0x41f0c5
push 0x800000
push 0x639cf8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov ebx, eax
cmp ebx, edi
je 0x41efb1
test ebx, ebx
je 0x41efb1
cmp ebx, edi
jle 0x41ef99
push 0xff800000
jmp 0x41f0ba
lea eax, [ebx - 1]
cmp eax, 0x3ffffe
ja 0x41f0c5
push 0xffc00000
jmp 0x41f0ba
call esi
cmp dword [0x630b3c], 0xffffffff
mov dword [0x63a070], eax
je 0x41f0b2
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
xor esi, esi
push eax
push esi
mov edi, 0x639d10
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov eax, dword [0x630b3c]
cmp dword [ebp - 0x24], esi
jb 0x41f0b2
ja 0x41effb
cmp dword [ebp - 0x20], eax
jb 0x41f0b2
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
call fcn.0041fbce
push str..old
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.0041f946
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [0x639d08]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
mov dword [0x639d08], esi
push 0x639d10
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
push ecx
push ecx
push 0x80
push 2
push ecx
push 0x40000000
push 0x639d10
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00401e30
test eax, eax
js 0x41f09d
push 2
push ecx
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0041e9da
cmp byte [0x639d0c], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
mov dword [0x639d08], eax
je 0x41f0a7
push str.NewFile
push esi
push esi
call fcn.0041f355
add esp, 0xc
jmp 0x41f0a0
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x41f0a7
push esi
call edi
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov eax, 0xff800000
sub eax, ebx
push eax
push 0x639cf8
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
call fcn.00571888
ret
Function at 0x41f0cb
Capabilities:
Delete file
Move file

Disassembly:
push 0x38
mov eax, 0x5b5fba
call fcn.005718de
mov edi, ecx
mov dword [ebp - 0x14], edi
push 0x639cfc
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x41f248
xor ebx, ebx
mov dword [0x630b3c], 0x400000
mov byte [ebp - 0x41], bl
mov dword [ebp - 0x1c], ebx
call fcn.0040cabf
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403c09
mov dword [ebp - 4], ebx
test edi, edi
jne 0x41f144
lea ecx, [ebp - 0x14]
call fcn.0041edf6
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00418e86
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov esi, dword [ebp - 0x1c]
mov edi, esi
mov dword [ebp - 0x14], esi
jmp 0x41f147
mov esi, dword [ebp - 0x1c]
push edi
call fcn.0058e098
push edi
push 0x5f5794
push 0x104
push 0x639d10
call fcn.0041fb38
add esp, 0x14
lea edi, [ebp - 0x40]
xor eax, eax
push 9
pop ecx
rep stosd dword es:[edi], eax
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x40]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0x24], ebx
ja 0x41f18c
cmp dword [ebp - 0x20], 0x400000
jb 0x41f1cd
push edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
call fcn.0041fbce
push 2
pop eax
push str..old
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], al
call fcn.0041f946
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 0x41], 1
call fcn.0040cb81
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
cmp byte [ebp - 0x41], 0
push ecx
push ecx
push 0x80
push 4
pop eax
push 2
pop ecx
cmovne eax, ecx
mov byte [ebp - 4], 3
push eax
push ecx
push 0x40000000
push edi
lea ecx, [ebp - 0x18]
call fcn.00401e30
test eax, eax
js 0x41f232
push 2
pop eax
push eax
push ecx
push ecx
lea ecx, [ebp - 0x18]
call fcn.0041e9da
cmp byte [0x639d0c], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [0x639d08], eax
je 0x41f240
push str.BEGAIN_n
push ebx
push ebx
call fcn.0041f355
add esp, 0xc
jmp 0x41f235
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x41f240
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esi - 0x10]
call fcn.0040cb81
call fcn.00571888
ret
Function at 0x41f24e
Capabilities:
Write file on windows

Disassembly:
push 0x18
mov eax, 0x5b5fff
call fcn.005718de
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
call fcn.0040cabf
push eax
lea ecx, [ebp - 0x14]
call fcn.00403c09
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x14]
push str.:__Tid_d_
push eax
call fcn.0041facf
add esp, 0xc
push 0x5f5820
call fcn.0058cae0
pop ecx
push eax
push ecx
mov ecx, esi
call fcn.0041f9c4
lea ecx, [ebp - 0x24]
call fcn.0041eebb
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x20]
call fcn.0041f68b
pop ecx
push esi
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.0041f68b
pop ecx
push eax
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.0041f7a8
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x24]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
call fcn.0041ef2e
cmp dword [0x639cf8], 0x400000
jge 0x41f344
mov edi, 0x639cf8
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 0x400000
jge 0x41f33d
mov ecx, dword [0x639d08]
test ecx, ecx
je 0x41f33d
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push ebx
push edx
mov dword [ebp - 0x18], ebx
push dword [eax - 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.0040cb81
call fcn.00571888
ret
Function at 0x420485
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00589570
add esp, 0xc
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
push str.GetPhysicallyInstalledSystemMemory
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4204ce
lea ecx, [ebp - 0x10]
push ecx
call eax
mov eax, dword [ebp - 0x10]
mov ecx, eax
mov edx, dword [ebp - 0xc]
or ecx, edx
je 0x4204e3
shrd eax, edx, 0xa
shr edx, 0xa
jmp 0x420501
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00570864
mov esp, ebp
pop ebp
ret
Function at 0x421393
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x5b64f3
call fcn.005718de
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push 0x20a
push esi
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], esi
call fcn.00589570
mov dword [edi + 0x14], 7
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x4213df
mov eax, dword [edi]
jmp 0x4213e1
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push ebx
push closesocket
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421478
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push 0x5f5eac
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42146c
cmp word [ebp - 0x21c], ax
je 0x42145d
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e098
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004107ce
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00571888
ret 0x10

Function at 0x421482
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x220
mov eax, 0x5b64f3
call fcn.005718de
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
mov ebx, dword [ebp + 0xc]
xor esi, esi
push 0x20a
push esi
push eax
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], esi
call fcn.00589570
mov dword [edi + 0x14], 7
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], esi
jb 0x4214ce
mov eax, dword [edi]
jmp 0x4214d0
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x224]
mov dword [ebp - 4], esi
push eax
push 0x20019
push esi
push ebx
push closesocket
mov dword [ebp - 0x228], 1
mov dword [ebp - 0x224], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x421567
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push str.InstallPath
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42155b
cmp word [ebp - 0x21c], ax
je 0x42154c
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e098
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.004107ce
push dword [ebp - 0x224]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.00571888
ret 0xc
Function at 0x421ae5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x30]
xor esi, esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], esi
call fcn.00409ab4
cmp dword [eax + 0x14], 8
jb 0x421b14
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0x20019
push esi
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
lea ecx, [ebp - 0x30]
push esi
neg ebx
push 1
sbb bl, bl
call fcn.0041164f
add bl, 1
je 0x421b7e
push 4
pop ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ebx
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push str.SupplyId
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x421b75
cmp dword [ebp - 0xc], ebx
jne 0x421b75
mov eax, dword [ebp - 0x10]
xor esi, esi
mov dword [edi], eax
inc esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570864
mov esp, ebp
pop ebp
ret 4

Function at 0x421cd6
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
lea eax, [ebp - 0x1c]
push esi
push ecx
push eax
mov esi, ecx
call fcn.0042229c
add esi, 0x224
cmp dword [esi + 0x14], 8
jb 0x421cf7
mov esi, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x421cff
mov eax, dword [eax]
push esi
push 0
push str.VMIndexBase
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 1
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.0041164f
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x421d25
Capabilities:
Check if file exists

Disassembly:
push 0x270
mov eax, 0x5b656f
call fcn.005718de
mov ebx, ecx
push 0x208
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00589570
add esp, 0xc
lea eax, [ebp - 0x21c]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x21c]
push eax
call edi
cmp word [ebp - 0x21c], 0
jne 0x421d7d
xor eax, eax
jmp 0x421d8a
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e098
pop ecx
push eax
lea eax, [ebp - 0x21c]
lea esi, [ebx + 0x224]
push eax
mov ecx, esi
call fcn.004107ce
push 0x5f5a10
mov edx, esi
lea ecx, [ebp - 0x264]
call fcn.0042075b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24c]
mov edx, eax
mov dword [esp], str.Config.ini
call fcn.00420942
pop ecx
push eax
mov ecx, esi
call fcn.0040d5cc
push 0
push 1
lea ecx, [ebp - 0x24c]
call fcn.0041164f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x264]
push 0
push 1
call fcn.0041164f
cmp dword [esi + 0x14], 8
jb 0x421dfe
mov eax, dword [esi]
jmp 0x421e00
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421e99
lea eax, [ebp - 0x21c]
push eax
call edi
cmp word [ebp - 0x21c], 0
jne 0x421e26
xor eax, eax
jmp 0x421e33
lea eax, [ebp - 0x21c]
push eax
call fcn.0058e098
pop ecx
push eax
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.004107ce
push 0x5f5a10
mov edx, esi
lea ecx, [ebp - 0x24c]
call fcn.0042075b
xor edi, edi
lea ecx, [ebp - 0x264]
inc edi
mov edx, eax
mov dword [ebp - 4], edi
mov dword [esp], str.Config.ini
call fcn.00420942
pop ecx
push eax
mov ecx, esi
call fcn.0040d5cc
push 0
push edi
lea ecx, [ebp - 0x264]
call fcn.0041164f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
push 0
push edi
call fcn.0041164f
jmp 0x421e9c
xor edi, edi
inc edi
and dword [ebp - 0x224], 0
xor eax, eax
mov esi, 0x5f5a74
mov dword [ebp - 0x220], 7
push esi
mov word [ebp - 0x234], ax
call fcn.0058e098
pop ecx
push eax
push esi
lea ecx, [ebp - 0x234]
call fcn.004107ce
lea eax, [ebp - 0x234]
mov dword [ebp - 4], 2
push eax
push ecx
push ecx
lea eax, [ebp - 0x27c]
mov ecx, ebx
push eax
call fcn.00421b93
push eax
lea ecx, [ebx + 0x20c]
call fcn.0040d5cc
push 0
push edi
lea ecx, [ebp - 0x27c]
call fcn.0041164f
push 0
push edi
lea ecx, [ebp - 0x234]
call fcn.0041164f
call fcn.00571888
ret 4
Function at 0x42209d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x60], eax
test edi, edi
jne 0x4220c9
xor eax, eax
xor edx, edx
jmp 0x422157
push 0x42
xor esi, esi
lea eax, [ebp - 0x54]
xorps xmm0, xmm0
push esi
push eax
movlpd qword [ebp - 0x6c], xmm0
call fcn.00589570
add esp, 0xc
mov dword [ebp - 0x5c], esi
lea eax, [ebp - 0x5c]
push eax
push 0x20019
push esi
push edi
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x422151
lea eax, [ebp - 0x58]
mov dword [ebp - 0x58], 0x40
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push dword [ebp - 0x60]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x422148
cmp word [ebp - 0x54], si
je 0x422132
lea eax, [ebp - 0x54]
push eax
call fcn.0058e098
pop ecx
mov esi, eax
push esi
lea eax, [ebp - 0x54]
mov ecx, ebx
push eax
call fcn.004107ce
lea eax, [ebp - 0x6c]
push eax
push ebx
call fcn.00421fa7
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x68]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00570864
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42216a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x64], eax
movlpd qword [ebp - 0x60], xmm0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x50], edi
jb 0x4221a0
mov eax, dword [esi]
jmp 0x4221a2
mov eax, esi
push edi
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x42227f
push eax
call fcn.0058e6ae
mov ebx, eax
pop ecx
test ebx, ebx
je 0x42227f
push dword [ebp - 0x54]
push edi
push ebx
call fcn.00589570
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4221db
mov esi, dword [esi]
push ebx
push dword [ebp - 0x54]
push edi
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x422270
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
push 0x5f5a10
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x422270
mov esi, dword [ebp - 0x50]
xor eax, eax
push 0x40
push edi
or eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov dword [ebp - 0x54], eax
or ecx, edi
lea eax, [ebp - 0x48]
mov dword [ebp - 0x5c], ecx
push eax
call fcn.00589570
movzx eax, word [esi + 0xc]
push eax
movzx eax, word [esi + 0xe]
push eax
movzx eax, word [esi + 8]
push eax
movzx eax, word [esi + 0xa]
push eax
lea eax, [ebp - 0x48]
push str._d._d._d._d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x24
cmp word [ebp - 0x48], di
je 0x42225e
lea eax, [ebp - 0x48]
push eax
call fcn.0058e098
pop ecx
mov edi, eax
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004107ce
mov esi, dword [ebp - 0x54]
jmp 0x422273
mov esi, dword [ebp - 0x60]
mov edi, dword [ebp - 0x5c]
push ebx
call fcn.0058e268
pop ecx
jmp 0x422285
mov edi, dword [ebp - 0x5c]
mov esi, dword [ebp - 0x60]
mov ecx, dword [ebp - 4]
mov edx, edi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.00570864
mov esp, ebp
pop ebp
ret 8
Function at 0x42229c
Capabilities:
Read .ini file

Disassembly:
push 0x45c
mov eax, 0x5b65a2
call fcn.005718de
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x44c]
xor ebx, ebx
push str.Product
mov dword [ebp - 0x450], ebx
call fcn.0041086e
push str.Engine
push str.Product
mov dword [ebp - 4], ebx
call fcn.0058e0b3
pop ecx
pop ecx
test eax, eax
je 0x4222f4
cmp dword [esi + 0x240], ebx
jne 0x4222f4
cmp dword [esi + 0x244], ebx
je 0x4223ee
push 0x20a
lea eax, [ebp - 0x224]
push ebx
push eax
call fcn.00589570
add esp, 0xc
cmp dword [esi + 0x240], ebx
je 0x422334
push dword [esi + 0x10]
lea eax, [ebp - 0x224]
push str.Product
push str._s__d
push 0x104
push eax
call fcn.0041fb38
add esp, 0x14
jmp 0x42237f
cmp dword [esi + 0x244], ebx
je 0x42237f
lea eax, [ebp - 0x468]
mov ecx, esi
push eax
call fcn.0042246f
cmp dword [eax + 0x14], 8
jb 0x422352
mov eax, dword [eax]
push eax
push str.Product
push str._s__s
lea eax, [ebp - 0x224]
push 0x104
push eax
call fcn.0041fb38
add esp, 0x14
lea ecx, [ebp - 0x468]
push ebx
push 1
call fcn.0041164f
push 0x20a
lea eax, [ebp - 0x434]
push ebx
push eax
call fcn.00589570
add esi, 0x224
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x4223a2
mov esi, dword [esi]
push esi
push 0x104
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
test eax, eax
je 0x4223ee
cmp word [ebp - 0x224], 0
jne 0x4223ce
mov eax, ebx
jmp 0x4223db
lea eax, [ebp - 0x224]
push eax
call fcn.0058e098
pop ecx
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x44c]
call fcn.004107ce
lea eax, [ebp - 0x44c]
mov ecx, edi
push eax
call fcn.0040f32b
push ebx
push 1
lea ecx, [ebp - 0x44c]
call fcn.0041164f
mov eax, edi
call fcn.00571888
ret 8

Function at 0x4235a2
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x6300f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x20c]
push esi
push 0
push eax
mov ebx, edx
mov edi, ecx
call fcn.00589570
push esi
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00589570
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x20c]
add esp, 0x18
push 0x104
push eax
push 0x59
push 0x400
call esi
push 0x104
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x414]
push eax
push 0x5a
push 0x400
call esi
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0041920c
test esi, esi
je 0x423666
mov eax, dword [ebp - 0x418]
push 0x5f
pop ecx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00599e12
add esp, 0xc
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.0041920c
mov ecx, dword [edi]
xor eax, eax
pop edi
pop esi
pop ebx
cmp dword [ecx - 0xc], eax
mov ecx, dword [ebp - 4]
setg al
xor ecx, ebp
call fcn.00570864
mov esp, ebp
pop ebp
ret
Function at 0x4238e2
Capabilities:
Encode data using xor

Disassembly:
push 8
mov eax, 0x5b68b1
call fcn.005718aa
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0x10], edi
xor esi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [edi], esi
mov ecx, dword [ebx]
sub ecx, 0x10
call fcn.0041908a
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], esi
xor ecx, ecx
mov eax, dword [ebx]
push 2
pop edx
mov dword [ebp - 0x14], 1
mov eax, dword [eax - 0xc]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005708e7
mov edi, eax
pop ecx
test edi, edi
je 0x423983
mov ecx, dword [ebx]
mov ecx, dword [ecx - 0xc]
lea ecx, [ecx*2 + 2]
push ecx
push esi
push edi
call fcn.00589570
mov eax, dword [ebx]
add esp, 0xc
cmp dword [eax - 0xc], esi
jle 0x42396f
push esi
mov ecx, ebx
call fcn.00418ed4
xor ax, 0x5a
mov word [edi + esi*2], ax
inc esi
mov eax, dword [ebx]
cmp esi, dword [eax - 0xc]
jl 0x423957
mov esi, dword [ebp - 0x10]
mov ecx, esi
push edi
call fcn.0041920c
push edi
call fcn.005708d9
pop ecx
jmp 0x423986
mov esi, dword [ebp - 0x10]
mov eax, esi
call fcn.00571873
ret

Function at 0x4239d3
Capabilities:
Query environment variable

Disassembly:
push 0x22c
mov eax, 0x5b68d7
call fcn.005718de
mov esi, ecx
mov dword [ebp - 0x234], esi
xor ebx, ebx
lea eax, [ebp - 0x218]
push 0x208
push ebx
push eax
mov dword [ebp - 0x238], ebx
call fcn.00589570
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push str.appdata
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], ebx
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x423a4d
lea eax, [ebp - 0x218]
push eax
call fcn.0058e098
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004107ce
mov edi, str.TencentMobileGamePCAppMarket3
mov dword [ebp - 4], ebx
push edi
call fcn.0058e098
pop ecx
push eax
push edi
lea ecx, [ebp - 0x230]
call fcn.0040d756
lea edx, [ebp - 0x230]
mov ecx, esi
call fcn.0042357a
push ebx
push 1
lea ecx, [ebp - 0x230]
call fcn.0041164f
mov eax, esi
call fcn.00571888
ret