joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6090a230
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
xor edi, edi
mov dword [ebp - 4], 0
add esp, 0xfffffff4
push dword [ebp + 0xc]
call sym._convertUtf8Filename
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x6090a260
mov eax, 7
jmp 0x6090a312
call sym._isNT
test eax, eax
je 0x6090a2b0
lea esi, [esi]
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_DeleteFileW
add esp, 0xc
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_GetFileAttributesW
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x6090a298
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
cmp eax, 5
jne 0x6090a2f4
inc edi
cmp edi, 4
jg 0x6090a2f4
add esp, 0xfffffff4
push 0x64
call sub.KERNEL32.dll_Sleep
add esp, 0xc
jmp 0x6090a26c
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_DeleteFileA
add esp, 0xc
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_GetFileAttributesA
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
jne 0x6090a2dc
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 4], eax
cmp eax, 5
jne 0x6090a2f4
inc edi
cmp edi, 4
jg 0x6090a2f4
add esp, 0xfffffff4
push 0x64
call sub.KERNEL32.dll_Sleep
add esp, 0xc
jmp 0x6090a2b0
add esp, 0xfffffff4
push esi
call sym._free
cmp ebx, 0xffffffff
jne 0x6090a308
cmp dword [ebp - 4], 2
je 0x6090a310
mov eax, 0xa0a
jmp 0x6090a312
xor eax, eax
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x6090a31c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
push ebx
xor esi, esi
add esp, 0xfffffff4
push dword [ebp + 0xc]
call sym._convertUtf8Filename
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x6090a348
mov eax, 7
jmp 0x6090a3ff
call sym._isNT
test eax, eax
je 0x6090a3b4
lea edi, [ebp - 0x30]
mov eax, esi
cld
mov ecx, 9
rep stosd dword es:[edi], eax
add esp, 0xfffffffc
lea eax, [ebp - 0x30]
push eax
push 0
push ebx
call sub.KERNEL32.dll_GetFileAttributesExW
add esp, 4
test eax, eax
je 0x6090a390
cmp dword [ebp + 0x10], 0
jne 0x6090a38b
cmp dword [ebp - 0x14], 0
jne 0x6090a38b
mov edi, 0xffffffff
cmp dword [ebp - 0x10], 0
je 0x6090a3c2
mov edi, dword [ebp - 0x30]
jmp 0x6090a3c2
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
je 0x6090a3ac
add esp, 0xfffffff4
push ebx
call sym._free
mov eax, 0xd0a
jmp 0x6090a3ff
mov edi, 0xffffffff
jmp 0x6090a3c2
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
mov edi, eax
add esp, 0xc
add esp, 0xfffffff4
push ebx
call sym._free
cmp dword [ebp + 0x10], 1
je 0x6090a3f0
jg 0x6090a3dc
cmp dword [ebp + 0x10], 0
je 0x6090a3e2
jmp 0x6090a3f8
cmp dword [ebp + 0x10], 2
jne 0x6090a3f8
cmp edi, 0xffffffff
setne al
movzx esi, al
jmp 0x6090a3f8
mov esi, edi
xor esi, 1
and esi, 1
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
xor eax, eax
lea esp, [ebp - 0x48]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x6090a504
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push esi
push ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x118], 0x200
xor esi, esi
lea ebx, [ebp - 0x110]
push ebx
push 0x104
push eax
push edx
call sym._winFullPathname
add esp, 0x10
test eax, eax
jne 0x6090a603
add esp, 0xfffffff4
push ebx
call sym._convertUtf8Filename
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x6090a5f5
call sym._isNT
test eax, eax
je 0x6090a5ac
mov edx, ebx
movzx eax, word [ebx]
test ax, ax
je 0x6090a58e
cmp ax, 0x5c
jne 0x6090a578
mov word [ebx], 0
jmp 0x6090a58e
add edx, 2
movzx eax, word [edx]
test ax, ax
je 0x6090a58e
cmp ax, 0x5c
jne 0x6090a578
mov word [edx], 0
add esp, 0xfffffff4
lea edx, [ebp - 0x114]
push edx
push edx
lea eax, [ebp - 0x118]
push eax
push edx
push ebx
call sub.KERNEL32.dll_GetDiskFreeSpaceW
jmp 0x6090a5e7
mov edx, ebx
mov al, byte [ebx]
test al, al
je 0x6090a5ce
cmp al, 0x5c
jne 0x6090a5c0
mov byte [ebx], 0
jmp 0x6090a5ce
inc edx
mov al, byte [edx]
test al, al
je 0x6090a5ce
cmp al, 0x5c
jne 0x6090a5c0
mov byte [edx], 0
add esp, 0xfffffff4
lea edx, [ebp - 0x114]
push edx
push edx
lea eax, [ebp - 0x118]
push eax
push edx
push ebx
call sub.KERNEL32.dll_GetDiskFreeSpaceA
mov esi, eax
add esp, 0xc
add esp, 0xfffffff4
push ebx
call sym._free
test esi, esi
jne 0x6090a603
mov dword [ebp - 0x118], 0x200
mov eax, dword [ebp - 0x118]
lea esp, [ebp - 0x138]
pop ebx
pop esi
leave
ret

