joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480860
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4808a9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x480d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a87e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004808d0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00480950
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00480950
lea ecx, [esi + 0xc]
call fcn.00499a5b
lea ecx, [esi + 0x10]
call fcn.00499a5b
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00481ee0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00481ee0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00481ee0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00499ad0
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00499ad0
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x483a10
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x483a5a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x483a89
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x483acb
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x49bea1
Capabilities:
Get graphical window text

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

Function at 0x49d58f
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 0x49d5d1
call fcn.004a3304
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49d5d1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49d5c8
xor eax, eax
jmp 0x49d5d9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049d5df
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a3834
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a3862
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a3880
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a379a
jmp 0x4a3880
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a3880
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a379a
test edi, edi
mov eax, edi
jne 0x4a386a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10114920
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10114b0d
pushal
mov esi, section.UPX1
lea edi, [esi - 0xbb000]
push edi
or ebp, 0xffffffff
jmp 0x1011494a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10114951
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10114940
mov eax, 1
add ebx, ebx
jne 0x10114963
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10114974
jne 0x10114993
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10114993
dec eax
add ebx, ebx
jne 0x10114980
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10114958
add ebx, ebx
jne 0x1011498f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x101149e5
xor ecx, ecx
sub eax, 3
jb 0x101149ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10114a1a
sar eax, 1
mov ebp, eax
jmp 0x101149b6
add ebx, ebx
jne 0x101149b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10114984
inc ecx
add ebx, ebx
jne 0x101149c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10114984
add ebx, ebx
jne 0x101149d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x101149c6
jne 0x101149e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x101149c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10114a04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x101149f6
jmp 0x10114946
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10114a04
add edi, ecx
jmp 0x10114946
pop esi
mov edi, esi
mov ecx, 0x38c0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10114a22
cmp byte [edi], 0x1e
jne 0x10114a22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x10114a27
lea edi, [esi + 0x10c000]
mov eax, dword [edi]
or eax, eax
je 0x10114a9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1158b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1159a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10114a54
mov ecx, edi
jns 0x10114a83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1159a8]
or eax, eax
je 0x10114a99
mov dword [ebx], eax
add ebx, 4
jmp 0x10114a71
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10114ad0
cmp al, 0xef
ja 0x10114ac3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10114aa5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10114ab2
mov ebp, dword [esi + 0x1159ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x10114b04
sub esp, 0xffffff80
jmp 0x100823e5
Function at 0x401ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x482090]
jne 0x401abf
repz ret
jmp fcn.00402f28

Function at 0x409083
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004066e8
and dword [ebp - 4], 0
cmp dword [0x4865e4], 0
mov ebx, eax
jne 0x409134
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4091e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4091e5
push eax
call fcn.00406676
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4865e4], eax
call esi
push eax
call fcn.00406676
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4865e8], eax
call esi
push eax
call fcn.00406676
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4865ec], eax
call esi
push eax
call fcn.00406676
pop ecx
mov dword [0x4865f4], eax
test eax, eax
je 0x409134
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406676
pop ecx
mov dword [0x4865f0], eax
mov eax, dword [0x4865f0]
cmp eax, ebx
je 0x40918c
cmp dword [0x4865f4], ebx
je 0x40918c
push eax
call fcn.004066f1
push dword [0x4865f4]
mov esi, eax
call fcn.004066f1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40918c
test edi, edi
je 0x40918c
call esi
test eax, eax
je 0x409183
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409183
test byte [ebp - 0xc], 1
jne 0x40918c
or dword [ebp + 0x10], 0x200000
jmp 0x4091c5
mov eax, dword [0x4865e8]
cmp eax, ebx
je 0x4091c5
push eax
call fcn.004066f1
pop ecx
test eax, eax
je 0x4091c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4091c5
mov eax, dword [0x4865ec]
cmp eax, ebx
je 0x4091c5
push eax
call fcn.004066f1
pop ecx
test eax, eax
je 0x4091c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4865e4]
call fcn.004066f1
pop ecx
test eax, eax
je 0x4091e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4091e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push 0x3c
lea eax, [esp + 4]
push 0
push eax
call fcn.004055b0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x3c
mov dword [esp + 0x10], str.open
mov dword [esp + 0x14], str.patcherpatcher.exe
mov dword [esp + 0x20], 5
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
neg eax
sbb eax, eax
neg eax
sub eax, 1
add esp, 0x3c
ret 0x10

Function at 0x40104d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x401057
repz ret
jmp fcn.004012aa

