joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1005f747
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x10189058], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov byte [0x1018905c], 0
mov dword [0x1018904c], 0x1066
mov dword [0x10189054], 0
mov dword [ebp - 0x1c], eax
jmp 0x1005f876
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov edx, 0x31a6
mov esi, 0x100
mov dword [ebp - 0x28], eax
xor edi, edi
mov dword [ebp - 0x2c], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
mov dword [0x10189060], 0
mov ebx, dword [0x10189058]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x30], ecx
mov ecx, dword [ebp - 0x28]
movzx ecx, byte [edi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x10189060], ecx
mov edx, dword [ebp - 0x30]
mov dword [0x1018904c], edx
mov eax, ecx
cdq
idiv esi
mov dword [0x10189058], edx
mov ecx, dword [ebp - 0x28]
mov cl, byte [edi + ecx]
mov byte [0x1018905c], cl
mov cl, byte [edi + edx]
mov edx, dword [ebp - 0x28]
mov byte [edi + edx], cl
mov cl, byte [0x1018905c]
mov esi, dword [0x10189058]
mov byte [edi + esi], cl
mov dword [0x1018904c], 0xe81
mov dword [0x10189050], 0xcc9
mov esi, dword [0x10189054]
add esi, 1
mov dword [0x10189054], esi
cmp esi, 0x100
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], esi
jl 0x1005f791
jmp 0x1005f8a8
xor eax, eax
mov dword [0x10189054], 0
mov ecx, dword [0x10189050]
add ecx, 0x24dd
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
jmp 0x1005f791
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1018904c], 0x14c8
mov eax, dword [0x10189054]
add eax, 1
mov dword [0x10189054], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1005f876
jmp 0x1005f853
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, ebx
nop
inc eax
mov eax, ebx
mov eax, ecx
inc eax
inc eax
mov eax, 0x65c7c624
cmp eax, 0x40
cmp eax, 0xb8748985
nop
mov eax, ebx
inc eax
inc eax
nop
cmp eax, 0x91cdebbd
cmp eax, 0x51
mov eax, 0xa4e6703a
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
mov eax, ecx
mov eax, ebx
cmp eax, 0xcf8f3a36
mov eax, ebx
cmp eax, 0xffffff8d
mov eax, ecx
nop
cmp eax, 0x8af4a667
nop
mov eax, 0x551fc3c6
nop
mov eax, ecx
mov eax, ebx
inc eax
cmp eax, 0x4b
mov eax, ebx
cmp eax, 0xffffffd2
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
nop
cmp eax, 0xffffff88
cmp eax, 0x45b462ce
nop
inc eax
mov eax, ecx
inc eax
mov eax, ebx
mov eax, ebx
cmp eax, 0xb67da7
mov eax, ebx
inc eax
mov eax, ecx
inc eax
cmp eax, 0xda054b9b
cmp eax, 0x7f
inc eax
mov eax, ecx
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
nop
mov eax, ebx
mov eax, 0xef572824
cmp eax, 0x7a
cmp eax, 0x929cb94a
cmp eax, 0xffffff94
mov eax, 0xe596d35d
cmp eax, 0x1b679c47
mov eax, ebx
mov eax, 0x2dc330ef
nop
mov eax, 0x2f6bc7b9
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
cmp eax, 0x65
inc eax
nop
mov eax, ebx
cmp eax, 0xffffffe7
mov eax, ecx
mov eax, ecx
cmp eax, 0x30b0ac
nop
mov eax, 0x7cc96202
mov eax, ecx
cmp eax, 0x18
inc eax
inc eax
mov eax, ecx
inc eax
nop
cmp eax, 0x5d
mov eax, ecx
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 0xaccc4290
mov eax, ebx
inc eax
inc eax
cmp eax, 0x73e7fb96
inc eax
mov eax, ecx
nop
mov eax, ecx
mov eax, 0x14edc194
mov eax, ebx
cmp eax, 6
mov eax, ecx
nop
mov eax, ecx
nop
mov eax, 0x7ee5402a
inc eax
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100028a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], 0x4e52454b
mov dword [ebp - 0x28], 0x32334c45
mov dword [ebp - 0x24], 0x6c6c642e
mov byte [ebp - 0x20], 0
mov eax, dword [edi]
mov dword [ebp - 8], edi
movzx esi, word [eax + 0x14]
add esi, eax
mov dword [ebp - 0x1c], 0x74726956
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], 0x466c6175
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x14], 0x656572
push eax
call dword [0x10161de8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, dword [edi]
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
cmp cx, word [edi + 6]
jae 0x100029da
add esi, 0x28
push ebx
mov edx, dword [esi + 0x14]
test edx, 0x2000000
je 0x10002930
push 0x4000
push dword [esi]
push dword [esi - 8]
call eax
jmp 0x100029bb
mov ecx, edx
mov eax, edx
shr eax, 0x1e
shr ecx, 0x1d
and eax, 1
and ecx, 1
lea ecx, [eax + ecx*2]
mov eax, edx
shr eax, 0x1f
lea eax, [eax + ecx*2]
mov ebx, dword [eax*4 + 0x101912e0]
test edx, 0x4000000
je 0x10002960
or ebx, 0x200
mov eax, dword [esi]
test eax, eax
jne 0x1000297b
test dl, 0x40
je 0x10002970
mov eax, dword [edi + 0x20]
jmp 0x10002977
test dl, dl
jns 0x100029bb
mov eax, dword [edi + 0x24]
test eax, eax
je 0x100029bb
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x74726956
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x38], 0x506c6175
push eax
mov dword [ebp - 0x34], 0x65746f72
mov word [ebp - 0x30], 0x7463
mov byte [ebp - 0x2e], 0
call dword [0x10161de8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [ebp - 0x10]
push ecx
push ebx
push dword [esi]
push dword [esi - 8]
call eax
mov eax, dword [ebp - 8]
add esi, 0x28
mov ecx, dword [ebp - 4]
inc ecx
mov dword [ebp - 4], ecx
mov edi, dword [eax]
movzx eax, word [edi + 6]
cmp ecx, eax
mov eax, dword [ebp - 0xc]
jl 0x10002914
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10003050
Capabilities:
Contain obfuscated stackstrings
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
mov ebx, ecx
test ebx, ebx
je 0x10003216
cmp dword [ebx + 0x10], 0
lea eax, [ebx + 4]
mov dword [ebp - 4], eax
je 0x10003086
mov ecx, dword [eax]
mov eax, dword [ebx]
push 0
push 0
push ecx
mov eax, dword [eax + 0x28]
add eax, ecx
call eax
mov dword [ebx + 0x10], 0
jmp 0x10003089
mov dword [ebp - 4], eax
cmp dword [ebx + 8], 0
push esi
mov esi, dword [0x10161de8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x44], 0x4e52454b
mov dword [ebp - 0x40], 0x32334c45
mov dword [ebp - 0x3c], 0x6c6c642e
mov byte [ebp - 0x38], 0
je 0x10003186
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0x65657246
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x24], 0x7262694c
push eax
mov dword [ebp - 0x20], 0x797261
call esi
push eax
call edi
xor esi, esi
mov edi, eax
cmp dword [ebx + 0xc], esi
jle 0x100030f9
mov ecx, dword [ebx + 8]
mov eax, dword [ecx + esi*4]
cmp eax, 0xffffffff
je 0x100030f3
push eax
call edi
inc esi
cmp esi, dword [ebx + 0xc]
jl 0x100030e5
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x54], 0x4e52454b
push eax
mov dword [ebp - 0x50], 0x32334c45
mov dword [ebp - 0x4c], 0x6c6c642e
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x10], 0x70616548
mov dword [ebp - 0xc], 0x65657246
mov byte [ebp - 8], 0
call dword [0x10161de8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
mov dword [ebp - 0x64], 0x50746547
lea eax, [ebp - 0x64]
mov dword [ebp - 0x60], 0x65636f72
push eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x5c], 0x65487373
push eax
mov word [ebp - 0x58], 0x7061
mov byte [ebp - 0x56], 0
call dword [0x10161de8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0
call eax
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [0x10161de8]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x74726956
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x30], 0x466c6175
push eax
mov dword [ebp - 0x2c], 0x656572
call esi
push eax
call edi
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
test ecx, ecx
je 0x100031bb
push 0x8000
push 0
push ecx
call eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x70616548
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], 0x65657246
push eax
mov byte [ebp - 0x14], 0
call esi
push eax
call edi
mov esi, eax
mov dword [ebp - 0x74], 0x50746547
lea eax, [ebp - 0x74]
mov dword [ebp - 0x70], 0x65636f72
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x6c], 0x65487373
push eax
mov word [ebp - 0x68], 0x7061
mov byte [ebp - 0x66], 0
call dword [0x10161de8]
push eax
call edi
push ebx
push 0
call eax
push eax
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100063c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101527c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.10007fb0
mov esi, eax
add esp, 4
test esi, esi
je 0x1000640f
push 1
mov dword [ebp - 4], 0
call fcn.1014444a
add esp, 4
mov dword [esi + 4], eax
jmp 0x10006411
xor esi, esi
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10007cfd
Capabilities:
Get common file path

