joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431820
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x467c18
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x431859
inc eax
mov dword [esi + 0x10], eax
jmp 0x43196c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43186d
mov eax, 0xffffffc7
jmp 0x43196e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43187e
cmp dword [esi + 8], eax
jne 0x43186d
cmp dword [esi + 8], eax
jne 0x431897
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x431897
mov eax, 0xffffffc7
jmp 0x43196e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4318ab
push eax
mov ecx, ebx
call fcn.00431050
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401410
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4318dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401430
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004307c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43190f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46b368
call fcn.00401610
mov eax, dword [esp + 0x38]
jmp 0x43196e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00431680
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x431953
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004316a0
mov esi, eax
test esi, esi
jne 0x431983
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00431680
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431925
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46b368
call fcn.00401610
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x46b368
call fcn.00401610
mov eax, esi
jmp 0x43196e

Function at 0x434aa0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x434b00
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x434b00
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x434b00
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x434b00
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x434b40
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43aa80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468248
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00460ff1
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a420
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00460f1f
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045d7e3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045d7e3
push 1
push 0
push 0
mov ecx, esi
call fcn.0045d78b
push 1
push 0
push 1
mov ecx, esi
call fcn.0045d78b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461063
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43ac00
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00460ff1
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a420
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00460f1f
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43acc4
cmp dword [esp + 0x40], 1
jne 0x43acc2
cmp ecx, eax
jge 0x43acc4
mov eax, ecx
cmp eax, 0xc8
jge 0x43acd0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043aa80
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461063
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b440
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4682d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045bc04
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00461299
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004627b5
test eax, eax
je 0x43b55c
mov ecx, dword [esp + 0x3c]
call fcn.004612c6
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b520
push edi
mov ecx, esi
call fcn.0045e932
mov ecx, esi
call fcn.0043b6c0
cmp dword [esp + 0x38], 1
jne 0x43b555
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045ea6d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43df90
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43dfc3
push esi
call fcn.004410a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43dfbc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e049
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e032
mov eax, dword [esi + 8]
test eax, eax
je 0x43dfe7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e02e
cmp eax, 2
je 0x43e032
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43dfda
cmp eax, 3
je 0x43e00d
cmp eax, 1
jne 0x43dfda
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43dfda
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43dfda
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e070
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e058
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e070
add esp, 4
pop esi
ret

Function at 0x45c9f9
Capabilities:
Get graphical window text

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

Function at 0x45e0e7
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 0x45e129
call fcn.00463b9b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45e129
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45e120
xor eax, eax
jmp 0x45e131
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045e137
pop edi
pop esi
pop ebx
ret 4

Function at 0x4640cb
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 0x4640f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x464117
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464031
jmp 0x464117
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464117
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464031
test edi, edi
mov eax, edi
jne 0x464101
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401a40
Capabilities:
Get file version info

Disassembly:
sub esp, 0x14
cmp eax, 3
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
je 0x401a5d
push eax
call fcn.00401be0
add esp, 4
lea eax, [esp + 0xc]
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x401a76
pop edi
pop esi
add esp, 0x14
ret 4
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push ebx
push ebp
neg ecx
or ecx, eax
push ecx
call fcn.004064a8
mov ebp, eax
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004064a8
add esp, 8
test ebp, ebp
mov ebx, eax
je 0x401ad1
test ebx, ebx
je 0x401ad1
mov eax, dword [esp + 0x14]
push ebp
push esi
push eax
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x401add
push ebp
call fcn.0040666b
add esp, 4
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x14
ret 4
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0x414020
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x401b08
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x18]
add edi, 0xc
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x414024
push ebp
call sub.VERSION.dll_VerQueryValueW
mov edx, dword [esp + 0x10]
shr edx, 2
xor esi, esi
test edx, edx
jle 0x401b7b
lea ebx, [ebx]
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push str.FileVersion
push ecx
push edx
push str.StringFileInfo_04x_04x_s
mov eax, 0x32
mov edi, ebx
call fcn.00401e10
add esp, 0x10
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x401b9a
mov edx, dword [esp + 0x10]
add esi, 1
shr edx, 2
cmp esi, edx
jl 0x401b30
mov edi, dword [esp + 0x28]
push ebp
call fcn.0040666b
push ebx
call fcn.0040666b
add esp, 8
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
add esp, 0x14
ret 4
push 0x190
call fcn.004064a8
mov edx, dword [esp + 0x24]
add esp, 4
mov edi, eax
mov esi, 0xc8
movzx ecx, word [edx]
test cx, cx
je 0x401bd2
mov word [eax], cx
add eax, 2
add edx, 2
sub esi, 1
jne 0x401bb2
sub eax, 2
mov word [eax], 0
jmp 0x401b7f
test esi, esi
jne 0x401bd9
sub eax, 2
mov word [eax], 0
jmp 0x401b7f
Function at 0x401be0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4170a4]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
cmp eax, 3
push esi
ja case.default.0x401c01
jmp dword [eax*4 + 0x401d10]
push 0x104
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x401c92
xor eax, eax
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00406670
add esp, 0x20c
ret
push 0x104
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x401c18
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x401c18
lea eax, [esp + 4]
mov esi, 0x414090
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea ebx, [ebx]
movzx ecx, word [esi + eax]
test cx, cx
je 0x401c86
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401c70
jmp 0x401c8a
test edx, edx
jne 0x401c8d
sub eax, 2
mov word [eax], 0
push 0x414020
lea esi, [esp + 8]
call fcn.00401d70
push edi
call fcn.00401d70
mov edx, 0x104
mov eax, edi
sub esi, edi
nop
movzx ecx, word [esi + eax]
test cx, cx
je 0x401ce7
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401cb0
sub eax, 2
mov word [eax], 0
mov eax, 1
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00406670
add esp, 0x20c
ret
test edx, edx
jne 0x401cee
sub eax, 2
mov ecx, dword [esp + 0x20c]
pop esi
mov word [eax], 0
xor ecx, esp
mov eax, 1
call fcn.00406670
add esp, 0x20c
ret

