joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473e80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5886e0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
call fcn.00474220
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0x14]
mov ebp, dword [eax - 0xc]
mov edx, dword [0x5f7780]
xor eax, eax
mov word [esp + 0x31], ax
mov byte [esp + 0x33], al
mov eax, dword [edx + 0xc]
mov ecx, 0x5f7780
mov byte [esp + 0x30], bl
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
xor esi, esi
cmp ebp, ebx
mov byte [esp + 0x24], 1
jle 0x473fdf
lea ecx, [ecx]
cmp esi, ebx
mov dword [esp + 0x30], ebx
jl 0x474049
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 0xc]
jg 0x474049
movzx ecx, byte [esi + eax]
push ecx
call fcn.00563f4e
add esp, 4
test eax, eax
mov eax, dword [esp + 0x14]
je 0x473f40
cmp esi, dword [eax - 0xc]
jg 0x474049
mov dl, byte [esi + eax]
mov byte [esp + 0x30], dl
jmp 0x473fae
cmp esi, dword [eax - 0xc]
jg 0x474049
movzx eax, byte [esi + eax]
push eax
call fcn.00563e59
add esp, 4
test eax, eax
je 0x473f61
mov byte [esp + 0x30], 0x2b
jmp 0x473fae
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x30], 0x25
cmp esi, dword [ecx - 0xc]
jg 0x474049
mov al, byte [esi + ecx]
shr al, 4
cmp al, 9
jbe 0x473f81
add al, 0x37
jmp 0x473f83
add al, 0x30
mov byte [esp + 0x31], al
cmp esi, dword [ecx - 0xc]
jg 0x474049
movzx eax, byte [esi + ecx]
and eax, reloc.WS2_32.dll_ntohs
jns 0x473fa0
dec eax
or eax, 0xfffffff0
inc eax
cmp al, 9
jbe 0x473fa8
add al, 0x37
jmp 0x473faa
add al, 0x30
mov byte [esp + 0x32], al
lea eax, [esp + 0x30]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x473fb5
sub eax, edx
push eax
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00444850
add esi, 1
cmp esi, ebp
jl 0x473f00
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x2c]
push esi
mov ecx, edi
call fcn.004818e0
lea eax, [edi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47400b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x474033
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.00473d10
int3
Function at 0x476b50
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x59512b
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov dword [esp + 0xc], 0
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x476c22
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
je 0x476c22
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00478180
lea ecx, [esp + 0x44]
push ecx
mov ecx, 0x5adcfc
mov dword [esp + 0x3c], 1
call fcn.00481430
lea edx, [esp + 0x44]
push edx
push esi
push edi
lea eax, [esp + 0x1c]
mov byte [esp + 0x44], 2
call fcn.00477ef0
mov byte [esp + 0x38], 1
mov eax, dword [esp + 0x44]
add eax, 0xfffffff0
mov dword [esp + 0xc], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x476c00
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x10]
push ecx
mov byte [esp + 0x3c], 0
call fcn.004780a0
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x34
ret
push edi
mov ecx, 0x5adcfc
call fcn.00481430
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x34
ret
Function at 0x477240
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x595008
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x54]
lea esi, [esp + 0x20]
mov eax, ebp
call fcn.00477200
lea eax, [esp + 0x30]
mov ecx, ebp
mov dword [esp + 0x48], 0
call fcn.004771d0
cmp dword [eax + 0xc], 0
mov edi, dword [esp + 0x2c]
setne al
test edi, edi
setne cl
cmp cl, al
setne al
test al, al
mov dword [esp + 0x30], vtable.BkJson::Handle.0
je 0x477375
lea ecx, [esp + 0x14]
lea eax, [esp + 0x20]
call fcn.0044b140
mov esi, eax
lea edx, [esp + 0x20]
push edx
lea ebx, [esp + 0x58]
mov byte [esp + 0x4c], 1
call fcn.00477130
mov ecx, dword [esp + 0x50]
mov ebx, 2
mov byte [esp + 0x48], bl
mov eax, dword [eax]
push esi
push eax
add ecx, 0x1c
call fcn.0044b0a0
mov byte [esp + 0x48], 1
mov eax, dword [esp + 0x54]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47730e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x48], 0
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x14], vtable.BkJson::Handle.0
je 0x477341
cmp dword [eax + 0xc], ebx
jne 0x477341
test edi, edi
jne 0x477332
xor eax, eax
mov esi, eax
jmp 0x477343
add eax, 0x14
push eax
mov eax, edi
call fcn.00485cf0
mov esi, eax
jmp 0x477343
xor esi, esi
mov edi, esi
lea eax, [esp + 0x30]
mov ecx, ebp
mov dword [esp + 0x2c], edi
call fcn.004771d0
cmp dword [eax + 0xc], 0
mov dword [esp + 0x30], vtable.BkJson::Handle.0
setne cl
test esi, esi
setne dl
cmp dl, cl
setne al
test al, al
jne 0x4772ae
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret 8
Function at 0x477510
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5886a9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x14], esi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
mov ecx, dword [esp + 0x34]
add eax, 0x10
mov dword [ecx], eax
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x28], esi
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax]
add ebp, 0x10
mov esi, ebp
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], esi
jmp 0x477580
test esi, esi
mov edi, dword [ebp + 4]
je 0x47758b
cmp esi, ebp
je 0x477590
call fcn.00565fa7
cmp ebx, edi
je 0x4775dd
test esi, esi
jne 0x47759d
call fcn.00565fa7
cmp ebx, dword [esi + 4]
jne 0x4775b1
call fcn.00565fa7
cmp ebx, dword [esi + 4]
jne 0x4775b1
call fcn.00565fa7
mov edx, dword [ebx + 0x10]
mov eax, dword [ebx + 0xc]
mov edi, dword [esp + 0x34]
push edx
push eax
push 0x5aec18
call fcn.004815b0
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.0043fcc0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
jmp 0x477580
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x4775f9
add eax, 0xffffffff
push ecx
call fcn.00477620
mov eax, dword [esp + 0x34]
jmp 0x4775fb
mov eax, ecx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 8