Function at 0x6090a844
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edx, 0x6096e2f0
mov edi, edx
xor eax, eax
cld
mov ecx, 9
rep stosd dword es:[edi], eax
add esp, 0xfffffff4
push edx
call sub.KERNEL32.dll_GetSystemInfo
add esp, 0xfffffff4
push 1
push 0x6096d3a0
call sym.sqlite3.dll_sqlite3_vfs_register
xor eax, eax
mov edi, dword [ebp - 0x18]
leave
ret
Function at 0x6090e9f8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push edi
push esi
push ebx
mov dword [ebp - 0xc], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
cmp dword [eax], 0
jne 0x6090ea26
add esp, 0xfffffffc
push dword [edx + 0x78]
push eax
push edx
call sym._pagerOpentemp
mov dword [ebp - 0xc], eax
add esp, 0x10
cmp dword [ebp - 0xc], 0
jne 0x6090eb87
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x24]
cmp dword [edx + 0x18], eax
jbe 0x6090ea93
mov eax, dword [edx + 0x80]
mov esi, eax
mov edi, eax
sar edi, 0x1f
mov eax, dword [edx + 0x18]
xor edx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mul esi
mov ecx, eax
mov ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x14]
imul ecx, esi
lea ebx, [ebp - 8]
add ecx, dword [ebx + 4]
mov eax, dword [ebp - 0x18]
imul eax, edi
add ecx, eax
mov dword [ebx + 4], ecx
add esp, 0xfffffffc
push ebx
push 5
mov edx, dword [ebp + 8]
push dword [edx + 0x3c]
call sym._sqlite3OsFileControl
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [edx + 0x24], eax
add esp, 0x10
cmp dword [ebp + 0xc], 0
je 0x6090eb87
lea esi, [esi]
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0xc]
mov edx, dword [ebp + 8]
cmp edi, dword [edx + 0x18]
ja 0x6090eb70
test byte [eax + 0x14], 0x20
jne 0x6090eb70
lea eax, [edi - 1]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0
mov edx, dword [edx + 0x80]
mov ebx, edx
mov esi, edx
sar esi, 0x1f
mov eax, dword [ebp - 0x28]
mul ebx
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x28]
imul ecx, esi
add edx, ecx
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x24]
imul eax, ebx
add dword [ebp - 0x1c], eax
cmp edi, 1
jne 0x6090eb06
add esp, 0xfffffff4
mov edx, dword [ebp + 0xc]
push edx
call sym._pager_write_changecounter
add esp, 0x10
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
add esp, 0xfffffff4
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
push edx
push eax
mov edx, dword [ebp + 8]
push dword [edx + 0x80]
push ebx
push dword [edx + 0x3c]
call sym._sqlite3OsWrite
mov dword [ebp - 0xc], eax
add esp, 0x20
cmp edi, 1
jne 0x6090eb4e
mov eax, dword [ebx + 0x18]
mov edx, dword [ebp + 8]
mov dword [edx + 0x64], eax
mov eax, dword [ebx + 0x1c]
mov dword [edx + 0x68], eax
mov eax, dword [ebx + 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebx + 0x24]
mov dword [edx + 0x70], eax
mov eax, dword [ebp + 8]
cmp edi, dword [eax + 0x20]
jbe 0x6090eb59
mov dword [eax + 0x20], edi
add esp, 0xfffffffc
mov edx, dword [ebp + 0xc]
push dword [edx]
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x58]
call sym._sqlite3BackupUpdate
add esp, 0x10
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 8]
mov dword [ebp + 0xc], edx
cmp dword [ebp - 0xc], 0
jne 0x6090eb87
test edx, edx
jne 0x6090eaa0
mov eax, dword [ebp - 0xc]
lea esp, [ebp - 0x48]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x60936d7c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.609369f7
add esp, 0x10
mov dword [ebp - 0x88], eax
call fcn.60936a32
cmpsd dword [esi], dword es:[edi]
fmul st(6), st(0)
mov esp, 0x88e8458d
pop ebp
call 0x49f0f5f3
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.60936a42
push eax
push esi
push dword [ebp + 8]
call fcn.609369f7
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
invalid
inc ebp
wait

