joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413b8f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415600
push 0x413cd0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4ed130], 0xffffffff
or dword [0x4ed134], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4ed12c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4ed128]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4ed138], eax
call fcn.00413cc1
cmp dword [0x4161f0], 0
jne 0x413c12
push 0x413cbe
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00413cac
push 0x41601c
push 0x416018
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4ed124]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4ed120]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x416014
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00403640
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10007c2e
pop dword [ebp - 0x18]
mov eax, 0x1fe34e21
add eax, 0xf01d2e0d
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x43c6327b
add dword [ebp - 0x28], 0xa8c12d0
mov dword [ebp - 0x24], 0x92d59923
sub dword [ebp - 0x24], 0x60a24cde
mov dword [ebp - 0x20], 0x35931767
add dword [ebp - 0x20], 0x16b92cc7
mov dword [ebp - 0x1c], 0x860f1294
sub dword [ebp - 0x1c], 0x860f1294
lea eax, [ebp - 0x28]
push eax
mov eax, 0x1c569b9b
add eax, 0xf3a9e4b9
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xcf2ae871
add dword [ebp - 0x28], 0xa54780e5
mov dword [ebp - 0x24], 0xcfec029e
add dword [ebp - 0x24], 0x71805ed7
mov dword [ebp - 0x20], 0x8a327fc7
add dword [ebp - 0x20], 0xd93ceca5
mov dword [ebp - 0x1c], 0x21a21d09
add dword [ebp - 0x1c], 0xde5de2f7
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x539a8c52
add eax, 0xbc65f3fe
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3a1ea
push 0
call eax
mov ecx, 0xf3dc6095
sub ecx, 0xf3dc0ac6
mov edx, eax
mov edi, 0xee085ac7
sub edi, 0xde0760c7
add edi, dword [ebp - 0x18]
mov esi, 0xa05969a5
add esi, 0xdc7a457d
mov ebx, dword [edi]
mov dword [ebp - 0xc], 0xacbc58ed
sub ebx, esi
add dword [ebp - 0xc], 0x1bc50745
mov dword [edx], ebx
xor dword [ebp - 8], 0x3791428a
add edx, 4
add edi, 0x729123da
add edi, 0x8d6edc2a
loop 0x10007d50
add eax, 0x18221507
sub eax, 0x1820caf8
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x100039b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100651f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x10]
xor esi, esi
lea eax, [ebp + 0x3c8]
push eax
push 0x100833e8
push ecx
call fcn.1004b336
push 0x10083174
lea edx, [esp + 0x10]
push eax
push edx
mov dword [esp + 0x30], esi
call fcn.1004b2c2
push eax
lea ecx, [ebp + 0x74]
mov byte [esp + 0x28], 1
call fcn.1004b166
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 0
call fcn.1004b02d
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.1004b02d
mov eax, dword [ebp + 0x68]
lea ebx, [ebp + 0x68]
mov ecx, ebx
call dword [eax + 0x30]
mov edx, dword [ebx]
push 2
push 1
mov ecx, ebx
call dword [edx + 0x14]
mov eax, dword [ebp + 0x414]
push esi
push esi
push 0x1009
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebp + 0x130], esi
jne 0x10003bbe
push edi
lea edi, [ebp + 0x3f8]
mov eax, dword [ebp + 0x188]
push 0
push 0
push 0
push 0
push eax
push esi
push 1
mov ecx, edi
call fcn.10044f9a
mov eax, dword [ebp + 0x3cc]
mov ecx, edi
push eax
push 1
push esi
call fcn.10045011
mov eax, dword [ebp + 0x178]
mov ecx, edi
push eax
push 2
push esi
call fcn.10045011
lea eax, [ebp + 0x178]
lea ecx, [esp + 0x10]
push eax
push 0x10083178
push ecx
call fcn.1004b336
push 0x10083174
lea edx, [esp + 0x18]
push eax
push edx
mov dword [esp + 0x34], 2
call fcn.1004b2c2
push eax
lea ecx, [ebp + 0x198]
mov byte [esp + 0x2c], 3
call fcn.1004b166
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 2
call fcn.1004b02d
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.1004b02d
mov eax, dword [ebp + 0x18c]
lea ecx, [ebp + 0x18c]
call dword [eax + 0x30]
mov eax, dword [ebp + 0x2a0]
mov ecx, edi
push eax
push 3
push esi
call fcn.10045011
mov eax, dword [ebp + 0x180]
mov ecx, edi
push eax
push 4
push esi
call fcn.10045011
lea ecx, [esp + 0x18]
push str._Y__m__d
push ecx
lea ecx, [ebp + 0x17c]
call fcn.1004406a
mov eax, dword [eax]
mov ecx, edi
push eax
push 5
push esi
mov dword [esp + 0x34], 4
call fcn.10045011
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0xffffffff
call fcn.1004b02d
lea edx, [esp + 0x1c]
push str._Y__m__d
push edx
lea ecx, [ebp + 0x184]
call fcn.1004406a
mov eax, dword [eax]
mov ecx, edi
push eax
push 6
push esi
mov dword [esp + 0x34], 5
call fcn.10045011
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], 0xffffffff
call fcn.1004b02d
mov eax, dword [ebx]
push 1
push 1
mov ecx, ebx
call dword [eax + 0x14]
mov eax, dword [ebp + 0x130]
inc esi
test eax, eax
je 0x10003a63
pop edi
mov edx, dword [ebp + 0x2b8]
lea ecx, [ebp + 0x2b8]
call dword [edx + 0x10]
mov eax, dword [ebp + 0x18c]
lea ecx, [ebp + 0x18c]
call dword [eax + 0x10]
mov edx, dword [ebx]
mov ecx, ebx
call dword [edx + 0x10]
lea ecx, [ebp + 0x434]
call fcn.1004afb8
push 0
mov ecx, ebp
call fcn.10049a4b
mov ecx, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x100092e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100664c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
push edi
mov byte [esp + 0xc], 0x5c
mov byte [esp + 0xd], bl
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x28], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push ebx
push ebx
lea ecx, [esp + 0x20]
call fcn.1000fa10
mov esi, dword [esp + 0x30]
mov dl, byte [esp + 0x10]
lea ecx, [esp + 0x10]
mov byte [esi], dl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov eax, dword [0x1006c94c]
push eax
push ebx
push ecx
mov ecx, esi
call fcn.1000f810
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x1000939d
mov al, byte [ecx - 1]
cmp al, bl
je 0x10009393
cmp al, 0xff
je 0x10009393
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.1004b63a
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x100130d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10067290
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x42c]
lea eax, [esi + 0x17c]
push eax
mov ecx, ebp
call fcn.1004b166
lea ecx, [esi + 0x294]
push ecx
lea ecx, [esi + 0x430]
call fcn.1004b166
mov edx, dword [esi + 0x180]
lea edi, [esi + 0x180]
mov ecx, edi
call dword [edx + 0x24]
mov eax, dword [edi]
mov ecx, edi
mov dword [esi + 0x2a8], 0
call dword [eax + 0x28]
mov edx, dword [esi + 0x2ac]
lea edi, [esi + 0x2ac]
push 0
push 0
push 0xffffffffffffffff
mov ecx, edi
call dword [edx + 0xc]
push ebp
lea eax, [esp + 0x14]
push 0x100833e8
push eax
call fcn.1004b336
push 0x10083174
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x28], 0
call fcn.1004b2c2
push eax
lea ecx, [esi + 0x2b8]
mov byte [esp + 0x20], 1
call fcn.1004b166
lea ecx, [esp + 0xc]
mov byte [esp + 0x1c], 0
call fcn.1004b02d
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1004b02d
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x30]
lea eax, [esi + 0x3c0]
lea ecx, [esi + 0x438]
push eax
call fcn.1004b166
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 0x24]
mov eax, dword [esi + 0x3d8]
mov ecx, edi
dec eax
mov dword [esi + 0x3d8], eax
mov eax, dword [edi]
call dword [eax + 0x28]
mov edx, dword [esi + 0x5c]
lea ecx, [esi + 0x5c]
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x1001b76e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x1001b7ac
call fcn.1005c8c3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001b7ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001b7c3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x1001b7c3
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x10042d40
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.10024650
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x10042e0b
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 0x10042e0b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x10042dbe
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x10042dc9
or bh, 8
and edi, 0x8000000
je 0x10042de4
mov eax, dword [0x1008d25c]
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 0x10042e0b
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 0x100431e0
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 0x1004320b
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 0x1004322f
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 0x1004324a
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 0x10046a2a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x10046a4c
cmp dword [edi + 0x3c], 0
jne 0x10046a4c
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.1005c8c3
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.10046a79
pop edi
pop esi
pop ebx
ret 8

