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

Disassembly:
push 0x850
mov eax, 0x10ba759
call fcn.010aac8f
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.010ab82f
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.0108f03f
mov byte [ebp - 4], 1
cmp edi, ebx
jne 0x109139d
mov eax, 0x80070057
mov dword [ebp - 0x854], eax
mov esi, eax
lea ecx, [ebp - 0x850]
mov byte [ebp - 4], bl
call fcn.0108f083
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret 8
push edi
lea ecx, [ebp - 0x850]
call fcn.0108f132
cmp eax, ebx
mov dword [ebp - 0x854], eax
jl 0x109149b
mov eax, 0x105
push eax
lea ecx, [ebp - 0x844]
push ecx
push eax
lea eax, [ebp - 0x428]
push eax
call fcn.0103d897
cmp dword [ebp - 0x854], ebx
jl 0x109149b
push 0x104
lea eax, [ebp - 0x21c]
push eax
mov edi, 0x10229b4
push edi
lea ecx, [ebp - 0x850]
call fcn.0108f530
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 0x109141c
mov dword [ebp - 0x854], esi
cmp dword [ebp - 0x854], ebx
jl 0x109149b
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 0x1091449
mov dword [ebp - 0x854], esi
cmp dword [ebp - 0x854], ebx
jl 0x109149b
lea eax, [ebp - 0x634]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, ebx
jne 0x109147c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1091476
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x854], eax
cmp dword [ebp - 0x854], ebx
jl 0x109149b
push 0x10054e0
push edi
lea ecx, [ebp - 0x850]
call fcn.0108f47a
mov dword [ebp - 0x854], eax
mov esi, dword [ebp - 0x854]
jmp 0x1091376
Function at 0x1092c17
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.010ab82f
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 0x1092d2b
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x1092c83
sub eax, edx
sar eax, 1
push edi
mov edi, eax
lea eax, [edi + 0xb]
cmp eax, esi
jge 0x1092d2a
mov eax, 0x103
sub eax, edi
push eax
push 0x10021d4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103d927
mov eax, 0x102
sub eax, edi
push eax
push 0x1023410
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0103d927
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 0x1092d2a
mov eax, dword [section..data]
cmp eax, section..data
je 0x1092d2a
test byte [eax + 0x1c], 8
je 0x1092d2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1092d12
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.01079041
pop edi
lea ecx, [ebp - 0x214]
call fcn.010ab876
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.010aac07
leave
ret
Function at 0x109bcb9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 8
mov eax, 0x10bbc29
call fcn.010aac1c
mov ebx, ecx
push 0
push 0x10264cc
lea ecx, [ebp - 0x14]
call fcn.010ab82f
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.010ad480
mov edi, eax
test edi, edi
je 0x109bd2a
call sub.MFC42u.dll_AfxGetModuleState
mov eax, dword [eax + 0xc]
push 0
push edi
push eax
call fcn.010ad3f2
test eax, eax
je 0x109bd2a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x109bd2a
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.010ab876
call fcn.010aad08
ret

