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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
push ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], 1
call fcn.0046267d
xor ebx, ebx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x462595
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 0x49c2f4
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x462587
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push ebx
push 0x49c2e8
mov dword [ebp - 8], 4
push dword [ebp - 4]
call esi
test eax, eax
je 0x46254b
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x824
push eax
lea eax, [ebp - 0x838]
push eax
push ebx
push ebx
push 0x49c2d8
push dword [ebp - 4]
call esi
test eax, eax
pop esi
je 0x462574
mov byte [ebp - 0x838], bl
cmp dword [ebp - 0xc], ebx
jne 0x462581
cmp byte [ebp - 0x838], bl
je 0x462587
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 4], ebx
je 0x462595
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0046218d
add esp, 0x14
cmp dword [ebp + 0xc], ebx
mov dword [edi + 4], eax
je 0x4625ba
cmp dword [ebp + 0xc], 4
jne 0x4625e6
cmp dword [ebp - 0x14], ebx
jne 0x4625e6
mov ax, word [edi + 0x14]
cmp ax, 3
jne 0x4625d2
mov ecx, edi
call fcn.00462ae0
jmp 0x4625e6
cmp ax, 4
mov ecx, edi
jne 0x4625e1
call fcn.00462cc1
jmp 0x4625e6
call fcn.00463095
xor eax, eax
cmp dword [edi + 4], ebx
pop edi
pop ebx
setne al
leave
ret 0x14
Function at 0x462ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1190
call fcn.00468060
and byte [ebp - 0x96c], 0
push ebx
push esi
mov dword [ebp - 0x10], ecx
mov edx, 0x208
push edi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x96b]
and byte [ebp - 0x1190], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x118f]
xor esi, esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x49c410
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x462cae
lea eax, [ebp - 8]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x49c404
push dword [ebp - 4]
mov dword [ebp - 0x48], 0x49c3fc
mov dword [ebp - 0x44], 0x49c3f0
mov dword [ebp - 0x40], 0x49c3e0
mov dword [ebp - 0x3c], 0x49c3d8
mov dword [ebp - 0x38], 0x49c3cc
mov dword [ebp - 0x34], 0x49c3bc
mov dword [ebp - 0x30], 0x49c3b4
mov dword [ebp - 0x2c], 0x49c3a8
mov dword [ebp - 0x28], 0x49c398
mov dword [ebp - 8], 4
call ebx
test eax, eax
jne 0x462cae
cmp dword [ebp - 0x14], 1
jne 0x462cae
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edi, [ebp - 0x48]
mov dword [ebp - 0xc], 3
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x148]
push eax
push 0
push 0
push dword [edi + 4]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x462c71
cmp byte [ebp - 0x148], al
je 0x462c71
push dword [edi]
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x96c]
push eax
call esi
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push dword [edi + 8]
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x462c63
lea eax, [ebp - 0x96c]
push 0x49c394
push eax
call esi
push dword [ebp - 0x18]
lea eax, [ebp - 0x96c]
push 0x49b250
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x96c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x96c]
push 0x49bc70
push eax
call esi
add edi, 0xc
dec dword [ebp - 0xc]
jne 0x462bc7
lea eax, [ebp - 0x96c]
push 0xc
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1190]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x10]
push 0x26
mov dword [ebp - 0x24], 3
push dword [eax + 4]
call fcn.00462366
add esp, 0x10
xor esi, esi
cmp dword [ebp - 4], esi
je 0x462cbc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x463c35
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0xf4]
cmp eax, 0x7530
jbe 0x463c98
mov ecx, dword [esi + 0xe8]
lea eax, [esi + 0xe8]
mov edx, dword [esi + 0xf0]
mov dword [esi + 0xdc], ecx
xor ecx, ecx
mov dword [esi + 0xe4], edx
mov dword [eax], ecx
lea eax, [esi + 0xf0]
mov edx, dword [esi + 0xec]
mov dword [esi + 0xec], ecx
mov dword [eax], ecx
lea eax, [esi + 0xec]
mov dword [esi + 0xe0], edx
call edi
mov dword [esi + 0xf4], eax
mov edi, dword [esi + 0xe4]
test edi, edi
jne 0x463caa
mov eax, dword [esi + 0xdc]
jmp 0x463d02
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x463d00
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0xdc]
cmp ebx, eax
jbe 0x463cd8
shr ebx, 1
shr edi, 1
mov dword [esi + 0xdc], ebx
mov dword [esi + 0xe4], edi
mov eax, dword [esi + 0xdc]
mov edi, dword [esi + 0xe4]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x463cb3
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x464333
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x464d33
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x464d85
push eax
call fcn.0046808f
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x464d85
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x495fd4
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x464d89
xor al, al
jmp 0x464dea
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x49c6c4
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x464de8
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0046808f
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x464de8
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x464dd6
mov al, 1
pop ebx
leave
ret 4
Function at 0x466db6
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x47d164
call fcn.00467ed8
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
push 0x20019
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 2
call fcn.004676d1
push eax
lea ecx, [ebp - 0x10]
push dword [ebp + 8]
call fcn.004291d8
cmp eax, ebx
je 0x466e09
cmp dword [ebp - 0x10], ebx
mov dword [0x4b3c74], eax
je 0x466e04
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
mov esi, dword [ebp + 0x5c]
jmp 0x466e4a
lea ecx, [ebp + 0x34]
call fcn.004676d1
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], ebx
push ecx
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push eax
mov dword [ebp + 8], 4
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x466dee
cmp dword [ebp - 0x10], ebx
mov esi, dword [ebp - 0x18]
je 0x466e4a
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.00407d51
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x34]
call fcn.00407d51
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x46f3e3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x49eee8
cmp edx, dword [eax]
je 0x46f405
add eax, 8
inc ecx
cmp eax, 0x49ef78
jl 0x46f3f6
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x49eee8]
jne 0x46f533
mov eax, dword [0x4b3ca8]
cmp eax, 1
je 0x46f50d
test eax, eax
jne 0x46f436
cmp dword [0x49c774], 1
je 0x46f50d
cmp edx, 0xfc
je 0x46f533
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x46f46d
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004690b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00468160
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x46f4b0
lea eax, [ebp - 0x1a4]
push eax
call fcn.00468160
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x481a50
push edi
call fcn.0046ec60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004690b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004690c0
lea eax, [ebp - 0xa0]
push 0x481a30
push eax
call fcn.004690c0
push dword [esi + 0x49eeec]
lea eax, [ebp - 0xa0]
push eax
call fcn.004690c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00471270
add esp, 0x2c
pop edi
jmp 0x46f533
lea eax, [ebp + 8]
lea esi, [esi + 0x49eeec]
push 0
push eax
push dword [esi]
call fcn.00468160
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x101a1050
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b1b27
mov eax, dword fs:[0]
push eax
sub esp, 0x430
push ebx
push esi
push edi
lea edi, [ebp - 0x2bc]
mov ecx, 0xac
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101e5800]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x438], 1
mov dword [ebp - 4], 0
mov ecx, 0x101f136a
call fcn.1009080a
nop
push 0x10
mov ecx, dword [ebp + 8]
call fcn.1008ee92
mov ecx, dword [ebp + 8]
call fcn.1008e2cb
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x438]
or eax, 1
mov dword [ebp - 0x438], eax
lea ecx, [ebp + 0xc]
call fcn.1008e154
movzx eax, al
test eax, eax
jne 0x101a1124
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x438]
and eax, 1
je 0x101a110c
and dword [ebp - 0x438], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.1008e456
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10090ec7
nop
mov eax, dword [ebp + 8]
jmp 0x101a1264
mov eax, dword [ebp + 0x28]
push eax
push 0x18
call fcn.1008efbe
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xffffffff
je 0x101a1211
mov dword [ebp - 0x25c], 0x224
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.1008f5c7
test eax, eax
je 0x101a1211
push 0x48
lea ecx, [ebp - 0x2ac]
call fcn.10090a3a
lea ecx, [ebp - 0x2ac]
call fcn.1008ed7f
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x248]
mov dword [ebp - 0x274], eax
mov eax, dword [ebp - 0x244]
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x274]
add eax, dword [ebp - 0x26c]
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x2ac]
call fcn.1008fb67
nop
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x290]
call fcn.1008fb67
nop
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x2ac]
push eax
mov ecx, dword [ebp + 8]
call fcn.10090454
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2ac]
call fcn.1008f270
nop
lea eax, [ebp - 0x25c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.100902ab
test eax, eax
jne 0x101a115e
mov esi, esp
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1008fbee
nop
mov dword [ebp - 0x438], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x438]
and eax, 1
je 0x101a1251
and dword [ebp - 0x438], 0xfffffffe
mov ecx, dword [ebp + 8]
call fcn.1008e456
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.10090ec7
nop
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x101a12a0]
call fcn.1008f74d
pop eax
pop edx
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.1008f0d1
add esp, 0x43c
cmp ebp, esp
call fcn.1008fbee
mov esp, ebp
pop ebp
ret
Function at 0x101a1890
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
lea edi, [ebp - 0x158]
mov ecx, 0x56
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101e5800]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x101f136a
call fcn.1009080a
nop
mov dword [ebp - 0xc], 0xffffffff
push 0
push 2
call fcn.1008efbe
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x101a1935
mov dword [ebp - 0x148], 0x128
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1008f1a3
test eax, eax
je 0x101a1935
lea ecx, [ebp + 8]
call fcn.1009037d
push eax
lea eax, [ebp - 0x124]
push eax
call fcn.1008e1d1
add esp, 8
test eax, eax
jne 0x101a1921
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0xc], eax
jmp 0x101a1935
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.1008edbb
test eax, eax
jne 0x101a18fa
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1008fbee
nop
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x214], eax
lea ecx, [ebp + 8]
call fcn.1008f64e
mov eax, dword [ebp - 0x214]
push edx
mov ecx, ebp
push eax
lea edx, [0x101a1990]
call fcn.1008f74d
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1008f0d1
add esp, 0x218
cmp ebp, esp
call fcn.1008fbee
mov esp, ebp
pop ebp
ret

Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x9ef634
push eax
push dword fs:[0]
neg byte [esi - 0x9bb000]
xor eax, 0
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xeb
jp 0x40109d
mov byte [eax - 0x47], dh
jg 0x401033
in al, 0xd4
jmp 0x4010af
test eax, 0xcf33638c
adc ch, bl
js 0x400fd0
sbb ch, ah
daa
stosd dword es:[edi], eax
mov dword [0x540fb128], eax
xchg edi, eax
inc ecx
and dword [esi + esi*8 - 0x78], ebp
rcr byte [eax - 0x2e], 0xa4
sti
push ss
scasd eax, dword es:[edi]
jne 0x40108b
jl 0x40102c
salc
pushal
jbe 0x401085
daa
xchg esp, eax
lcall 0xa4e8, 0x1020bb2d
push eax
in eax, dx
xor bl, ah
sti
bnd jg 0x401002
popal
lea ebp, [edx - 0x70bb56c6]
push ds
pop ss
cmp dword [eax + ebx*8 + 0x46], eax
and byte [eax - 0x702274c0], al
pop eax
test al, 0xc5
fisttp qword [edi + 0x3dc5a858]
lahf
mov ah, 0xc2
sub ecx, dword [0x6e1df55c]
cmp eax, 0x2bc2b49f
or eax, 0x6e1df55c
pop esp
cmc
sbb eax, 0x97530b6e
or edx, dword [ebx - 0x69]
in al, 0x34
sub dword [ebx], esp
jge 0x401055
ja 0x4010fe
fld xword [esi - 7]
or al, 0xb7
dec edx
mov ch, 0xfc
outsd dx, dword [esi]
jns 0x4010cd
fcom qword [eax - 0x69d98623]
retf 0x41f8
and ecx, eax
hlt
int1
push 0xffffffffffffffb7
dec edx
mul dword [esi - 0x69]
invalid
push edx
inc edi
aas
int1
lds esi, [eax - 0x386d9885]
out 0xf1, eax
xchg edx, eax
cmp al, 0x61
sahf
jmp 0xb6298785
Function at 0x409e5de7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
and dword [eax], 0
and dword [ebp - 4], 0
push ebx
push esi
push edi
push dword [section..data]
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test dword [eax + 0x44], 0x1000000
je 0x409e5e2d
mov esi, dword [ebp + 0xc]
push 4
pop ecx
mov edi, 0x409e40fc
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x409e5e2d
mov dword [ebp - 8], 0x409e410c
jmp 0x409e5e33
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp - 8]
call fcn.409e6bd9
mov dword [ebp - 0x10], eax
shr eax, 0x10
mov dword [ebp - 0x14], eax
test ax, ax
je 0x409e5e61
push dword [ebp - 8]
mov ecx, ebx
call fcn.409e4d1b
test eax, eax
jne 0x409e5e61
mov eax, 0x8007000e
jmp 0x409e5f32
mov edi, dword [ebp + 8]
push 1
push 0x24
push edi
call sub.wow32.dll_WOWGetVDMPointer
mov ecx, dword [eax + 0x1c]
mov esi, dword [eax + 0x10]
mov eax, dword [eax + 0x20]
test cl, 2
je 0x409e5e7e
mov eax, dword [eax]
test cl, 0x10
je 0x409e5e9d
cmp dword [ebp - 0x10], 0
jne 0x409e5e9d
push edi
mov ecx, ebx
call fcn.409e4e92
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor edi, edi
jmp 0x409e5f1f
mov ecx, dword [eax]
lea edx, [ebp - 0xc]
push edx
push dword [ebp - 8]
push eax
call dword [ecx]
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], eax
jl 0x409e5f1f
cmp dword [ebp - 0xc], edi
je 0x409e5f18
cmp esi, edi
je 0x409e5ec3
test byte [esi + 4], 2
je 0x409e5ec3
xor esi, esi
lea eax, [ebp + 8]
push eax
push dword [ebp - 0x10]
mov ecx, ebx
push esi
push dword [ebp - 0xc]
mov dword [ebx + 8], 2
push edi
call fcn.409fbca3
cmp eax, edi
je 0x409e5f03
test byte [ebp + 8], 3
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
je 0x409e5f0a
cmp word [ebp - 0x14], di
je 0x409e5f0a
push eax
mov ecx, ebx
call fcn.409e5365
mov dword [ebp - 4], 0x80004002
jmp 0x409e5f0a
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 8], edi
jmp 0x409e5f1f
mov dword [ebp - 4], 0x80004002
cmp word [ebp - 0x14], di
je 0x409e5f2f
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.409e4d4c
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x409ee66f
Capabilities:
Get thread local storage value

