joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411052
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x42e070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor ecx, ecx
push esi
mov dword [ebp - 0x208], ecx
lea eax, [ebp - 0x214]
mov dword [ebp - 0x20c], 0x100
push eax
push ecx
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x41112d
lea eax, [ebp - 0x208]
push eax
push 0x2001f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411142
push dword [ebp - 0x208]
call fcn.00411052
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411142
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411142
jmp 0x411135
cmp esi, 0x80070103
je 0x411140
test esi, esi
jne 0x411142
xor ecx, ecx
jmp 0x411072
xor esi, esi
cmp dword [ebp - 0x208], 0
je 0x411157
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411786
mov esp, ebp
pop ebp
ret 4

Function at 0x41116b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x411195
xor esi, esi
inc esi
jmp 0x4111dc
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x4111dc
push dword [ebp - 4]
call fcn.00411052
mov esi, eax
test esi, esi
js 0x4111dc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x4111eb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41e004]
jne 0x40100a
repz ret
jmp fcn.0040163f

Function at 0x405d25
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402d3f
and dword [ebp - 4], 0
cmp dword [0x420458], 0
mov ebx, eax
jne 0x405dd6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405e87
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405e87
push eax
call fcn.00402ccd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x420458], eax
call esi
push eax
call fcn.00402ccd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42045c], eax
call esi
push eax
call fcn.00402ccd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x420460], eax
call esi
push eax
call fcn.00402ccd
pop ecx
mov dword [0x420468], eax
test eax, eax
je 0x405dd6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402ccd
pop ecx
mov dword [0x420464], eax
mov eax, dword [0x420464]
cmp eax, ebx
je 0x405e2e
cmp dword [0x420468], ebx
je 0x405e2e
push eax
call fcn.00402d48
push dword [0x420468]
mov esi, eax
call fcn.00402d48
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x405e2e
test edi, edi
je 0x405e2e
call esi
test eax, eax
je 0x405e25
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x405e25
test byte [ebp - 0xc], 1
jne 0x405e2e
or dword [ebp + 0x10], 0x200000
jmp 0x405e67
mov eax, dword [0x42045c]
cmp eax, ebx
je 0x405e67
push eax
call fcn.00402d48
pop ecx
test eax, eax
je 0x405e67
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405e67
mov eax, dword [0x420460]
cmp eax, ebx
je 0x405e67
push eax
call fcn.00402d48
pop ecx
test eax, eax
je 0x405e67
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x420458]
call fcn.00402d48
pop ecx
test eax, eax
je 0x405e87
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405e89
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a1c0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80c], eax
cmp ebx, 0x182
jne 0x41a1f5
lea ecx, [ebp - 0x82c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
jmp 0x41a205
cmp ebx, 0x19f
jne 0x41a205
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push edi
xor edi, edi
test ebx, ebx
jle 0x41a2a1
push esi
jmp 0x41a220
lea esi, [ebp - 0x808]
mov dword [ebp - 0x808], 0
call fcn.0041a1b0
mov dl, byte [ebp - 0x808]
mov eax, dword [ebp - 0x80c]
xor byte [eax + edi], dl
cmp ebx, 0xf
jne 0x41a29b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNode]
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push str.lofumace
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push str.juhijit
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_BackupRead]
inc edi
cmp edi, ebx
jl 0x41a220
pop esi
pop edi
cmp ebx, 0x2d
jne 0x41a2bb
mov dword [0x516140], 0xa62e7790
mov dword [0x516144], 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret

Function at 0x41a2d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x51600c]
push ebx
push esi
mov esi, dword [0x515e54]
mov ebx, eax
cmp eax, 0x5dd
jne 0x41a30d
push 0
lea eax, [ebp - 0x404]
push eax
push str.fulavaxonuwolatacubevi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov eax, dword [0x41f210]
call fcn.0041a180
cmp dword [0x51600c], 0x2f
jne 0x41a328
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push esi
call fcn.0041a1c0
add esp, 4
cmp dword [0x51600c], 0x568
pop esi
pop ebx
jne 0x41a35a
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [ebp - 0x408]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMask]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x48a4a6
Capabilities:
Encode data using xor