Function at 0x109c7e2
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0xc
mov eax, 0x10b9739
call fcn.010aac1c
mov edi, ecx
xor esi, esi
push esi
push 0x10265ec
lea ecx, [ebp - 0x18]
call fcn.010ab82f
mov dword [ebp - 4], esi
cmp dword [edi + 0xfc], esi
je 0x109c883
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 0x109c883
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 0x109c87d
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.010ab876
call fcn.010aad08
ret
Function at 0x109ed55
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x10b9739
call fcn.010aac1c
mov esi, ecx
lea eax, [ebp - 0x10]
push eax
push 0x1026d64
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0x80004207
call fcn.010ab82f
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.010ad480
cmp eax, ebx
je 0x109ef14
push ebx
push eax
push dword [ebp + 8]
call fcn.010ad3f2
cmp eax, ebx
je 0x109ef14
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
jne 0x109edd5
mov esi, 0x8000ffff
mov dword [ebp - 0x10], esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010ab876
mov eax, esi
call fcn.010aad08
ret 8
mov eax, dword [esi]
cmp eax, ebx
je 0x109ede4
push eax
call fcn.010a8e9c
pop ecx
mov dword [esi], ebx
movzx eax, word [edi + 0x10]
cmp eax, ebx
mov dword [esi + 4], eax
jle 0x109edb7
xor ecx, ecx
push 0x18
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010a8e8c
pop ecx
mov dword [esi], eax
cmp eax, ebx
jne 0x109ee16
mov eax, 0x8007000e
mov dword [ebp - 0x10], eax
mov esi, eax
jmp 0x109edbf
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 0x109ee5f
mov edx, 0xffff
cmp dx, cx
jne 0x109ee58
add eax, 4
jmp 0x109ee61
inc eax
inc eax
cmp word [eax], bx
jne 0x109ee58
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
je 0x109ee85
mov edx, 0xffff
cmp dx, cx
jne 0x109ee78
add eax, 2
jmp 0x109ee81
inc eax
inc eax
cmp word [eax], bx
jne 0x109ee78
inc eax
inc eax
xor ebx, ebx
jmp 0x109ee88
add eax, 2
cmp word [eax], bx
je 0x109ee98
inc eax
inc eax
cmp word [eax], bx
jne 0x109ee8d
inc eax
inc eax
jmp 0x109ee9b
add eax, 2
test byte [edi + 0xc], 0x40
je 0x109eeaf
add eax, 2
jmp 0x109eea8
inc eax
inc eax
cmp word [eax], bx
jne 0x109eea6
inc eax
inc eax
xor edi, edi
cmp dword [esi + 4], edi
jle 0x109ef10
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.0109ec77
inc ebx
add edi, 0x18
cmp ebx, dword [esi + 4]
jl 0x109eeb6
and dword [ebp - 0x10], 0
mov esi, dword [ebp - 0x10]
jmp 0x109edbf
Function at 0x10a28e1
Capabilities:
Delete file

Disassembly:
push 0x858
mov eax, 0x10bbb68
call fcn.010aac8f
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.010ab82f
lea ecx, [ebp - 0x858]
mov dword [ebp - 4], ebx
call fcn.0108fab9
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 0x10a2a38
jmp 0x10a2961
xor ebx, ebx
cmp esi, ebx
jne 0x10a2a38
lea ecx, [ebp - 0x438]
call fcn.0108f03f
mov dword [ebp - 0x438], 0x100800c
lea eax, [ebp - 0x21c]
push eax
lea ebx, [ebp - 0x438]
mov byte [ebp - 4], 1
call fcn.010a1e43
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x85c], eax
jl 0x10a29d5
lea eax, [ebp - 0x858]
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x438]
call fcn.01090294
cmp eax, ebx
mov dword [ebp - 0x85c], eax
jl 0x10a29d5
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x438]
call fcn.0108faf4
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], bl
call fcn.0108f083
cmp dword [ebp - 0x85c], ebx
jl 0x10a2a0e
lea eax, [ebp - 0x858]
push eax
mov ecx, edi
call fcn.010a2635
cmp eax, ebx
mov dword [ebp - 0x85c], eax
jl 0x10a2a08
xor esi, esi
inc esi
jmp 0x10a2a0e
mov dword [ebp - 0x85c], ebx
lea eax, [ebp - 0x64e]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x10a2a2c
lea eax, [ebp - 0x64e]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x85c], ebx
jge 0x10a295f
mov esi, dword [ebp - 0x85c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x864]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret
Function at 0x10a2a5a
Capabilities:
Delete file

