joyce8/EMBER2024-capa huggingface dataset:
Function at 0x109143a
Capabilities:
Delete file

Disassembly:
push 0x850
mov eax, 0x10ba763
call fcn.010aacd7
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x854]
push eax
xor ebx, ebx
push 0x1022a98
lea ecx, [ebp - 0x85c]
mov dword [ebp - 0x854], ebx
call fcn.010ab86f
xor eax, eax
mov esi, 0x208
push esi
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
push esi
mov word [ebp - 0x634], ax
lea eax, [ebp - 0x632]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0x24
lea ecx, [ebp - 0x850]
call fcn.0108f1a4
mov byte [ebp - 4], 1
cmp edi, ebx
jne 0x1091502
mov eax, 0x80070057
mov dword [ebp - 0x854], eax
mov esi, eax
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], bl
call fcn.0108f1e8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret 8
push edi
lea ecx, [ebp - 0x850]
call fcn.0108f297
cmp eax, ebx
mov dword [ebp - 0x854], eax
jl 0x1091600
mov eax, 0x105
push eax
lea ecx, [ebp - 0x844]
push ecx
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0103d8a8
cmp dword [ebp - 0x854], ebx
jl 0x1091600
push 0x104
lea eax, [ebp - 0x21c]
push eax
mov edi, 0x10229b4
push edi
lea ecx, [ebp - 0x850]
call fcn.0108f695
mov dword [ebp - 0x854], eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, 0x80030002
test eax, eax
jne 0x1091581
mov dword [ebp - 0x854], esi
cmp dword [ebp - 0x854], ebx
jl 0x1091600
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
jne 0x10915ae
mov dword [ebp - 0x854], esi
cmp dword [ebp - 0x854], ebx
jl 0x1091600
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x10915e1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10915db
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x854], eax
cmp dword [ebp - 0x854], ebx
jl 0x1091600
push 0x10054e0
push edi
lea ecx, [ebp - 0x850]
call fcn.0108f5df
mov dword [ebp - 0x854], eax
mov esi, dword [ebp - 0x854]
jmp 0x10914db
Function at 0x1092da2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 0x10234cc
lea ecx, [ebp - 0x214]
call fcn.010ab86f
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1092eb6
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1092e0e
sub eax, edx
sar eax, 1
push edi
mov edi, eax
lea eax, [edi + 0xb]
cmp eax, esi
jge 0x1092eb5
mov eax, 0x103
sub eax, edi
push eax
push 0x10021d4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103d938
mov eax, 0x102
sub eax, edi
push eax
push 0x1023410
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103d938
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
jne 0x1092eb5
mov eax, dword [section..data]
cmp eax, section..data
je 0x1092eb5
test byte [eax + 0x1c], 8
je 0x1092eb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1092e9d
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x1022de8
push 0xa
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
pop edi
lea ecx, [ebp - 0x214]
call fcn.010ab8b6
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.010aac4f
leave
ret
Function at 0x109bc6e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x10b6220
call fcn.010aac64
mov ebx, ecx
push 0
push 0x10264cc
lea ecx, [ebp - 0x14]
call fcn.010ab86f
and dword [ebp - 4], 0
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0
push 0xa
push 0x9c
push eax
call fcn.010ad4c0
mov edi, eax
test edi, edi
je 0x109bcdf
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0
push edi
push eax
call fcn.010ad432
test eax, eax
je 0x109bcdf
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x109bcdf
movsx ecx, word [eax]
mov dword [ebx + 0x1d4], ecx
movsx eax, word [eax + 2]
mov dword [ebx + 0x1d8], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.010ab8b6
call fcn.010aad50
ret