Disassembly:
sub esp, 0x214
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, edx
mov ebx, ecx
xor esi, esi
lock cmpxchg dword [ebx], esi
test eax, eax
je 0x10007d2b
cmp eax, 0xffffffff
jne 0x10007d1e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x214
ret 4
xor ebp, ebp
test byte [esp + 0x228], 1
mov dword [esp + 0x10], ebp
je 0x10007d47
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
jmp 0x10007dea
call fcn.10007bda
mov esi, eax
test esi, esi
je 0x10007d1c
test byte [esp + 0x228], 2
je 0x10007d63
push 2
jmp 0x10007de6
test byte [esp + 0x228], 4
je 0x10007d70
push ebp
jmp 0x10007de6
call fcn.10007b32
test eax, eax
jne 0x10007de1
call fcn.10007b92
mov ebp, eax
test ebp, ebp
je 0x10007d1c
push 0x208
lea eax, [esp + 0x20]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [esp + 0x1c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10007ddb
cmp eax, 0x104
jae 0x10007ddb
mov ecx, edi
call fcn.10007a54
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], edx
push eax
push 0
lea eax, [esp + 0x28]
push eax
call ebp
mov eax, dword [esp + 0x10]
jmp 0x10007dee
push 0
push 0
jmp 0x10007de7
push 0x800
push ebp
push edi
call esi
mov dword [esp + 0x10], eax
test eax, eax
jne 0x10007dfc
or eax, 0xffffffff
xchg dword [ebx], eax
jmp 0x10007d1c
xchg dword [ebx], eax
test eax, eax
je 0x10007e0c
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
jmp 0x10007d1e