Disassembly:
push 0x758
mov eax, 0x10bbbcc
call fcn.010aac8f
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.010ab82f
push ebx
lea ecx, [ebp - 0x764]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x65c], ebx
call fcn.010a3388
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.0108f03f
mov esi, 0x100800c
mov dword [ebp - 0x22c], esi
push fcn.010a1a35
push edi
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x764]
mov byte [ebp - 4], 2
call fcn.010a3428
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.0108f083
lea ecx, [ebp - 0x764]
call fcn.010a35e2
lea ecx, [ebp - 0x764]
cmp eax, 1
jbe 0x10a2ba7
call sub.MFC42u.dll_CDialog::DoModal
cmp eax, 6
je 0x10a2bb1
lea ecx, [ebp - 0x22c]
call fcn.0108f03f
mov dword [ebp - 0x22c], esi
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 3
call fcn.010a1f61
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.0108f083
mov ecx, dword [ebp - 0x650]
call fcn.010a1cab
mov ecx, dword [ebp - 0x650]
push ebx
add ecx, 0xe20
call fcn.0104c949
mov eax, dword [ebp - 0x660]
cmp eax, ebx
je 0x10a2b7a
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.010a1def
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x668]
call fcn.010ab876
mov eax, esi
call fcn.010aad21
ret 8
call fcn.010a35e2
cmp eax, 1
jne 0x10a2b4b
cmp edi, ebx
je 0x10a2c58
lea ecx, [ebp - 0x64c]
mov dword [ebp - 0x658], ebx
call fcn.0108fab9
lea ecx, [ebp - 0x22c]
call fcn.0108f03f
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x64c]
push eax
push edi
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 4
call fcn.01090294
cmp eax, ebx
jl 0x10a2c0c
push edi
lea ecx, [ebp - 0x22c]
call fcn.0108faf4
mov dword [ebp - 0x658], 1
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 1
call fcn.0108f083
cmp dword [ebp - 0x658], ebx
je 0x10a2c77
mov ecx, dword [ebp - 0x650]
lea eax, [ebp - 0x64c]
push eax
call fcn.010a2635
cmp eax, ebx
mov dword [ebp - 0x654], eax
jl 0x10a2c49
mov dword [ebp - 0x65c], 1
lea eax, [ebp - 0x442]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x10a2c77
mov ecx, dword [ebp - 0x650]
call fcn.010a28e1
cmp eax, ebx
mov dword [ebp - 0x654], eax
jl 0x10a2c77
mov dword [ebp - 0x65c], 1
cmp dword [ebp - 0x654], 0xc6c8100a
mov ecx, dword [ebp - 0x650]
je 0x10a2cac
lea eax, [ebp - 0x658]
push eax
mov dword [ebp - 0x658], ebx
call fcn.010a21b4
cmp dword [ebp - 0x658], ebx
jne 0x10a2b56
jmp 0x10a2b4b
mov dword [ebp - 0x654], ebx
jmp 0x10a2b51

Function at 0x10a39a6
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.010ab82f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10a39cd
inc esi
lea ecx, [ebp - 8]
call fcn.010ab876
mov eax, esi
pop esi
leave
ret 4
Function at 0x10a734a
Capabilities:
Get geographical location

Disassembly:
push 0x18
mov eax, 0x10bc117
call fcn.010aac8f
mov esi, ecx
mov dword [ebp - 0x1c], esi
call fcn.010a9106
and dword [ebp - 4], 0
push 0
push 0x1029b24
lea ecx, [ebp - 0x24]
mov dword [esi], 0x1029a64
call fcn.010ab82f
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 0x10a73ba
test dx, dx
je 0x10a73b6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10a73ba
add eax, 4
add ecx, 4
test dx, dx
jne 0x10a7394
xor eax, eax
jmp 0x10a73bf
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.010ab876
mov eax, esi
call fcn.010aad21
ret