Function at 0x109c797
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xc
mov eax, 0x10bc48a
call fcn.010aac64
mov edi, ecx
xor esi, esi
push esi
push 0x10265ec
lea ecx, [ebp - 0x18]
call fcn.010ab86f
mov dword [ebp - 4], esi
cmp dword [edi + 0xfc], esi
je 0x109c838
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x109c838
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [edi + 0xfc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x109c832
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push dword [edi + 0xfc]
mov dword [ebp - 0x10], eax
push eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0x10]
add esp, 0xc
xor eax, eax
push ebx
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab8b6
call fcn.010aad50
ret
Function at 0x109ed0a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x10bc48a
call fcn.010aac64
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
push 0x1026d64
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0x80004207
call fcn.010ab86f
movzx eax, word [ebp + 0xc]
xor ebx, ebx
push ebx
push 5
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.010ad4c0
cmp eax, ebx
je 0x109eec9
push ebx
push eax
push dword [ebp + 8]
call fcn.010ad432
cmp eax, ebx
je 0x109eec9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x109ed8a
mov esi, 0x8000ffff
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad50
ret 8
mov eax, dword [esi]
cmp eax, ebx
je 0x109ed99
push eax
call fcn.010a8ee2
pop ecx
mov dword [esi], ebx
movzx eax, word [edi + 0x10]
cmp eax, ebx
mov dword [esi + 4], eax
jle 0x109ed6c
xor ecx, ecx
push 0x18
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a8ed2
pop ecx
mov dword [esi], eax
cmp eax, ebx
jne 0x109edcb
mov eax, 0x8007000e
mov dword [ebp - 0x10], eax
mov esi, eax
jmp 0x109ed74
movsx eax, word [edi + 0x12]
mov dword [esi + 0xc], eax
movsx eax, word [edi + 0x14]
mov dword [esi + 0x10], eax
movsx ecx, word [edi + 0x12]
movsx eax, word [edi + 0x16]
add eax, ecx
mov dword [esi + 0x14], eax
movsx ecx, word [edi + 0x14]
movsx eax, word [edi + 0x18]
add eax, ecx
mov dword [esi + 0x18], eax
lea eax, [edi + 0x1c]
movzx ecx, word [eax]
cmp cx, bx
je 0x109ee14
mov edx, 0xffff
cmp dx, cx
jne 0x109ee0d
add eax, 4
jmp 0x109ee16
inc eax
inc eax
cmp word [eax], bx
jne 0x109ee0d
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
je 0x109ee3a
mov edx, 0xffff
cmp dx, cx
jne 0x109ee2d
add eax, 2
jmp 0x109ee36
inc eax
inc eax
cmp word [eax], bx
jne 0x109ee2d
inc eax
inc eax
xor ebx, ebx
jmp 0x109ee3d
add eax, 2
cmp word [eax], bx
je 0x109ee4d
inc eax
inc eax
cmp word [eax], bx
jne 0x109ee42
inc eax
inc eax
jmp 0x109ee50
add eax, 2
test byte [edi + 0xc], 0x40
je 0x109ee64
add eax, 2
jmp 0x109ee5d
inc eax
inc eax
cmp word [eax], bx
jne 0x109ee5b
inc eax
inc eax
xor edi, edi
cmp dword [esi + 4], edi
jle 0x109eec5
mov edx, dword [esi]
add eax, 3
and eax, 0xfffffffc
movsx ecx, word [eax + 0xc]
mov dword [edi + edx], ecx
movsx ecx, word [eax + 0xe]
mov edx, dword [esi]
mov dword [edi + edx + 4], ecx
movsx edx, word [eax + 0xc]
movsx ecx, word [eax + 0x10]
add ecx, edx
mov edx, dword [esi]
mov dword [edi + edx + 8], ecx
movsx edx, word [eax + 0xe]
movsx ecx, word [eax + 0x12]
add ecx, edx
mov edx, dword [esi]
mov dword [edi + edx + 0xc], ecx
mov ecx, dword [esi]
mov dx, word [eax + 0x14]
mov word [edi + ecx + 0x10], dx
mov ecx, dword [esi]
add ecx, edi
push ecx
push eax
mov ecx, esi
call fcn.0109ec2c
inc ebx
add edi, 0x18
cmp ebx, dword [esi + 4]
jl 0x109ee6b
and dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x10]
jmp 0x109ed74
Function at 0x10a2896
Capabilities:
Delete file