Function at 0x10009b3a
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 0x10009b93
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10009b93
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 0x10009b84
cmp esi, ecx
jae 0x10009b93
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10009b72
cmp esi, ecx
jae 0x10009b93
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
jmp 0x10009b95
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1000b452
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x18
mov eax, 0x10152b8f
call fcn.10143411
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 0x1000b4fa
push dword [ebp + 8]
call fcn.1000b77d
mov dword [ebp - 0x10], eax
test eax, eax
je 0x1000b58c
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 0x1000b4e3
push ecx
call fcn.1001c306
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 0x1000b4e3
xor edi, edi
inc edi
jmp 0x1000b4ed
push dword [ebx]
call fcn.10007fe8
pop ecx
mov dword [ebx], edi
lea ecx, [ebp - 0x24]
call fcn.1000b319
jmp 0x1000b58a
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 [0x10161a6c]
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 0x1000b582
mov esi, dword [ebp + 0x14]
shr ecx, 1
push ecx
mov dword [esi], ecx
call fcn.1001c306
mov dword [ebx], eax
pop ecx
cmp dword [esi], edi
jbe 0x1000b57c
mov esi, dword [ebp + 0x10]
xor ecx, ecx
inc ecx
mov dword [ebp - 0x18], ecx
push ecx
lea ecx, [ebp - 0x10]
call fcn.1000b2f5
lea ecx, [edi + edi]
mov bl, al
push ecx
lea ecx, [ebp - 0x10]
call fcn.1000b2f5
mov ecx, dword [esi]
shl bl, 4
sub bl, 0x51
add al, bl
mov byte [edi + ecx], al
inc edi
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
add ecx, 2
mov dword [ebp - 0x18], ecx
cmp edi, dword [eax]
jb 0x1000b547
mov eax, dword [ebp - 0x10]
xor edi, edi
inc edi
lea ecx, [eax - 0x10]
call fcn.100096f2
mov eax, edi
call fcn.101433df
ret 0x10

