joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4042e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40440c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40425f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40440c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40425f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404428
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4042e8
xor eax, eax
push ebp
push 0x4042e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404024
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4042c6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404448
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4042c6
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4042e8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404402
cmp byte [ebp - 0xd], 0
jne 0x40432f
cmp byte [ebp - 0x12], 0
je 0x404402
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404348
dec ebx
cmp byte [ebx], 0x2e
je 0x404357
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404347
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404402
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404394
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404402
cmp byte [ebp - 0xd], 0
je 0x404402
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404402
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404598
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4045fe
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c10
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402afc
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4045e8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404605
lea eax, [ebp - 0x10]
call fcn.004039c8
ret

Function at 0x4063a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4063dd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403ab8
jmp 0x4063e6
mov eax, ebx
mov edx, esi
call fcn.00403a1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4063f0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x406411
mov al, byte [esp]
jmp 0x406413
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406a98
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406910
mov eax, dword [0x4093b0]
cmp byte [eax], 0
je 0x406b14
mov eax, dword [0x409304]
call fcn.004029c0
call fcn.0040262c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405898
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406b5c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406b4a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4092e4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40a660]
call fcn.00403fe8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x407508
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40756c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403c10
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040576c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407573
lea eax, [ebp - 0xc]
call fcn.004039c8
ret

Function at 0x7b5ad4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7b5ade
pushal
call 0x7b5ae4
pop ebp
sub ebp, 0x10
sub ebp, 0x3b5ad4
mov al, byte [esp + 0x28]
cmp al, 1
je 0x7b5b08
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x7b5b11
mov eax, 0x3b5ad4
add eax, ebp
add eax, 0x63
mov ecx, 0x5fb
mov edx, 0x556ac374
xor byte [eax], dl
inc eax
dec ecx
jne 0x7b5b28
jmp 0x7b5b3b
invalid

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x24ac3f23
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x46bd7488
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x100715e
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 4]
mov esi, dword [eax + 4]
mov ecx, dword [0x1027a7c]
mov ebx, eax
mov dl, 1
jmp 0x100712c
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
cmp edx, dword [esi + 0xc]
mov ebx, esi
setb dl
test dl, dl
je 0x1007129
mov esi, dword [esi]
jmp 0x100712c
mov esi, dword [esi + 8]
cmp esi, ecx
jne 0x1007114
cmp byte [edi + 8], 0
je 0x100713b
push dword [ebp + 0xc]
jmp 0x100715e
test dl, dl
mov ecx, ebx
mov dword [ebp - 4], ecx
je 0x1007153
cmp ebx, dword [eax]
je 0x1007136
lea ecx, [ebp - 4]
call fcn.01004e4b
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp + 0xc]
cmp edx, dword [eax]
jae 0x1007176
push eax
push ebx
push esi
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.01006cbd
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
mov byte [eax + 4], 1
jmp 0x100717d
mov eax, dword [ebp + 8]
and byte [eax + 4], 0
pop edi
pop esi
mov dword [eax], ecx
pop ebx
leave
ret 8

Function at 0x10087fc
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x101e2c5
call fcn.0101ced0
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebx + 0x24]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.01007db6
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov edi, 0x3fffff
and esi, edi
mov ecx, eax
and eax, edi
mov edx, esi
sub edx, eax
shr ecx, 0x16
inc edx
mov dword [ebp - 0x18], edx
mov eax, dword [ebx + 0x20]
shl ecx, 5
add eax, ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax + 0xc]
and ecx, edi
cmp ecx, esi
ja 0x100885d
cmp dword [ebp - 0x14], edx
jae 0x100885d
cmp dword [eax + 0x10], 1
mov cx, word [eax + 0x16]
mov word [ebp + 8], cx
jne 0x1008843
mov eax, dword [eax]
push dword [eax]
mov ecx, dword [ebx + 8]
call fcn.01017af1
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp + 0xc]
push dword [eax + ecx + 0xc]
mov ecx, ebx
call fcn.01008463
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp word [ebp + 8], 0xffff
je 0x100885d
movsx ecx, word [ebp + 8]
jmp 0x10087f9
and dword [ebp + 8], 0
jmp 0x1008866
add ebx, 0x24
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x1008943
Capabilities:
Set registry value

