joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b380
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4704e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov edi, dword [esi + 0x17b4]
mov dword [esp + 0x1c], 0
call fcn.0046a9b7
mov ecx, dword [esi + 0x17bc]
mov eax, dword [eax + 8]
mov ebx, dword [sym.imp.user32.dll_LoadImageA]
push 0x8000
push ecx
push ecx
movzx ecx, di
push 1
push ecx
push eax
call ebx
mov ecx, dword [esi + 0x17b0]
push 0
push eax
call fcn.00428c40
mov eax, dword [esi + 0x17c0]
push 0x4770f0
push eax
call fcn.00447da8
add esp, 8
test eax, eax
je 0x41b401
mov ecx, dword [esi + 0x17b0]
push 1
call fcn.0045f553
mov edi, dword [esi + 0x220c]
call fcn.0046a9b7
mov ecx, dword [esi + 0x2214]
mov eax, dword [eax + 8]
push 0x8000
push ecx
push ecx
movzx edx, di
push 1
push edx
push eax
call ebx
mov ecx, dword [esi + 0x2208]
push 0
push eax
call fcn.00428c40
mov eax, dword [esi + 0x2218]
push 0x4770f0
push eax
call fcn.00447da8
add esp, 8
test eax, eax
je 0x41b458
mov ecx, dword [esi + 0x2208]
push 1
call fcn.0045f553
mov eax, dword [esi + 0x180]
mov eax, dword [eax + 0x1c]
mov edi, dword [sym.imp.user32.dll_SendMessageA]
push 0
push 0
push 0x500
push eax
call edi
mov ecx, dword [0x4dee78]
push ecx
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov ecx, esi
call fcn.0041a240
mov ebx, dword [esp + 0x24]
push 1
push ecx
add ebx, 0xfffffff0
mov dword [esp + 0x18], esp
mov ebp, esp
push ebx
call fcn.00401fc0
add eax, 0x10
add esp, 4
mov ecx, 0x4dee80
mov dword [ebp], eax
call fcn.0040a3a0
or ebp, 0xffffffff
cmp eax, ebp
jne 0x41b4f2
mov ecx, 0x4dee80
call fcn.00407e60
mov dword [esp + 0x1c], ebp
lea edx, [ebx + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x41b573
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
mov eax, dword [esi + 0x184]
mov ecx, dword [eax + 0x1c]
push 0
push 1
push 0x500
push ecx
call edi
mov ecx, esi
call fcn.0041ae20
mov eax, dword [esi + 0x188]
mov edx, dword [eax + 0x1c]
push 0
push 1
push 0x500
push edx
call edi
mov eax, dword [esi + 0x18c]
mov eax, dword [eax + 0x1c]
push ebp
push 0x10
push 0x500
push eax
call edi
mov eax, dword [esi + 0x18c]
mov ecx, dword [eax + 0x1c]
push 0
push 0x10
push 0x500
push ecx
call edi
mov edx, dword [esi + 0x1c]
push 0
push 1
push 0x500
push edx
call edi
mov dword [esp + 0x1c], ebp
lea eax, [ebx + 0xc]
lock xadd dword [eax], ebp
dec ebp
test ebp, ebp
jg 0x41b573
mov ecx, dword [ebx]
mov edx, dword [ecx]
push ebx
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x10
ret 4
Function at 0x41f6f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4709d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], 0
call fcn.00460104
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x24], 1
call fcn.00460104
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [0x4dee78]
push eax
lea ecx, [esp + 0x14]
push 0x4779ac
push ecx
mov byte [esp + 0x30], 2
call fcn.00402a00
mov ebx, dword [esp + 0x1c]
push 0x477aa4
push ebx
call fcn.004481c9
mov edx, dword [edi + 0x70]
push 0
mov esi, eax
push edx
push esi
call fcn.00448124
mov edi, dword [esp + 0x4c]
push esi
push 4
push 1
push edi
call fcn.0044853d
push esi
call fcn.00447f0f
add esp, 0x30
mov ecx, esp
mov dword [esp + 0x1c], esp
push 0x47458c
call fcn.00401990
mov ecx, 0x4dee80
call fcn.00407890
mov ecx, dword [eax*4 + 0x4ae128]
lea eax, [esp + 0x10]
add ecx, 0x14
push eax
call fcn.00402a20
lea eax, [ebp - 0x10]
mov byte [esp + 0x24], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f7dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [ebx - 0x10]
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f7fc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41f81e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x18
ret 4
Function at 0x420a70
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x470b28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], 0x4802d8
mov eax, dword [esp + 0x44]
push eax
push edi
push edi
mov dword [esp + 0x3c], edi
call dword [sym.imp.gdi32.dll_CreatePen]
push eax
lea ecx, [esp + 0x1c]
call fcn.0046313d
mov esi, dword [esp + 0x38]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00463219
mov dword [esp + 0x14], eax
cmp dword [esp + 0x48], edi
je 0x420adb
mov dword [esp + 0x10], 1
mov ebp, dword [esp + 0x40]
mov edi, dword [esp + 0x3c]
lea eax, [ebp + 2]
push eax
push edi
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00462bd8
mov edx, dword [esp + 0x10]
mov ebx, ebp
sub ebx, edx
lea eax, [ebx + 5]
push eax
push edi
mov ecx, esi
mov dword [esp + 0x40], eax
call fcn.00462873
lea eax, [ebp + 3]
push eax
lea ecx, [edi + 1]
push ecx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00462bd8
lea eax, [ebx + 6]
push eax
mov dword [esp + 0x48], eax
lea eax, [edi + 1]
push eax
mov ecx, esi
call fcn.00462873
lea ecx, [ebp + 4]
push ecx
lea eax, [edi + 2]
push eax
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00462bd8
lea eax, [ebx + 7]
push eax
lea eax, [edi + 2]
push eax
mov ecx, esi
call fcn.00462873
lea eax, [ebp + 3]
push eax
lea ecx, [edi + 3]
push ecx
lea ecx, [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00462bd8
mov edx, dword [esp + 0x44]
push edx
lea eax, [edi + 3]
push eax
mov ecx, esi
call fcn.00462873
lea eax, [ebp + 2]
push eax
lea ecx, [edi + 4]
push ecx
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00462bd8
mov ecx, dword [esp + 0x38]
push ecx
lea eax, [edi + 4]
push eax
mov ecx, esi
call fcn.00462873
lea edx, [ebp + 1]
lea eax, [edi + 5]
push edx
push eax
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.00462bd8
lea ecx, [ebx + 4]
push ecx
lea eax, [edi + 5]
push eax
mov ecx, esi
call fcn.00462873
push ebp
add edi, 6
push edi
lea edx, [esp + 0x28]
push edx
mov ecx, esi
call fcn.00462bd8
add ebx, 3
push ebx
push edi
mov ecx, esi
call fcn.00462873
mov eax, dword [esp + 0x14]
push eax
mov ecx, esi
call fcn.00463219
lea ecx, [esp + 0x18]
call fcn.00463194
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x18], 0x47fd9c
call fcn.00463194
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x14
Function at 0x421040
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x470b60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00462958
mov esi, dword [esp + 0x7c]
mov ecx, dword [esi + 4]
lea eax, [esp + 0x54]
push eax
push 0x18
xor ebx, ebx
push ecx
mov dword [esp + 0x80], ebx
call dword [sym.imp.gdi32.dll_GetObjectA]
mov edi, dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push ebx
call edi
push eax
lea ecx, [esp + 0x28]
call fcn.00462e40
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.004631c6
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], eax
call fcn.00462958
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], 0x4802b8
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0x4802c8
push ebx
mov byte [esp + 0x78], 3
call edi
push eax
lea ecx, [esp + 0x38]
call fcn.00462e40
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x20]
call fcn.0046313d
push 0xc0c0c0
call dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.0046313d
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
push eax
push ecx
call fcn.004631c6
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], edx
push ecx
lea edx, [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x3c]
push edx
push eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
call dword [sym.imp.user32.dll_FillRect]
mov ecx, dword [esp + 0x38]
push 1
push 1
push ecx
mov ebp, dword [sym.imp.gdi32.dll_GetPixel]
call ebp
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00463194
test esi, esi
je 0x421170
mov esi, dword [esi + 4]
mov edx, dword [esp + 0x38]
push esi
push edx
call fcn.004631c6
push 0xf
call dword [sym.imp.user32.dll_GetSysColor]
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x58]
xor edi, edi
test eax, eax
jle 0x4211d1
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
jle 0x4211c8
jmp 0x4211a0
mov eax, dword [esp + 0x28]
push esi
push edi
push eax
call ebp
cmp eax, ebx
jne 0x4211bf
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x28]
push ecx
push esi
push edi
push edx
call dword [sym.imp.gdi32.dll_SetPixel]
mov eax, dword [esp + 0x5c]
inc esi
cmp esi, eax
jl 0x4211a0
mov ecx, dword [esp + 0x58]
inc edi
cmp edi, ecx
jl 0x421195
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4211dc
mov eax, dword [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
call fcn.004631c6
mov esi, 0x47fd9c
lea ecx, [esp + 0x1c]
mov byte [esp + 0x74], 2
mov dword [esp + 0x1c], esi
call fcn.00463194
lea ecx, [esp + 0x14]
mov byte [esp + 0x74], 1
mov dword [esp + 0x14], esi
call fcn.00463194
lea ecx, [esp + 0x34]
mov byte [esp + 0x74], 0
call fcn.00462ebe
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], 0xffffffff
call fcn.00462ebe
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 4
Function at 0x421a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0046a9b7
movzx ebx, word [esp + 0x14]
mov edi, dword [eax + 0xc]
mov ebp, dword [sym.imp.kernel32.dll_FindResourceA]
push 2
push ebx
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x421ab1
push 2
push ebx
xor edi, edi
push edi
call ebp
mov esi, eax
test esi, esi
je 0x421ad7
push esi
push edi
call dword [sym.imp.kernel32.dll_LoadResource]
test eax, eax
je 0x421ad7
push eax
call dword [sym.imp.kernel32.dll_LockResource]
test eax, eax
je 0x421ad7
push eax
call fcn.00421a40
add esp, 4
cmp ax, 0x10
je 0x421ade
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push 0
push esi
push edi
call fcn.004646fb
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x421b10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x138
mov eax, dword [0x493790]
mov dword [esp + 0x134], eax
mov eax, dword [0x4e3c04]
test eax, eax
jne 0x421c17
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x477d28
push 0x80000001
mov dword [0x4e3c04], 1
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x421c17
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 4]
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0xc]
push eax
push 0
push 0
push ecx
mov dword [esp + 0x20], 0x104
mov dword [esp + 0x1c], 1
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x421c0d
mov edx, dword [0x477d10]
mov eax, dword [0x477d14]
mov ecx, dword [0x477d18]
mov dword [esp + 0xc], edx
mov edx, dword [0x477d1c]
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_lstrlenA]
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
mov eax, dword [0x477d20]
mov dword [esp + 0x1c], ecx
mov cx, word [0x477d24]
lea edx, [esp + 0x2c]
push edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], cx
call edi
mov esi, eax
lea eax, [esp + 0x14]
push eax
call edi
cmp esi, eax
jl 0x421c0b
lea ecx, [esp + 0x14]
push ecx
mov edx, ecx
push edx
call edi
sub esi, eax
lea eax, [esp + esi + 0x30]
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiA]
test eax, eax
jne 0x421c0b
mov dword [0x4e3c00], 1
pop edi
pop esi
mov ecx, dword [esp]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [esp + 0x134]
mov eax, dword [0x4e3c00]
call fcn.004475ee
add esp, 0x138
ret
Function at 0x421f40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470c33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
lea ebx, [esi + 8]
mov ecx, ebx
mov dword [esp + 0x18], edi
mov dword [esi], 0x477d74
call fcn.0045a491
mov dword [ebx], 0x477cd8
lea ebx, [esi + 0x1c]
mov ecx, ebx
mov byte [esp + 0x18], 1
call fcn.0045a491
mov dword [ebx], 0x477cd8
or eax, 0xffffffff
push 0x4e3ba8
push edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x30], 0xc0c0c0
mov dword [esi + 0x34], edi
call dword [sym.imp.kernel32.dll_GetCPInfo]
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x50], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x422bc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x470ca8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
mov ebp, ecx
mov eax, esi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 8]
push edi
mov dword [esp + 0x1c], edx
mov edx, dword [eax + 0xc]
xor edi, edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 0x4802b8
cmp dword [0x4e3bcc], 7
mov dword [esp + 0x30], edi
jne 0x422c27
call fcn.00421b10
test eax, eax
jne 0x422c27
push 0xf
jmp 0x422c29
push 4
mov ebx, dword [sym.imp.user32.dll_GetSysColor]
call ebx
cmp dword [esp + 0x40], edi
jne 0x422c4c
fld qword [0x477da0]
sub esp, 8
fstp qword [esp]
push eax
call fcn.00420550
add esp, 0xc
push eax
call dword [sym.imp.gdi32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x14]
call fcn.0046313d
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x38]
mov edx, dword [edi + 4]
push eax
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.user32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.00463194
cmp dword [0x4e3bcc], 2
jl 0x422c9a
mov ecx, dword [edi + 4]
push 0xf
push 2
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.user32.dll_DrawEdge]
mov eax, dword [esp + 0x44]
test eax, eax
jne 0x422cc0
push 0
push 7
call ebx
mov edx, dword [esi + 4]
push eax
mov eax, dword [esi]
add edx, 4
push edx
add eax, 4
push eax
push edi
mov ecx, ebp
call fcn.00420a70
jmp 0x422cda
push 7
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
add ecx, 4
push ecx
add edx, 5
push edx
push edi
mov ecx, ebp
call fcn.00420950
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0x10], 0x47fd9c
call fcn.00463194
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0x10
Function at 0x429010
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
je 0x4290a1
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
je 0x4290a1
cmp byte [ebx], 0
je 0x4290a1
cmp dword [esp + 0x18], ebp
je 0x4290a1
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x4290a1
push edi
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.kernel32.dll_lstrlen]
mov edx, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 2
push ebp
push ebp
push ebp
push ebx
push edx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x429089
mov ecx, dword [esp + 0x18]
inc edi
push edi
push esi
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x429089
mov ebp, 1
mov eax, dword [esp + 0x18]
test eax, eax
pop edi
je 0x429099
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0x10
push 0x80070057
call dword [sym.imp.kernel32.dll_SetLastError]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10

