joyce8/EMBER2024-capa huggingface dataset:
Function at 0x434f3c
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x434f8f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.0044125c
test al, al
je 0x434f8f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00440ffc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x434f8f
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00440ffc
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x438498
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x452b74], 0
je 0x4385e7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x450fb8]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x4385e7
mov eax, dword [0x452b78]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x452b74]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x4385b6
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x452b74]
call fcn.00413558
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x4385ae
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x4385ae
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x4385ae
mov eax, dword [ebp - 0x14]
call fcn.00440ffc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4385ae
push ebp
call fcn.00438454
pop ecx
test al, al
jne 0x4385ae
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x43856a
mov eax, dword [ebp - 0x14]
call fcn.0043fb2c
dec eax
jle 0x4385ae
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004032d4
cmp byte [ebp - 1], 0
je 0x4385ae
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x4385ae
mov edx, dword [ebp - 0x14]
mov eax, dword [0x452b78]
call fcn.00437c20
inc edi
dec ebx
jne 0x4384fd
mov eax, dword [0x452b78]
cmp dword [eax + 8], 0
jle 0x4385ce
mov eax, dword [0x452b78]
call fcn.00437cb0
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4385e7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004382bc
pop ecx
test al, al
jne 0x4385e7
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43bb80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x43bbcc
mov eax, esi
call fcn.004292a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43bbcc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x43bbcc
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x43bd0b
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x43bc0c
cmp eax, 0x108
ja 0x43bc0c
mov eax, esi
call fcn.004292a0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43bd02
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x43bd0b
jmp 0x43bd02
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43bceb
cmp eax, 0x20a
ja 0x43bceb
test byte [esi + 0x50], 0x80
jne 0x43bc3e
sub eax, 0x203
je 0x43bc3b
sub eax, 3
je 0x43bc3b
sub eax, 3
jne 0x43bc3e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43bc52
dec eax
je 0x43bc67
dec eax
je 0x43bc84
dec eax
je 0x43bc67
jmp 0x43bc8b
mov ecx, ebx
mov eax, dword [0x450fb8]
mov eax, dword [eax]
mov edx, esi
call fcn.00434dc0
jmp 0x43bd02
cmp byte [esi + 0x5d], 1
jne 0x43bc7d
mov eax, esi
mov si, 0xffed
call fcn.004032d4
jmp 0x43bd0b
or word [esi + 0x54], 1
jmp 0x43bd02
and word [esi + 0x54], 0xfffe
jmp 0x43bd02
mov eax, dword [0x452b30]
cmp byte [eax + 0x20], 0
je 0x43bd02
mov eax, dword [0x452b30]
cmp dword [eax + 0x1c], 0
je 0x43bd02
mov eax, dword [ebx]
mov edx, dword [0x452b30]
cmp eax, dword [edx + 0x1c]
jne 0x43bd02
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.004291bc
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004032d4
jmp 0x43bd0b
cmp eax, 0xb00b
jne 0x43bd02
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0043a4e8
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43f18c
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1f8], 0
je 0x43f1a8
cmp dword [esi + 4], 0
je 0x43f1d5
test byte [ebx + 0x55], 1
jne 0x43f1c7
mov eax, ebx
call fcn.0043dd98
test eax, eax
jne 0x43f1c7
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x43f2e5
mov edx, esi
mov eax, ebx
call fcn.0043ecb0
jmp 0x43f2e5
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x43f2de
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00440ffc
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.0043bab4
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.0043f18c
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.00440ffc
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43f2e5
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4456f4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x451118]
cmp byte [eax + 0xc], 0
je 0x445861
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44585a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x452b84], 0
jne 0x445748
push 0x445868
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x445870
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b84], eax
cmp dword [0x450c1c], 0
jne 0x445843
push 0x445880
call sub.kernel32.dll_LoadLibraryA
mov dword [0x450c1c], eax
cmp dword [0x450c1c], 0
je 0x445843
push 0x44588c
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b88], eax
push 0x44589c
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b8c], eax
push 0x4458b0
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b90], eax
push 0x4458c8
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b94], eax
push 0x4458e0
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b98], eax
push 0x4458f4
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452b9c], eax
push 0x44590c
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452ba0], eax
push 0x445924
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452ba4], eax
push 0x445940
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452ba8], eax
push 0x44594c
mov eax, dword [0x450c1c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x452bac], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445861
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4496ec
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00403e10
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44973b
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404080
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401a70
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x414
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x410], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x401a9d
push esi
call edi
test eax, 0x10000
je 0x401ac3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x401ac3
mov eax, 1
pop edi
mov ecx, dword [esp + 0x410]
xor ecx, esp
call fcn.00466e70
add esp, 0x414
ret
lea eax, [esp + 4]
push eax
mov ecx, esi
call fcn.00404c60
add esp, 4
test eax, eax
je 0x401aa8
lea ecx, [esp + 0x20c]
push ecx
mov ecx, ebx
call fcn.00404c60
add esp, 4
test eax, eax
je 0x401aa8
lea edx, [esp + 4]
push edx
lea ecx, [esp + 0x210]
call fcn.00404de0
mov ecx, dword [esp + 0x418]
dec eax
add esp, 4
neg eax
sbb eax, eax
pop edi
xor ecx, esp
inc eax
call fcn.00466e70
add esp, 0x414
ret