Function at 0x10a749e
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 0x10aabc6
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10c4618
call fcn.010ab174
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 0x10aa981
cmp eax, esi
jne 0x10aa974
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10aa984
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10aa95b
xor esi, esi
inc esi
mov eax, dword [0x10ced3c]
cmp eax, esi
jne 0x10aa997
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x10aa9c6
mov eax, dword [0x10ced3c]
test eax, eax
jne 0x10aa9c0
mov dword [0x10ced3c], esi
push 0x10020f4
push 0x10020e8
call fcn.010aa8bd
pop ecx
pop ecx
test eax, eax
je 0x10aa9c6
jmp 0x10aaaea
mov dword [0x10ce5d8], esi
mov eax, dword [0x10ced3c]
cmp eax, esi
jne 0x10aa9ea
push 0x10020e4
push 0x10020d4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10ced3c], 2
cmp dword [ebp - 0x20], ebx
jne 0x10aa9f7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10ced4c], ebx
je 0x10aaa18
push 0x10ced4c
call fcn.010ab0e9
pop ecx
test eax, eax
je 0x10aaa18
push ebx
push 2
push ebx
call dword [0x10ced4c]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x10aaaea
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10aaa82
cmp cx, bx
je 0x10aaa3d
cmp dword [ebp - 0x1c], ebx
jne 0x10aaa82
movzx ecx, word [eax]
cmp cx, bx
je 0x10aaa52
cmp cx, 0x20
ja 0x10aaa52
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x10aaa3d
test byte [ebp - 0x40], 1
je 0x10aaa5e
movzx ecx, word [ebp - 0x3c]
jmp 0x10aaa61
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10ce5d4], eax
cmp dword [0x10ce5c8], ebx
jne 0x10aaac7
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10aaa93
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x10aaa27
cmp dword [0x10ce5d8], ebx
jne 0x10aaad5
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10ce5d4]
jmp 0x10aaaf6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010ab1b9
ret
call fcn.010ab2c1
jmp 0x10aa91e
Function at 0x10ac2db
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 0x102b6b8
lea ecx, [ebp - 0xc]
call fcn.010ab82f
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, eax
test esi, esi
jne 0x10ac349
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10ac31f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10ac349
test byte [eax + 0x1c], 4
je 0x10ac349
push dword [ebp - 4]
push 0x102b51c
push 0x31
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10ac355
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
lea ecx, [ebp - 0xc]
call fcn.010ab876
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x10afdee
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 0x102bf74
lea ecx, [ebp - 0x630]
call fcn.010ab82f
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01035122
mov ebx, 0xffff
mov edi, 0x80070000
test eax, eax
jl 0x10aff48
push dword [0x10cd110]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0103d8e6
test eax, eax
jl 0x10aff48
push 0x105
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x10aff10
push 0x10021d4
push esi
lea eax, [ebp - 0x61c]
push eax
call fcn.0103d8e6
test eax, eax
jl 0x10aff48
push dword [0x10cd110]
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.0103d8e6
test eax, eax
jl 0x10aff48
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 0x10aff48
mov eax, dword [section..data]
cmp eax, section..data
je 0x10aff48
test byte [eax + 0x1c], 8
je 0x10aff48
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10afee8
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 0x102be20
push 0xe
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010af66c
jmp 0x10aff48
mov eax, dword [section..data]
cmp eax, section..data
je 0x10aff48
test byte [eax + 0x1c], 8
je 0x10aff48
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10aff30
and eax, ebx
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be20
push 0xf
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
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 0x10affc3
mov eax, dword [section..data]
cmp eax, section..data
je 0x10affb3
test byte [eax + 0x1c], 4
je 0x10affb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10aff9b
and eax, ebx
or eax, edi
push eax
mov eax, dword [section..data]
push 0x102be20
push 0x10
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xbbe
jne 0x10affc3
xor esi, esi
inc esi
lea ecx, [ebp - 0x630]
call fcn.010ab876
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac07
leave
ret 4
Function at 0x10affe7
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 0x102bfbc
lea ecx, [ebp - 0x48]
call fcn.010ab82f
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 0x10b00e0
push 0x208
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 1
call fcn.010a8e5e
push dword [0x10cd10c]
mov esi, eax
lea eax, [ebp - 0x24]
push eax
push 0x102bf94
push 0x104
push esi
call fcn.0103d977
add esp, 0x18
test eax, eax
jl 0x10b007a
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call sub.WINSPOOL.DRV_OpenPrinterW
mov edi, eax
jmp 0x10b007c
xor edi, edi
push esi
call fcn.010a8e9c
pop ecx
cmp edi, ebx
je 0x10b00e0
push 0x64
call fcn.010a8e5e
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 0x10b009f
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 0x102bf84
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_XcvDataW
push esi
mov edi, eax
call fcn.010a8e9c
pop ecx
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_ClosePrinter
cmp edi, ebx
jne 0x10b011e
mov eax, dword [section..data]
cmp eax, section..data
je 0x10b011e
test byte [eax + 0x1c], 4
je 0x10b011e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10b0106
and eax, 0xffff
or eax, 0x80070000
push eax
mov eax, dword [section..data]
push 0x102be20
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01079041
lea ecx, [ebp - 0x48]
call fcn.010ab876
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac07
leave
ret
Function at 0x10b013c
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 0x102bfe0
lea ecx, [ebp - 0x48]
call fcn.010ab82f
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 0x10b0232
push edi
push 0x208
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], 1
call fcn.010a8e5e
push dword [0x10cd10c]
mov edi, eax
lea eax, [ebp - 0x24]
push eax
push 0x102bf94
push 0x104
push edi
call fcn.0103d977
add esp, 0x18
test eax, eax
jl 0x10b01cf
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x28]
push eax
push edi
call sub.WINSPOOL.DRV_OpenPrinterW
mov esi, eax
jmp 0x10b01d1
xor esi, esi
push edi
call fcn.010a8e9c
pop ecx
cmp esi, ebx
je 0x10b0231
push 0x64
call fcn.010a8e5e
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 0x10b01f4
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 0x102bfc8
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_XcvDataW
push edi
mov esi, eax
call fcn.010a8e9c
pop ecx
push dword [ebp - 0x28]
call sub.WINSPOOL.DRV_ClosePrinter
pop edi
lea ecx, [ebp - 0x48]
call fcn.010ab876
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.010aac07
leave
ret