Disassembly:
push 0x858
mov eax, 0x10bbbd1
call fcn.010aacd7
lea eax, [ebp - 0x85c]
push eax
mov edi, ecx
xor ebx, ebx
push 0x1027950
lea ecx, [ebp - 0x864]
mov dword [ebp - 0x85c], ebx
call fcn.010ab86f
lea ecx, [ebp - 0x858]
mov dword [ebp - 4], ebx
call fcn.0108fc1e
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push ebx
push eax
call sub.msvcrt.dll_memset
push 0x420
lea eax, [ebp - 0x858]
push ebx
push eax
xor esi, esi
call sub.msvcrt.dll_memset
add esp, 0x18
cmp dword [ebp - 0x85c], ebx
jl 0x10a29ed
jmp 0x10a2916
xor ebx, ebx
cmp esi, ebx
jne 0x10a29ed
lea ecx, [ebp - 0x438]
call fcn.0108f1a4
mov dword [ebp - 0x438], 0x100800c
lea eax, [ebp - 0x21c]
push eax
lea ebx, [ebp - 0x438]
mov byte [ebp - 4], 1
call fcn.010a1df8
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x85c], eax
jl 0x10a298a
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x438]
call fcn.010903f9
cmp eax, ebx
mov dword [ebp - 0x85c], eax
jl 0x10a298a
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x438]
call fcn.0108fc59
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], bl
call fcn.0108f1e8
cmp dword [ebp - 0x85c], ebx
jl 0x10a29c3
lea eax, [ebp - 0x858]
push eax
mov ecx, edi
call fcn.010a25ea
cmp eax, ebx
mov dword [ebp - 0x85c], eax
jl 0x10a29bd
xor esi, esi
inc esi
jmp 0x10a29c3
mov dword [ebp - 0x85c], ebx
lea eax, [ebp - 0x64e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10a29e1
lea eax, [ebp - 0x64e]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x85c], ebx
jge 0x10a2914
mov esi, dword [ebp - 0x85c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x864]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret
Function at 0x10a2a0f
Capabilities:
Delete file

Disassembly:
push 0x758
mov eax, 0x10bbc35
call fcn.010aacd7
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x660], eax
lea eax, [ebp - 0x654]
push eax
mov dword [ebp - 0x650], ecx
xor ebx, ebx
push 0x1027978
lea ecx, [ebp - 0x668]
mov dword [ebp - 0x654], ebx
call fcn.010ab86f
push ebx
lea ecx, [ebp - 0x764]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x65c], ebx
call fcn.010a333d
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.0108f1a4
mov esi, 0x100800c
mov dword [ebp - 0x22c], esi
push fcn.010a19ea
push edi
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x764]
mov byte [ebp - 4], 2
call fcn.010a33dd
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.0108f1e8
lea ecx, [ebp - 0x764]
call fcn.010a3597
lea ecx, [ebp - 0x764]
cmp eax, 1
jbe 0x10a2b5c
call sub.MFC42u.dll_CDialog::DoModal
cmp eax, 6
je 0x10a2b66
lea ecx, [ebp - 0x22c]
call fcn.0108f1a4
mov dword [ebp - 0x22c], esi
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.010a1f16
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.0108f1e8
mov ecx, dword [ebp - 0x650]
call fcn.010a1c60
mov ecx, dword [ebp - 0x650]
push ebx
add ecx, 0xe20
call fcn.0104c95a
mov eax, dword [ebp - 0x660]
cmp eax, ebx
je 0x10a2b2f
mov ecx, dword [ebp - 0x65c]
mov dword [eax], ecx
mov esi, dword [ebp - 0x654]
lea ecx, [ebp - 0x764]
mov byte [ebp - 4], bl
call fcn.010a1da4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x668]
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret 8
call fcn.010a3597
cmp eax, 1
jne 0x10a2b00
cmp edi, ebx
je 0x10a2c0d
lea ecx, [ebp - 0x64c]
mov dword [ebp - 0x658], ebx
call fcn.0108fc1e
lea ecx, [ebp - 0x22c]
call fcn.0108f1a4
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x64c]
push eax
push edi
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 4
call fcn.010903f9
cmp eax, ebx
jl 0x10a2bc1
push edi
lea ecx, [ebp - 0x22c]
call fcn.0108fc59
mov dword [ebp - 0x658], 1
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.0108f1e8
cmp dword [ebp - 0x658], ebx
je 0x10a2c2c
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x64c]
push eax
call fcn.010a25ea
cmp eax, ebx
mov dword [ebp - 0x654], eax
jl 0x10a2bfe
mov dword [ebp - 0x65c], 1
lea eax, [ebp - 0x442]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10a2c2c
mov ecx, dword [ebp - 0x650]
call fcn.010a2896
cmp eax, ebx
mov dword [ebp - 0x654], eax
jl 0x10a2c2c
mov dword [ebp - 0x65c], 1
cmp dword [ebp - 0x654], 0xc6c8100a
mov ecx, dword [ebp - 0x650]
je 0x10a2c61
lea eax, [ebp - 0x658]
push eax
mov dword [ebp - 0x658], ebx
call fcn.010a2169
cmp dword [ebp - 0x658], ebx
jne 0x10a2b0b
jmp 0x10a2b00
mov dword [ebp - 0x654], ebx
jmp 0x10a2b06

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push 0x1028528
lea ecx, [ebp - 8]
call fcn.010ab86f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10a3982
inc esi
lea ecx, [ebp - 8]
call fcn.010ab8b6
mov eax, esi
pop esi
leave
ret 4
Function at 0x10a72d9
Capabilities:
Get geographical location