Disassembly:
int 8
adc al, 0x63
mov cl, 0x7c
lahf
add ecx, dword [edi]
xor al, 0x2e
fistp dword [ebx - 0x20]
sub byte [eax], dh
leave
outsb dx, byte [esi]
js 0x48a425
imul edx, dword [eax + 0x471b8e57], 0xf13193ef
mov bl, 0xa3
out dx, eax
cmc
invalid
lodsd eax, dword [esi]
jecxz 0x48a41e
inc esi
out dx, eax
adc eax, dword [ecx + 0x65]
push 0x3e
sar dword [ebx + 0x1e315c68], cl
mov ebx, 0x1e315c68
mov ebx, 0x1e315c68
xor ah, byte [ecx + 0x33]
jb 0x48a49a
xchg esi, eax
mov bh, 0x19
or ah, byte [edx - 0x7a2a10fe]
and ebx, dword [eax + edi*4 + 0x25]
mov bl, 0x8b
mov al, 7
cmp ebx, dword [esi + 0x6a]
das
inc edx
fist word [edx + 0x50]
push edx
xchg ebp, eax
push edx
popfd
sub al, 0x4f
out dx, eax
movsd dword es:[edi], dword [esi]
fdiv dword [edi - 0x20]
faddp st(3)
mov ebx, 0x8be6c083
add ebp, ebp
mov ebx, 0x650b92bf
cmp al, 0xda
das
xor byte gs:[ecx + 0x3f4d2b97], dh
pop ebp
jp 0x48a4c5
push es
mov al, 0x33
pushfd
adc eax, 0xe14b7f0
xchg ecx, eax
fdivr qword es:[edi + 0x17]
jg 0x48a516
xchg dword [ebx + ecx], ebp
pop es
xor ecx, dword [esi]
sar byte [eax - 0x5f9cfcbb], 1
cmp al, 0x7e
dec edx
sbb esp, edi
arpl word [eax + 0x194a7e3c], sp
cld
dec ecx
pop esp
les edx, [ecx - 0x5b]
sar edi, cl
lds esi, [esi + esi*4 + 0x1f]
inc ebp
je 0x48a4d0
pop ds
push 0x5dbdd3eb
lodsd eax, dword [esi]
push edx
sbb esi, dword [edx - 0xb]
stosb byte es:[edi], al
out 0xda, eax
aad 0x20
sal dword [eax], 0x5d
add byte [ebx - 0x68e81cec], bh
sti
sbb ah, byte [0xd3c8f9fc]
fnstsw word [ebx + 0x2a]
sbb dh, byte [ebx + 0x77]
or dword [ebx], eax
or byte [edx + 0x2f], bl
jl 0x48a4fd
adc byte [ecx - 0x65], 0xed
mov bl, 0xef
push ecx
popal
in al, dx
pop ds
xchg byte [edx + esi*4 + 0x5bc8a388], cl
sbb al, 0x9d
loop 0x48a509
hlt

Function at 0x4a22ac
Capabilities:
Encode data using xor