Function at 0x10046ac7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.1005c8c3
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10046af8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.10046b0b
pop edi
pop esi
pop ebx
ret 8

Function at 0x100480df
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x10048117
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.1004b4d4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1004b4ac
jmp 0x10048123
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x10049cb8
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 0x10049cfa
call fcn.1005c8c3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x10049cfa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x10049cf1
xor eax, eax
jmp 0x10049d02
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.10049d08
pop edi
pop esi
pop ebx
ret 4
Function at 0x1005e1b3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.1005c8c3
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1005e1f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1005e1f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x1005e1f4
xor eax, eax
jmp 0x1005e272
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.1004b611
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x1005e22c
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x1005e216
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.1005e363
push ebx
mov edi, eax
call fcn.1004b63a
test edi, edi
pop ecx
je 0x1005e26e
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.1005e12c
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.1005e277
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x40cb80
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x22c
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x228], eax
push ebx
mov eax, ecx
mov dword [esp + 4], 0
push ebp
mov dword [esp + 0xc], eax
push esi
mov eax, dword [eax + 0x2dec0]
push edi
movzx eax, word [eax + 4]
push eax
push str.Lookup_process_by_port__d
push 2
push 0x429048
call fcn.00404d90
add esp, 0x10
mov ecx, 2
call fcn.0040cad0
mov ecx, 0x17
mov ebx, eax
call fcn.0040cad0
mov ebp, eax
test ebp, ebp
je 0x40cc1f
xor esi, esi
cmp dword [ebp], esi
jbe 0x40cc1f
mov edi, ebp
nop word [eax + eax]
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2dec0]
movzx eax, word [eax + 4]
push eax
call dword [sym.imp.ws2_32.dll_ntohs]
movzx eax, ax
cmp eax, dword [edi + 0x18]
je 0x40cc18
inc esi
add edi, 0x38
cmp esi, dword [ebp]
jb 0x40cbf0
jmp 0x40cc1f
mov eax, dword [edi + 0x38]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
jne 0x40cc60
test ebx, ebx
je 0x40cc60
xor esi, esi
cmp dword [ebx], esi
jbe 0x40cc60
mov edi, ebx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0x2dec0]
movzx eax, word [eax + 4]
push eax
call dword [sym.imp.ws2_32.dll_ntohs]
movzx eax, ax
cmp eax, dword [edi + 0xc]
je 0x40cc59
inc esi
add edi, 0x18
cmp esi, dword [ebx]
jb 0x40cc32
jmp 0x40cc60
mov eax, dword [edi + 0x18]
mov dword [esp + 0x10], eax
push 0x1c
push ebx
call fcn.00414ef8
push 0x3c
push ebp
call fcn.00414ef8
add esp, 0x10
cmp dword [esp + 0x10], 0
jne 0x40cd2e
push str.Lookup_process_by_uptime_pid
push 2
push 0x429048
call fcn.00404d90
add esp, 0xc
mov dword [esp + 0x18], 0
lea eax, [esp + 0x24]
push 0x20a
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x1c], 0x105
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x1c]
push 0
mov eax, dword [eax + 0x2dec0]
add eax, 0x316
push eax
call dword [sym.imp.instapi160.dll_GetInstRegPathByName]
test eax, eax
je 0x40cd2e
lea eax, [esp + 0x18]
push eax
push 0x20019
push 0
lea eax, [esp + 0x30]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40cd2e
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
push 0
push str.uptime_pid
push dword [esp + 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [esp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [esp + 0x10]
push str.Lookup_process_finished_with_PID_d
push 2
push 0x429048
call fcn.00404d90
mov ecx, dword [esp + 0x248]
add esp, 0x10
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x22c
ret
Function at 0x4110c0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x94
mov eax, dword [0x429008]
xor eax, esp
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x9c]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.version.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x411123
push str.GetFileVersionInfoSize
call fcn.004112c0
jmp 0x41129c
push esi
call fcn.00414ef8
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.version.dll_GetFileVersionInfoW]
test eax, eax
jne 0x411155
push ebx
call fcn.00414613
add esp, 4
push str.GetFileVersionInfo
call fcn.004112c0
jmp 0x41129c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0x417704
push ebx
call dword [sym.imp.version.dll_VerQueryValueW]
test eax, eax
jne 0x41117a
push edi
push str.Fixed_version_resource_for__ls_is_either_invalid_or_does_not_exist
jmp 0x411284
cmp dword [esp + 0x18], 0
jne 0x41118c
push edi
push str.Fixed_version_resource_for__ls_is_unavailable
jmp 0x411284
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x34]
push edx
push str._u._u:_u._u
push 0x1e
push eax
call fcn.00401fd0
add esp, 0x1c
test eax, eax
js 0x4111da
lea eax, [esp + 0x28]
push eax
push edi
push str.File_version_of_module__ls_:__ls
push 2
push 0x429048
call fcn.00404d90
add esp, 0x14
jmp 0x4111f2
push eax
push str.File_version_dump_failed_HRESULT_code_0x_x
push 1
push 0x429048
lfence
call fcn.00404d90
add esp, 0x10
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [eax + 0x10]
mov ebp, dword [eax + 0x14]
mov dword [esp + 0x24], ecx
test edx, edx
je 0x411234
movzx esi, bp
mov eax, ebp
push esi
shr eax, 0x10
push eax
movzx eax, cx
push eax
mov eax, ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push 0x1e
push edx
call fcn.00401fd0
mov ecx, dword [esp + 0x40]
add esp, 0x1c
mov eax, esi
jmp 0x411237
movzx eax, bp
movzx eax, ax
push eax
movzx eax, cx
shr ebp, 0x10
push ebp
push eax
shr ecx, 0x10
lea eax, [esp + 0x70]
push ecx
push str._u._u:_u._u
push 0x1e
push eax
call fcn.00401fd0
add esp, 0x1c
test eax, eax
js 0x41127b
lea eax, [esp + 0x64]
push eax
push edi
push str.Product_version_of_module__ls_:__ls
push 2
push 0x429048
call fcn.00404d90
add esp, 0x14
jmp 0x411293
push eax
lfence
push str.Product_version_dump_failed_HRESULT_code_0x_x
push 1
push 0x429048
call fcn.00404d90
add esp, 0x10
push ebx
call fcn.00414613
add esp, 4
mov ecx, dword [esp + 0xa0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00414600
add esp, 0x94
ret 8