Function at 0x401715
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40a010]
je 0x401730
inc edi
cmp edi, 0x17
jb 0x401721
cmp edi, 0x17
jae 0x4018b0
push ebp
push 3
call fcn.004037f0
cmp eax, 1
pop ecx
je 0x40187c
push 3
call fcn.004037f0
test eax, eax
pop ecx
jne 0x401764
cmp dword [section..data], 1
je 0x40187c
cmp ebx, 0xfc
je 0x4018af
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40b040
push ebp
call fcn.0040378b
add esp, 0xc
test eax, eax
je 0x40179a
push esi
push esi
push esi
push esi
push esi
call fcn.00402ced
add esp, 0x14
push 0x104
mov esi, 0x40b059
push esi
push 0
mov byte [0x40b15d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4017de
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040378b
add esp, 0xc
test eax, eax
je 0x4017de
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402ced
add esp, 0x14
push esi
call fcn.00403700
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x401823
push esi
call fcn.00403700
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40b354
push 0x40870c
sub ecx, eax
push ecx
push eax
call fcn.00403642
add esp, 0x14
test eax, eax
je 0x401823
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402ced
add esp, 0x14
jmp 0x401825
xor esi, esi
push 0x408708
push ebx
push ebp
call fcn.004035d1
add esp, 0xc
test eax, eax
je 0x401845
push esi
push esi
push esi
push esi
push esi
call fcn.00402ced
add esp, 0x14
push dword [edi*8 + 0x40a014]
push ebx
push ebp
call fcn.004035d1
add esp, 0xc
test eax, eax
je 0x401867
push esi
push esi
push esi
push esi
push esi
call fcn.00402ced
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00403414
add esp, 0xc
jmp 0x4018af
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4018af
cmp ebp, 0xffffffff
je 0x4018af
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40a014]
push dword [esi]
call fcn.00403700
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x403414
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004022c6
xor ebx, ebx
cmp dword [0x40b708], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4034ea
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4035ca
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4035ca
push eax
call fcn.00402258
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b708], eax
call esi
push eax
call fcn.00402258
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b70c], eax
call esi
push eax
call fcn.00402258
mov dword [0x40b710], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004014a2
test eax, eax
pop ecx
pop ecx
je 0x4034b8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402ced
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4034ea
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402258
cmp eax, ebx
pop ecx
mov dword [0x40b718], eax
je 0x4034ea
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402258
pop ecx
mov dword [0x40b714], eax
mov eax, dword [0x40b714]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40356f
cmp dword [0x40b718], ecx
je 0x40356f
push eax
call fcn.004022cf
push dword [0x40b718]
mov esi, eax
call fcn.004022cf
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40356f
cmp edi, ebx
je 0x40356f
call esi
cmp eax, ebx
je 0x40353c
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40353c
test byte [ebp - 0x18], 1
jne 0x40356f
lea eax, [ebp - 0x10]
push eax
call fcn.004014d9
test eax, eax
pop ecx
je 0x403557
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00402ced
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x403566
or dword [ebp + 0x10], 0x200000
jmp 0x4035aa
or dword [ebp + 0x10], 0x40000
jmp 0x4035aa
mov eax, dword [0x40b70c]
cmp eax, dword [ebp - 8]
je 0x4035aa
push eax
call fcn.004022cf
cmp eax, ebx
pop ecx
je 0x4035aa
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4035aa
mov eax, dword [0x40b710]
cmp eax, dword [ebp - 8]
je 0x4035aa
push eax
call fcn.004022cf
cmp eax, ebx
pop ecx
je 0x4035aa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b708]
call fcn.004022cf
cmp eax, ebx
pop ecx
je 0x4035ca
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4035cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ce0
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x401d0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
add esp, 0x14
ret
push esi
push edi
lea edx, [esp + 0x10]
push edx
push 0x42f8e8
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0
push 0
lea eax, [esp + 0x18]
push eax
push 0
push ecx
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
jne 0x401d69
push 1
push eax
push eax
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test eax, eax
jne 0x401d71
call edi
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret
mov eax, dword [esp + 8]
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push eax
mov dword [esp + 0x30], 0
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x14
ret

Function at 0x402000
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x70]
test eax, eax
je 0x40202e
push edi
mov edi, dword [esp + 0xc]
push 0
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0041156a
mov ecx, dword [esi + 0x70]
add esp, 4
shl eax, 1
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
mov eax, 1
pop esi
ret 4

