joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41867a
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
xor esi, esi
cmp dword [0x4298cc], esi
push edi
mov edi, dword [ebp + 8]
mov ebx, 0x201
jbe 0x4187a1
test dword [0x4298d8], edi
je 0x4187a1
cmp edi, 0x10002
je 0x4186e6
cmp edi, 0x20002
je 0x4186e3
cmp edi, 0x40002
je 0x4186df
cmp edi, 0x80002
je 0x4186da
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
mov esi, eax
jmp 0x4186e6
push 3
pop esi
jmp 0x4186e6
push 2
jmp 0x4186dc
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
push dword [esi*4 + 0x427e44]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 6]
push eax
movzx eax, word [ebp - 8]
push eax
movzx eax, word [ebp - 0xa]
push eax
movzx eax, word [ebp - 0xc]
push eax
push 0x429868
push 0x404bdc
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00418439
add esp, 0x28
test eax, eax
jl 0x418839
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.004183b9
test eax, eax
jl 0x418839
mov eax, dword [ebp - 4]
cmp eax, ebx
jae 0x418839
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
mov ecx, ebx
sub ecx, eax
push ecx
lea eax, [ebp + eax - 0x218]
push eax
call fcn.0041841e
test eax, eax
jge 0x418782
cmp eax, 0x7a
jne 0x418839
push 0x404bd8
push ebx
lea eax, [ebp - 0x218]
push eax
call fcn.00418460
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x427e40], 0xffffffff
je 0x418839
xor eax, eax
cmp dword [0x4298d0], eax
ja 0x4187c0
cmp dword [0x4298d4], eax
jbe 0x418839
cmp edi, 0x10002
je 0x4187fc
cmp edi, 0x20002
je 0x4187f9
cmp edi, 0x40002
je 0x4187f5
cmp edi, 0x80002
je 0x4187f0
xor eax, eax
cmp edi, 0x100002
setne al
add eax, 4
jmp 0x4187fc
push 3
pop eax
jmp 0x4187fc
push 2
jmp 0x4187f2
xor eax, eax
inc eax
push dword [ebp + 0xc]
push dword [eax*4 + 0x427e44]
lea eax, [ebp - 0x218]
push 0x404bd0
push ebx
push eax
call fcn.00418439
add esp, 0x14
test eax, eax
jl 0x418839
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
or edi, 4
push edi
push dword [0x427e40]
call sub.rtutils.dll_TraceVprintfExA
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420b11
Capabilities:
Create thread