Function at 0x60937120
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x60937109
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x60937127
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
clc
add byte [eax], al
invalid
mov edi, dword [eax + 0x24]
clc
add byte [eax], al
add byte [ebx + 0x448d2478], cl
or bh, bh
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x60937185
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x6093716c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x60937175
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x609370eb
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x609371d2
dec eax
je 0x609371c9
sub eax, 3
je 0x609371c0
mov dword [ebp - 4], 0x40
jmp 0x609371ef
mov dword [ebp - 4], 4
jmp 0x609371d5
mov dword [ebp - 4], 0x20
jmp 0x609371d5
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x60937221
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x609371a1
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.60936a32
mov eax, es
dec esp
mov edx, 0x6a1475ff
add dword [esi - 1], edx
xlatb
mov eax, esi
jmp 0x6093722d
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x60937178
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x6093717f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x60937161

Function at 0x60937274
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ecx - 0x3a]
test dword [ebx + 0x75fffffc], esi
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.60936a42
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.609369f7
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
invalid
invalid

Function at 0x6093771c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
cmp dword [ebp + 0xc], 1
je 0x609378f0
cmp dword [ebp + 0xc], 8
jne 0x609378b8
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
push ss
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
invalid
invalid
pop esp
stc
Function at 0x6095d5e4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push ebx
mov eax, dword [ebp + 0xc]
xor esi, esi
test eax, eax
je 0x6095d656
mov ebx, eax
add ebx, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x6095d628
mov edx, eax
cmp edx, ebx
jae 0x6095d656
lea esi, [esi]
movsx eax, byte [edx]
shr eax, 7
xor al, 1
and eax, 1
add esi, eax
lea eax, [edx + 1]
mov dword [ebp - 4], eax
mov edx, eax
cmp edx, ebx
jb 0x6095d60c
jmp 0x6095d656
cmp eax, ebx
jae 0x6095d656
inc esi
lea esi, [esi]
mov eax, dword [ebp - 4]
mov dl, byte [eax]
and dl, 0x80
inc eax
mov dword [ebp - 4], eax
test dl, dl
jne 0x6095d630
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
push 0
call sym._fts3PoslistCopy
add esp, 0x10
cmp dword [ebp - 4], ebx
jb 0x6095d62c
mov eax, esi
lea esp, [ebp - 0x28]
pop ebx
pop esi
leave
ret
Function at 0x60960550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
test edx, edx
jg 0x60960578
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ecx - 1]
test edx, edx
jle 0x6096058a
nop
mov eax, ebx
shl eax, 3
xor ebx, eax
movsx eax, byte [esi]
xor ebx, eax
inc esi
dec edx
test edx, edx
jg 0x60960578
and ebx, 0x7fffffff
mov eax, ebx
pop ebx
pop esi
pop edi
leave
ret

