joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4553a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x49f813
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.0048ea8d
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.0049442c
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00496df8
test eax, eax
je 0x4554bc
mov ecx, dword [esp + 0x3c]
call fcn.00494459
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 0x455480
push edi
mov ecx, esi
call fcn.004919f0
mov ecx, esi
call fcn.00455620
cmp dword [esp + 0x38], 1
jne 0x4554b5
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.00491b83
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 0x457ef0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x457f23
push esi
call fcn.0045afe0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x457f1c
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 0x457fa9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x457f92
mov eax, dword [esi + 8]
test eax, eax
je 0x457f47
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 0x457f8e
cmp eax, 2
je 0x457f92
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x457f3a
cmp eax, 3
je 0x457f6d
cmp eax, 1
jne 0x457f3a
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 0x457f3a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x457f3a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00457fd0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x457fb8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00457fd0
add esp, 4
pop esi
ret

Function at 0x4664c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x49ff1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
lea eax, [esp + 0x14]
push esi
xor esi, esi
push eax
push 0x104
mov dword [esp + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jae 0x4665a0
lea ecx, [esp + 0x18]
lea edx, [esp + 0x18]
push ecx
push esi
push 0x79002c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
cmp eax, esi
je 0x4665a0
lea eax, [esp + 0x18]
push 0x1001
push eax
lea ecx, [esp + 0xc]
call fcn.0048da3d
mov dword [esp + 0x128], esi
mov esi, dword [esp + 0x134]
push str.lt_
push 0x790020
mov ecx, esi
call fcn.0048a757
push str.gt_
push 0x790014
mov ecx, esi
call fcn.0048a757
mov esi, dword [esi]
lea ecx, [esp + 4]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0048dcf1
lea ecx, [esp + 4]
call fcn.0048ddb5
mov esi, dword [esp + 0x130]
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.0048d3f2
lea ecx, [esp + 4]
mov dword [esp + 0x128], 0xffffffff
call fcn.0048dadd
jmp 0x4665b3
mov esi, dword [esp + 0x130]
push 0x7ae124
mov ecx, esi
call fcn.0048d3f2
mov ecx, dword [esp + 0x120]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x128
ret
Function at 0x467fc0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x468063
test eax, eax
jbe 0x468063
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x468063
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x46800e
xor esi, esi
jmp 0x468014
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46803f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0041ceb0
add esi, eax
push esi
mov ebx, esi
call fcn.0041ceb0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x468020
pop ebp
test edi, edi
pop edi
jne 0x468063
test ebx, ebx
je 0x468063
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0047d1c0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x468185
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x46829d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46829d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048eedf
mov esi, eax
test esi, esi
je 0x46829d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x46829d
mov ecx, esi
call fcn.00468110
cmp edi, eax
jge 0x46829d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x468223
mov dword [esp + 0x34], 1
jmp 0x46827e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46829d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00467700
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x46a000
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x46a066
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x46a066
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x46a047
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x46a3f0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x46a428
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x46b050
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 0x46b099
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 0x46b510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a0490
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.0046b0c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0046b140
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0046b140
lea ecx, [esi + 0xc]
call fcn.0048d30f
lea ecx, [esi + 0x10]
call fcn.0048d30f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046c6d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046c6d0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046c6d0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0048d384
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0048d384
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x46df20
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 0x46df6a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x46df99
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 0x46dfdb
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 0x48e26a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.0049869a
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 0x48e29b
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.0048e2ae
pop edi
pop esi
pop ebx
ret 8

Function at 0x48f882
Capabilities:
Get graphical window text

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

Function at 0x491171
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 0x4911b3
call fcn.0049869a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4911b3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4911aa
xor eax, eax
jmp 0x4911bb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004911c1
pop edi
pop esi
pop ebx
ret 4

Function at 0x498bca
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 0x498bf8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x498c16
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00498b30
jmp 0x498c16
mov eax, dword [esi + 0x14]
test eax, eax
je 0x498c16
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00498b30
test edi, edi
mov eax, edi
jne 0x498c00
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0xb02c08
Capabilities:
Encode data using xor

Disassembly:
cmpsb byte [esi], byte es:[edi]
inc ebp
neg ecx
sar ecx, cl
and ecx, ecx
mov cx, word [edi + ecx*2 - 0x38ac]
call fcn.00bfd7f5
push 0x63cc727
mov dword [edi + 4], ecx
mov dword [edi], edx
call fcn.00af8ad5
dec dword [ebx]
in al, dx
mov ebx, dword [edx + 0x1b]
jbe 0xb02c76
mov esi, 0x3f68d12
jb 0xb02bcf
xchg cl, bl
xchg edx, eax
push ebp
inc edx
add eax, 0x8c2ec5e4
bound edi, qword cs:[eax - 0x3d927b62]
mov dword [0x27828bb1], eax
insb byte es:[edi], dx
push 0x8aaf2a16
in al, 0x65
ja 0xb02c38
arpl word [esi - 0x6c], bx
jo 0xb02c55
out dx, ax
mov cl, 0x4f
stc
int3
dec ebx
inc esp
jge 0xb02bf5
xor byte [edi - 0x58a9ae64], ch
in al, 0x8f
ficomp dword [edi]
xchg ecx, eax
cmp byte [ebx - 0x6a], dh
jecxz 0xb02c9d
cmp eax, 0x9dac4768
adc al, dl
out 0x4e, eax
rcl dword [ecx + 0x4dd98c5c]
invalid
invalid
dec esp
cmp ecx, edx
in eax, 0xc
or dword [eax - 0x52], ebx
mov al, byte [0x8c227b54]
xor al, 0x97
add dword [edi + 0x32d8a2c9], ebp
adc ah, byte [ecx]
test byte [edx*8 - 0x266c5ddd], dh
dec esp
lodsd eax, dword [esi]
jl 0xb02cc3
fistp word [eax]
and dh, byte [eax]
xor eax, 0x6a746f83
or bl, al
or ebp, dword [ebx + 0x31]
test byte [edi], bl
sar dword [0x8e4a469], 0xdd
salc
and esi, dword [ebx + 0x47c3cf09]
cmp eax, 0xa61742d2
xor bl, byte [ecx + 0x20826d00]
insb byte es:[edi], dx
xchg edi, eax
or esp, dword [ebp - 0x49]
fldenv [edx + 0x201caa60]
invalid

Function at 0xc12416
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
je 0xb213ce
mov eax, 0x5a4d
cmp esi, eax
cmp di, 0xf60e
cmp word [edx], ax
jmp 0xb213c8
je 0xca06b0
je 0xb213ce
mov esi, dword [ebp + 0xc]
clc
test esi, esi
jmp 0x81bc01
push ebp
btr bp, 0x14
mov ebp, esp
mov edx, dword [ebp + 8]
cmc
sub esp, 0x114
stc
cmp ebx, ecx
push esi
test edx, edx
jmp 0xbfdbce
mov eax, dword [edx + 0x3c]
lea eax, [eax + edx]
test ch, 0x1c
cmp dword [eax], 0x4550
jmp 0x8244a8

Function at 0xccf4fe
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp + 8]
jne 0xc852b4
Function at 0x401710
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x16c
mov eax, dword [0x4285e0]
xor eax, ebp
mov dword [esp + 0x168], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov eax, 1
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
mov byte [esp + 0x60], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x61]
rep stosd dword es:[edi], eax
push 0x429578
push 0x4212c0
stosw word es:[edi], ax
lea ecx, [esp + 0x68]
push 0x104
push ecx
mov dword [esp + 0x28], 0x44
stosb byte es:[edi], al
call fcn.00410d8c
add esp, 0x10
push 0x4212d0
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x429578
push 0
push 0x4000010
push 0
push 0
push 0
lea edx, [esp + 0x80]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [esp + 0x16c]
xor ecx, ebp
pop edi
call fcn.00410a75
mov esp, ebp
pop ebp
ret

