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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00457ec9
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x465599
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00465174
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4655f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x465611
cmp dword [edi + 0x54], 0
jne 0x465611
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.00457ec9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004655b8
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x46e0cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.00457ec9
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x46e0f7
xor eax, eax
jmp 0x46e19b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x46e0f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x46e0f0
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004546b3
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x46e14c
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x46e13b
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0046cf10
push edi
mov ebx, eax
call fcn.004546de
test ebx, ebx
pop ecx
je 0x46e18e
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0046d5b5
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0046d667
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x473fdf
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x47400d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47402b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00473f49
jmp 0x47402b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47402b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00473f49
test edi, edi
mov eax, edi
jne 0x474015
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x4f6c4c]
test ecx, ecx
je 0x4740ee
jmp 0x473fde
ret 8

Function at 0x4892f2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4f07b0]
jne 0x4892fc
repz ret
jmp fcn.00491d55

Function at 0x48dee7
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 + 0x4f0940]
je 0x48df02
inc edi
cmp edi, 0x17
jb 0x48def3
cmp edi, 0x17
jae 0x48e082
push ebp
push 3
call fcn.00499a2c
cmp eax, 1
pop ecx
je 0x48e04e
push 3
call fcn.00499a2c
test eax, eax
pop ecx
jne 0x48df36
cmp dword [0x4f078c], 1
je 0x48e04e
cmp ebx, 0xfc
je 0x48e081
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4f6f88
push ebp
call fcn.0049137a
add esp, 0xc
test eax, eax
je 0x48df6c
push esi
push esi
push esi
push esi
push esi
call fcn.0048930b
add esp, 0x14
push 0x104
mov esi, 0x4f6fa1
push esi
push 0
mov byte [0x4f70a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48dfb0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0049137a
add esp, 0xc
test eax, eax
je 0x48dfb0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0048930b
add esp, 0x14
push esi
call fcn.004913e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48dff5
push esi
call fcn.004913e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f729c
push 0x4beb14
sub ecx, eax
push ecx
push eax
call fcn.00499979
add esp, 0x14
test eax, eax
je 0x48dff5
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0048930b
add esp, 0x14
jmp 0x48dff7
xor esi, esi
push 0x4beb10
push ebx
push ebp
call fcn.00499908
add esp, 0xc
test eax, eax
je 0x48e017
push esi
push esi
push esi
push esi
push esi
call fcn.0048930b
add esp, 0x14
push dword [edi*8 + 0x4f0944]
push ebx
push ebp
call fcn.00499908
add esp, 0xc
test eax, eax
je 0x48e039
push esi
push esi
push esi
push esi
push esi
call fcn.0048930b
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049974b
add esp, 0xc
jmp 0x48e081
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48e081
cmp ebp, 0xffffffff
je 0x48e081
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4f0944]
push dword [esi]
call fcn.004913e0
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 0x49974b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048ea97
xor ebx, ebx
cmp dword [0x4f7a84], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x499821
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x499901
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x499901
push eax
call fcn.0048ea29
mov dword [esp], 0x4beed0
push edi
mov dword [0x4f7a84], eax
call esi
push eax
call fcn.0048ea29
mov dword [esp], 0x4beebc
push edi
mov dword [0x4f7a88], eax
call esi
push eax
call fcn.0048ea29
mov dword [0x4f7a8c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048cb44
test eax, eax
pop ecx
pop ecx
je 0x4997ef
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048930b
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x499821
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048ea29
cmp eax, ebx
pop ecx
mov dword [0x4f7a94], eax
je 0x499821
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048ea29
pop ecx
mov dword [0x4f7a90], eax
mov eax, dword [0x4f7a90]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4998a6
cmp dword [0x4f7a94], ecx
je 0x4998a6
push eax
call fcn.0048eaa0
push dword [0x4f7a94]
mov esi, eax
call fcn.0048eaa0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4998a6
cmp edi, ebx
je 0x4998a6
call esi
cmp eax, ebx
je 0x499873
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x499873
test byte [ebp - 0x18], 1
jne 0x4998a6
lea eax, [ebp - 0x10]
push eax
call fcn.0048cb7b
test eax, eax
pop ecx
je 0x49988e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0048930b
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49989d
or dword [ebp + 0x10], 0x200000
jmp 0x4998e1
or dword [ebp + 0x10], 0x40000
jmp 0x4998e1
mov eax, dword [0x4f7a88]
cmp eax, dword [ebp - 8]
je 0x4998e1
push eax
call fcn.0048eaa0
cmp eax, ebx
pop ecx
je 0x4998e1
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4998e1
mov eax, dword [0x4f7a8c]
cmp eax, dword [ebp - 8]
je 0x4998e1
push eax
call fcn.0048eaa0
cmp eax, ebx
pop ecx
je 0x4998e1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f7a84]
call fcn.0048eaa0
cmp eax, ebx
pop ecx
je 0x499901
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x499903
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a1263
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4f7b00], 0
push esi
jne 0x4a11d6
call fcn.004a1101
test eax, eax
je 0x4a1219
mov eax, dword [0x4f7b00]
cmp eax, 1
jne 0x4a11f7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4a1219
pop esi
ret
push eax
call dword [0x4f7b08]
test eax, eax
jne 0x4a1261
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4a121d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4f7b00]
call dword [0x4f7b08]
mov edi, eax
test edi, edi
je 0x4a1244
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4a1260
lea edi, [esi + 0xff0]
push esi
push dword [0x4f7b00]
call dword [0x4f7b04]
add esi, 0x10
cmp esi, edi
jb 0x4a124a
mov eax, esi
pop edi
pop esi
ret
jmp 0x4a11c3

Function at 0x4a13b4
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4f07b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004a1349
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.0048afc0
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 0x4a1403
cmp dword [ebp - 0x1c], 5
jb 0x4a141b
jmp 0x4a1417
cmp dword [ebp - 0x10], 1
jne 0x4a141b
cmp dword [ebp - 0x1c], 4
ja 0x4a1417
jne 0x4a141b
cmp dword [ebp - 0x18], 0
jbe 0x4a141b
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4c07a4
call fcn.0040ea10
test eax, eax
jge 0x4a143c
mov byte [0x4f7b85], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004892f2
add ebp, 0x78
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x432072
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x181a34ac
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
mov ebx, 0x42f314
nop
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x3105587c
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x289d5eeb
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x2aec7e3c
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x72347352
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x68e16478
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x1004445
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push dword [section..data]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x100447c
xor eax, eax
jmp 0x10044eb
cmp eax, esi
je 0x1004485
push 0xe
pop eax
jmp 0x10044eb
push ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push 0x1003644
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp ebx, 2
jne 0x10044c1
cmp dword [ebp - 4], esi
je 0x10044bd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10044ea
cmp ebx, esi
jne 0x10044da
cmp dword [ebp - 0xc], 4
jne 0x10044da
cmp dword [ebp - 0x10], 2
jb 0x10044da
mov eax, dword [ebp + 8]
mov dword [eax], 1
cmp dword [ebp - 4], esi
je 0x10044e8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x1005f15
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1007638
call fcn.010060d4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1009560
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1005d2a
cmp eax, esi
jne 0x1005d1d
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1005d2d
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1005d04
xor esi, esi
inc esi
mov eax, dword [0x100955c]
cmp eax, esi
jne 0x1005d40
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1005d7b
mov eax, dword [0x100955c]
test eax, eax
jne 0x1005d75
mov dword [0x100955c], esi
push 0x10011e8
push 0x10011dc
call fcn.01005c81
pop ecx
pop ecx
test eax, eax
je 0x1005d7b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1005e45
mov dword [0x1009180], esi
mov eax, dword [0x100955c]
cmp eax, esi
jne 0x1005d9f
push 0x10011d8
push 0x10011d0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x100955c], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1005dac
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1009564], ebx
je 0x1005dcd
push 0x1009564
call fcn.01006049
pop ecx
test eax, eax
je 0x1005dcd
push ebx
push 2
push ebx
call dword [0x1009564]
push dword [0x1009168]
push dword [0x100916c]
push dword [0x1009164]
call fcn.01005162
add esp, 0xc
mov dword [0x100917c], eax
cmp dword [0x1009170], ebx
jne 0x1005e2b
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1009180], ebx
jne 0x1005e39
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x100917c]
call fcn.01006119
ret
call fcn.01006221
jmp 0x1005ce2

Function at 0x100641f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x10095a0]
call fcn.010063e5
test eax, eax
je 0x100644d
push 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x10095a0]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x100649f
mov eax, dword [ebp + 0xc]
add eax, eax
push edi
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x100649e
mov eax, dword [ebp + 0xc]
push 0
push 0
lea ecx, [eax + eax]
push ecx
push edi
push eax
push dword [ebp + 8]
push 0
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x1006496
push 0
lea ecx, [ebp + 0xc]
push ecx
push eax
push edi
push dword [0x10095a0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop edi
pop ebp
ret 8
Function at 0x1006627
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0x10
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_wcstol]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
add esp, 0xc
cmp word [eax], 0
je 0x1006664
push dword [ebp + 8]
push 0x2816
call fcn.01006518
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
leave
ret 8

Function at 0x100673e
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
jmp 0x100675c
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
je 0x100677d
add esi, 8
mov eax, dword [esi]
test eax, eax
jne 0x1006749
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 0x282b
call fcn.01006518
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [esi + 4]
pop esi
pop ebp
ret 0xc

Function at 0x1006840
Capabilities:
Get hostname
Prompt user for credentials
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x404
mov dword [ebp - 0x2c], 0xf
call fcn.01006572
mov ebx, eax
xor eax, eax
mov edi, 0x202
push edi
mov word [ebx], ax
call fcn.01006572
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov word [eax], cx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x10068b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010065ad
push eax
push esi
push 0x281a
call fcn.01006518
add esp, 0xc
push 1
call dword [sym.imp.msvcrt.dll_exit]
push 0x100
xor esi, esi
push esi
push 0x101
push dword [ebp - 0x28]
lea eax, [ebp - 0x24]
push edi
push ebx
push esi
push esi
push eax
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x14
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0x1003920
mov dword [ebp - 0x34], 0x10037e8
mov dword [ebp - 0x30], esi
call dword [sym.imp.credui.dll_CredUIPromptForCredentialsW]
test eax, eax
je 0x100690f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
call fcn.010065ad
push eax
push esi
push 0x281b
jmp 0x10068a7
cmp dword [ebp + 0xc], esi
je 0x1006937
push 0x10094c8
push dword [ebp - 0x28]
push esi
push ebx
call sub.SspiCli.dll_SspiEncodeStringsAsAuthIdentity
test eax, eax
je 0x1006937
push 0x2725
call fcn.01006518
pop ecx
jmp 0x10068af
cmp dword [ebp + 8], esi
je 0x100694f
push 0x10094e4
push dword [ebp - 0x28]
push esi
push ebx
call sub.SspiCli.dll_SspiEncodeStringsAsAuthIdentity
test eax, eax
jne 0x1006927
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01005f24
leave
ret 8
Function at 0x1006965
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x1009004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [sym.imp.msvcrt.dll_wcschr]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1a0], eax
mov eax, dword [ebp + 0x10]
push 0x2c
push edi
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x19c], eax
call esi
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x10069c0
push edi
push 0x2813
call fcn.01006518
pop ecx
pop ecx
push 1
call dword [sym.imp.msvcrt.dll_exit]
xor eax, eax
mov word [ebx], ax
inc ebx
inc ebx
push 0x2c
push ebx
call esi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10069e5
push ebx
push edi
push 0x2814
call fcn.01006518
add esp, 0xc
jmp 0x10069b8
xor eax, eax
mov word [esi], ax
inc esi
inc esi
cmp word [esi], 0x2a
jne 0x1006ac5
cmp word [esi + 2], ax
jne 0x1006ac5
push dword [ebp - 0x1a0]
push 0x2815
call fcn.01006518
mov esi, dword [sym.imp.msvcrt.dll__getch]
pop ecx
pop ecx
xor edi, edi
call esi
cbw
mov word [ebp - 0x194], ax
cmp ax, 0xd
je 0x1006a5f
lea eax, [ebp - 0x194]
movzx eax, word [eax]
cmp ax, 3
je 0x10069b8
cmp ax, 0x1a
je 0x10069b8
inc edi
call esi
movsx cx, al
lea eax, [ebp + edi*2 - 0x194]
mov word [eax], cx
cmp cx, 0xd
jne 0x1006a31
push 0x2830
call fcn.01006518
xor eax, eax
mov word [ebp + edi*2 - 0x194], ax
lea eax, [ebp - 0x194]
pop ecx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1006a7d
sub eax, edx
sar eax, 1
lea edi, [eax + 1]
lea eax, [edi + edi]
push eax
call fcn.01006572
mov esi, eax
lea eax, [ebp - 0x194]
push eax
push edi
push esi
call fcn.01004da2
mov edi, eax
test edi, edi
jge 0x1006abf
push edi
call fcn.010065ad
push eax
push edi
push 0x278b
jmp 0x10069db
mov edi, dword [ebp - 0x198]
push dword [ebp - 0x19c]
push esi
push ebx
push edi
call sub.SspiCli.dll_SspiEncodeStringsAsAuthIdentity
pop edi
pop esi
pop ebx
test eax, eax
je 0x1006ae9
push 0x2725
call fcn.01006518
jmp 0x10069b7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01005f24
leave
ret 0xc