Disassembly:
push 0x18
mov eax, 0x10bc186
call fcn.010aacd7
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.010a914e
and dword [ebp - 4], 0
push 0
push 0x1029b24
lea ecx, [ebp - 0x24]
mov dword [esi], 0x1029a64
call fcn.010ab86f
push 4
lea eax, [ebp - 0x18]
push eax
push 0xd
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, 0x1029a58
lea eax, [ebp - 0x18]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10a7349
test dx, dx
je 0x10a7345
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10a7349
add eax, 4
add ecx, 4
test dx, dx
jne 0x10a7323
xor eax, eax
jmp 0x10a734e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
sete al
lea ecx, [ebp - 0x24]
mov byte [esi + 0x40], al
mov dword [esi + 0x44], 0x60
call fcn.010ab8b6
mov eax, esi
call fcn.010aad69
ret

Function at 0x10a743a
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
push 0
push 0x419
push dword [ecx + 0x20]
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebp
ret 4
Function at 0x10aac0e
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10c4680
call fcn.010ab1b4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10ced40
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10aa9c9
cmp eax, esi
jne 0x10aa9bc
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10aa9cc
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10aa9a3
xor esi, esi
inc esi
mov eax, dword [0x10ced3c]
cmp eax, esi
jne 0x10aa9df
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10aaa0e
mov eax, dword [0x10ced3c]
test eax, eax
jne 0x10aaa08
mov dword [0x10ced3c], esi
push 0x10020f4
push 0x10020e8
call fcn.010aa905
pop ecx
pop ecx
test eax, eax
je 0x10aaa0e
jmp 0x10aab32
mov dword [0x10ce5d8], esi
mov eax, dword [0x10ced3c]
cmp eax, esi
jne 0x10aaa32
push 0x10020e4
push 0x10020d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10ced3c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10aaa3f
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10ced4c], ebx
je 0x10aaa60
push 0x10ced4c
call fcn.010ab129
pop ecx
test eax, eax
je 0x10aaa60
push ebx
push 2
push ebx
call dword [0x10ced4c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10aab32
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10aaaca
cmp cx, bx
je 0x10aaa85
cmp dword [ebp - 0x1c], ebx
jne 0x10aaaca
movzx ecx, word [eax]
cmp cx, bx
je 0x10aaa9a
cmp cx, 0x20
ja 0x10aaa9a
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10aaa85
test byte [ebp - 0x40], 1
je 0x10aaaa6
movzx ecx, word [ebp - 0x3c]
jmp 0x10aaaa9
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10ce5d4], eax
cmp dword [0x10ce5c8], ebx
jne 0x10aab0f
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10aaadb
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10aaa6f
cmp dword [0x10ce5d8], ebx
jne 0x10aab1d
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10ce5d4]
jmp 0x10aab3e
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010ab1f9
ret
call fcn.010ab301
jmp 0x10aa966
Function at 0x10ac31b
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 0x102b6c8
lea ecx, [ebp - 0xc]
call fcn.010ab86f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
test esi, esi
jne 0x10ac389
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10ac35f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10ac389
test byte [eax + 0x1c], 4
je 0x10ac389
push dword [ebp - 4]
push 0x102b52c
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10ac395
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
call fcn.010ab8b6
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x10afe2e
Capabilities:
Copy file
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
push 0x102bf84
lea ecx, [ebp - 0x630]
call fcn.010ab86f
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035128
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jl 0x10aff88
push dword [0x10cd110]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0103d8f7
test eax, eax
jl 0x10aff88
push 0x105
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10aff50
push 0x10021d4
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.0103d8f7
test eax, eax
jl 0x10aff88
push dword [0x10cd110]
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0103d8f7
test eax, eax
jl 0x10aff88
push 0
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x10aff88
mov eax, dword [section..data]
cmp eax, section..data
je 0x10aff88
test byte [eax + 0x1c], 8
je 0x10aff88
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10aff28
and eax, ebx
or eax, edi
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [section..data]
push 0x102be30
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010af6ac
jmp 0x10aff88
mov eax, dword [section..data]
cmp eax, section..data
je 0x10aff88
test byte [eax + 0x1c], 8
je 0x10aff88
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10aff70
and eax, ebx
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be30
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
mov eax, dword [0x10cd10c]
and dword [ebp - 0x624], 0
mov dword [ebp - 0x628], eax
mov eax, dword [0x10cd110]
mov dword [ebp - 0x620], eax
lea eax, [ebp - 0x628]
push eax
push 2
push 0
call sub.WINSPOOL.DRV_AddMonitorW
mov esi, eax
test esi, esi
jne 0x10b0003
mov eax, dword [section..data]
cmp eax, section..data
je 0x10afff3
test byte [eax + 0x1c], 4
je 0x10afff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10affdb
and eax, ebx
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be30
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xbbe
jne 0x10b0003
xor esi, esi
inc esi
lea ecx, [ebp - 0x630]
call fcn.010ab8b6
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac4f
leave
ret 4
Function at 0x10b0026
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x102bfcc
lea ecx, [ebp - 0x48]
call fcn.010ab86f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov edi, eax
cmp edi, ebx
je 0x10b011f
push 0x208
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 1
call fcn.010a8ea4
push dword [0x10cd10c]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push 0x102bfa4
push 0x104
push esi
call fcn.0103d988
add esp, 0x18
test eax, eax
jl 0x10b00b9
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call sub.WINSPOOL.DRV_OpenPrinterW
mov edi, eax
jmp 0x10b00bb
xor edi, edi
push esi
call fcn.010a8ee2
pop ecx
cmp edi, ebx
je 0x10b011f
push 0x64
call fcn.010a8ea4
pop ecx
mov ecx, dword [0x10cd0f4]
mov esi, eax
mov eax, ecx
mov dword [ebp - 0x2c], ebx
lea edx, [eax + 2]
mov di, word [eax]
inc eax
inc eax
cmp di, bx
jne 0x10b00de
sub eax, edx
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x2c]
push edx
push 0x64
push esi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 0x102bf94
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_XcvDataW
push esi
mov edi, eax
call fcn.010a8ee2
pop ecx
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_ClosePrinter
cmp edi, ebx
jne 0x10b015d
mov eax, dword [section..data]
cmp eax, section..data
je 0x10b015d
test byte [eax + 0x1c], 4
je 0x10b015d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10b0145
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x102be30
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0107918f
lea ecx, [ebp - 0x48]
call fcn.010ab8b6
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac4f
leave
ret
Function at 0x10b017b
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x10cd0d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push 0x102bff0
lea ecx, [ebp - 0x48]
call fcn.010ab86f
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x30], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
mov esi, eax
cmp esi, ebx
je 0x10b0271
push edi
push 0x208
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 1
call fcn.010a8ea4
push dword [0x10cd10c]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
push 0x102bfa4
push 0x104
push edi
call fcn.0103d988
add esp, 0x18
test eax, eax
jl 0x10b020e
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call sub.WINSPOOL.DRV_OpenPrinterW
mov esi, eax
jmp 0x10b0210
xor esi, esi
push edi
call fcn.010a8ee2
pop ecx
cmp esi, ebx
je 0x10b0270
push 0x64
call fcn.010a8ea4
pop ecx
mov ecx, dword [0x10cd0f4]
mov edi, eax
mov eax, ecx
mov dword [ebp - 0x2c], ebx
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, bx
jne 0x10b0233
sub eax, edx
lea edx, [ebp - 0x40]
push edx
lea edx, [ebp - 0x2c]
push edx
push 0x64
push edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push ecx
push 0x102bfd8
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_XcvDataW
push edi
mov esi, eax
call fcn.010a8ee2
pop ecx
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_ClosePrinter
pop edi
lea ecx, [ebp - 0x48]
call fcn.010ab8b6
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac4f
leave
ret