joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e020
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x10031518]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x1001e1cd
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x1001e074
test ebp, ebp
je 0x1001e12d
dec ebp
cmp dword [ebx + 4], 0
je 0x1001e08d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.1001dd00
mov dword [esp + 0x14], eax
jmp 0x1001e0a7
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x1001e12d
test ax, ax
je 0x1001e0c1
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x1001e108
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x10031518]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x1001e12d
cmp dword [esp + 0x30], 0
jne 0x1001e066
cmp ax, 0xd
je 0x1001e134
cmp ax, 0xa
jne 0x1001e066
sub edi, 2
jmp 0x1001e1ac
cmp dword [esp + 0x30], 0
jne 0x1001e1ac
cmp ax, 0xa
jne 0x1001e13f
sub edi, 2
jmp 0x1001e1ac
cmp ax, 0xd
jne 0x1001e1ac
sub edi, 2
cmp dword [ebx + 4], 0
je 0x1001e161
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.1001dd00
mov dword [esp + 0x14], eax
jmp 0x1001e177
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x1001e1ac
cmp dword [ebx + 4], 0
je 0x1001e18b
add dword [ebx + 0xc], 2
jmp 0x1001e1ac
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x1001e1e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x10031518]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x1001e330
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x1001e22c
test edi, edi
je 0x1001e29d
dec edi
push esi
push ebp
call fcn.1001e3b0
mov dword [esp + 0x20], eax
test eax, eax
jne 0x1001e23f
xor cl, cl
jmp 0x1001e241
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x1001e284
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x10031518]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x1001e29d
test eax, eax
jne 0x1001e222
cmp cl, 0xd
je 0x1001e2a1
cmp cl, 0xa
jne 0x1001e222
dec esi
jmp 0x1001e313
test eax, eax
jne 0x1001e313
cmp cl, 0xa
jne 0x1001e2a9
dec esi
jmp 0x1001e313
cmp cl, 0xd
jne 0x1001e313
dec esi
cmp dword [ebp + 4], 0
je 0x1001e2c8
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.1001dd00
mov dword [esp + 0x20], eax
jmp 0x1001e2df
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x1001e313
cmp dword [ebp + 4], 0
je 0x1001e2f1
inc dword [ebp + 0xc]
jmp 0x1001e313
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x1001e3b0
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x1001e3d7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.1001dd00
mov dword [esp + 4], eax
jmp 0x1001e3f1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x1001e3fd
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x1001e419
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x1001e429
mov esi, 2
jmp 0x1001e445
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x1001e438
mov esi, 3
jmp 0x1001e445
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x1001e4a2
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x1001e474
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.1001dd00
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8

Function at 0x1001e518
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x100324d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x1001e579
push esi
push dword [0x100324cc]
push 8
push dword [0x10031518]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x100324d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x100324c8]
jmp 0x1001e569
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1001e567
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x1001e557
push edi
push 0x1001e4b6
call fcn.1001b0e3
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x1001e583
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x1001e599
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x100324cc]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x1001e5d0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x10031518]
mov dword [0x100324d0], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x100324d0]
call ebx
mov eax, dword [0x100324cc]
mov edi, eax
add eax, esi
push eax
push dword [0x100324d0]
mov dword [0x100324cc], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x10031518]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x100324d0]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x1001e610
test ebx, ebx
je 0x1001e631
push 0x14
push 0x100324c8
call fcn.1001e8bb
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x1001e631
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x1001f400
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1002b074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1001f446
mov ecx, dword [ebp - 4]
add ecx, 0xa
push ecx
push 0
mov edx, dword [0x10032748]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x1001f467
mov edx, dword [ebp - 4]
add edx, 0xa
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x10032748]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
shr edx, 1
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1001f8e0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x1001f490
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1002b074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x1001f590
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1002b074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret
Function at 0x1001f750
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1002b074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x1001f774
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
lea eax, [ecx + edx*2]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
sub edx, 4
cmp dword [ebp - 8], edx
jl 0x1001f7c4
mov eax, dword [ebp - 8]
add eax, 0x4000
mov ecx, dword [ebp - 4]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10032748]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x1001f80c
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 0x100000
jle 0x1001f80c
cmp dword [ebp - 8], 0x100000
jge 0x1001f7e0
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
add eax, 0xa
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
push 0
mov eax, dword [0x10032748]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea eax, [edx + ecx*2]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x1001f830
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1002b074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
shl ecx, 1
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1001f860
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x1002b074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x1001f89e
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x1001f89e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x1001f8a0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1001fdd0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1002b074]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x403890
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 0x4038e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4038e9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4038da
cmp esi, edx
jae 0x4038e9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4038c8
cmp esi, edx
jae 0x4038e9
cmp word [esi], 0
je 0x4038e9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x406f00
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x426dcd
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x438348]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
lea edi, [ebx + 4]
mov dword [ebx], 0x42a6e8
mov dword [ebp - 0x14], edi
lea esi, [edi + 4]
mov dword [edi], 0x42a678
mov dword [ebp - 0x18], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00414a33
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 0xc]
mov dword [ebp - 4], 0
mov dword [edi], 0x42a68c
call fcn.004062e0
mov dword [edi + 0x28], 0
lea edi, [ebx + 0x30]
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], edi
lea esi, [edi + 4]
mov dword [edi], 0x42a6a4
mov dword [ebp - 0x14], esi
push 0x18
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00414a33
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 2
mov dword [edi], 0x42a6d0
call fcn.004062e0
mov dword [edi + 0x28], 0
lea ecx, [ebx + 0x5c]
mov byte [ebp - 4], 3
call fcn.0040ba90
lea ecx, [ebx + 0xa0]
mov byte [ebp - 4], 4
call fcn.0040e840
lea ecx, [ebx + 0xc4]
mov byte [ebp - 4], 5
call fcn.0040feb0
lea esi, [ebx + 0x2c8]
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], esi
lea ecx, [esi + 4]
push 0
mov dword [esi], 0x42a674
call fcn.0040cc90
push 1
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 7
call fcn.0040cc90
push 2
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 8
call fcn.0040cc90
push 3
lea ecx, [esi + 0x28]
mov byte [ebp - 4], 9
call fcn.0040cc90
lea ecx, [ebx + 0x2fc]
mov byte [ebp - 4], 0xa
call fcn.0040d3b0
lea ecx, [ebx + 0x300]
mov byte [ebp - 4], 0xb
call fcn.0040d3b0
lea ecx, [ebx + 0x304]
mov byte [ebp - 4], 0xc
call fcn.0040e750
lea ecx, [ebx + 0x358]
mov byte [ebp - 4], 0xd
call fcn.0040d910
lea ecx, [ebx + 0x3a4]
mov byte [ebp - 4], 0xe
call fcn.0040ec20
lea ecx, [ebx + 0x4e0]
mov byte [ebp - 4], 0xf
call fcn.0040c5d0
lea ecx, [ebx + 0x504]
mov byte [ebp - 4], 0x10
call fcn.00412dd0
lea ecx, [ebx + 0x518]
mov byte [ebp - 4], 0x11
call fcn.0040d3b0
lea ecx, [ebx + 0x51c]
mov byte [ebp - 4], 0x12
call fcn.00412e50
lea ecx, [ebx + 0x58c]
mov byte [ebp - 4], 0x13
call fcn.0040d3b0
mov dword [ebx + 0x590], 0
lea ecx, [ebx + 0x594]
mov byte [ebp - 4], 0x15
call fcn.00412f40
lea ecx, [ebx + 0x5a0]
mov byte [ebp - 4], 0x16
call fcn.0040d3b0
mov dword [ebx + 0x5a4], 0
mov dword [ebx + 0x5a8], 0
lea ecx, [ebx + 0x5ac]
mov byte [ebp - 4], 0x19
call fcn.0040d3b0
lea ecx, [ebx + 0x5b0]
mov byte [ebp - 4], 0x1a
call fcn.00412ab0
lea ecx, [ebx + 0x5c0]
mov byte [ebp - 4], 0x1b
call fcn.004130a0
lea ecx, [ebx + 0x624]
mov byte [ebp - 4], 0x1c
call fcn.0040eb50
mov dword [ebx + 0x61c], 0
mov eax, ebx
mov dword [ebx + 0x618], 0
mov dword [ebx + 0x620], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ce50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
mov dword [esi], 0
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x40ceb7
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
je 0x40ceb7
lea edx, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push edx
push 1
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ceb7
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
mov edi, dword [ebp + 0x10]
push ecx
push esi
lea ecx, [ebp + 0xc]
mov dword [ebp + 8], 4
push ecx
push 0
push dword [eax]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40ceb7
cmp dword [ebp + 0xc], 4
jne 0x40ceb7
lea esi, [eax + 1]
jmp 0x40ceb9
xor esi, esi
test edi, edi
je 0x40cec4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebp
ret 0xc
Function at 0x40d160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4276ad
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x438348]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00404220
xor ecx, ecx
mov dword [ebp - 0x14], 0x42a924
mov dword [ebp - 0x10], ecx
mov edx, dword [esi + 4]
mov dword [ebp - 4], ecx
test edx, edx
je 0x40d271
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], ecx
je 0x40d271
lea ecx, [ebp - 0x10]
push ecx
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40d26e
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40d26e
mov edx, dword [ebp + 0x10]
shr edx, 1
add edx, 1
js 0x40d29b
mov esi, dword [edi]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x40d21e
push edx
mov ecx, edi
call fcn.00404280
mov esi, dword [edi]
test esi, esi
je 0x40d26e
lea eax, [ebp + 0x10]
push eax
push esi
push 0
push 0
push dword [ebx]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [edi]
mov esi, eax
test ecx, ecx
je 0x40d250
push dword [ecx - 8]
push ecx
call fcn.004182cf
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x40d29b
mov eax, dword [edi]
cmp ecx, dword [eax - 8]
jg 0x40d29b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [edi]
mov word [eax + ecx*2], dx
test esi, esi
jne 0x40d26e
mov ecx, dword [ebp - 0x10]
lea esi, [edx + 1]
jmp 0x40d273
mov ecx, dword [ebp - 0x10]
xor esi, esi
mov dword [ebp - 0x14], 0x42a924
test ecx, ecx
je 0x40d285
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80070057
call fcn.004037a0
int3