Disassembly:
cmp byte [eax - 0x38940bd2], 0xc8
dec eax
out dx, eax
dec eax
adc ebx, dword [ebx + 0x72]
or eax, 0x19fb2ff9
fsubr dword ds:[edi + 0x5ee460fe]
leave
push es
dec ebx
add al, 0x72
lcall 0xad56, 0xb2dcda24
pop esp
scasb al, byte es:[edi]
push 0x44
xchg ebp, eax
fmul qword [eax + 0x11]
sbb cl, dl
imul ebp, dword [edi + 0x6cf88435], 0xffffffe1
mov esi, eax
pop ebp
xor byte [esi - 0xf], bh
fbstp tbyte [eax - 0x7709aae5]
or byte [ecx], bh
mov dword [0x13607ebb], eax
push edi
fmulp st(6)
in al, dx
and byte [esi - 0x39ef9eee], ah
mov bh, 0x8e
dec eax
bound ebp, qword [esi + edx]
invalid
Function at 0x5481d6
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
xor dword [esi + 0x66], ebp
mov byte [0x329a34df], al
inc esp
jl 0x5481d5
fbstp tbyte [edx + ebx*4]
xor al, byte [esp + edi*2 + 0x29]
movsb byte es:[edi], byte [esi]
xor al, 0x39
adc eax, 0x46bbe0bb
mov esi, 0x9e25d0c3
xchg esi, eax
adc dword [eax - 0x6f], 0xffffffe0
in eax, 0x7c
je fcn.005481d6
adc esp, dword [ebx]
bound esp, qword [esi - 0x70]
xor eax, 0x666313bb
mov ah, 0x4e
xor byte [ebp - 0x3f5a506c], dh
rcr byte [esi + edx], 0x49
sbb al, 0x16
dec ecx
movsd dword es:[edi], dword [esi]
fistp dword [esi - 0x23]
xchg edi, eax
mov dh, 0x95
xor al, 0x2d
push esp
loopne 0x54820d
out 0x5c, al
dec eax
inc ecx
fld xword [ebx]
push eax
jb 0x54822c
dec esi
xchg ebp, eax
xchg esp, eax
aad 0xfe
jle 0x5481a5
push edi
mov edi, 0x1087e546
lahf
ror ebp, 0x24
mov ch, 0xf6
jae 0x5481a1
out dx, eax
mov bl, 0x4d
sub ch, byte [ecx + ebx*2]
push esp
inc ebx
mov dword [0x35137233], ecx
je 0x54825c
xor esi, dword [edx + 0x13]
xor eax, 0x19487465
jl 0x5481c9
sbb dword [edx + esi*4 - 0x37], edi
leave
mov dh, 0xe
push ebx
outsd dx, dword [esi]
pushal
out 0xb, al
pop esi
ficomp dword [edx + 0x78]
add edi, edi
ja 0x54826c
inc eax
retf
je 0x54823f
adc dword [eax + 0x30], eax
clc
inc eax
xor al, bh
shr bh, cl
call 0xc24ce5fa
add dword [edi], ebx
inc ecx
jmp [edx + 0x5d924069]
xchg edx, eax
pop ebp
jbe 0x548295
sub byte [eax + 0x2c8ef6b4], cl
sbb dl, 0xad
inc ecx
adc al, 0xb6
rcr byte [edx + 0x5d], cl
pop esp
add eax, 0x42bfe9f2
push esi
loopne 0x54822d
cld
add al, 0x7e
daa

Function at 0x5cdf9e
Capabilities:
Encode data using xor

Disassembly:
push eax
rcl al, 1
sub dword [eax], esp
push ds
or cl, byte [ebx + esi*2 - 0x5f]
mov byte [0xdcc5df82], al
mov edi, 0x8c0f52ce
test eax, 0x30fc12f0
dec ebp
aaa
xor byte [ebp + 0x37], cl
adc esp, ecx
sbb ebp, dword [esi]
mov dword [0xe5bacc17], eax
sbb esp, 0xffffffa8
stc
in al, 0x99
dec eax
stosb byte es:[edi], al
sar dword [esi - 0x2dac1909], cl
and ch, byte [ebp - 0x1d]
push edx
pushal
rol bh, 1
out 0xeb, al
dec esp
xor eax, 0x73f0005b
mov byte [eax + 0x29], dh
add dword [ecx - 0x5cc4ed16], edx
mov dl, 0x90
jp 0x5cdfb7
invalid

Function at 0x626d41
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x65
push es
add edi, dword [edx]
inc ebp
jbe 0x626d2f
insb byte es:[edi], dx
inc esi
invalid
loop 0x626cc2
xchg ah, ch
cmp ch, bh
xchg esi, eax
fist dword [edx]
movsb byte es:[edi], byte [esi]
and eax, 0xa6c3a106
pushal
or esp, dword [eax + 0x13]
pushal
adc esi, dword [edi]
pushal
adc esi, dword [edi]
xor dword [eax + edx], ebx
xchg dword [0x9526c47a], eax
shl dword [edi], 1
jbe 0x626d2f
mov al, byte [0x9ae4ada3]
cmc
xchg esi, eax
push esp
cmpsb byte [esi], byte es:[edi]
sbb eax, 0x35c9154f
mov ebx, 0x34735b39
mov cl, 0x97
jae 0x626d3f
push edi
inc ebx
xor al, 0xa4
sub cl, al
invalid
Function at 0x672f69
Capabilities:
Encode data using xor