Function at 0x4017e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x280
mov eax, dword [0x4285e0]
xor eax, esp
mov dword [esp + 0x27c], eax
xor eax, eax
mov dword [esp + 0x55], eax
mov dword [esp + 0x59], eax
mov dword [esp + 0x5d], eax
mov dword [esp + 0x61], eax
mov dword [esp + 0x65], eax
mov dword [esp + 0x69], eax
push 0x20
lea ecx, [esp + 0x58]
mov dword [esp + 0x71], eax
push ecx
mov word [esp + 0x79], ax
push str.3.10.0910
mov byte [esp + 0x60], 0
mov byte [esp + 0x7f], al
call fcn.00403a70
lea edx, [esp + 0x60]
push edx
push 0x4296a0
call fcn.004122e8
add esp, 0x14
test eax, eax
jge 0x40190a
lea eax, [esp + 0x54]
push eax
push 0x429744
call fcn.004122e8
add esp, 8
test eax, eax
jl 0x40190a
push edi
push 0x104
lea ecx, [esp + 0x7c]
push 0x429578
push ecx
call fcn.00410920
add esp, 0xc
push str.BinInstallHelp.exe__UpdateShortcut
lea edx, [esp + 0x7c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push 0x104
lea eax, [esp + 0x7c]
push eax
lea ecx, [esp + 0x184]
push ecx
call fcn.00410920
add esp, 0xc
lea edx, [esp + 0x17c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x184]
push eax
push 0
push 0x4000000
push 0
push 0
push 0
lea ecx, [esp + 0x98]
push ecx
push 0
mov dword [esp + 0x3c], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
mov ecx, dword [esp + 0x27c]
xor ecx, esp
call fcn.00410a75
add esp, 0x280
ret
Function at 0x4093a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x4285e0]
xor eax, ebp
push ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x114], eax
mov eax, dword [ebp + 0x10]
test eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0xc], ecx
je 0x4093f6
mov edx, dword [esi + 0x38]
mov ecx, 0x10
cmp edx, ecx
jb 0x4093df
mov edx, dword [esi + 0x24]
jmp 0x4093e2
lea edx, [esi + 0x24]
cmp dword [esi + 0x1c], ecx
jb 0x4093ec
mov ecx, dword [esi + 8]
jmp 0x4093ef
lea ecx, [esi + 8]
mov edi, dword [esi]
push edi
push edx
push ecx
call eax
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.00410920
mov eax, dword [esi + 0x38]
mov edi, 0x10
add esp, 0xc
cmp eax, edi
jb 0x40942f
mov eax, dword [esi + 0x24]
jmp 0x409432
lea eax, [esi + 0x24]
push eax
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov eax, dword [esi]
test eax, eax
jne 0x409491
cmp dword [esi + 0x38], edi
jb 0x40944e
mov eax, dword [esi + 0x24]
jmp 0x409451
lea eax, [esi + 0x24]
cmp dword [esi + 0x54], edi
jb 0x40945b
mov esi, dword [esi + 0x40]
jmp 0x40945e
add esi, 0x40
lea edx, [esp + 0xc]
push edx
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push eax
push esi
call fcn.00408b90
test al, al
setne al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.00410a75
mov esp, ebp
pop ebp
ret 0xc
cmp eax, 1
jne 0x4094ba
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, ebp
call fcn.00410a75
mov esp, ebp
pop ebp
ret 0xc
push 0x421880
push 0xa
call fcn.0040add0
mov ecx, dword [esp + 0x124]
add esp, 8
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00410a75
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40ae20
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x40ae6a
cmp byte [eax], 0
je 0x40ae6a
push esi
push 0
push 0x8000027
push 3
push 0
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ae52
xor eax, eax
pop esi
ret
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
xor eax, eax
ret
Function at 0x40ae70
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40af63
cmp byte [edi], 0
je 0x40af63
push 0
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040bb20
add esp, 0xc
test al, al
je 0x40af72
push esi
push 0
push 0x8000005
push 3
push 0
push 3
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40aedd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_s__WinErr_d
push 3
call fcn.0040add0
add esp, 0x10
pop esi
xor al, al
pop edi
pop ecx
ret
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40af13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_s__WinErr_d
push 6
call fcn.0040add0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
pop ecx
ret
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40af40
cmp dword [esp + 8], 4
jne 0x40af40
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop edi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.winErr:__d
push 5
call fcn.0040add0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
pop ecx
ret
push 0x421880
push 0xa
call fcn.0040add0
add esp, 8
xor al, al
pop edi
pop ecx
ret

Function at 0x40af80
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push edi
mov edi, dword [esp + 0x14]
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040bb20
add esp, 0xc
test al, al
jne 0x40afa1
pop edi
add esp, 0xc
ret
push esi
push 0
push 0x8000027
push 3
push 0
push 3
push 0x80000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40afe1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_s__WinErr_d
push 3
call fcn.0040add0
add esp, 0x10
pop esi
xor al, al
pop edi
add esp, 0xc
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 4
jb 0x40b07d
push 2
push 0
push 0xfffffffffffffffc
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40b02b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.File_s__WinErr_d
push 6
call fcn.0040add0
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
add esp, 0xc
ret
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40b067
cmp dword [esp + 8], 4
jne 0x40b067
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
xor eax, eax
cmp ecx, edx
pop esi
sete al
pop edi
add esp, 0xc
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WinErr_d
push 4
call fcn.0040add0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop edi
add esp, 0xc
ret