Function at 0x401e70
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4170a4]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x104
push 0
push 0x419130
call fcn.00409080
push 0x206
lea eax, [esp + 0x16]
push 0
push eax
mov word [esp + 0x1c], 0
call fcn.00409080
add esp, 0x18
push 0x104
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push 0
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_StrRChrIW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov word [eax], 0
push 0x414020
lea eax, [esp + 8]
push eax
call esi
push str.partnercol.ini
lea ecx, [esp + 8]
push ecx
call esi
lea edx, [esp + 4]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
pop esi
jne 0x401f1c
xor al, al
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00406670
add esp, 0x20c
ret
lea eax, [esp]
push eax
push 0x104
push 0x419130
push str.url_name
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
push 0x419130
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x208]
test eax, eax
setne al
xor ecx, esp
call fcn.00406670
add esp, 0x20c
ret
Function at 0x403e60
Capabilities:
Create thread

Disassembly:
push esi
mov esi, eax
test byte [esi + 0x18], 2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
je 0x403eaf
cmp dword [esi + 0xc], 0
jne 0x403eaf
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [esi + 0xc], eax
jne 0x403eaf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x403e97
call esi
jmp 0x403ea3
call esi
and eax, 0xffff
or eax, 0x80070000
test eax, eax
jl 0x403f0c
pop edi
mov eax, 0x80004005
pop esi
ret
push 0
push 0
push 1
push 0
call edi
test eax, eax
mov dword [esi + 0x10], eax
je 0x403e87
lea eax, [esi + 8]
push eax
push 0
push esi
push 0x403f10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 4], eax
je 0x403e87
mov ecx, dword [esi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
test byte [esi + 0x18], 2
je 0x403f0a
mov edx, dword [esi + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0xc], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x404a40
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x4170a4]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [0x41802c]
test eax, eax
jge 0x404b4f
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.00409080
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x404ab8
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
jne 0x404ab8
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00406670
add esp, 0x120
ret
mov eax, dword [esp + 0x14]
sub eax, 0
je 0x404b3f
sub eax, 1
je 0x404b33
sub eax, 1
jne 0x404b49
mov eax, dword [esp + 8]
cmp eax, 6
mov dword [0x41802c], 4
jne 0x404aea
mov dword [0x41802c], 0
jmp 0x404b49
cmp eax, 5
jne 0x404b49
mov eax, dword [esp + 0xc]
cmp eax, 2
jb 0x404b04
mov dword [0x41802c], 1
jmp 0x404b49
cmp eax, 1
jne 0x404b49
push str.Service_Pack_2
lea eax, [esp + 0x1c]
push eax
mov dword [0x41802c], 3
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jl 0x404b49
mov dword [0x41802c], 2
jmp 0x404b49
mov dword [0x41802c], 5
jmp 0x404b49
mov dword [0x41802c], 6
mov eax, dword [0x41802c]
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00406670
add esp, 0x120
ret
Function at 0x404b70
Capabilities:
Get token membership

Disassembly:
push 0xffffffffffffffff
push 0x41129e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4170a4]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
mov eax, dword [0x4170a4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 1
test byte [0x4198a8], al
mov dword [esp + 0xc], ebx
jne 0x404bf8
or dword [0x4198a8], eax
xor eax, eax
mov dword [esp + 0x28], ebx
mov dword [0x419890], eax
mov dword [0x419894], eax
mov dword [0x419898], eax
mov dword [0x41989c], eax
mov dword [0x4198a0], eax
mov dword [0x4198a4], eax
call fcn.00405130
cmp eax, ebx
jge 0x404beb
jmp fcn.004050b0
push 0x4114c0
call fcn.00406f81
add esp, 4
push 0x419890
mov dword [esp + 0x14], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x40], bl
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], bl
mov byte [esp + 0x43], bl
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov esi, eax
cmp esi, ebx
jl 0x404c60
mov eax, dword [esp + 0x10]
lea edx, [esp + 0xc]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov esi, eax
cmp esi, ebx
jge 0x404c60
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x404c6f
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [esp + 0xc], ebx
push 0x419890
je 0x404c84
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
jmp 0x404c8c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00406670
add esp, 0x20
ret
Function at 0x404cb0
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 8
push esi
push edi
mov esi, eax
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [esp + 0x14]
push eax
call fcn.00401d70
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 2
push 0x1f01ff
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x404cff
pop edi
mov eax, 0x80004005
pop esi
add esp, 8
ret
push ebx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, dword [esp + 0x20]
movzx edx, word [esp + 0x24]
push ecx
mov ebx, eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
test ebp, ebp
je 0x404d50
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x404d50
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x404d50
mov ebp, dword [esp + 0x10]
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x404d6b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebp
pop ebx
pop edi
mov eax, 0x80004005
pop esi
add esp, 8
ret
push 0
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 8
ret