Function at 0x429036
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
je 0x4290a1
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
je 0x4290a1
cmp byte [ebx], 0
je 0x4290a1
cmp dword [esp + 0x18], ebp
je 0x4290a1
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x4290a1
push edi
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.kernel32.dll_lstrlen]
mov edx, dword [esp + 0x14]
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push ebp
push 2
push ebp
push ebp
push ebp
push ebx
push edx
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x429089
mov ecx, dword [esp + 0x18]
inc edi
push edi
push esi
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
test eax, eax
jne 0x429089
mov ebp, 1
mov eax, dword [esp + 0x18]
test eax, eax
pop edi
je 0x429099
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0x10
push 0x80070057
call dword [sym.imp.kernel32.dll_SetLastError]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10
Function at 0x4296e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x471183
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.00462958
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], 0x478260
mov dword [esp + 0x24], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], 0x4802c8
mov ebx, dword [esp + 0x2c]
xor eax, eax
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x18], ecx
cmp dword [ebx + 0xc], ecx
sete al
mov byte [esp + 0x24], 1
lea edi, [esi + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x42974f
mov edx, dword [ebx]
push edi
mov ecx, ebx
call dword [edx + 0x50]
jmp 0x429767
mov edx, dword [eax]
mov ecx, edi
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4297fc
mov eax, dword [ebx + 4]
push eax
call dword [sym.imp.gdi32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.00462e40
mov ecx, dword [ebx + 8]
push 2
push edi
push ecx
call dword [sym.imp.gdi32.dll_LPtoDP]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 0xc]
mov edx, dword [edi]
sub eax, ecx
mov ecx, dword [edi + 8]
sub ecx, edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.gdi32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0046313d
test ebp, ebp
je 0x4297bb
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.004631c6
mov dword [esi + 0x18], eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.gdi32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.004627b1
mov edx, dword [ebx + 8]
push 2
push edi
push edx
call dword [sym.imp.gdi32.dll_DPtoLP]
mov eax, dword [esi + 0x24]
mov ecx, dword [edi]
push eax
push ecx
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call fcn.00462aa8
jmp 0x42980e
mov eax, dword [ebx + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [ebx + 4]
mov dword [esi + 4], ecx
mov edx, dword [ebx + 8]
mov dword [esi + 8], edx
push 1
mov ecx, esi
call fcn.00462754
mov eax, dword [esp + 0x34]
test eax, eax
je 0x429857
mov ebx, dword [edi]
mov eax, dword [edi + 0xc]
mov ebp, dword [edi + 4]
mov ecx, dword [edi + 8]
mov edx, dword [esi + 0x1c]
mov edi, dword [edi]
sub ecx, ebx
mov ebx, dword [esi + 0x24]
sub eax, ebp
test edx, edx
je 0x42983d
mov edx, dword [edx + 4]
push 0xcc0020
push 0
push 0
push edx
push eax
mov eax, dword [esi + 4]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.gdi32.dll_BitBlt]
jmp 0x42986a
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.gdi32.dll_GetBkColor]
push eax
push edi
mov ecx, esi
call fcn.004686e3
mov ecx, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 0xc
Function at 0x42b320
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 4]
lea ecx, [esp + 4]
push ecx
push 1
push 0
push eax
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esi], eax
je 0x42b36a
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b361
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop esi
add esp, 8
ret 4
mov ecx, dword [esp + 4]
push edi
mov edi, dword [esp + 0x14]
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push edi
push ecx
mov dword [esp + 0x24], 1
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
mov edx, dword [esp + 8]
push edx
mov dword [esi], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [esi]
or edx, 0xffffffff
test eax, eax
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
jne 0x42b3c9
mov esi, dword [esp + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b3bf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
mov eax, esi
pop esi
add esp, 8
ret 4
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b3da
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor eax, eax
pop esi
add esp, 8
ret 4

Function at 0x42b3f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [ecx + 0xc]
lea edx, [esp]
push edx
push 0x20019
push 0
push eax
mov eax, dword [ecx + 4]
push eax
mov dword [esp + 0x20], 3
mov dword [esp + 0x1c], 4
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
je 0x42b448
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 0x42b43e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add esp, 0x10
ret 8
push esi
mov esi, dword [esp + 0x18]
push edi
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0
push esi
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
je 0x42b477
mov ecx, dword [esp + 0x20]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov edi, dword [esp + 0xc]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42b4a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
add esp, 0x10
ret 8