joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c1d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00417e20
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42c29b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42c29b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42c24e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42c259
or bh, 8
and edi, 0x8000000
je 0x42c274
mov eax, dword [0x48563c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42c29b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c670
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42c69b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42c6bf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42c6da
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x43f5dd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43f615
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00442a33
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00442a0b
jmp 0x43f621
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4413df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x441421
call fcn.004565a6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x441421
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x441418
xor eax, eax
jmp 0x441429
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0044142f
pop edi
pop esi
pop ebx
ret 4
Function at 0x401650
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.7BBED15F_1212_4367_A2E6_3FDD5E1CBC86
push 1
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401684
mov eax, dword [esp + 0xc]
mov dword [eax + 0xac], 1
mov esi, 1
test edi, edi
je 0x40168f
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp esi, 1
jne 0x4016af
mov ecx, dword [0x4cc808]
push esi
push esi
push ecx
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
mov eax, esi
pop esi
ret 4
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x4016c0
Capabilities:
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49246b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call fcn.004553e0
add esp, 0xc
lea ecx, [esp + 8]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 8]
push edx
lea ecx, [esp + 8]
call fcn.00402950
push 1
push 0x4aec7c
lea ecx, [esp + 0xc]
mov dword [esp + 0x120], 0
call fcn.00402570
push 0xa
push str.update.txt
lea ecx, [esp + 0xc]
call fcn.00402570
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40178f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x118
ret
Function at 0x4017c0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x491ca8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
xor ebx, ebx
push 0x39
mov ebp, 0xf
push str.SoftwareMicrosoftInternet_ExplorerMainFeatureControl_
lea ecx, [esp + 0x44]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.00402450
mov eax, str.FEATURE_BROWSER_EMULATION
mov dword [esp + 0x64], ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401820
sub eax, edx
push eax
push str.FEATURE_BROWSER_EMULATION
lea ecx, [esp + 0x44]
call fcn.00401dc0
push ebp
push str.CQRCBAssist.exe
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebp
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
call fcn.00402450
mov eax, dword [esp + 0x40]
mov esi, 0x10
cmp dword [esp + 0x54], esi
jae 0x401866
lea eax, [esp + 0x40]
lea ecx, [esp + 0x10]
push ecx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40189e
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], esi
jae 0x401889
lea eax, [esp + 0x40]
lea edx, [esp + 0x10]
push edx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40190a
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], 4
mov dword [esp + 0x1c], 4
cmp dword [esp + 0x38], esi
jae 0x4018bc
lea eax, [esp + 0x24]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018e6
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x6c]
je 0x40190a
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x38], esi
jae 0x4018f4
lea eax, [esp + 0x24]
mov edx, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x70]
push ecx
push 4
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x38], esi
jb 0x401928
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042e69b
add esp, 4
mov byte [esp + 0x24], bl
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebp
cmp dword [esp + 0x54], esi
jb 0x401947
mov edx, dword [esp + 0x40]
push edx
call fcn.0042e69b
add esp, 4
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x58
ret 4
Function at 0x401970
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x90
push 0xfffffffffffffffe
push 0x4bbb20
push 0x455920
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4c3aa8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x98]
mov dword [ebp - 0x34], eax
mov ebx, edx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ecx
xor esi, esi
mov dword [ebp - 0x1c], esi
mov edx, dword [str.mshtml.dll]
mov dword [ebp + 0x80], edx
mov eax, dword [0x4aecdc]
mov dword [ebp + 0x84], eax
mov cx, word [0x4aece0]
mov word [ebp + 0x88], cx
mov dl, byte [0x4aece2]
mov byte [ebp + 0x8a], dl
xor edi, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
mov byte [ebp], 0
push 0x7f
push esi
lea eax, [ebp + 1]
push eax
call fcn.004553e0
add esp, 0xc
test ebx, ebx
jne 0x401a1f
lea eax, [ebx + 0x57]
jmp 0x401b19
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp + 0x80]
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x401b01
push ebx
call fcn.0044e353
add esp, 4
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x401a58
mov dword [ebp - 0x1c], 8
jmp 0x401b0a
push eax
push ebx
mov eax, dword [ebp - 0x2c]
push eax
lea ecx, [ebp + 0x80]
push ecx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x401b01
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x24]
push eax
push 0x4aec7c
mov ecx, dword [ebp - 0x20]
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x401aa4
cmp dword [ebp - 0x30], ebx
je 0x401aa4
mov eax, dword [ebp - 0x24]
movzx esi, word [eax + 0xa]
movzx edi, word [eax + 8]
push edi
push esi
push str.Internet_Explorer__d._d
lea edx, [ebp]
call fcn.00401fd0
add esp, 0xc
mov edx, dword [ebp - 0x38]
mov dword [edx], esi
mov edx, dword [ebp - 0x34]
cmp edx, ebx
je 0x401ae7
mov eax, dword [ebp - 0x28]
cmp dword [eax], ebx
jbe 0x401ae7
lea eax, [ebp]
lea esi, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ad0
sub eax, esi
push eax
lea ecx, [ebp]
push ecx
push edx
call fcn.00457530
add esp, 0xc
lea eax, [ebp]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401af0
sub eax, edx
inc eax
mov edx, dword [ebp - 0x28]
mov dword [edx], eax
jmp 0x401b0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.00401b3e
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0044e1ea
add ebp, 0x90
mov esp, ebp
pop ebp
ret
Function at 0x4026a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4026b9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4026f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4026f0
lea ebx, [ebx]
cmp esi, eax
jae 0x4026f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4026e0
cmp esi, eax
jb 0x4026fa
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4071a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4939c0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
lea ecx, [esp + 0xc]
call fcn.00443594
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x30], 0
call fcn.0044363b
call fcn.00435396
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x4071fb
push 0x80004005
call fcn.00402c90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 4], eax
mov byte [esp + 0x28], 1
test esi, esi
jne 0x40721d
push 1
push 0x4af32c
jmp 0x407228
cmp esi, 1
jne 0x407231
push esi
push 0x4af330
lea ecx, [esp + 0xc]
call fcn.00402be0
mov edx, dword [esp + 0x14]
lea ecx, [esp + 4]
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.0044386a
push 0
lea eax, [esp + 0x10]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push str.setProgressBarIMG
call fcn.00402950
call fcn.0041b650
push ecx
mov ecx, esp
mov dword [esp + 0xc], esp
push str.c_setProgressBarIMG
call fcn.00402950
call fcn.00404530
mov byte [esp + 0x2c], 0
mov eax, dword [esp + 8]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40729f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00443771
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
add esp, 0x28
ret
Function at 0x408280
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x492396
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x4c3aa8]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
mov eax, dword [0x4c3aa8]
xor eax, esp
push eax
lea eax, [esp + 0x228]
mov dword fs:[0], eax
xor ebx, ebx
push 0x207
lea eax, [esp + 0x21]
push ebx
push eax
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x28], bl
call fcn.004553e0
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call fcn.00435396
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408301
push 0x80004005
call fcn.00402c90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x230], ebx
call fcn.00435396
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x408332
push 0x80004005
call fcn.00402c90
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0x10
push str.CQRCBAssistHTMLs
lea ecx, [esp + 0x1c]
mov byte [esp + 0x238], 1
call fcn.00402be0
mov ebp, dword [esp + 0x14]
push ebp
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push 0x4afddc
push edx
call fcn.00407e90
mov esi, dword [esp + 0x28]
add esp, 0x10
mov ecx, esi
call fcn.0041c1c0
cmp eax, 1
je 0x40839e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4083c8
mov ecx, esi
call fcn.0041c1c0
cmp eax, 1
jne 0x4083c8
push esi
push 0x100
push edi
mov dword [esp + 0x1c], 1
call fcn.0044f3fc
add esp, 0xc
push 0x4aec7c
push 0x100
push edi
call fcn.0044f464
add esp, 0xc
lea eax, [esi - 0x10]
mov byte [esp + 0x230], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4083eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x230], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408412
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x228]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.0044e1ea
add esp, 0x224
ret
Function at 0x4090b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4914c0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4c3aa8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
push 0x2001f
xor edi, edi
push edi
push eax
push SysReAllocString
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x409117
push 0x4bb7fc
lea edx, [ebp - 0x20]
push edx
mov dword [ebp - 0x20], eax
call fcn.0045578e
mov ecx, dword [ebp - 0x18]
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push edi
push str.1201
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
je 0x409152
push 0x4bb7fc
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x24], esi
call fcn.0045578e
mov eax, 0x40914f
ret
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x409160
push eax
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0044e1ea
mov esp, ebp
pop ebp
ret 8

Function at 0x409180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4914a0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4c3aa8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
push 0x20019
xor edi, edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_SettingsZones2
push SysReAllocString
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x4091f0
push 0x4bb7fc
lea ecx, [ebp - 0x1c]
push ecx
mov dword [ebp - 0x1c], eax
call fcn.0045578e
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x20]
push edx
mov edx, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
push edi
push str.1201
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, edi
je 0x40922f
push 0x4bb7fc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], esi
call fcn.0045578e
mov eax, 0x40922c
ret
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x40923d
push eax
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 4
Function at 0x40aa20
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [esp + 0xc]
push esi
push eax
mov dword [esp + 0x10], 0x3c
call fcn.004553e0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x20], ecx
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0x40
mov dword [esp + 0x24], esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x40aaba
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40aa91
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40aab1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
add esp, 0x3c
ret 0xc
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push edx
call esi
cmp dword [esp + 0x44], 0x103
jne 0x40aaff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x48]
push eax
push ecx
call esi
push 0x1f4
call edi
cmp dword [esp + 0x48], 0x103
je 0x40aae1
pop edi
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ab1f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ab3f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
pop esi
add esp, 0x3c
ret 0xc