Disassembly:
mov eax, 0x101e2d9
call fcn.0101ced0
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x24]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.01007db6
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, 0x3fffff
and edi, ebx
mov ecx, eax
and eax, ebx
mov edx, edi
sub edx, eax
shr ecx, 0x16
inc edx
mov dword [ebp - 0x18], edx
mov eax, dword [esi + 0x20]
shl ecx, 5
add eax, ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax + 0xc]
and ecx, ebx
cmp ecx, edi
mov ecx, dword [ebp - 0x14]
ja 0x10089ee
cmp ecx, edx
jae 0x10089ee
cmp dword [eax + 0x10], 1
mov cx, word [eax + 0x16]
mov word [ebp + 8], cx
jne 0x10089d1
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [esi + 8]
push 0
push eax
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0101a206
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 0xc]
push dword [eax + ecx + 0xc]
mov ecx, esi
call fcn.01008463
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp word [ebp + 8], 0xffff
mov ecx, dword [ebp - 0x14]
je 0x10089ee
movsx ecx, word [ebp + 8]
jmp 0x100897d
neg ecx
sbb ecx, ecx
and ecx, 0x7ffbfde7
add ecx, 0x80040219
mov dword [ebp + 8], ecx
jmp 0x1008a06
add esi, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x10089db
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x101e2d9
call fcn.0101ced0
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x24]
mov dword [ebp - 0x10], esp
push eax
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, esi
call fcn.01007db6
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, 0x3fffff
and edi, ebx
mov ecx, eax
and eax, ebx
mov edx, edi
sub edx, eax
shr ecx, 0x16
inc edx
mov dword [ebp - 0x18], edx
mov eax, dword [esi + 0x20]
shl ecx, 5
add eax, ecx
mov dword [ebp + 0xc], ecx
mov ecx, dword [eax + 0xc]
and ecx, ebx
cmp ecx, edi
mov ecx, dword [ebp - 0x14]
ja 0x10089ee
cmp ecx, edx
jae 0x10089ee
cmp dword [eax + 0x10], 1
mov cx, word [eax + 0x16]
mov word [ebp + 8], cx
jne 0x10089d1
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, dword [esi + 8]
push 0
push eax
mov eax, dword [esi]
push dword [eax + 4]
call fcn.0101a206
mov eax, dword [esi + 0x20]
mov ecx, dword [ebp + 0xc]
push dword [eax + ecx + 0xc]
mov ecx, esi
call fcn.01008463
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
cmp word [ebp + 8], 0xffff
mov ecx, dword [ebp - 0x14]
je 0x10089ee
movsx ecx, word [ebp + 8]
jmp 0x100897d
neg ecx
sbb ecx, ecx
and ecx, 0x7ffbfde7
add ecx, 0x80040219
mov dword [ebp + 8], ecx
jmp 0x1008a06
add esi, 0x24
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x100c4eb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0100c13d
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov cl, byte [ebp - 4]
mov byte [eax + 4], cl
leave
ret 8