Disassembly:
sub byte [ecx], dl
add byte [eax], al
or esp, ebx
dec edi
outsb dx, byte [esi]
shl ebx, 0xc6
fnstsw word [edi - 0x74]
cmp eax, 0x24b7f7a
adc edi, dword [ebx - 0x51d4f1de]
mov ebx, 0xb238a69b
shl byte [edx], 0x21
cmp byte [esi], bl
sbb bl, byte [edx]
xor byte [ebx], ch
xchg ecx, eax
jecxz 0x672f6b
xchg dword [0x95c2f301], ebx
salc
pop esi
invalid
Function at 0x7168fb
Capabilities:
Encode data using xor

Disassembly:
imul edi, dword [edx + 0x28097280], 0xcdcec88f
jle 0x7168c3
push es
invalid
push eax
dec esp
ljmp 0xf5a1
aad 0xa
or dl, bl
push edx
jle 0x716882
imul eax, dword [ecx], 0xdcb73844
cli
scasd eax, dword es:[edi]
dec eax
jns 0x71693b
invalid
out dx, eax
or al, byte [edx + 0x2c3529fd]
sub eax, 0xb5d19280
jl 0x716938
salc
in al, dx
pop edx
les ebp, [ebp - 0x7367275c]
pop ebp
dec ecx
lahf
cmp al, byte [ecx + 0x61]
sub dword [edi - 0x570e5638], 0xffffff9e
and edi, dword [0x54a3684a]
push 0xadd1706f
js 0x7168de
leave
test al, 0x12
movsb byte es:[edi], byte [esi]
popfd
or eax, 0x8c8653fc
ja 0x716996
pop ebp
sbb dword [eax - 0x50], esi
pop esi
mov al, 0x5e
invalid
daa
fsubr qword [ebx + 0x63679879]
mov byte [esi], bl
les ebx, [edx - 0x45]
add ebx, dword [edx]
fdiv st(1)
dec ebx
or byte [esp + eax*2], 0xb0
cld
sbb dl, dl
std
sbb al, 0x6d
xchg ecx, eax
popfd
pop edx
push 0x32a174eb
add al, 0x32
pop edx
retf