Function at 0x6096b80c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
je 0x6096b86c
add esp, 0xfffffff8
push dword [esi + 0x20]
push 0x6095b15a
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, eax
add esp, 0xfffffffc
lea eax, [ebp - 4]
push eax
push edi
push ebx
call sym._getIntFromStmt
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x6096b894
mov ecx, dword [ebp - 4]
add ecx, 0xffffffc0
mov dword [esi + 0x10], ecx
mov edx, dword [esi + 0x18]
lea edx, [edx + edx*2]
mov eax, edx
shl eax, 4
lea eax, [eax + edx + 4]
cmp eax, ecx
jge 0x6096b894
mov dword [esi + 0x10], eax
jmp 0x6096b894
add esp, 0xfffffffc
push dword [esi + 0x24]
push dword [esi + 0x20]
push 0x6096b7d0
call sym.sqlite3.dll_sqlite3_mprintf
mov edi, eax
add esp, 0xfffffffc
lea eax, [esi + 0x10]
push eax
push edi
push ebx
call sym._getIntFromStmt
mov ebx, eax
add esp, 0x20
add esp, 0xfffffff4
push edi
call sym.sqlite3.dll_sqlite3_free
mov eax, ebx
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4023c0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41f4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0x14], ebx
xor esi, esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x402419
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x14]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x402421
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x402432
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x10], ebx
cmp esi, ebx
je 0x402447
push 0x41d940
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], esi
call fcn.00407c61
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
pop esi
xor ecx, ebp
pop ebx
call fcn.00406081
mov esp, ebp
pop ebp
ret

Function at 0x402460
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x41f4bc]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.004023c0
test eax, eax
jne 0x4024f2
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4024f2
push 0x38
lea ecx, [ebp - 0x140]
push 0
push ecx
mov dword [ebp - 0x144], 0x3c
call fcn.00408fc0
add esp, 0xc
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x108]
push eax
mov dword [ebp - 0x138], str.runas
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x128], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x402500
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406081
mov esp, ebp
pop ebp
ret
push 0
call fcn.004075be
int3
Function at 0x4040a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417fd8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41f4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x44], 0
je 0x40424f
cmp byte [ebx + 0x49], 0
je 0x40424f
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x404243
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x404116
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x404133
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
push edx
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40416a
dec eax
je 0x40416e
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x40424a
call fcn.00402760
xor al, al
jmp 0x404251
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x40417e
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x4041ab
cmp edi, 0x10
jae 0x40418d
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0040718f
add esp, 0x10
cmp esi, eax
jne 0x40423b
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x404247
test esi, esi
jne 0x404127
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40426d
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40426d
cmp edi, esi
jae 0x404224
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.004047f0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x404127
mov ecx, eax
cmp edi, 0x10
jae 0x404200
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x40421b
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x404121
test esi, esi
jne 0x4041f6
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x404233
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x404121
lea ecx, [ebp - 0x2c]
call fcn.00402760
xor al, al
jmp 0x404251
lea ecx, [ebp - 0x2c]
call fcn.00402760
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406081
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004059d5
int3
Function at 0x4045a0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417efb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x41f4bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00405b29
push 4
mov dword [ebp - 4], 0
call fcn.00407626
mov edi, eax
add esp, 4
test edi, edi
je 0x404620
call fcn.004058f1
mov dword [edi], eax
call fcn.004056b0
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405aea
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404616
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00405b12
jmp 0x404622
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406081
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41f4bc]
jne 0x40608b
repz ret
jmp fcn.0040aa3c
Function at 0x413e10
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41f4bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040bbb6
and dword [ebp - 0x14], 0
cmp dword [0x4215d8], 0
mov dword [ebp - 0x18], eax
jne 0x413ec3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x413f6b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x413f6b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4215d8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4215dc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4215e0], eax
call edi
push eax
call esi
mov dword [0x4215e8], eax
test eax, eax
je 0x413ec3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4215e4], eax
mov eax, dword [0x4215e4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x413f1c
cmp dword [0x4215e8], ecx
je 0x413f1c
push eax
call esi
push dword [0x4215e8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x413f1c
test ebx, ebx
je 0x413f1c
call edi
test eax, eax
je 0x413f13
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x413f13
test byte [ebp - 8], 1
jne 0x413f1c
or dword [ebp + 0x10], 0x200000
jmp 0x413f4f
mov eax, dword [0x4215dc]
cmp eax, dword [ebp - 0x18]
je 0x413f4f
push eax
call esi
test eax, eax
je 0x413f4f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x413f4f
mov eax, dword [0x4215e0]
cmp eax, dword [ebp - 0x18]
je 0x413f4f
push eax
call esi
test eax, eax
je 0x413f4f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4215d8]
call esi
test eax, eax
je 0x413f6b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x413f6d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406081
leave
ret