Function at 0x479280
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
test esi, esi
je 0x47928e
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x47929c
mov dword [esi], 0x57
xor eax, eax
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 4]
push edx
lea edx, [esp + 0xc]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4792dd
mov eax, dword [esp + 4]
sub eax, 4
neg eax
sbb eax, eax
and eax, 0xd
test eax, eax
mov dword [esi], eax
jne 0x479294
mov eax, dword [esp]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, 1
add esp, 8
ret 8
Function at 0x47b850
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
xor ebx, ebx
cmp ebp, ebx
je 0x47b866
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
jne 0x47b877
mov dword [ebp], 0xd
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push edi
lea edx, [esp + 0x18]
push edx
push ebx
lea edx, [esp + 0x18]
push edx
push ebx
push eax
xor edi, edi
push ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x47b8bf
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x47b8b3
cmp eax, 2
je 0x47b8b3
lea eax, [edi + 0xd]
jmp 0x47b8bf
mov edi, dword [esp + 0x18]
shr edi, 1
mov dword [esp + 0xc], edi
xor eax, eax
cmp eax, ebx
mov dword [ebp], eax
je 0x47b8d1
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
cmp edi, ebx
jne 0x47b8e3
pop edi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0xc
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
push esi
neg ecx
or ecx, eax
push ecx
call fcn.00548a37
mov esi, eax
add esp, 4
cmp esi, ebx
jne 0x47b912
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0xc
lea eax, [edi + edi + 2]
push eax
push ebx
push esi
call fcn.005695a0
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
add esp, 0xc
push eax
lea eax, [ebp + 0x10]
push eax
lea edi, [esp + 0x18]
call fcn.004817c0
cmp eax, ebx
mov dword [ebp], eax
jne 0x47b94c
mov edi, dword [esp + 0x24]
mov edx, esi
call fcn.00481720
mov ebx, 1
push esi
call fcn.005649af
add esp, 4
pop esi
pop edi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 0xc
Function at 0x47c060
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x58b859
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, dword [esp + 0x40]
xor ebx, ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov edi, 1
mov dword [esp + 0x38], edi
mov eax, dword [0x5f7780]
mov edx, dword [eax + 0xc]
mov ecx, 0x5f7780
call edx
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x1c], edi
push ebx
push 0x5ae648
lea edi, [esp + 0x20]
call fcn.00481690
mov ebp, dword [esp + 0x20]
mov eax, dword [0x5f8ee0]
push ebx
push esi
push ebx
push ebp
push eax
call fcn.0047bdb0
add esp, 0x1c
test eax, eax
jne 0x47c1a4
lea ecx, [esp + 0x24]
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x28], vtable.KVipInterface_class_KVipServer__struct_IKVipServer_.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
call fcn.00481140
mov dword [esp + 0x24], vtable.KVipServer.0
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x47c16c
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push eax
call edx
cmp dword [esp + 0x20], 0x10001
jne 0x47c168
mov edx, dword [esp + 0x14]
cmp edx, ebx
je 0x47c168
mov edi, esi
call fcn.00481720
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x2c]
cmp eax, ebx
mov byte [esp + 0x38], 1
mov dword [esp + 0x24], vtable.KVipInterface_class_KVipServer__struct_IKVipServer_.0
je 0x47c195
mov ecx, dword [eax]
mov edx, dword [ecx + 0x10]
push eax
call edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x2c], ebx
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x47c1a4
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47c1c4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x47d810
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x1c]
add edi, 0x18
cmp esi, dword [edi + 8]
jbe 0x47d82d
call fcn.00565fa7
mov ebx, esi
nop
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jbe 0x47d83d
call fcn.00565fa7
cmp edi, edi
je 0x47d846
call fcn.00565fa7
cmp ebx, esi
je 0x47d8c7
cmp ebx, dword [edi + 8]
jb 0x47d854
call fcn.00565fa7
mov esi, dword [ebx]
test esi, esi
je 0x47d8b5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x47d8a5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x47d8a5
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x47d8a5
push 0x186a0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47d894
mov eax, dword [esi + 0x1c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
mov eax, esi
call fcn.0047d940
push esi
call fcn.00563626
add esp, 4
cmp ebx, dword [edi + 8]
jb 0x47d8bf
call fcn.00565fa7
add ebx, 4
jmp 0x47d830
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x47d8d4
call fcn.00565fa7
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x47d8e1
call fcn.00565fa7
cmp esi, ebx
je 0x47d912
mov eax, dword [edi + 8]
sub eax, ebx
sar eax, 2
test eax, eax
lea ecx, [eax*4]
lea edx, [ecx + esi]
mov dword [esp + 0xc], edx
jle 0x47d90b
push ecx
push ebx
push ecx
push esi
call fcn.00566cbc
add esp, 0x10
mov eax, dword [esp + 0xc]
mov dword [edi + 8], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x47d922
push eax
call fcn.00563626
add esp, 4
mov ecx, dword [ebp + 8]
xor eax, eax
push ecx
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x47d940
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x28]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d962
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x20]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d981
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x47d9b8
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47d9a7
mov ecx, dword [esi + 0x1c]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d9d7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esi]
sub esi, 0x10
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47d9f5
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
pop esi
ret
Function at 0x47ed20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58b730
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
lea esi, [esp + 0x4c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], ebx
call fcn.0047eea0
mov dword [esp + 0x78], ebx
cmp dword [esp + 0x60], ebx
jne 0x47edac
push ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push 0x5adcfc
mov esi, edi
mov word [edi + 4], bx
call fcn.0043a8d0
cmp dword [esp + 0x64], 8
jb 0x47eda5
mov eax, dword [esp + 0x50]
push eax
call fcn.00563626
add esp, 4
mov eax, edi
jmp 0x47ee76
lea ebx, [esp + 0x20]
lea edi, [esp + 0x4c]
call fcn.0043b950
mov ecx, dword [eax]
mov esi, dword [eax + 4]
lea ebx, [esp + 0x28]
mov dword [esp + 0x18], ecx
call fcn.0043b900
mov edx, dword [eax]
mov eax, dword [eax + 4]
cmp eax, esi
mov dword [esp + 0x18], edx
je 0x47edea
cmp word [eax], 0x5c
jne 0x47ede3
mov word [eax], 0x2f
add eax, 2
cmp eax, esi
jne 0x47edd8
mov ebx, 7
push ebx
xor edi, edi
push str.Global_
lea esi, [esp + 0x38]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
call fcn.0043a8d0
push edi
lea eax, [esp + 0x50]
push eax
or eax, 0xffffffff
mov byte [esp + 0x80], 1
call fcn.0043a790
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push edi
lea eax, [esp + 0x38]
mov ecx, esi
mov word [esi + 4], di
call fcn.0043a9a0
cmp dword [esp + 0x48], 8
jb 0x47ee53
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00563626
add esp, 4
cmp dword [esp + 0x64], 8
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], di
jb 0x47ee74
mov edx, dword [esp + 0x50]
push edx
call fcn.00563626
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00564207
mov esp, ebp
pop ebp
ret
Function at 0x47ef10
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x58b6b1
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [esp + 0x288]
push 0x208
xor edi, edi
lea ecx, [esp + 0x70]
push edi
push ecx
mov dword [esp + 0x20], eax
call fcn.005695a0
mov esi, 7
add esp, 0xc
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], edi
mov word [esp + 0x54], di
push 0x104
lea edx, [esp + 0x70]
push edx
push edi
mov dword [esp + 0x28c], edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp eax, edi
jne 0x47efb4
cmp dword [esp + 0x68], 8
jb 0x47efad
mov eax, dword [esp + 0x54]
push eax
call fcn.00563626
add esp, 4
xor al, al
jmp 0x47f133
lea ecx, [esp + 0x6c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.log_
lea edx, [esp + 0x70]
push edx
call ebx
push edi
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x47f009
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x47f009
cmp dword [esp + 0x68], 8
jb 0x47efad
mov ecx, dword [esp + 0x54]
push ecx
call fcn.00563626
add esp, 4
xor al, al
jmp 0x47f133
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edi
mov word [esp + 0x38], di
lea ecx, [esp + 0x34]
mov byte [esp + 0x280], 1
call fcn.0047f160
test al, al
jne 0x47f059
mov ebp, 8
cmp dword [esp + 0x4c], ebp
jb 0x47f043
mov edx, dword [esp + 0x38]
push edx
call fcn.00563626
add esp, 4
cmp dword [esp + 0x68], ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], edi
mov word [esp + 0x38], di
jmp 0x47ef9e
mov edx, str.kvip.
lea eax, [esp + 0x18]
call fcn.00473820
mov esi, eax
push edi
lea ecx, [esp + 0x38]
push ecx
or eax, 0xffffffff
mov byte [esp + 0x288], 2
call fcn.0043a790
mov ebp, 8
cmp dword [eax + 0x18], ebp
jb 0x47f08e
mov eax, dword [eax + 4]
jmp 0x47f091
add eax, 4
push eax
lea edx, [esp + 0x70]
push edx
call ebx
mov byte [esp + 0x280], 1
cmp dword [esp + 0x30], ebp
jb 0x47f0b4
mov eax, dword [esp + 0x1c]
push eax
call fcn.00563626
add esp, 4
lea eax, [esp + 0x6c]
lea edx, [eax + 2]
jmp 0x47f0c0
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x47f0c0
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x70]
push ecx
lea esi, [esp + 0x58]
call fcn.0043a8d0
push 4
push str..log
mov ecx, esi
call fcn.0043a690
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push edi
mov eax, esi
call fcn.0043a9a0
cmp dword [esp + 0x4c], ebp
jb 0x47f10d
mov edx, dword [esp + 0x38]
push edx
call fcn.00563626
add esp, 4
cmp dword [esp + 0x68], ebp
mov dword [esp + 0x4c], 7
mov dword [esp + 0x48], edi
mov word [esp + 0x38], di
jb 0x47f131
mov eax, dword [esp + 0x54]
push eax
call fcn.00563626
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00564207
add esp, 0x270
ret
Function at 0x47fc30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x58ea08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5eb3c0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x5eb3c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor edi, edi
mov esi, ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x28], 7
mov dword [esp + 0x24], edi
mov word [esp + 0x14], di
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], edi
call fcn.0047f160
test al, al
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov word [esi + 4], di
je 0x47fcb4
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x18]
mov ecx, esi
call fcn.0043a9a0
cmp dword [esp + 0x28], 8
jb 0x47fcd3
mov eax, dword [esp + 0x14]
push eax
jmp 0x47fccb
push edi
push 0x5adcfc
call fcn.0043a8d0
cmp dword [esp + 0x28], 8
jb 0x47fcd3
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00563626
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00564207
add esp, 0x30
ret

Function at 0x480350
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, eax
add esi, 0xc
je 0x48035f
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x48036b
mov dword [esi], 0xd
xor eax, eax
pop esi
ret 4
mov eax, dword [esp + 8]
mov eax, dword [eax]
push 4
mov dword [esp + 0xc], edx
lea edx, [esp + 0xc]
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi], eax
pop esi
mov eax, ecx
ret 4

Function at 0x4803a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
test esi, esi
push edi
je 0x4803b5
mov ecx, dword [esi + 0x10]
test ecx, ecx
jne 0x4803c4
mov dword [esi], 0xd
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4
mov edi, dword [edx]
mov edx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push 8
mov dword [esp + 0x10], edx
lea edx, [esp + 0xc]
push edx
push 0xb
push 0
push eax
push ecx
mov dword [esp + 0x20], edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi], eax
pop edi
mov eax, ecx
mov esp, ebp
pop ebp
ret 4