Function at 0x7c6a2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7cd378
cmp edx, dword [eax]
je 0x7c6a4f
add eax, 8
inc ecx
cmp eax, 0x7cd408
jl 0x7c6a40
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7cd378]
jne 0x7c6b7d
mov eax, dword [0xbce4d0]
cmp eax, 1
je 0x7c6b57
test eax, eax
jne 0x7c6a80
cmp dword [0x7cd2a4], 1
je 0x7c6b57
cmp edx, 0xfc
je 0x7c6b7d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c6ab7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.007c7410
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c78a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c6afa
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c78a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cb794
push edi
call fcn.007c9770
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.007c7410
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c7420
lea eax, [ebp - 0xa0]
push 0x7cb774
push eax
call fcn.007c7420
push dword [esi + 0x7cd37c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c7420
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.007c96e4
add esp, 0x2c
pop edi
jmp 0x7c6b7d
lea eax, [ebp + 8]
lea esi, [esi + 0x7cd37c]
push 0
push eax
push dword [esi]
call fcn.007c78a0
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 0x401620
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
cmp esi, 0x100000
jge 0x401636
mov esi, 0x100000
jmp 0x401642
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 1
push 0x2000
push esi
push 0
call sub.advapi32.dll_RegQueryValueExA
mov edi, eax
mov dword [ebx], edi
test edi, edi
je 0x40167f
mov edx, ebx
mov eax, 0x4ca5e8
call fcn.004014d4
test al, al
jne 0x40167f
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call fcn.00401454
xor eax, eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x401684
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, ecx
mov esi, edx
mov ebp, eax
mov dword [ebx + 4], 0x100000
push 4
push 0x2000
push 0x100000
push ebp
call sub.advapi32.dll_RegQueryValueExA
mov edi, eax
mov dword [ebx], edi
test edi, edi
jne 0x4016ce
add esi, 0xffff
and esi, 0xffff0000
mov dword [ebx + 4], esi
push 4
push 0x2000
push esi
push ebp
call sub.advapi32.dll_RegQueryValueExA
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x4016f6
mov edx, ebx
mov eax, 0x4ca5e8
call fcn.004014d4
test al, al
jne 0x4016f6
push 0x8000
push 0
mov eax, dword [ebx]
push eax
call fcn.00401454
xor eax, eax
mov dword [ebx], eax
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4017b4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov edx, eax
mov ebp, edx
and ebp, 0xfffff000
add edx, dword [esp]
add edx, 0xfff
and edx, 0xfffff000
mov dword [esp + 8], edx
mov eax, dword [esp + 4]
mov dword [eax], ebp
mov eax, dword [esp + 8]
sub eax, ebp
mov edx, dword [esp + 4]
mov dword [edx + 4], eax
mov esi, dword [0x4ca5e8]
jmp 0x401836
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
add edi, ebx
cmp ebp, ebx
jbe 0x401808
mov ebx, ebp
cmp edi, dword [esp + 8]
jbe 0x401812
mov edi, dword [esp + 8]
cmp edi, ebx
jbe 0x401834
push 4
push 0x1000
sub edi, ebx
push edi
push ebx
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x401834
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
jmp 0x40183e
mov esi, dword [esi]
cmp esi, 0x4ca5e8
jne 0x4017fa
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401bcc
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
cmp byte [0x4ca5c0], 0
je 0x401ca9
xor edx, edx
push ebp
push 0x401ca2
push dword fs:[edx]
mov dword fs:[edx], esp
cmp byte [0x4ca04d], 0
je 0x401bfe
push 0x4ca5c8
call sub.KERNEL32.DLL_LocalAlloc
mov byte [0x4ca5c0], 0
mov eax, dword [0x4ca620]
push eax
call sub.advapi32.dll_RegOpenKeyExA
xor eax, eax
mov dword [0x4ca620], eax
mov ebx, dword [0x4ca5e8]
jmp 0x401c31
push 0x8000
push 0
mov eax, dword [ebx + 8]
push eax
call fcn.00401454
mov ebx, dword [ebx]
cmp ebx, 0x4ca5e8
jne 0x401c1f
mov eax, 0x4ca5e8
call fcn.004014cc
mov eax, 0x4ca5f8
call fcn.004014cc
mov eax, 0x4ca624
call fcn.004014cc
mov eax, dword [0x4ca5e0]
test eax, eax
je 0x401c77
mov edx, dword [eax]
mov dword [0x4ca5e0], edx
push eax
call sub.advapi32.dll_RegOpenKeyExA
mov eax, dword [0x4ca5e0]
test eax, eax
jne 0x401c60
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401ca9
cmp byte [0x4ca04d], 0
je 0x401c97
push 0x4ca5c8
call sub.KERNEL32.DLL_TlsGetValue
push 0x4ca5c8
call sub.KERNEL32.DLL_TlsSetValue
ret
pop ebx
pop ebp
ret
Function at 0x4021f4
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, eax
cmp byte [0x4ca5c0], 0
jne 0x402211
call fcn.00401b08
test al, al
je 0x402219
cmp ebx, 0x7ffffff8
jle 0x402223
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x402377
xor ecx, ecx
push ebp
push 0x402370
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x4ca04d], 0
je 0x402244
push 0x4ca5c8
call sub.KERNEL32.DLL_LocalAlloc
add ebx, 7
and ebx, 0xfffffffc
cmp ebx, 0xc
jge 0x402254
mov ebx, 0xc
cmp ebx, 0x1000
jg 0x4022f3
mov eax, ebx
test eax, eax
jns 0x402269
add eax, 3
sar eax, 2
mov edx, dword [0x4ca620]
mov edx, dword [edx + eax*4 - 0xc]
test edx, edx
je 0x4022f3
mov esi, edx
mov eax, esi
add eax, ebx
and dword [eax], 0xfffffffe
mov eax, dword [edx + 4]
cmp edx, eax
jne 0x4022a4
mov eax, ebx
test eax, eax
jns 0x402293
add eax, 3
sar eax, 2
mov ecx, dword [0x4ca620]
xor edi, edi
mov dword [ecx + eax*4 - 0xc], edi
jmp 0x4022ca
mov ecx, ebx
test ecx, ecx
jns 0x4022ad
add ecx, 3
sar ecx, 2
mov edi, dword [0x4ca620]
mov dword [edi + ecx*4 - 0xc], eax
mov ecx, dword [edx]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, esi
mov edx, dword [edx + 8]
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4ca5b4]
sub ebx, 4
add dword [0x4ca5b8], ebx
call fcn.00404a64
jmp 0x402377
cmp ebx, dword [0x4ca618]
jg 0x402345
sub dword [0x4ca618], ebx
cmp dword [0x4ca618], 0xc
jge 0x402317
add ebx, dword [0x4ca618]
xor eax, eax
mov dword [0x4ca618], eax
mov eax, dword [0x4ca61c]
add dword [0x4ca61c], ebx
mov edx, ebx
or edx, 2
mov dword [eax], edx
add eax, 4
mov dword [ebp - 4], eax
inc dword [0x4ca5b4]
sub ebx, 4
add dword [0x4ca5b8], ebx
call fcn.00404a64
jmp 0x402377
mov eax, ebx
call fcn.00402100
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402377
cmp byte [0x4ca04d], 0
je 0x40236f
push 0x4ca5c8
call sub.KERNEL32.DLL_TlsGetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x402384
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
mov dword [0x4ca5c4], eax
cmp byte [0x4ca5c0], 0
jne 0x4023bc
call fcn.00401b08
test al, al
jne 0x4023bc
mov dword [0x4ca5c4], 8
mov dword [ebp - 4], 8
jmp 0x40251d
xor ecx, ecx
push ebp
push 0x402516
push dword fs:[ecx]
mov dword fs:[ecx], esp
cmp byte [0x4ca04d], 0
je 0x4023dd
push 0x4ca5c8
call sub.KERNEL32.DLL_LocalAlloc
mov esi, ebx
sub esi, 4
mov ebx, dword [esi]
test bl, 2
jne 0x4023f8
mov dword [0x4ca5c4], 9
jmp 0x4024ed
dec dword [0x4ca5b4]
mov eax, ebx
and eax, 0x7ffffffc
sub eax, 4
sub dword [0x4ca5b8], eax
test bl, 1
je 0x402458
mov eax, esi
sub eax, 0xc
mov edx, dword [eax + 8]
cmp edx, 0xc
jl 0x402428
test edx, 0x80000003
je 0x402437
mov dword [0x4ca5c4], 0xa
jmp 0x4024ed
mov eax, esi
sub eax, edx
cmp edx, dword [eax + 8]
je 0x40244f
mov dword [0x4ca5c4], 0xa
jmp 0x4024ed
add ebx, edx
mov esi, eax
call fcn.00401cac
and ebx, 0x7ffffffc
mov eax, esi
add eax, ebx
mov edi, eax
cmp edi, dword [0x4ca61c]
jne 0x402498
sub dword [0x4ca61c], ebx
add dword [0x4ca618], ebx
cmp dword [0x4ca618], 0x3c00
jle 0x402489
call fcn.00401f9c
xor eax, eax
mov dword [ebp - 4], eax
call fcn.00404a64
jmp 0x40251d
mov edx, dword [eax]
test dl, 2
je 0x4024bb
and edx, 0x7ffffffc
cmp edx, 4
jge 0x4024b6
mov dword [0x4ca5c4], 0xb
jmp 0x4024ed
or dword [eax], 1
jmp 0x4024e4
mov eax, edi
cmp dword [eax + 4], 0
je 0x4024ce
cmp dword [eax], 0
je 0x4024ce
cmp dword [eax + 8], 0xc
jge 0x4024da
mov dword [0x4ca5c4], 0xb
jmp 0x4024ed
mov edx, dword [eax + 8]
add ebx, edx
call fcn.00401cac
mov edx, ebx
mov eax, esi
call fcn.00401f14
mov eax, dword [0x4ca5c4]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40251d
cmp byte [0x4ca04d], 0
je 0x402515
push 0x4ca5c8
call sub.KERNEL32.DLL_TlsGetValue
ret
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret