joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461514
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x46152b
add esp, 0xfffffff0
call fcn.00403b60
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042116c
mov eax, dword [0x4deb40]
cmp word [eax + 2], 0
jne 0x461553
mov eax, dword [0x4deb40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462bf0
mov eax, dword [0x4dec70]
cmp word [eax + 2], 0
jne 0x46156d
mov eax, dword [0x4dec70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00462de8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416504]
call fcn.004037cc
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416504]
call fcn.004037cc
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x42372c]
call fcn.0042b2e0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4616f4
mov eax, dword [0x4de960]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b6b0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x463358
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4de960]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040dba8
test eax, eax
je 0x461662
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004096c4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040dbd0
test eax, eax
je 0x461676
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404934
mov eax, dword [0x4de6f8]
cmp byte [eax], 0
jne 0x4616aa
mov eax, ebx
call fcn.0046181c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00463534
mov eax, ebx
call fcn.00463e74
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4616ea
call fcn.00403bb8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461a90
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4dfc3c]
cmp dword [eax + 0x30], 0
je 0x461b3a
cmp dword [ebx + 0x94], 0
jne 0x461b34
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x461a20
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x461b34
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x461afa
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x461b34
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418da8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x461b09
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x462618
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46264d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004047bc
jmp 0x46265a
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404720
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x463710
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x463751
mov eax, esi
call fcn.004495cc
test al, al
je 0x463751
mov eax, dword [ebx + 0x84]
call fcn.004492c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x463751
push 0
mov eax, dword [ebx + 0x84]
call fcn.004492c8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x48a823
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4ddd46
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48a87b
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4ddd67
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x48a871
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x48a87f
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x49e9cc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49eaa4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4dfd88], 0
jne 0x49ea88
lea eax, [ebp - 4]
mov edx, 0x49eabc
call fcn.00404764
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404b7c
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x49ea88
mov eax, ebx
call fcn.00402818
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49ea81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x49ea6b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x49eacc
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x49ea6b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4dfd88], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ea88
mov eax, dword [ebp - 0xc]
call fcn.00402838
ret
mov ebx, dword [0x4dfd88]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49eaab
lea eax, [ebp - 4]
call fcn.004046cc
ret

Function at 0x4a484c
Capabilities:
Set global application hook

Disassembly:
cmp dword [0x4dfdac], 0
jne 0x4a486f
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4a47c0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4dfdac], eax
ret
Function at 0x4adfbc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ae21c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4ae01f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004adad4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d690
cmp al, 1
jne 0x4ae01f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004add9c
test al, al
je 0x4ae1ab
cmp dword [ebp - 8], 0
jge 0x4ae03d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004adad4
mov eax, dword [ebp - 0x210]
call fcn.00404984
cmp ebx, eax
jge 0x4ae087
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004adad4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4def00]
and eax, 0xff
bt dword [edx], eax
jae 0x4ae087
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4ae09b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004adf98
cmp ebx, dword [ebp - 8]
je 0x4ae19d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4ae0c7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039f8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ddfc8]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4ae18a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039f8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ddfc8]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.004492c8
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004039f8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4ddfc8]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.004492c8
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae191
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4ae1fe
cmp dword [ebp - 8], 0
jge 0x4ae1b6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004adad4
mov eax, dword [ebp - 0x218]
call fcn.00404984
cmp eax, dword [ebp - 8]
jg 0x4ae1f0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004adad4
mov eax, dword [ebp - 0x21c]
call fcn.00404984
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004adf98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ae223
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004046f0
ret
Function at 0x4b8524
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, dword [esi + 0x40]
mov edi, dword [eax + 8]
dec edi
test edi, edi
jl 0x4b855f
inc edi
xor ebx, ebx
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00418da8
mov al, byte [eax + 0x2a0]
xor al, 1
push eax
mov edx, ebx
mov eax, dword [esi + 0x40]
call fcn.00418da8
pop edx
mov byte [eax + 0x2a0], dl
inc ebx
dec edi
jne 0x4b8537
pop edi
pop esi
pop ebx
ret

Function at 0x4c2504
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffe00
mov ebx, eax
lea eax, [esp + 0x100]
push eax
push 0xff
call sub.kernel32.dll_GetTempPathA
push esp
push 0
push 0x4c2548
lea eax, [esp + 0x10c]
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
mov eax, esp
call fcn.004098c8
add esp, 0x200
pop ebx
ret