Function at 0x401b20
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x218], eax
push esi
push edi
mov ecx, 0x11
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
push 0x1c2
lea eax, [esp + 0x62]
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.004661f0
add esp, 0xc
test ebx, ebx
je 0x401bf0
push ebx
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 8]
push edx
push 1
push 0
lea eax, [esp + 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401bf0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 0
push str.Start
mov edi, 4
push ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x401bf0
cmp dword [esp + 0xc], edi
jne 0x401bf0
lea eax, [edi - 3]
pop edi
pop esi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00466e70
add esp, 0x21c
ret
mov ecx, dword [esp + 0x220]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.00466e70
add esp, 0x21c
ret
Function at 0x401c10
Capabilities:
Persist via windows service
Set registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
push edi
mov ecx, 0x11
mov esi, str.SYSTEMCurrentControlSetServices_
lea edi, [esp + 0x10]
rep movsd dword es:[edi], dword [esi]
push 0x1c2
lea eax, [esp + 0x5a]
push 0
push eax
mov dword [esp + 0x18], 1
movsw word es:[edi], word [esi]
call fcn.004661f0
add esp, 0xc
test ebx, ebx
jne 0x401c71
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00466e70
add esp, 0x214
ret
push ebx
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea edx, [esp + 8]
push edx
push 2
push 0
lea eax, [esp + 0x1c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401c58
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
push str.Start
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
xor eax, eax
test esi, esi
pop edi
sete al
pop esi
xor ecx, esp
call fcn.00466e70
add esp, 0x214
ret
Function at 0x401f40
Capabilities:
Start service

Disassembly:
sub esp, 0x214
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x20c], eax
mov ecx, dword [0x49ec74]
mov edx, dword [0x49ec78]
mov eax, dword [str.Estdlock]
push ebx
push ebp
push esi
push edi
push 0x1f6
xor ebp, ebp
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], eax
mov eax, dword [0x49ec7c]
mov dword [esp + 0x18], ecx
mov cx, word [0x49ec80]
lea edx, [esp + 0x26]
push ebp
push edx
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], cx
call fcn.004661f0
add esp, 0xc
push 0xf003f
push ebp
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x402015
push 0xf003f
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x401fd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x402005
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x401ff9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x420
jne 0x401ffe
call fcn.00402140
xor edi, edi
mov ebp, 1
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebp
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00466e70
add esp, 0x214
ret

Function at 0x402700
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402733
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40275e
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40275e
cmp esi, dword [esp + 4]
jne 0x40275e
mov eax, 1
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret

Function at 0x402770
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x10], edx
lea edx, [esp + 0x10]
push edx
push eax
push edi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4027a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4027ce
mov ecx, dword [esp + 0x14]
push 0
lea eax, [esp + 8]
push eax
shl esi, 9
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4027ce
cmp esi, dword [esp + 4]
jne 0x4027ce
mov eax, 1
pop esi
add esp, 0xc
ret
xor eax, eax
pop esi
add esp, 0xc
ret
Function at 0x402940
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x24]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x28]
xor edx, edx
div dword [esi + 8]
push edi
mov ebp, 1
mov dword [esp + 0x14], eax
lea ecx, [ecx]
mov eax, dword [esp + 0x14]
push 0
push eax
call fcn.00402840
mov ecx, dword [esi + 8]
mov ebx, eax
mov eax, dword [esp + 0x3c]
xor edx, edx
div ecx
add esp, 8
sub ecx, edx
mov edi, ecx
cmp edi, ebp
jbe 0x402986
mov edi, ebp
test ebx, ebx
jne 0x4029a1
mov ecx, dword [esp + 0x30]
mov ebx, edi
shl ebx, 9
push ebx
push 0
push ecx
call fcn.004661f0
add esp, 0xc
jmp 0x402a02
mov eax, dword [esp + 0x2c]
mov esi, dword [eax]
lea eax, [edx + ebx]
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x28], edx
lea edx, [esp + 0x28]
push edx
push eax
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4029d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402a1d
mov ecx, dword [esp + 0x30]
push 0
lea eax, [esp + 0x1c]
push eax
mov ebx, edi
shl ebx, 9
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402a1d
cmp ebx, dword [esp + 0x18]
jne 0x402a1d
mov dword [esp + 0x1c], 1
add dword [esp + 0x34], edi
add dword [esp + 0x30], ebx
inc dword [esp + 0x14]
sub ebp, edi
test ebp, ebp
je 0x402a27
mov esi, dword [esp + 0x2c]
jmp 0x402960
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x402a40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x20]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
xor edx, edx
div dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
push 1
push eax
mov esi, ebp
call fcn.00402840
mov ecx, eax
add esp, 8
test ecx, ecx
je 0x402b0b
mov edi, dword [ebp + 8]
mov eax, dword [esp + 0x30]
xor edx, edx
div edi
mov eax, dword [esp + 0x34]
sub edi, edx
cmp edi, eax
jbe 0x402a8a
mov edi, eax
mov esi, dword [ebp]
lea eax, [edx + ecx]
mov ecx, 0x200
mul ecx
push 0
mov dword [esp + 0x20], edx
lea edx, [esp + 0x20]
push edx
push eax
push esi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402abd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402b0b
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x18]
push eax
mov ebx, edi
shl ebx, 9
push ebx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402b0b
cmp ebx, dword [esp + 0x14]
jne 0x402b0b
mov eax, dword [esp + 0x34]
add dword [esp + 0x30], edi
add dword [esp + 0x2c], ebx
inc dword [esp + 0x28]
sub eax, edi
mov dword [esp + 0x34], eax
test eax, eax
jne 0x402a58
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
Function at 0x402b20
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
push 0x19000
call fcn.004435be
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x402b4c
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 0x19000
push 0
push ebx
call fcn.004661f0
mov esi, dword [esp + 0x3c]
mov ebp, dword [esi + 0x14]
mov eax, dword [esi + 0x10]
add esp, 0xc
test ebp, ebp
je 0x402bec
mov ecx, 0x200
mul ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
lea ecx, [ecx]
mov edi, ebp
cmp ebp, 0xc8
jbe 0x402b8f
mov edi, 0xc8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x34]
push eax
push edx
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x402bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402c2a
mov ecx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x18]
push eax
mov esi, edi
shl esi, 9
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402c2a
cmp esi, dword [esp + 0x14]
jne 0x402c2a
sub ebp, edi
jne 0x402b80
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
lea eax, [ebx + 4]
mov dword [ebx], 0xfffffff8
mov dword [eax], 0xffffffff
add eax, 4
mov ecx, 2
cmp edx, 0x6400
jbe 0x402c4c
push ebx
call fcn.004435c9
add esp, 4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call fcn.004435c9
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
test edx, edx
je 0x402c5b
mov dword [eax], ecx
dec edx
add eax, 4
inc ecx
test edx, edx
jne 0x402c50
mov eax, dword [esi + 8]
mov ecx, 0xc8
cmp eax, ecx
jae 0x402c69
mov ecx, eax
mov eax, dword [esi + 0x10]
mov edi, dword [esp + 0x2c]
push ebx
call fcn.00402770
add esp, 4
test eax, eax
je 0x402c2a
push ebx
call fcn.004435c9
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x18
ret
Function at 0x404b40
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push str.SoftwareLenovo_
push closesocket
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404b6c
xor eax, eax
pop ecx
ret
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push esi
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 4]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
pop ecx
ret

Function at 0x404c60
Capabilities:
Get file version info

Disassembly:
sub esp, 0x220
mov eax, dword [0x4b9b20]
xor eax, esp
mov dword [esp + 0x21c], eax
mov eax, dword [esp + 0x224]
push esi
push edi
mov edi, ecx
push 0
push edi
mov dword [esp + 0x18], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x404ca8
pop edi
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00466e70
add esp, 0x220
ret
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.004435be
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x404cfa
push ebp
push esi
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404cf1
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x404d14
push ebp
call fcn.004435c9
add esp, 4
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00466e70
add esp, 0x220
ret
xor esi, esi
test dword [esp + 0xc], 0xfffffffc
jbe 0x404db0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
jmp 0x404d30
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + esi*4 + 2]
movzx eax, word [eax + esi*4]
push edx
push eax
lea ecx, [esp + 0x2c]
push str.StringFileInfo_04x_04x_
push ecx
call fcn.00468dc3
add esp, 0x10
push 0x49ebd0
lea edx, [esp + 0x28]
push edx
call ebx
push 0x49ebe0
lea eax, [esp + 0x28]
push eax
call ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edi, eax
test edi, edi
jne 0x404d92
mov ecx, dword [esp + 0x10]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x404d30
jmp 0x404daf
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub edx, eax
lea esp, [esp]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404da0
pop ebx
push ebp
call fcn.004435c9
mov ecx, dword [esp + 0x22c]
add esp, 4
pop ebp
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.00466e70
add esp, 0x220
ret