Function at 0x100d5e6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x101e4b1
call fcn.0101ced0
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov esi, ecx
lea ecx, [ebp - 0x18]
push ecx
push ebx
call dword [eax + 0xc]
test eax, eax
jl 0x100d69c
mov eax, dword [ebp - 0x18]
push edi
movzx edi, word [eax + 0x2c]
test edi, edi
mov dword [esi + 0x18], edi
jne 0x100d5b8
xor eax, eax
jmp 0x100d5f9
lea eax, [edi + edi*2]
lea eax, [eax*4 + 4]
push eax
call fcn.0101cdc4
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
test eax, eax
je 0x100d5f3
push fcn.010038b8
push 0x100d6ae
push edi
lea ebx, [eax + 4]
push 0xc
push ebx
mov dword [eax], edi
call fcn.0101cf40
mov eax, ebx
mov ebx, dword [ebp + 8]
jmp 0x100d5f5
xor eax, eax
or dword [ebp - 4], 0xffffffff
xor edi, edi
cmp dword [esi + 0x18], edi
mov dword [esi + 0x14], eax
mov dword [ebp - 0x10], edi
jle 0x100d692
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push ebx
call dword [eax + 0x14]
test eax, eax
jl 0x100d680
xor eax, eax
mov dword [ebp + 8], eax
mov ecx, dword [ebx]
push eax
push eax
push eax
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x14]
push dword [eax]
mov dword [ebp - 4], 1
push ebx
call dword [ecx + 0x30]
test eax, eax
jl 0x100d66a
mov eax, dword [esi + 0x14]
mov ecx, dword [ebp + 8]
and dword [ebp + 8], 0
add eax, edi
mov dword [eax], ecx
mov eax, dword [esi + 0x14]
push dword [edi + eax]
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov ecx, dword [esi + 0x14]
mov dword [ecx + edi + 4], eax
mov ecx, dword [ebp - 0x14]
mov eax, dword [esi + 0x14]
mov ecx, dword [ecx]
mov dword [eax + edi + 8], ecx
push dword [ebp - 0x14]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x50]
push dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
add edi, 0xc
cmp eax, dword [esi + 0x18]
jl 0x100d60a
push dword [ebp - 0x18]
mov eax, dword [ebx]
push ebx
call dword [eax + 0x4c]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x100dc71
Capabilities:
Create thread

Disassembly:
mov eax, 0x101e4d7
call fcn.0101ced0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x3d4]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp dword [eax + 0x7c], ecx
push edi
mov dword [ebp - 0x10], ecx
jbe 0x100dbff
mov dword [ebp - 0x18], ecx
mov edi, 0x1b04
mov eax, dword [esi + 0x3d4]
mov ecx, dword [ebp - 0x18]
mov eax, dword [eax + 0x84]
add eax, ecx
movzx ecx, word [eax]
cmp ecx, dword [edi + 0x10221bc]
jne 0x100dbda
movzx eax, word [eax + 0x38]
lea ebx, [edi + 0x10221c0]
cmp eax, dword [ebx]
jne 0x100dbda
push dword [edi + 0x10223c8]
lea ecx, [esi + 0xd4]
call fcn.0101b195
cmp dword [edi + 0x10221bc], 0xd
jne 0x100dbda
cmp dword [ebx], 0x45
jne 0x100dbda
mov dword [edi + 0x10221b8], 1
add edi, 0x214
cmp edi, 0x5534
jb 0x100db87
inc dword [ebp - 0x10]
mov eax, dword [esi + 0x3d4]
mov ecx, dword [ebp - 0x10]
add dword [ebp - 0x18], 0x48
cmp ecx, dword [eax + 0x7c]
jb 0x100db82
xor ecx, ecx
mov dword [0x1023cbc], 1
mov dword [ebp - 0x18], ecx
mov ebx, 0x1b04
jmp 0x100dc15
xor ecx, ecx
lea eax, [ebx + 0x10221b8]
cmp dword [eax], ecx
je 0x100dce8
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], ecx
call fcn.0100db1d
test eax, eax
jl 0x100dce8
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x100dce8
lea eax, [ebx + 0x10221c4]
push eax
push dword [ebp - 0x18]
lea eax, [esi + 8]
push dword [esi + 0x3d4]
mov ecx, edi
push eax
call fcn.0100a5d6
test eax, eax
jl 0x100dcc2
and dword [ebp - 0x10], 0
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
lea eax, [edi + 8]
mov ecx, dword [eax]
push 0x1001d10
push eax
call dword [ecx]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x14]
push dword [ebp - 0x10]
lea eax, [esi + 0x10]
push dword [ebp - 0x14]
push eax
call fcn.0100cb81
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100dcbc
mov ecx, dword [eax]
push eax
call dword [ecx + CharNextW]
cmp dword [ebp - 0x1c], 0
jge 0x100dcca
mov eax, dword [edi]
push 1
mov ecx, edi
call dword [eax]
mov eax, dword [ebp - 0x14]
and dword [esi + eax*8 + 0x3f4], 0
mov eax, dword [ebx + 0x10221c0]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov dword [esi + ecx*8 + 0x3f0], eax
add ebx, 0x214
cmp ebx, 0x2354
jb 0x100dc13
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1012872
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov eax, 0x101e74e
call fcn.0101ced0
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x1028a18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.01010840
test eax, eax
jl 0x10127ff
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
mov dword [eax], ecx
jmp 0x101289b
xor esi, esi
push 0x410
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x8007000e
mov dword [ebp - 4], esi
call fcn.0101cdc4
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, esi
mov byte [ebp - 4], 1
je 0x1012838
call fcn.010125b6
mov esi, eax
jmp 0x1012838
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1012896
lea edi, [esi + 0x38]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov ecx, esi
call fcn.01013016
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test ebx, ebx
jne 0x1012885
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x1028a30
mov dword [ebp - 0x20], esi
call fcn.01010ad6
cmp byte [ebp - 0x18], bl
jne 0x101288f
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
push 0x1028a18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8