Function at 0x4c9378
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x4c939d
cmp dword [esp + 4], 5
jb 0x4c939d
mov al, 1
jmp 0x4c939f
xor eax, eax
add esp, 0x94
ret
Function at 0x1006c9d
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1028aa8]
push ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
push 0x12c18
push 0x64
xor ebx, ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x28], ebx
call sub.NETAPI32.dll_NetQueryDisplayInformation
cmp eax, ebx
je 0x1006cda
cmp eax, 0xea
jne 0x1006da9
mov eax, dword [ebp - 0x40]
dec eax
cmp eax, ebx
jl 0x1006da9
push esi
lea esi, [eax + eax*2]
shl esi, 3
inc eax
push edi
mov dword [ebp - 0x38], eax
jmp 0x1006cf6
xor ebx, ebx
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
push dword [esi + eax]
push ebx
call edi
push dword [ebp - 0x30]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1006d9b
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x28]
push ebx
mov dword [ebp - 0x34], 0x10
push dword [esi + eax]
push 0
call edi
test eax, eax
je 0x1006d94
cmp dword [ebp - 0x3c], 1
jne 0x1006d94
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
mov al, byte [eax]
and dword [ebp - 0x2c], 0
movzx edi, al
test edi, edi
jle 0x1006d94
push dword [ebp - 0x2c]
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthority]
cmp dword [eax], 0x1f5
jne 0x1006d8c
mov eax, dword [ebp - 0x28]
push dword [esi + eax]
push str.Guest
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
inc dword [ebp - 0x2c]
cmp dword [ebp - 0x2c], edi
jl 0x1006d69
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esi, 0x18
dec dword [ebp - 0x38]
jne 0x1006cf4
pop edi
pop esi
push dword [ebp - 0x28]
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0100b845
leave
ret

Function at 0x1006edf
Capabilities:
Check for peb beingdebugged flag
Check systemkerneldebuggerinformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0
push 2
lea eax, [ebp - 4]
push eax
push 0x23
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp byte [ebp - 4], 0
jne 0x1006f0a
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
cmp byte [eax + 2], 0
je 0x1006f15
push 0x1006ece
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
leave
ret
Function at 0x10072f8
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x100730b
dec eax
mov dword [ecx + 4], eax
jne 0x100730b
jmp 0x100dd86
ret
mov edi, edi
push ebx
push esi
push edi
push dword [0x1028cf0]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [eax + 8]
movsx eax, word [esi + 2]
sub eax, 4
je 0x100de49
dec eax
je 0x100dddd
sub eax, 5
je 0x100de3a
dec eax
je 0x100ddfb
dec eax
je 0x100ddec
dec eax
je 0x100dddd
dec eax
jne 0x100de56
xor eax, eax
mov ax, word [esi + 8]
test ax, ax
je 0x100de56
push eax
call dword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x100de56
mov eax, dword [esi + 8]
test eax, eax
je 0x100de56
push eax
call fcn.01008235
jmp 0x100de56
mov eax, dword [esi + 8]
test eax, eax
je 0x100de56
push eax
call fcn.0100d7ca
jmp 0x100de56
xor eax, eax
mov al, byte [esi + 0x14]
and eax, 3
sub eax, 0
je 0x100de32
dec eax
je 0x100de16
dec eax
jne 0x100de56
mov edi, dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x100de1c
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esi + 8]
test eax, eax
je 0x100de26
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100de56
push eax
call edi
jmp 0x100de56
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x100de1c
mov eax, dword [esi + 8]
test eax, eax
je 0x100de56
push eax
call fcn.0100d7eb
jmp 0x100de56
mov eax, dword [esi + 8]
test eax, eax
je 0x100de56
push eax
call fcn.0100d7ca
push esi
mov ecx, ebx
call fcn.01019e51
pop edi
pop esi
pop ebx
ret
Function at 0x1007ddd
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1028aa8]
or dword [ebp - 0x4c], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, edi
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x1007e16
or eax, 0xffffffff
jmp 0x1007ef6
push ebx
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor ecx, ecx
test edi, edi
mov dword [ebp - 0x48], ecx
jbe 0x1007eec
lea edi, [esi + 4]
jmp 0x1007e33
mov ecx, dword [ebp - 0x48]
lea esi, [ebx + ecx*4]
mov eax, dword [esi]
mov dword [edi - 4], eax
mov eax, dword [esi]
cmp eax, dword [ebp + 0xc]
jne 0x1007e45
mov dword [ebp - 0x4c], ecx
shr eax, 0x10
and ax, 0xf000
cmp ax, 0xe000
jne 0x1007ecd
cmp dword [0x102dc84], 0
jne 0x1007e84
push str.imm32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1007e7b
push 0x1001e1c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x102dc84], eax
cmp dword [0x102dc84], 0
je 0x1007ecd
push 0x40
lea eax, [ebp - 0x44]
push eax
push dword [esi]
call dword [0x102dc84]
test eax, eax
je 0x1007ecd
push 0x1001e04
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1007eda
push 0x1001df4
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007ec4
push 1
push edi
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1007eda
xor eax, eax
mov ax, word [esi]
push eax
call fcn.01007b4e
mov dword [edi], eax
inc dword [ebp - 0x48]
mov eax, dword [ebp - 0x48]
add edi, 8
cmp eax, dword [ebp + 0x10]
jb 0x1007e30
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100b845
leave
ret 0xc