Disassembly:
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x409ee6b4
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x409ee6b4
push esi
push edi
push 8
lea esi, [eax + 0x10]
pop edi
mov eax, dword [esi + 4]
test eax, eax
je 0x409ee6ac
cmp dword [esi], 0
jne 0x409ee6ac
push esi
push dword [esi + 0xc]
push dword [esi + 8]
push eax
lea eax, [esi - 0x10]
push eax
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
add esi, 0x20
dec edi
jne 0x409ee68e
pop edi
pop esi
ret

Function at 0x409ee8f2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x18]
and dword [eax], 0
push ebx
push dword [section..data]
mov dword [ebp - 4], 0x8000ffff
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x409ee993
mov eax, dword [ebx + 0x4c]
push esi
push edi
test eax, eax
jne 0x409ee949
mov esi, 0x100
push esi
call fcn.409ef274
mov edi, eax
xor eax, eax
pop ecx
cmp edi, eax
je 0x409ee942
push esi
push eax
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
mov eax, edi
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x409ee991
xor ebx, ebx
lea ecx, [eax + 0x14]
cmp dword [ecx], 0
je 0x409ee95e
inc ebx
add ecx, 0x20
cmp ebx, 8
jl 0x409ee94e
jmp 0x409ee991
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
mov ecx, ebx
shl ecx, 5
add eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x14], ecx
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [eax + 0x18], edx
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [ebp + 0x18]
and dword [ebp - 4], 0
not ebx
mov dword [eax], ebx
pop edi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x14

Function at 0x409f61dd
Capabilities:
Encode data using xor

Disassembly:
call 0x409f6156
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x409f6186
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x409f61a2
xor edx, 0
jmp 0x409f61ad
xor edx, edx
jmp 0x409f61c4
jmp 0x409f61d0
xor eax, eax
push 0x8427d7c0
call 0x409f61dd
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x409f6219
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x409f61f2
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x409f6230
add eax, 0
jno 0x409f6235
add esi, 0
ret 0x10
Function at 0x409f6f9e
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x409f6fc0
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x409f7162
cmp edi, dword [ebp + 0x10]
jb 0x409f7162
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.409f6a8a
inc edi
jmp 0x409f7049
jmp 0x409f7056
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.409f6a8a
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.409f6a8a
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x409f70aa
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x409f708e
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.409f70d8
add dword [eax], 0x39
jle 0x409f70b4
sub al, 0xf5
mov ch, al
call fcn.409f70ed
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x409f8dc5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x409f8ddb
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x409f8dec
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.409f8e2d
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx