joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b8fa
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x5852d9
call fcn.0055ae26
mov eax, ecx
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp + 0x10]
xor edi, edi
mov esi, dword [ebp + 0x14]
push edi
mov dword [ebx], edi
mov dword [esi], edi
cmp dword [eax + 0x58], edi
je 0x40b9a2
push dword [ebp + 8]
call fcn.0040bc1a
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40ba28
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
push ecx
push edi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x14], edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x40b98b
push ecx
call fcn.0042e282
pop ecx
lea ecx, [ebp - 0x14]
mov dword [ebx], eax
push ecx
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40b98b
xor edi, edi
inc edi
jmp 0x40b995
push dword [ebx]
call fcn.0040a0da
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.0040b7c1
jmp 0x40ba26
mov eax, dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov esi, dword [eax + 0x84]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call dword [0x595a54]
mov ecx, dword [ebp - 0x18]
call esi
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x40ba1e
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.0042e282
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x40ba18
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040b79d
push esi
lea ecx, [ebp - 0x10]
mov bl, al
call fcn.0040b79d
mov ecx, dword [ebp + 0x10]
shl bl, 4
sub bl, 0x51
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x40b9e6
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.00407117
mov eax, edi
call fcn.0055adf4
ret 0x10

Function at 0x40ba30
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x40ba83
push esi
push dword [ebp + 8]
call fcn.0040bc1a
mov edi, eax
test edi, edi
je 0x40ba7e
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ba7e
mov eax, dword [ebp - 8]
jmp 0x40ba95
mov eax, dword [ebp + 0x10]
jmp 0x40ba95
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc
Function at 0x40ba9b
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x585306
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.0055afa0
mov eax, dword [0x5ee000]
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 edi, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x201c], edi
mov dword [ebp - 0x2024], edx
cmp dword [ecx + 0x58], eax
je 0x40bbcc
push eax
push esi
call fcn.0040bc1a
mov esi, eax
test esi, esi
jne 0x40bb03
push ebx
jmp 0x40bbf5
lea ecx, [ebp - 0x2014]
call fcn.00407af5
xor ecx, ecx
lea eax, [ebp - 0x2018]
push eax
push ecx
lea eax, [ebp - 0x2020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x2024]
mov dword [ebp - 0x2020], ecx
push esi
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x40bb8b
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.00409583
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.0040bd5d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x201c], 0
jne 0x40bbb9
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.004084e8
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.00407117
jmp 0x40bbfc
push ebx
mov ecx, edi
call fcn.00407a4b
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x40bbb2
push dword [ecx + 0x6c]
lea eax, [ebp - 0x2010]
test ebx, ebx
push 0x1000
push eax
mov eax, 0x5960f0
cmovne eax, ebx
push eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.00407a4b
mov eax, edi
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.0055ab65
leave
ret 0x10
Function at 0x40bdf2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x58], esi
je 0x40be3f
push esi
push dword [ebp + 8]
call fcn.0040bc1a
mov edi, eax
test edi, edi
je 0x40bec3
push dword [ebp + 0x14]
push ebx
push 3
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x40bec3
mov eax, dword [ebp + 0x14]
push 2
pop ecx
push 0xffffffffffffffff
lea eax, [eax*2 + 1]
mul ecx
pop ecx
cmovb eax, ecx
push eax
call fcn.0042e282
mov edx, dword [ebp + 0x14]
pop ecx
mov ecx, eax
mov dword [ebp - 8], ecx
test edx, edx
je 0x40be95
mov dword [ebp - 4], 0x41
mov al, byte [ebx + esi]
and al, 0xf
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4], ax
mov al, byte [ebx + esi]
shr al, 4
movzx eax, al
add ax, word [ebp - 4]
mov word [ecx + esi*4 + 2], ax
inc esi
cmp esi, edx
jb 0x40be6e
xor eax, eax
mov word [ecx + esi*4], ax
mov eax, dword [edi]
push ecx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x595a54]
mov ecx, edi
call esi
push dword [ebp - 8]
mov esi, eax
call fcn.0040a0da
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x40d3bb
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5850e9
call fcn.0055ae26
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x40d3e1
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40d43b
lea ecx, [ebp - 0x10]
call fcn.00407af5
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00566f44
push eax
call fcn.004081e6
add esp, 0x14
test esi, esi
je 0x40d42e
push esi
call fcn.005668e8
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00407117
mov eax, ebx
call fcn.0055adf4
ret 8
Function at 0x40dc2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x84], 0
mov esi, dword [ebx + 0x8c]
mov edi, dword [ebx + 0x88]
je 0x40dc75
call fcn.00428738
push 5
push dword [ebx + 0x84]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40dc75
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40dc82
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor eax, eax
inc eax
test esi, esi
je 0x40dcbe
mov edx, 0xffff
lea ecx, [esi + 0xc]
cmp word [esi + 2], dx
jne 0x40dca1
movzx edi, word [esi + 0x12]
movzx edx, word [esi + 0x14]
jmp 0x40dcaa
movzx edx, word [ecx]
mov ecx, esi
movzx edi, word [esi + 0xa]
test dword [ecx], 0x1801
jne 0x40dcbc
test di, di
jne 0x40dcbc
test dx, dx
je 0x40dcbe
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40dcc3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 0x84], edi
test edi, 0xffff0000
jne 0x40dcee
cmp dword [esi + 0x80], 0
jne 0x40dcee
movzx eax, di
mov dword [esi + 0x80], eax
call fcn.00428738
push 5
push edi
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40dd1e
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dd1e
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push eax
call fcn.0040df8a
jmp 0x40dd20
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x40dd27
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
call fcn.00428738
push 5
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40dd67
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40dd67
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0040dd6f
jmp 0x40dd69
xor eax, eax
pop edi
pop esi
pop ebp
ret 8
Function at 0x40e05f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x585510
call fcn.0055ae8f
mov edi, ecx
mov dword [ebp - 0x24], edi
mov ebx, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
mov dword [ebp - 0x18], ebx
call fcn.00428738
cmp dword [edi + 0x84], 0
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x20], eax
je 0x40e0be
call fcn.00428738
push 5
push dword [edi + 0x84]
mov ebx, dword [eax + 0xc]
push ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40e0d2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [ebp - 0x18]
mov esi, eax
test esi, esi
je 0x40e0ce
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 0x18], eax
test ebx, ebx
jne 0x40e0da
or eax, 0xffffffff
jmp 0x40e22c
mov ecx, edi
call fcn.0040e669
mov ebx, eax
mov dword [ebp - 0x2c], ebx
call fcn.0041079b
xor esi, esi
and dword [ebp - 0x1c], esi
and dword [ebp - 0x28], esi
mov dword [ebp - 0x14], esi
test ebx, ebx
je 0x40e166
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x40e166
push ebx
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40e166
push esi
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x14], 1
call fcn.00408210
mov esi, eax
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x40e163
mov ecx, dword [esi]
mov esi, dword [ecx + 0x150]
mov ecx, esi
call dword [0x595a54]
mov ecx, dword [ebp - 0x1c]
call esi
test eax, eax
je 0x40e163
mov esi, dword [ebp - 0x1c]
mov ecx, esi
call fcn.0040d4fb
test eax, eax
je 0x40e163
push 0
mov ecx, esi
call fcn.0040ce04
mov dword [ebp - 0x28], 1
mov esi, dword [ebp - 0x14]
and dword [ebp - 4], 0
push edi
call fcn.00410424
push ebx
call fcn.00411b4a
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0040e002
test eax, eax
jne 0x40e1af
cmp dword [edi + 0x9c], eax
jne 0x40e1af
call fcn.00428738
push ebx
mov eax, dword [eax + 8]
mov dword [ebp - 0x20], eax
call fcn.00411b4a
push dword [ebp - 0x20]
mov ecx, edi
push eax
push dword [ebp - 0x18]
call fcn.0040e002
and dword [edi + 0x9c], 0
jmp 0x40e1da
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x28], 0
je 0x40e1ee
mov ecx, dword [ebp - 0x1c]
push 1
call fcn.0040ce04
test esi, esi
je 0x40e1fb
push 1
push ebx
call dword [sym.imp.USER32.dll_EnableWindow]
test ebx, ebx
je 0x40e211
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [edi + 0x20]
jne 0x40e211
push ebx
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [edi]
mov esi, dword [eax + 0x60]
mov ecx, esi
call dword [0x595a54]
mov ecx, edi
call esi
mov ecx, edi
call fcn.0040e620
mov eax, dword [edi + 0x68]
call fcn.0055adf4
ret
Function at 0x411add
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x411b1c
call fcn.00428738
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x411b1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x411b24
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.0043cf94
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x412541
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x4125cd
cmp dword [esi + 0x20], 0
je 0x4125cd
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4125cd
cmp dword [ebp + 8], 0
je 0x4125cd
xor edi, edi
mov ebx, edi
call fcn.00428738
push 0x597b70
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
test eax, eax
je 0x4125b1
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4125cd
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.0043ed83
mov edi, eax
add esp, 0xc
test edi, edi
je 0x4125c9
mov ecx, esi
call fcn.004122ea
mov eax, edi
jmp 0x4125cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416f88
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00567241
pop ecx
test eax, eax
jne 0x416fca
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x597dd8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0040c01e
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416f90
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x417175
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 1
mov eax, dword [esi]
push 1
mov edi, dword [eax + 0xe0]
mov ecx, edi
je 0x4171b0
push 0
call dword [0x595a54]
mov ecx, esi
call edi
test eax, eax
je 0x4171ac
xor eax, eax
inc eax
jmp 0x4171c3
xor eax, eax
jmp 0x4171c3
push dword [esi + 0x24]
call dword [0x595a54]
mov ecx, esi
call edi
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
leave
ret
Function at 0x4220e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00428738
push 0xf1
push dword [ebp + 8]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4221b4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4221b4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4221b4
movzx eax, word [edi + 6]
push ebx
push 4
pop ecx
mul ecx
push 0xffffffffffffffff
pop ecx
cmovb eax, ecx
push eax
call fcn.0042e282
pop ecx
movzx ecx, word [edi + 6]
xor esi, esi
xor edx, edx
mov ebx, eax
mov eax, ecx
cmp si, cx
jae 0x42216e
lea ecx, [edi + 8]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov dword [ebx + edx*4], eax
inc edx
movzx esi, word [edi + 6]
cmp edx, esi
jl 0x42215a
mov eax, esi
mov ecx, dword [ebp - 4]
movzx eax, ax
push eax
push ebx
call fcn.00422813
push ebx
mov esi, eax
call fcn.0040a0da
pop ecx
test esi, esi
je 0x4221af
movzx ecx, word [edi + 4]
movzx esi, word [edi + 2]
push ecx
push esi
lea eax, [ecx + 7]
mov ecx, dword [ebp - 4]
lea edx, [esi + 7]
push eax
push edx
call fcn.004229df
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00422095
mov esi, eax
mov eax, esi
pop ebx
jmp 0x4221b6
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x428253
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x586535
call fcn.0055ae8f
mov ebx, ecx
mov dword [ebp - 0x18], ebx
lea eax, [ebx + 0x1c]
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [ebp + 8]
test edi, edi
jle 0x42834a
cmp edi, dword [ebx + 0xc]
jge 0x42834a
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x4282aa
cmp edi, dword [esi + 8]
jl 0x428338
cmp dword [ebp + 0xc], 0
je 0x428338
xor edi, edi
jmp 0x4282dc
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.00427e65
mov esi, eax
test esi, esi
je 0x4282c4
mov dword [esi], vtable.CThreadData.0
jmp 0x4282c6
mov esi, edi
or dword [ebp - 4], 0xffffffff
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
mov dword [esi + eax], ecx
mov dword [ebx + 0x14], esi
push 4
push dword [ebx + 0xc]
call fcn.00427b1d
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x4282f8
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x428304
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x428371
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], edx
mov eax, dword [ebx + 0xc]
sub eax, ecx
shl eax, 2
push eax
lea eax, [edx + ecx*4]
push edi
push eax
call fcn.0055ed00
mov eax, dword [ebx + 0xc]
add esp, 0xc
mov dword [esi + 8], eax
push esi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x42834a
cmp edi, dword [esi + 8]
jge 0x42834a
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0055adf4
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00419571
int3
Function at 0x42a060
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ee000]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [0x5f5280]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x42a0b9
push 0x597190
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42a0de
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x5f5280], eax
jmp 0x42a0c2
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x42a0de
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x595a54]
call esi
jmp 0x42a220
and dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.0042a4bf
lea eax, [ebp - 0x14]
push eax
call fcn.005668e8
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.00567289
mov eax, dword [ebp - 0x20]
lea edi, [esi + 1]
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0042a4bf
lea eax, [ebp - 0x14]
push eax
call fcn.005668e8
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
sub ecx, edi
push ecx
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx + edi*2]
push ecx
call fcn.00567289
mov eax, dword [ebp - 0x20]
add esp, 0x38
add edi, esi
inc dword [eax]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx ebx, ax
lea eax, [ebp - 0x14]
push 7
push eax
push ebx
call fcn.0042a4bf
lea eax, [ebp - 0x14]
push eax
call fcn.005668e8
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00567289
mov eax, dword [ebp - 0x20]
add edi, esi
push 7
and ebx, 0x3ff
inc dword [eax]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0042a4bf
lea eax, [ebp - 0x14]
push eax
call fcn.005668e8
lea esi, [eax + 1]
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00567289
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.0042a4bf
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.005668e8
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x1c]
sub ecx, edi
push ecx
lea ecx, [eax + edi*2]
push ecx
call fcn.00567289
mov ecx, dword [ebp - 0x1c]
lea eax, [edi + esi]
add esp, 0x10
xor edx, edx
inc dword [ebx]
mov word [ecx + eax*2 + 2], dx
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055ab65
leave
ret