Function at 0x1000b594
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 0x1000b5e7
push esi
push dword [ebp + 8]
call fcn.1000b77d
mov edi, eax
test edi, edi
je 0x1000b5e2
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 [0x10161dec]
test esi, esi
jne 0x1000b5e2
mov eax, dword [ebp - 8]
jmp 0x1000b5f9
mov eax, dword [ebp + 0x10]
jmp 0x1000b5f9
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 0x1000b5ff
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10152bbc
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.10143190
mov eax, dword [0x101ae064]
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 - 0x201c], edi
mov dword [ebp - 0x2024], eax
cmp dword [ecx + 0x58], ebx
je 0x1000b730
push ebx
push edx
call fcn.1000b77d
mov ebx, eax
test ebx, ebx
jne 0x1000b667
push esi
jmp 0x1000b758
lea ecx, [ebp - 0x2014]
call fcn.10008143
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 ebx
mov dword [ebp - 0x2018], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x201c], eax
test eax, eax
jne 0x1000b6ef
mov eax, dword [ebp - 0x2018]
lea ecx, [ebp - 0x2014]
shr eax, 1
push eax
call fcn.1000932e
lea ecx, [ebp - 0x2018]
push ecx
push eax
lea eax, [ebp - 0x2020]
push eax
push 0
push dword [ebp - 0x2024]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x2014]
mov dword [ebp - 0x201c], eax
call fcn.1000b8b9
push ebx
call dword [0x10161dec]
cmp dword [ebp - 0x201c], 0
jne 0x1000b71d
mov esi, dword [ebp - 0x2014]
add esi, 0xfffffff0
push esi
call fcn.100089ca
pop ecx
add eax, 0x10
mov ecx, esi
mov dword [edi], eax
call fcn.100096f2
jmp 0x1000b75f
push esi
mov ecx, edi
call fcn.10008099
mov ecx, dword [ebp - 0x2014]
lea ecx, [ecx - 0x10]
jmp 0x1000b716
test esi, esi
jne 0x1000b739
mov esi, 0x10162418
push dword [ecx + 0x6c]
lea ecx, [ebp - 0x2010]
push 0x1000
push ecx
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2010]
push eax
mov ecx, edi
call fcn.10008099
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.101433d1
leave
ret 0x10
Function at 0x1000d677
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], ecx
inc eax
inc ebx
mov dword [ebp - 4], eax
cmp dword [edi + 8], ebx
jle 0x1000d6ee
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x1000d6b4
mov eax, dword [ecx + 0x10]
cmp dword [eax + ebx*8 + 4], edx
je 0x1000d6b4
mov eax, dword [edi + 0xc]
cmp dword [eax + ebx*4], 0
je 0x1000d6e1
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x1000d6e4
mov eax, dword [edi + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x1000d6da
mov eax, dword [eax]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10161a6c]
mov ecx, dword [ebp - 0xc]
call esi
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov eax, dword [edi + 0xc]
and dword [eax + ebx*4], 0
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [edi + 8]
jl 0x1000d697
test eax, eax
je 0x1000d735
lea esi, [ecx + 0x1c]
mov ebx, edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
push edi
add ecx, 0x14
call fcn.1000d966
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x10161a6c]
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 0x1000d9b9
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0x10
mov eax, 0x10152dd6
call fcn.1014347a
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 0x1000dab0
cmp edi, dword [ebx + 0xc]
jge 0x1000dab0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x1000da10
cmp edi, dword [esi + 8]
jl 0x1000da9e
cmp dword [ebp + 0xc], 0
je 0x1000da9e
xor edi, edi
jmp 0x1000da42
xor edi, edi
push 0x10
mov dword [ebp - 4], edi
call fcn.1000d415
mov esi, eax
test esi, esi
je 0x1000da2a
mov dword [esi], vtable.CThreadData.0
jmp 0x1000da2c
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.1000d2d4
cmp dword [esi + 0xc], 0
pop ecx
pop ecx
jne 0x1000da5e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x1000da6a
push 2
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
mov edx, eax
test edx, edx
je 0x1000dad7
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 sub.msvcrt.dll_memset
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 0x1000dab0
cmp edi, dword [esi + 8]
jge 0x1000dab0
mov eax, dword [ebp + 0xc]
mov dword [ecx + edi*4], eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.101433df
ret 8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.1000cfb1
int3
Function at 0x1001cf23
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
jne 0x1001cf34
xor eax, eax
jmp 0x1001cf50
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001cf55
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
lea ecx, [esi + 0xc]
call fcn.10008682
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.1001f1fa
int3

Function at 0x1001cff3
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
push 0
push dword [ebp + 0xc]
mov eax, dword [edi]
push dword [ebp + 8]
mov esi, dword [eax + 0x2c]
mov ecx, esi
call dword [0x10161a6c]
mov ecx, edi
call esi
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x1001d026
pop edi
pop esi
pop ebp
ret 8
lea ecx, [edi + 0xc]
call fcn.10008682
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.1001f1fa
int3

Function at 0x1001d0ff
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x1001d12a
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001d130
cmp dword [ebp - 4], esi
jne 0x1001d147
pop edi
pop esi
leave
ret 8
lea ecx, [edi + 0xc]
call fcn.10008682
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
call fcn.1001f1fa
lea ecx, [edi + 0xc]
call fcn.10008682
push eax
push 0xffffffffffffffff
push 0xd
call fcn.1001ee50
int3