Function at 0x1007f51
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
push 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edi, eax
cmp edi, 2
jae 0x1007f6c
xor eax, eax
jmp 0x1007fc1
mov eax, dword [ebp + 8]
push esi
lea esi, [eax + eax*2]
shl esi, 2
mov eax, dword [esi + 0x102dc74]
test eax, eax
jne 0x1007fa2
mov eax, edi
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
jne 0x1007f96
xor eax, eax
jmp 0x1007fc0
mov dword [esi + 0x102dc70], edi
mov dword [esi + 0x102dc74], eax
push edi
mov edi, dword [ebp + 0xc]
push edi
push eax
call fcn.01007f0a
test eax, eax
je 0x1007f92
push eax
call fcn.01008858
xor eax, eax
mov dword [esi + 0x102dc6c], edi
inc eax
pop esi
pop edi
pop ebp
ret 8

Function at 0x10080a0
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x1001e30
call dword [sym.imp.USER32.dll_FindWindowW]
neg eax
sbb eax, eax
inc eax
ret

Function at 0x1009659
Capabilities:
Hide graphical window

Disassembly:
mov dword [ecx + 0xc0], 4
mov ecx, dword [ecx + 0xc4]
test ecx, ecx
je 0x1009678
push 0
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x100b95d
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10025c0
call fcn.0100bc10
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100b99a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100b99a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100b9b2
cmp eax, 0x20b
je 0x100b99f
mov dword [ebp - 0x1c], ebx
jmp 0x100b9c6
cmp dword [ecx + 0x84], 0xe
jbe 0x100b99a
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100b9c0
cmp dword [ecx + 0x74], 0xe
jbe 0x100b99a
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x103e438], 0xffffffff
or dword [0x103e43c], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x102e1f0]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x102e1ec]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x103e434], eax
call fcn.010111b6
cmp dword [0x1028ab0], ebx
jne 0x100ba21
push fcn.010111b6
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100bbf7
push 0x1028124
push 0x1028120
call sub.msvcrt.dll__initterm
mov eax, dword [0x102e1e8]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x102e1e4]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x102811c
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100bab7
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100ba8b
cmp al, 0x22
jne 0x100ba7d
cmp byte [esi], 0x22
jne 0x100ba94
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100ba9e
cmp al, 0x20
jbe 0x100ba90
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100bac2
movzx eax, word [ebp - 0x50]
jmp 0x100bac5
cmp byte [esi], 0x20
jbe 0x100ba94
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100bab7
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100bae2
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100bb17
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100bc4b
ret
Function at 0x100bf0e
Capabilities:
Get domain controller name
Get hostname
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x1028aa8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x24]
xor ebx, ebx
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x48], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x100bf4c
mov word [ebp - 0x24], bx
cmp esi, ebx
je 0x100bf7c
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100bf7c
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x100bf7c
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
jmp 0x100bf82
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x34]
push eax
push ebx
push edi
push dword [ebp - 0x30]
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call edi
push dword [ebp - 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push ebx
call esi
cmp eax, ebx
mov dword [ebp - 0x28], eax
je 0x100c004
mov eax, dword [ebp - 0x38]
add eax, eax
push eax
push ebx
call esi
mov esi, eax
cmp esi, ebx
je 0x100bff6
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
push dword [ebp - 0x44]
push dword [ebp - 0x30]
call edi
test eax, eax
je 0x100bfef
cmp dword [ebp - 0x40], 1
jne 0x100bfef
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x28], ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x28], ebx
je 0x100c004
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x2c], ebx
pop edi
pop esi
pop ebx
je 0x100c014
push dword [ebp - 0x2c]
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x3c]
call fcn.0100b845
leave
ret 8