joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
jne 0x4010cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x401102
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4010fe
jmp 0x4010f0
cmp esi, eax
jae 0x401102
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4010f0
cmp esi, eax
jb 0x401109
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402c10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x602c90]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
jne 0x402c49
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055f89e
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c52
sub eax, edx
sar eax, 1
cmp word [ebp + eax*2 - 0x212], 0x5c
je 0x402c89
push 0x5c20fc
lea ecx, [ebp - 0x210]
push 0x105
push ecx
call fcn.00560498
add esp, 0xc
test eax, eax
jne 0x402c39
push str.dwmapi.dll
lea edx, [ebp - 0x210]
push 0x105
push edx
call fcn.00560498
add esp, 0xc
test eax, eax
jne 0x402c39
lea eax, [ebp - 0x210]
push eax
call fcn.004024d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.0055f89e
mov esp, ebp
pop ebp
ret
Function at 0x404780
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push esi
push edi
push 0x5c2100
mov esi, ecx
call fcn.004024d0
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
xor ebx, ebx
add esp, 4
mov dword [esi + 0x1ec], eax
cmp eax, ebx
je 0x4047f0
push str.DrawThemeParentBackground
push eax
call edi
mov dword [esi + 0x1f4], eax
mov eax, dword [esi + 0x1ec]
push str.DrawThemeTextEx
push eax
call edi
mov ecx, dword [esi + 0x1ec]
push str.BeginBufferedPaint
push ecx
mov dword [esi + 0x1f8], eax
call edi
mov edx, dword [esi + 0x1ec]
push str.EndBufferedPaint
push edx
mov dword [esi + 0x204], eax
call edi
mov dword [esi + 0x208], eax
jmp 0x404808
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1f8], ebx
mov dword [esi + 0x204], ebx
mov dword [esi + 0x208], ebx
cmp dword [esi + 0x1f0], ebx
je 0x40485a
call fcn.00402c10
mov dword [esi + 0x1f0], eax
cmp eax, ebx
jne 0x404824
call fcn.004733b9
push str.DwmExtendFrameIntoClientArea
push eax
call edi
mov dword [esi + 0x20c], eax
mov eax, dword [esi + 0x1f0]
push str.DwmDefWindowProc
push eax
call edi
mov ecx, dword [esi + 0x1f0]
push str.DwmIsCompositionEnabled
push ecx
mov dword [esi + 0x210], eax
call edi
mov dword [esi + 0x214], eax
mov eax, 1
cmp dword [esi + 0x19c], ebx
je 0x40486d
mov dword [esi + 0x19c], eax
pop edi
pop esi
pop ebx
ret
Function at 0x40ae00
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x602c90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x20]
push 0
mov byte [edi + 0x2fc58], 1
call ebx
push 1
call ebx
mov eax, dword [edi + 0x2fc9c]
mov ebx, dword [edi + 0x2fca0]
push eax
call fcn.00408e10
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xfffffffffffffff0
push esi
call ebx
push 0xfffffffffffffff0
push esi
call ebx
or eax, 0x10000000
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 0x20]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edx, dword [edi + 0x20]
push edx
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [edi + 0x20]
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055f89e
mov esp, ebp
pop ebp
ret
Function at 0x40aec0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x58ccd0
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x602c90]
xor eax, esp
mov dword [esp + 0x7c], eax
push ebx
push esi
mov eax, dword [0x602c90]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
jne 0x40af08
xor eax, eax
jmp 0x40af0b
mov eax, dword [esi + 0x20]
push 1
lea ecx, [esp + 0x20]
push ecx
push eax
mov dword [esp + 0x34], 0x32
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], 0x64
mov dword [esp + 0x2c], ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
test byte [0x60b6a4], 1
jne 0x40af41
or dword [0x60b6a4], 1
push esi
lea ecx, [esp + 0x30]
mov dword [0x60b69c], 5
mov dword [0x60b6a0], 5
call fcn.0047c0ac
push 8
mov dword [esp + 0x9c], ebx
call fcn.0047326c
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x98], 1
cmp eax, ebx
je 0x40af93
push 0xff
push 1
push ebx
mov ecx, eax
call fcn.0047c389
mov esi, eax
jmp 0x40af95
xor esi, esi
push esi
lea ecx, [esp + 0x30]
mov byte [esp + 0x9c], bl
call fcn.0047c2b5
mov edx, dword [0x60b6a0]
mov eax, dword [0x60b69c]
push edx
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x38]
call fcn.0047bc0d
push 5
push 0x64
lea ecx, [esp + 0x34]
call fcn.0047b668
cmp esi, ebx
je 0x40afdd
mov edx, dword [esi]
mov eax, dword [edx + 4]
push 1
mov ecx, esi
call eax
mov esi, vtable.CRgn.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], esi
push 0xdc
push 0x15e
push 0x28
push 0x32
mov byte [esp + 0xa8], 2
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
lea ecx, [esp + 0x10]
call fcn.0047c1c8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x30]
push ecx
push edx
call dword [sym.imp.GDI32.dll_PaintRgn]
mov byte [esp + 0x98], bl
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
call fcn.004025d0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x98], 0xffffffff
call fcn.0047c100
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0055f89e
mov esp, ebp
pop ebp
ret
Function at 0x4220a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
jne 0x4220b2
push 0x80004005
call fcn.00401090
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push edi
push esi
lea eax, [ebp - 4]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x422117
mov ecx, dword [edi]
test ecx, ecx
je 0x422112
mov edx, dword [ebp - 4]
test edx, edx
je 0x42213c
cmp edx, 2
jbe 0x42211d
cmp edx, 7
jne 0x42213c
test cl, 1
jne 0x42210d
shr ecx, 1
cmp ecx, 1
jb 0x42210d
cmp word [esi + ecx*2 - 2], 0
jne 0x42210d
cmp ecx, 1
jbe 0x422117
cmp word [esi + ecx*2 - 4], 0
je 0x422117
mov eax, 0xd
xor ecx, ecx
mov word [esi], cx
mov esp, ebp
pop ebp
ret 8
test cl, 1
jne 0x42212c
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x422117
xor edx, edx
mov word [esi], dx
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov word [esi], ax
mov eax, 0xd
mov esp, ebp
pop ebp
ret 8
Function at 0x42c550
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x602c90]
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]
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x42c58c
xor eax, eax
jmp 0x42c71c
mov eax, dword [edi + 0x24]
mov ecx, dword [eax]
test ecx, ecx
je 0x42c5b5
mov eax, dword [edi + 0x34]
mov edx, dword [eax]
add edx, ecx
cmp ecx, edx
jae 0x42c5b5
dec dword [eax]
mov edi, dword [edi + 0x24]
mov eax, dword [edi]
lea ecx, [eax + 1]
mov dword [edi], ecx
mov byte [eax], bl
mov eax, ebx
jmp 0x42c71c
cmp dword [edi + 0x54], 0
je 0x42c719
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x48]
cmp dword [ecx], edx
jne 0x42c5dd
mov edx, dword [edi + 0x3c]
mov eax, dword [edi + 0x40]
mov dword [ecx], edx
mov ecx, dword [edi + 0x20]
mov dword [ecx], eax
mov edx, dword [edi + 0x30]
sub eax, eax
mov dword [edx], eax
cmp dword [edi + 0x44], 0
jne 0x42c603
mov edi, dword [edi + 0x54]
movsx eax, bl
push edi
push eax
call fcn.00560e02
add esp, 8
cmp eax, 0xffffffff
je 0x42c719
mov eax, ebx
jmp 0x42c71c
lea esi, [ebp - 0x2c]
mov byte [ebp - 0x2d], bl
call fcn.0042cea0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
jmp 0x42c620
mov edx, eax
cmp ebx, 0x10
jae 0x42c62c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x34]
push ebx
push edx
push eax
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x2d]
push edx
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x14]
call eax
test eax, eax
js 0x42c70a
cmp eax, 1
jg 0x42c6c0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42c66c
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x34]
sub esi, ecx
je 0x42c695
cmp ebx, 0x10
jae 0x42c67b
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00561c4a
add esp, 0x10
cmp esi, eax
jne 0x42c70a
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x2d]
mov byte [edi + 0x49], 1
cmp dword [ebp - 0x38], edx
jne 0x42c6f6
test esi, esi
jne 0x42c620
cmp dword [ebp - 0x1c], 0x20
jae 0x42c70a
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.0042cf00
jmp 0x42c615
cmp eax, 3
jne 0x42c70a
mov edi, dword [edi + 0x54]
movsx eax, byte [ebp - 0x2d]
push edi
push eax
call fcn.00560e02
add esp, 8
cmp eax, 0xffffffff
je 0x42c6e0
mov esi, dword [ebp + 8]
jmp 0x42c6e3
or esi, 0xffffffff
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042bcc0
mov eax, esi
jmp 0x42c71c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042bcc0
mov eax, dword [ebp + 8]
jmp 0x42c71c
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.0042bcc0
or eax, 0xffffffff
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.0055f89e
mov esp, ebp
pop ebp
ret 4
Function at 0x42d270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58a4d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x602c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x42d391
cmp byte [edi + 0x49], 0
je 0x42d391
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x42d37e
lea esi, [ebp - 0x2c]
call fcn.0042cea0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x42d2e3
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x42d313
dec eax
je 0x42d317
sub eax, 2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
jne 0x42d379
jmp 0x42d38c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x42d327
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x42d350
cmp ebx, 0x10
jae 0x42d336
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00561c4a
add esp, 0x10
cmp esi, eax
jne 0x42d36f
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x42d382
test esi, esi
jne 0x42d2d7
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.0042cf00
jmp 0x42d2d1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042bcc0
xor al, al
jmp 0x42d393
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0042bcc0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f89e
mov esp, ebp
pop ebp
ret
Function at 0x42d6c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x589f2b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x602c90]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0057d830
push 4
mov dword [ebp - 4], 0
call fcn.0047326c
mov edi, eax
add esp, 4
test edi, edi
je 0x42d73c
call fcn.0057d708
mov dword [edi], eax
call fcn.0057d4c7
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.0057d7f1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x42d732
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.0057d819
jmp 0x42d73e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4
Function at 0x42f790
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x602c90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push eax
mov bl, 1
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42f7c6
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055f89e
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesExW]
test eax, eax
je 0x42f7df
cmp dword [ebp - 8], 0
je 0x42f7b4
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0055f89e
mov esp, ebp
pop ebp
ret
Function at 0x42f800
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58dd3c
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x602c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x224]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
cmp eax, 0x104
ja 0x42f9f6
test eax, eax
je 0x42f9f6
push 0
call fcn.005620cf
push eax
call fcn.00561f3b
add esp, 8
xor esi, esi
call fcn.00561f4d
xor edx, edx
mov ecx, 0x3e
div ecx
inc esi
mov dl, byte [edx + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]
mov byte [ebp + esi - 0x1d], dl
cmp esi, 0xa
jl 0x42f863
mov byte [ebp - 0x12], 0
call fcn.0047977b
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x42f89f
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x228], eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
test ecx, 0xffff0000
jne 0x42f8e1
mov edx, ecx
movzx esi, dx
push esi
call fcn.00473506
test eax, eax
je 0x42f8f0
push esi
push eax
lea ecx, [ebp - 0x228]
call fcn.00401f60
jmp 0x42f8f0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x228]
call fcn.00421010
lea ecx, [ebp - 0x228]
push ecx
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00405100
or esi, 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42f92c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.00420ea0
push 0x5c20fc
push eax
lea eax, [ebp - 0x228]
push eax
mov dword [ebp - 4], 2
call fcn.00420dc0
add esp, 0x18
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00405100
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x228]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42f98d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x22c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x42f9af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
mov esi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
push ecx
push eax
call esi
test eax, eax
jne 0x42f9c7
call fcn.004022b0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x42f9f2
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
push ecx
push eax
call esi
test eax, eax
jne 0x42f9e5
call fcn.004022b0
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
je 0x42f9f6
mov al, 1
jmp 0x42f9f8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f89e
mov esp, ebp
pop ebp
ret
Function at 0x4485a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
mov dword [ebp - 0x3c], 0x3c
call fcn.00562d10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], edx
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x30], str.runas
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x448639
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
je 0x448653
mov eax, dword [ebp + 8]
test eax, eax
je 0x448653
push eax
call dword [sym.imp.KERNEL32.DLL_LocalLock]
push eax
push 0x5c3d50
call fcn.005621ad
mov edx, dword [ebp + 8]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
xor al, al
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
test eax, eax
je 0x448653
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x448660
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push 0x38
lea eax, [ebp - 0x38]
push 0
push eax
xor bl, bl
mov dword [ebp - 0x3c], 0x3c
call fcn.00562d10
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x2c], edx
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4486fd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0
lea ecx, [ebp + 8]
push ecx
push 0
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.DLL_FormatMessageW]
test eax, eax
je 0x448719
mov eax, dword [ebp + 8]
test eax, eax
je 0x448719
push eax
call dword [sym.imp.KERNEL32.DLL_LocalLock]
push eax
push 0x5c3d50
call fcn.005621ad
mov edx, dword [ebp + 8]
add esp, 8
push edx
call dword [sym.imp.KERNEL32.DLL_LocalFree]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
mov bl, 1
test eax, eax
je 0x448719
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x449830
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58d85b
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x602c90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0xc]
mov edi, ecx
push eax
mov ecx, esi
xor bl, bl
call fcn.00405100
mov eax, dword [edi]
mov dword [ebp - 0x428], 0x400
mov ecx, dword [eax - 0xc]
push ecx
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x449895
call fcn.004022b0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x41c]
push edx
push 0
push 0
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4498e2
lea eax, [ebp - 0x41c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4498c2
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x41c]
push ecx
mov ecx, esi
call fcn.004021a0
mov bl, 1
mov edx, dword [esi]
cmp dword [edx - 0xc], 0
jne 0x449990
mov edi, dword [edi]
mov dword [ebp - 0x420], 0
mov eax, dword [edi - 0xc]
push eax
push edi
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
test eax, eax
jne 0x44990e
call fcn.004022b0
lea ecx, [ebp - 0x428]
push ecx
lea edx, [ebp - 0x420]
push edx
push 0
push 0
push eax
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x449990
mov edx, dword [ebp - 0x420]
push 0xa
lea ecx, [ebp - 0x1c]
push ecx
push edx
call fcn.00560616
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00420a50
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00405100
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x42c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x44998e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 1
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055f89e
mov esp, ebp
pop ebp
ret 8