Function at 0x101301a
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x8001fa0
lea eax, [esi + 0x3d8]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1013036
mov eax, 0x8007000e
pop esi
ret
mov ecx, esi
call fcn.0101745c
xor eax, eax
pop esi
ret

Function at 0x101304b
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
call fcn.01018258
lea eax, [esi + 0x3d8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [esi + 0xfc]
test eax, eax
je 0x1013067
push eax
call fcn.0101cdbe
pop ecx
mov eax, dword [esi + 0x108]
test eax, eax
je 0x1013078
push eax
call fcn.0101cdbe
pop ecx
mov eax, dword [esi + 0x110]
test eax, eax
je 0x1013089
push eax
call fcn.0101cdbe
pop ecx
lea ecx, [esi + 0x2d0]
pop esi
jmp 0x101b389
Function at 0x10145fa
Capabilities:
Set registry value

Disassembly:
mov eax, 0x101e834
call fcn.0101ced0
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x1027abc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.0100c25a
test eax, eax
jl 0x101459a
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x14], 0
mov dword [eax], ecx
jmp 0x1014627
xor esi, esi
push reloc.msvcrt.dll___2_YAPAXI_Z
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 0x8007000e
mov dword [ebp - 4], esi
call fcn.0101cdc4
pop ecx
mov ecx, eax
mov dword [ebp - 0x20], ecx
cmp ecx, esi
mov byte [ebp - 4], 1
je 0x10145d3
call fcn.01014486
mov esi, eax
jmp 0x10145d3
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x1014622
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov eax, dword [ebx]
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, 0x1027ad4
mov dword [ebp - 0x20], esi
call fcn.0100c470
cmp byte [ebp - 0x18], 0
jne 0x101461b
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor esi, esi
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
push 0x1027abc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x1016f40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, ecx
push 8
pop ecx
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx]
test eax, eax
je 0x1016ee3
shl eax, 4
push eax
call fcn.0101cdc4
test eax, eax
pop ecx
mov dword [ebx + 4], eax
je 0x1016f7f
mov ecx, dword [ebx]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 4]
shl ecx, 4
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 8]
xor esi, esi
cmp eax, esi
je 0x1016fb8
shl eax, 4
push eax
call fcn.0101cdc4
cmp eax, esi
pop ecx
mov dword [ebx + 0xc], eax
je 0x1016f7f
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0xc]
shl ecx, 4
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [edx + 0x10], 0
je 0x1016f5f
mov eax, dword [ebx + 8]
add eax, 0x1f
shr eax, 5
shl eax, 2
push eax
call fcn.0101cdc4
test eax, eax
pop ecx
mov dword [ebx + 0x10], eax
je 0x1016f7f
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x10]
add ecx, 0x1f
shr ecx, 5
shl ecx, 2
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [edx + 0x14], 0
je 0x1016fc1
mov eax, dword [ebx + 8]
add eax, 0x1f
shr eax, 5
shl eax, 2
push eax
call fcn.0101cdc4
test eax, eax
pop ecx
mov dword [ebx + 0x14], eax
jne 0x1016f94
push 0x101f2c8
lea eax, [ebp + 8]
push eax
mov dword [ebp + 8], 0x8007000e
call fcn.0101cf3a
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 8]
mov esi, dword [edx + 0x14]
add ecx, 0x1f
shr ecx, 5
shl ecx, 2
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x1016fc1
mov dword [ebx + 0xc], esi
mov dword [ebx + 0x10], esi
mov dword [ebx + 0x14], esi
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 4