Function at 0x402060
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
test eax, eax
mov dword [esi + 0x70], eax
je 0x4020ad
push 0
lea ecx, [esp + 0xc]
push ecx
push 0x42fc90
call fcn.0041156a
mov edx, dword [esi + 0x70]
add esp, 4
shl eax, 1
push eax
push 0x42fc90
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, 1
pop esi
ret 4
Function at 0x402340
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x42d6fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b4
mov eax, dword [0x43f194]
mov dword [esp + 0x2b0], eax
mov dword [esp], 0
lea eax, [esp + 8]
push eax
push 0x104
mov dword [esp + 0x2c4], 0
mov dword [esp + 0xc], 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 8]
push ecx
call fcn.0041156a
add esp, 4
cmp word [esp + eax*2 + 6], 0x5c
je 0x4023b8
lea edx, [esp + 8]
push 0x4301a0
push edx
call fcn.004115bd
add esp, 8
lea eax, [esp + 8]
push str.ScanTo.msi
push eax
call fcn.004115bd
add esp, 8
push str.ScanTo.msi
mov ecx, 0x442370
call fcn.00402000
push 0
push 2
call sub.msi.dll_MsiSetPropertyW
mov eax, dword [esp]
test eax, eax
je 0x4023ef
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
push esi
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], 0
call sub.msi.dll_MsiPreviewBillboardW
mov esi, eax
test esi, esi
je 0x40241f
mov eax, dword [esp + 4]
test eax, eax
je 0x40241b
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
mov eax, esi
jmp 0x402492
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x218]
push ecx
push str.ProductCode
push edx
call sub.msi.dll_MsiGetSourcePathW
lea eax, [esp + 0x214]
push eax
call sub.msi.dll_MsiRecordGetStringA
mov ecx, dword [esp + 4]
push ecx
mov esi, eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
cmp esi, 0xffffffff
je 0x402482
push str.REMOVEALL
lea edx, [esp + 0x10]
push edx
call sub.msi.dll_MsiOpenDatabaseW
test eax, eax
mov ecx, 0x442370
jne 0x402478
push str._:_uninstalled.._r_n
jmp 0x40247d
push str._:_failed_to_uninstall.._r_n
call fcn.00402000
mov eax, dword [esp + 4]
test eax, eax
je 0x402490
push eax
call sub.msi.dll_MsiConfigureFeatureFromDescriptorA
xor eax, eax
mov ecx, dword [esp + 0x2b8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2b4]
pop esi
call fcn.00411bef
add esp, 0x2c0
ret
Function at 0x402850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x43f194]
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x254], eax
lea eax, [esp + 0xc]
push eax
push 0x104
push ecx
push 1
push 0
push 0
call sub.WINSPOOL.DRV_GetPrinterDriverDirectoryW
test eax, eax
mov dword [esp + 8], eax
je 0x402950
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
lea edx, [esp + 0x10]
mov ecx, 0x47
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x14], 0x11c
call esi
test eax, eax
jne 0x4028da
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x114
call esi
test eax, eax
jne 0x4028da
mov ecx, dword [esp + 0x254]
call fcn.00411bef
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x20]
sub eax, 2
je 0x4028ee
mov ecx, dword [ebp + 8]
push 0x4301a0
push ecx
jmp 0x40294a
xor eax, eax
lea edx, [esp + 0x130]
mov ecx, 0x47
lea edi, [esp + 0x130]
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x134], 0x11c
call esi
test eax, eax
jne 0x40292c
lea eax, [esp + 0x130]
push eax
mov dword [esp + 0x134], 0x114
call esi
cmp dword [esp + 0x134], 5
jb 0x402941
mov ecx, dword [ebp + 8]
push 0x430210
push ecx
jmp 0x40294a
mov edx, dword [ebp + 8]
push 0x430208
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [esp + 0x254]
mov eax, dword [esp + 8]
call fcn.00411bef
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4029f0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1218
call fcn.00411c00
mov eax, dword [0x43f194]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1224], eax
lea eax, [esp + 0x10]
push eax
push 0x1000
lea ecx, [esp + 0x24]
xor edi, edi
push ecx
mov dword [esp + 0x1c], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x402aaa
mov ebp, dword [esp + 0x10]
shr ebp, 2
cmp ebp, edi
jbe 0x402aaa
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ecx]
mov eax, dword [esp + edi*4 + 0x1c]
push eax
push 0
push 0x1f0fff
call ebx
mov esi, eax
test esi, esi
je 0x402aa5
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [esp + 0x1c]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x402a9e
mov edx, dword [esp + 0x14]
push 0x104
lea ecx, [esp + 0x1020]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
mov eax, dword [esp + 0x122c]
push eax
lea ecx, [esp + 0x1020]
push ecx
call fcn.00411e41
add esp, 8
test eax, eax
je 0x402ac3
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, ebp
jb 0x402a40
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1214]
call fcn.00411bef
add esp, 0x1218
ret
mov ecx, dword [esp + 0x1224]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
call fcn.00411bef
add esp, 0x1218
ret