Disassembly:
mov eax, 0x42522d
call fcn.004167b0
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x4298dc], edi
mov esi, ecx
mov ebx, 0x80002
je 0x420b3e
push 0x40beb8
push ebx
call fcn.0041867a
pop ecx
pop ecx
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x30], edi
mov dword [ebp - 4], edi
jne 0x420bbe
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x3c], eax
jne 0x420b81
cmp dword [0x4298dc], edi
je 0x420b7a
push 0x40be98
push 0x10002
call fcn.0041867a
pop ecx
pop ecx
mov edi, 0x80004005
jmp 0x420bd6
lea eax, [ebp - 0x14]
push eax
push edi
push esi
push 0x420b05
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x40], eax
jne 0x420bbe
cmp dword [0x4298dc], edi
je 0x420b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x40be7c
push 0x10002
call fcn.0041867a
add esp, 0xc
jmp 0x420b7a
inc dword [esi + 0x30]
cmp dword [0x4298dc], edi
je 0x420bd6
push 0x40be5c
push ebx
call fcn.0041867a
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x6fd819c1
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x1a3f248b
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4020a0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4698ac]
mov dword [0x469a04], 1
test ecx, ecx
je 0x402162
mov eax, dword [ebp + 8]
push ecx
push 0xfffffffffffffff8
push eax
mov dword [0x4698a8], eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [0x4698ac]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x4698ac]
call dword [sym.imp.USER32.dll_UpdateWindow]
test dword [0x4725a0], 0x800
je 0x402151
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0x7d0
jae 0x402129
nop word [eax + eax]
push dword [0x4698ac]
call fcn.00411110
add esp, 4
call esi
sub eax, edi
cmp eax, 0x7d0
jb 0x402110
push 1
push 0
push dword [0x4698ac]
mov dword [0x469a04], 0
call dword [sym.imp.USER32.dll_InvalidateRect]
push dword [0x4698ac]
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
mov eax, 1
mov dword [0x469a04], 0
pop ebp
ret
xor eax, eax
mov dword [0x469a04], eax
pop ebp
ret
Function at 0x404010
Capabilities:
Delete directory
Delete file
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c1e2
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4672b4]
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 ebx, dword [ebp + 8]
test ebx, ebx
jne 0x40404c
xor eax, eax
jmp 0x404232
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x404065
push 4
push eax
call fcn.00428dde
add esp, 8
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x40407c
push eax
call fcn.00422b40
add esp, 4
mov dword [ebx + 4], 0
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x40421f
test byte [eax + 0x8488], 8
je 0x404199
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
add eax, 0xc04
push eax
call esi
lea eax, [ebp - 0x218]
push eax
call fcn.00407520
add esp, 4
test eax, eax
je 0x404199
nop dword [eax]
cmp word [ebp - 0x218], 0
je 0x404182
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4040d7
sub ecx, edx
sar ecx, 1
xor edi, edi
lea eax, [ebp + ecx*2 - 0x21a]
mov dword [ebp - 0x21c], eax
cmp word [eax], 0x5c
lea eax, [ebp - 0x218]
push eax
jne 0x404134
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
je 0x404182
push 0x450454
call esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebx + 0x14]
mov esi, eax
add ecx, 0xc04
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x40414f
call fcn.0041f6a0
add esp, 4
test eax, eax
je 0x404182
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x40417c
push esi
call fcn.00411110
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x21c]
inc edi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp edi, 0x20
jl 0x4040f5
jmp 0x404182
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call fcn.00407520
add esp, 4
test eax, eax
jne 0x4040c0
mov esi, dword [ebx + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esi + 0x8698]
test eax, eax
je 0x4041bf
push eax
call edi
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x8698], 0
mov esi, dword [ebx + 0x14]
mov eax, dword [esi + 0x37ab0]
test eax, eax
je 0x4041dc
push eax
call edi
mov eax, dword [ebx + 0x14]
mov dword [eax + 0x37ab0], 0
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x40421f
mov dword [ebp - 0x21c], esi
mov dword [ebp - 4], 0
lea ecx, [esi + 0x39ab8]
call fcn.00408510
mov dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x39aac]
call fcn.00408580
push 0x3ab10
push esi
call fcn.00428dde
add esp, 8
mov dword [ebx + 0x14], 0
push 0x230
push ebx
call fcn.00428dde
add esp, 8
mov eax, 1
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.00428d9d
mov esp, ebp
pop ebp
ret
Function at 0x406bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [ebp + 0x10]
jecxz 0x406c19
xor ebx, ebx
mov bl, al
mov al, ah
xor bl, byte [esi]
xor ah, ah
inc esi
xor ax, word [ebx*2 + section..data]
loop 0x406c06
mov dword [ebp - 4], eax
mov ax, word [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c540
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], cx
mov dword [ebp - 4], ecx
test eax, eax
jne 0x40827a
xor esi, esi
jmp 0x408391
push eax
lea ecx, [ebp - 0x28]
call fcn.00408a60
push 2
push 0x451088
lea ecx, [ebp - 0x28]
call fcn.004088e0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
push 0x4a5830
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
call fcn.004290db
mov edi, eax
add esp, 8
mov dword [ebp - 0x38], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x4082ca
mov dword [0x469a34], 2
xor esi, esi
jmp 0x408380
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
inc eax
push eax
push edi
call fcn.0042f9f7
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x408359
cmp esi, 0x40
jb 0x40834d
mov ecx, esi
and ecx, 0x8000003f
jns 0x4082fe
dec ecx
or ecx, 0xffffffc0
inc ecx
movaps xmm1, xmmword [0x4510d0]
mov edx, esi
sub edx, ecx
nop dword [eax]
movups xmm0, xmmword [edi + eax]
pandn xmm0, xmm1
movups xmmword [edi + eax], xmm0
movups xmm0, xmmword [edi + eax + 0x10]
pandn xmm0, xmm1
movups xmmword [edi + eax + 0x10], xmm0
movups xmm0, xmmword [edi + eax + 0x20]
pandn xmm0, xmm1
movups xmmword [edi + eax + 0x20], xmm0
movups xmm0, xmmword [edi + eax + 0x30]
pandn xmm0, xmm1
movups xmmword [edi + eax + 0x30], xmm0
add eax, 0x40
cmp eax, edx
jl 0x408310
cmp eax, esi
jge 0x408359
not byte [edi + eax]
inc eax
cmp eax, esi
jl 0x408351
push 0
lea eax, [ebp - 0x30]
push eax
push esi
push edi
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov ecx, 8
mov eax, dword [0x469a34]
test esi, esi
cmove eax, ecx
mov dword [0x469a34], eax
mov byte [ebp - 4], 0
test edi, edi
je 0x408391
push edi
call fcn.00428dec
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403400
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret
Function at 0x40ba20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c954
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x4672b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov dword [edx], 0xffffffff
xor eax, eax
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 7
mov word [edx + 4], ax
mov dword [ebp - 4], eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], 7
mov word [edx + 0x1c], ax
mov byte [ebp - 4], 1
lea ecx, [edx + 0x38]
lea eax, [ecx + 0x20]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], eax
mov byte [eax], 0
mov byte [ebp - 4], 3
mov ax, word [ebp + 8]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 6
mov dword [ecx + 0xc], 0
mov word [ecx + 0x10], ax
mov dword [ecx + 0x14], 0x201
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov byte [ebp - 4], 4
mov dword [edx + 0x68], 0xffffffff
mov dword [edx + 0x6c], 0x7fffffff
mov dword [edx + 0x70], 0
mov dword [ebp - 4], 0xffffffff
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x416ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x416aee
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da2c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4672b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jbe 0x417169
mov esi, dword [ebp + 0x10]
lea edx, [esi + 4]
lea ebx, [esi + 0x1c]
nop
mov eax, dword [esi]
lea ecx, [edi + 4]
push edx
mov dword [ebp + 8], edi
mov dword [edi], eax
call fcn.00403240
mov byte [ebp - 4], 1
lea ecx, [edi + 0x1c]
push ebx
call fcn.00403240
mov byte [ebp - 4], 2
lea ecx, [edi + 0x38]
mov eax, dword [esi + 0x38]
lea ebx, [ecx + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x40]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x44]
mov dword [ecx + 0xc], eax
mov ax, word [esi + 0x48]
mov word [ecx + 0x10], ax
mov eax, dword [esi + 0x4c]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x50]
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x54]
mov dword [ecx + 0x1c], eax
mov byte [ebx], 0
cmp byte [esi + 0x58], 0
mov dword [ebp + 0x10], ecx
mov ecx, edi
mov dword [ebp - 0x10], ebx
je 0x417139
mov ecx, dword [esi + 0x60]
mov dword [ebx + 8], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebx], 1
mov ecx, edi
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x68]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov byte [ebp - 4], 0
lea edi, [ecx + 0x78]
sub dword [ebp + 0xc], 1
lea edx, [esi + 4]
mov dword [ebp - 0x18], edi
lea ebx, [esi + 0x1c]
jne 0x4170c0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
mov eax, edi
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
Function at 0x417190
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44da8c
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4672b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
cmp esi, dword [ebp + 0xc]
je 0x4172d2
add esi, 0x14
nop dword [eax]
mov eax, dword [esi - 0x14]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
movups xmm0, xmmword [esi - 0x10]
mov dword [ebp + 8], edi
movups xmmword [edi + 4], xmm0
movq xmm0, qword [esi]
movq qword [edi + 0x14], xmm0
mov dword [esi], 0
mov dword [esi + 4], 7
mov word [esi - 0x10], ax
mov byte [ebp - 4], 1
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], eax
movups xmm0, xmmword [esi + 8]
movups xmmword [edi + 0x1c], xmm0
movq xmm0, qword [esi + 0x18]
movq qword [edi + 0x2c], xmm0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 7
mov word [esi + 8], ax
mov byte [ebp - 4], 2
lea ecx, [edi + 0x38]
mov eax, dword [esi + 0x24]
lea edx, [ecx + 0x20]
mov dword [ecx], eax
mov eax, dword [esi + 0x28]
mov dword [ecx + 4], eax
mov eax, dword [esi + 0x2c]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x30]
mov dword [ecx + 0xc], eax
mov ax, word [esi + 0x34]
mov word [ecx + 0x10], ax
mov eax, dword [esi + 0x38]
mov dword [ecx + 0x14], eax
mov eax, dword [esi + 0x3c]
mov dword [ecx + 0x18], eax
mov eax, dword [esi + 0x40]
mov dword [ecx + 0x1c], eax
mov byte [edx], 0
cmp byte [esi + 0x44], 0
mov dword [ebp - 0x10], ecx
mov ecx, edi
mov dword [ebp + 0x10], edx
je 0x4172a3
mov ecx, dword [esi + 0x4c]
mov dword [edx + 8], ecx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
mov ecx, edi
mov byte [eax], 1
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x54]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x6c], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x70], eax
mov byte [ebp - 4], 0
add esi, 0x78
lea edi, [ecx + 0x78]
mov dword [ebp - 0x18], edi
lea eax, [esi - 0x14]
cmp eax, dword [ebp + 0xc]
jne 0x4171e0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418a80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dc21
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x4672b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x8c], esi
lea eax, [ebp - 0x9c]
push eax
call fcn.004187e0
mov dword [ebp - 4], 0
push eax
call fcn.0040b3d0
add esp, 4
mov ecx, dword [eax]
push 0x20
mov edx, dword [ecx + 0x30]
mov ecx, eax
call edx
movzx edi, ax
mov dword [ebp - 0x94], edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x98]
test ecx, ecx
je 0x418b0b
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
test eax, eax
je 0x418b0b
mov ecx, dword [eax]
push 1
mov edx, dword [ecx]
mov ecx, eax
call edx
mov ecx, dword [esi + 4]
mov eax, 0x88888889
sub ecx, dword [esi]
imul ecx
add edx, ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x418b5a
push edi
lea ecx, [ebp - 0x88]
call fcn.0040ba20
mov dword [ebp - 4], 1
mov ecx, esi
push eax
push dword [ebp + 8]
call fcn.004179f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0040d3d0
jmp 0x418c9c
mov edi, dword [ebp + 8]
cmp edi, eax
jbe 0x418b95
push dword [ebp - 0x94]
lea ecx, [ebp - 0x88]
call fcn.0040ba20
mov dword [ebp - 4], 2
mov ecx, esi
push eax
push esi
push edi
call fcn.00409c90
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.0040d3d0
cmp dword [esi + 0x18], 0
lea eax, [esi + 0xc]
mov dword [ebp - 0x90], eax
jbe 0x418c05
lea ecx, [ebp - 0xa4]
push ecx
mov ecx, eax
call fcn.004183f0
push 0
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0x98], 0
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [ebp - 0x90]
mov eax, dword [eax]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xac]
push eax
call fcn.0040dff0
mov ecx, dword [ebp - 0x90]
push esi
push edi
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x9c]
push eax
call fcn.00418530
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x8c]
test edi, edi
je 0x418c9c
xor edx, edx
nop
mov eax, dword [esi]
add eax, edx
mov dword [eax], 0xffffffff
lea esi, [eax + 4]
mov dword [eax + 0x68], 0xffffffff
mov dword [eax + 0x6c], 0x7fffffff
mov dword [eax + 0x70], 0
cmp dword [eax + 0x18], 8
jb 0x418c3b
mov esi, dword [eax + 4]
xor ecx, ecx
mov dword [eax + 0x14], 0
mov word [esi], cx
lea esi, [eax + 0x1c]
cmp dword [eax + 0x30], 8
jb 0x418c53
mov esi, dword [eax + 0x1c]
mov dword [eax + 0x2c], ecx
add edx, 0x78
xor ecx, ecx
mov word [esi], cx
mov esi, dword [ebp - 0x8c]
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x44], ecx
mov ecx, dword [ebp - 0x94]
mov dword [eax + 0x40], 6
mov word [eax + 0x48], cx
mov dword [eax + 0x4c], 0x201
mov dword [eax + 0x54], 0
mov dword [eax + 0x50], 0
sub edi, 1
jne 0x418c10
mov eax, dword [ebp - 0x8c]
cmp dword [eax + 0x40], 8
lea ecx, [eax + 0x2c]
jb 0x418cae
mov ecx, dword [eax + 0x2c]
mov dword [eax + 0x3c], 0
xor eax, eax
mov word [ecx], ax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00428d9d
mov esp, ebp
pop ebp
ret 4
Function at 0x41dab0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
mov dword [ebp - 8], 4
mov esi, 1
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41daec
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41db20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
push edi
mov dword [ebp - 4], 1
mov edi, 1
mov word [esi], ax
lea eax, [ebp + 0x14]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x41db5d
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 0x18]
push eax
push esi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x14]
xor ecx, ecx
test eax, eax
cmovne edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41db90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
mov esi, 1
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41dbc8
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41dc00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
mov esi, 1
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41dc38
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
mov eax, edx
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41dc41
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret