joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41feb2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x44b6da
call fcn.00437226
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.00420ea1
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x41fefd
call fcn.00420ea1
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x41ff0e
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x41ff1b
or eax, 0xffffffff
jmp 0x420077
mov ecx, esi
call fcn.0041fa04
mov dword [ebp - 0x14], eax
call fcn.0041752a
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x41ff99
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x41ff99
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41ff99
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00414862
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x41ff99
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x41ff99
mov ecx, ebx
call fcn.0041af95
test eax, eax
je 0x41ff99
push 0
mov ecx, ebx
call fcn.0041afb0
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00418ed7
push dword [ebp - 0x14]
call fcn.00417482
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0041fcba
xor edi, edi
cmp eax, edi
je 0x41fff6
test byte [esi + 0x3c], 0x10
je 0x41ffe0
push 4
pop edi
mov ecx, esi
call fcn.0041ae52
test ax, 0x100
je 0x41ffd6
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041704a
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x41fff6
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041b17f
or dword [ebp - 4], 0xffffffff
jmp 0x420021
cmp dword [ebp - 0x28], edi
je 0x42002f
push 1
mov ecx, ebx
call fcn.0041afb0
cmp dword [ebp - 0x2c], edi
je 0x42003f
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x420058
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x420058
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0041fa3e
cmp dword [esi + 0x58], edi
je 0x420074
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004372cb
ret

Function at 0x432ef0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a96b0]
jne 0x432efa
repz ret
jmp fcn.0043a595
Function at 0x435155
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x435182
call fcn.004375b8
mov dword [eax], esi
call fcn.004375a5
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00435121
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x43515e
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4351b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004375cb
pop ecx
call fcn.004375a5
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4351d8
test al, 1
je 0x4351d8
test byte [esp + 0xc], 2
je 0x4351d8
call fcn.004375b8
mov dword [eax], 5
call fcn.004375a5
mov dword [eax], 0xd
jmp 0x4351a8
xor eax, eax
pop esi
ret

Function at 0x438e8c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4a9840]
je 0x438ea7
inc edi
cmp edi, 0x17
jb 0x438e98
cmp edi, 0x17
jae 0x439027
push ebp
push 3
call fcn.004440ae
cmp eax, 1
pop ecx
je 0x438ff3
push 3
call fcn.004440ae
test eax, eax
pop ecx
jne 0x438edb
cmp dword [0x4a9678], 1
je 0x438ff3
cmp ebx, 0xfc
je 0x439026
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ad0d8
push ebp
call fcn.0044053e
add esp, 0xc
test eax, eax
je 0x438f11
push esi
push esi
push esi
push esi
push esi
call fcn.00435025
add esp, 0x14
push 0x104
mov esi, 0x4ad0f1
push esi
push 0
mov byte [0x4ad1f5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x438f55
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0044053e
add esp, 0xc
test eax, eax
je 0x438f55
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00435025
add esp, 0x14
push esi
call fcn.004354b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x438f9a
push esi
call fcn.004354b0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ad3ec
push 0x48cdec
sub ecx, eax
push ecx
push eax
call fcn.004346c1
add esp, 0x14
test eax, eax
je 0x438f9a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00435025
add esp, 0x14
jmp 0x438f9c
xor esi, esi
push 0x48cde8
push ebx
push ebp
call fcn.0044403d
add esp, 0xc
test eax, eax
je 0x438fbc
push esi
push esi
push esi
push esi
push esi
call fcn.00435025
add esp, 0x14
push dword [edi*8 + 0x4a9844]
push ebx
push ebp
call fcn.0044403d
add esp, 0xc
test eax, eax
je 0x438fde
push esi
push esi
push esi
push esi
push esi
call fcn.00435025
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00443e80
add esp, 0xc
jmp 0x439026
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x439026
cmp ebp, 0xffffffff
je 0x439026
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4a9844]
push dword [esi]
call fcn.004354b0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x443e80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00439a3d
xor ebx, ebx
cmp dword [0x4adbe0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x443f56
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x444036
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x444036
push eax
call fcn.004399cf
mov dword [esp], 0x48d268
push edi
mov dword [0x4adbe0], eax
call esi
push eax
call fcn.004399cf
mov dword [esp], 0x48d254
push edi
mov dword [0x4adbe4], eax
call esi
push eax
call fcn.004399cf
mov dword [0x4adbe8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00437931
test eax, eax
pop ecx
pop ecx
je 0x443f24
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00435025
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x443f56
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004399cf
cmp eax, ebx
pop ecx
mov dword [0x4adbf0], eax
je 0x443f56
push 0x48d220
push edi
call esi
push eax
call fcn.004399cf
pop ecx
mov dword [0x4adbec], eax
mov eax, dword [0x4adbec]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x443fdb
cmp dword [0x4adbf0], ecx
je 0x443fdb
push eax
call fcn.00439a46
push dword [0x4adbf0]
mov esi, eax
call fcn.00439a46
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x443fdb
cmp edi, ebx
je 0x443fdb
call esi
cmp eax, ebx
je 0x443fa8
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x443fa8
test byte [ebp - 0x18], 1
jne 0x443fdb
lea eax, [ebp - 0x10]
push eax
call fcn.00437968
test eax, eax
pop ecx
je 0x443fc3
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00435025
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x443fd2
or dword [ebp + 0x10], 0x200000
jmp 0x444016
or dword [ebp + 0x10], 0x40000
jmp 0x444016
mov eax, dword [0x4adbe4]
cmp eax, dword [ebp - 8]
je 0x444016
push eax
call fcn.00439a46
cmp eax, ebx
pop ecx
je 0x444016
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x444016
mov eax, dword [0x4adbe8]
cmp eax, dword [ebp - 8]
je 0x444016
push eax
call fcn.00439a46
cmp eax, ebx
pop ecx
je 0x444016
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4adbe0]
call fcn.00439a46
cmp eax, ebx
pop ecx
je 0x444036
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x444038
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44ae0b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4a96b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0044ada0
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00433330
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x44ae5a
cmp dword [ebp - 0x1c], 5
jb 0x44ae72
jmp 0x44ae6e
cmp dword [ebp - 0x10], 1
jne 0x44ae72
cmp dword [ebp - 0x1c], 4
ja 0x44ae6e
jne 0x44ae72
cmp dword [ebp - 0x18], 0
jbe 0x44ae72
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x48eda8
call fcn.0044ac91
test eax, eax
jge 0x44ae93
mov byte [0x4adcd1], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00432ef0
add ebp, 0x78
leave
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 0x100dd5a
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 0x100de1d
dec eax
je 0x100ddb1
sub eax, 5
je 0x100de0e
dec eax
je 0x100ddcf
dec eax
je 0x100ddc0
dec eax
je 0x100ddb1
dec eax
jne 0x100de2a
xor eax, eax
mov ax, word [esi + 8]
test ax, ax
je 0x100de2a
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteAtom]
jmp 0x100de2a
mov eax, dword [esi + 8]
test eax, eax
je 0x100de2a
push eax
call fcn.01008235
jmp 0x100de2a
mov eax, dword [esi + 8]
test eax, eax
je 0x100de2a
push eax
call fcn.0100d79e
jmp 0x100de2a
xor eax, eax
mov al, byte [esi + 0x14]
and eax, 3
sub eax, 0
je 0x100de06
dec eax
je 0x100ddea
dec eax
jne 0x100de2a
mov edi, dword [sym.imp.GDI32.dll_DeleteEnhMetaFile]
jmp 0x100ddf0
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esi + 8]
test eax, eax
je 0x100ddfa
push eax
call edi
mov eax, dword [esi + 0xc]
test eax, eax
je 0x100de2a
push eax
call edi
jmp 0x100de2a
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x100ddf0
mov eax, dword [esi + 8]
test eax, eax
je 0x100de2a
push eax
call fcn.0100d7bf
jmp 0x100de2a
mov eax, dword [esi + 8]
test eax, eax
je 0x100de2a
push eax
call fcn.0100d79e
push esi
mov ecx, ebx
call fcn.01019e25
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.0101118a
cmp dword [0x1028ab0], ebx
jne 0x100ba21
push fcn.0101118a
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
Function at 0x100c028
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1028aa8]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
mov dword [ebp - 4], eax
mov byte [ebp - 0x20d], 0
call dword [sym.imp.KERNEL32.DLL_IsBadStringPtrW]
test eax, eax
jne 0x100c14d
push 0x208
push edi
call dword [sym.imp.KERNEL32.DLL_IsBadWritePtr]
test eax, eax
jne 0x100c14d
and word [edi], ax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x21c]
push eax
push 1
push 0
push 0x1002a78
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x100c14c
lea eax, [ebp - 0x218]
push eax
push 1
push 0
push ebx
push dword [ebp - 0x21c]
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x100c144
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1002a50
push dword [ebp - 0x218]
mov esi, 0x104
mov dword [ebp - 0x220], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100c13c
cmp dword [ebp - 0x214], 2
jne 0x100c11e
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
test eax, eax
jne 0x100c11e
mov dword [ebp - 0x214], 1
cmp dword [ebp - 0x214], 1
jne 0x100c13c
lea eax, [ebp - 0x20c]
push eax
push edi
mov byte [ebp - 0x20d], 1
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push dword [ebp - 0x218]
call ebx
push dword [ebp - 0x21c]
call ebx
pop esi
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x20d]
pop edi
pop ebx
call fcn.0100b845
leave
ret 8