Function at 0x40d300
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ecx + 4]
push esi
push edi
xor edi, edi
test ecx, ecx
je 0x40d382
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp dword [eax - 0xc], edi
je 0x40d382
lea edx, [ebp - 4]
mov dword [ebp + 8], edi
push edx
lea edx, [ebp + 8]
push edx
push edi
push 0xf003f
push edi
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40d382
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
je 0x40d382
mov edx, esi
lea ecx, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40d350
mov eax, dword [ebp + 0xc]
sub edx, ecx
sar edx, 1
mov ecx, dword [eax]
lea eax, [edx*2 + 2]
push eax
push esi
push 1
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40d382
lea esi, [eax + 1]
jmp 0x40d384
xor esi, esi
test edi, edi
je 0x40d38f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40d5a0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42771d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x438348]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00403a60
mov ecx, eax
test ecx, ecx
je 0x40d661
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push dword [ebp + 8]
mov ecx, 0x43a16c
call fcn.0040aa50
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x40d604
xor ebx, ebx
jmp 0x40d62d
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40d616
mov ebx, 1
jmp 0x40d62a
push 0
push dword [ebp - 0x10]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
xor ebx, ebx
test eax, eax
sete bl
mov eax, dword [ebp - 0x10]
lea esi, [eax - 0x10]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d64c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.004037a0
int3