joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ead1
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [0x103b554]
xor ebx, ebx
push ebx
push 6
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov edi, 0x148
cmp esi, ebx
je 0x101a0e0
push edi
push ebx
push ebx
push 6
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x101a156
cmp dword [ebp - 4], ebx
jl 0x100eb4a
mov dword [0x103a058], esi
mov dword [0x103a05c], eax
cmp dword [ebp - 4], ebx
jl 0x101a16e
mov eax, dword [section..data]
pop edi
pop esi
pop ebx
cmp eax, section..data
je 0x100eb45
test byte [eax + 0x1c], 4
jne 0x101a182
mov eax, dword [ebp - 4]
leave
ret
cmp esi, ebx
jne 0x101a162
jmp 0x100eb23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x101a141
push 0x20015
lea eax, [ebp - 0x24]
push eax
call fcn.01022519
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x101a16e
push dword [0x103b554]
lea eax, [ebp - 0x24]
push edi
push ebx
mov dword [ebp - 0xc], eax
push 0x8000004
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
cmp esi, ebx
jne 0x101a136
mov dword [ebp - 4], 0x80041003
push dword [ebp - 0x14]
call fcn.0100147d
pop ecx
jmp 0x101a148
mov dword [ebp - 4], 0x80041003
cmp dword [ebp - 4], ebx
jge 0x100eaff
jmp 0x100eb4a
mov dword [ebp - 4], 0x80041003
jmp 0x100eb13
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100eb23
push dword [ebp - 4]
call sub.wbemcomn.dll_class_CMemoryLog____stdcall_GetMemLogObject_void_
mov ecx, eax
call sub.wbemcomn.dll_public:_void___thiscall_CMemoryLog::Write_long_int_
jmp 0x100eb2c
cmp byte [eax + 0x19], 2
jb 0x100eb45
push dword [ebp - 4]
push 0x101fc54
push 0xd
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01022f67
jmp 0x100eb45

Function at 0x100f408
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push 0x100f4a4
push 0x80000002
mov dword [0x103a034], 0x40000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100f468
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0x103a034
lea eax, [ebp - 0xc]
push eax
push 0
push 0x100f470
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x103a034]
leave
ret
Function at 0x100f643
Capabilities:
Terminate process

Disassembly:
test byte [ebp - 0x3c], 1
jne 0x101e3be
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call 0x1006207
mov dword [0x103a0a4], eax
cmp dword [0x103a098], 0
jne 0x101e40f
push eax
call dword [sym.imp.msvcrt.dll_exit]
nop
nop
nop
nop
nop
mov edi, edi
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call fcn.0100f80f
call dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCache]
call fcn.0100fc7c
test eax, eax
jl 0x100626c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0100fb2d
test eax, eax
jne 0x1006267
push dword [ebp + 8]
call fcn.0100e90d
mov dword [0x103a038], eax
test eax, eax
je 0x1006259
push dword [ebp - 4]
call fcn.01005e53
push dword [0x103a038]
push dword [ebp + 8]
call fcn.0101783f
call fcn.01017edf
call fcn.01017d00
xor eax, eax
leave
ret 0x10
call fcn.0100ef6e
push 0x58
push 0x100f7b0
call fcn.01002680
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x103a114
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x101e36f
xor esi, esi
inc esi
mov eax, dword [0x103a0dc]
cmp eax, esi
je 0x101e38d
mov eax, dword [0x103a0dc]
test eax, eax
jne 0x100f7e7
mov dword [0x103a0dc], esi
push 0x100f7a8
push 0x100f79c
call fcn.0100f61a
pop ecx
pop ecx
test eax, eax
jne 0x101e433
mov eax, dword [0x103a0dc]
cmp eax, esi
jne 0x100f6f4
push 0x100f798
push 0x100f740
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x103a0dc], 2
test ebx, ebx
jne 0x100f700
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x103b6e0], 0
jne 0x101e39a
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
jbe 0x100f7d8
cmp al, 0x22
je 0x101e3c7
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
jne 0x101e3d7
inc esi
jmp 0x100f714
test al, al
je 0x100f7f2
cmp dword [ebp - 0x1c], 0
je 0x100f7f2
jmp 0x100f721
mov dword [0x103bc28], esi
jmp 0x100f6d0
mov al, byte [esi]
test al, al
je 0x10061ce
cmp al, 0x20
ja 0x10061ce
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100f7f2
cmp eax, esi
jne 0x101e37d
xor esi, esi
inc esi
mov ebx, esi
jmp 0x100f697
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100f682
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x100f6d0
push 0x103b6e0
call fcn.01031a33
pop ecx
test eax, eax
je 0x100f70d
push 0
push 2
push 0
call dword [0x103b6e0]
jmp 0x100f70d
movzx eax, word [ebp - 0x38]
jmp 0x10061db
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
jmp 0x100f729
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100f73c
cmp dword [0x103bc28], 0
jne 0x101e41e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x103a0a4]
jmp 0x101e43f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010026d0
ret
Function at 0x100fb2d
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp eax, edi
je 0x100fbd0
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcstok]
push esi
mov esi, 0x100fc0c
push esi
push eax
call ebx
push esi
push edi
call ebx
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100fbce
mov esi, dword [sym.imp.KERNEL32.dll_CompareStringW]
push 0xffffffffffffffff
push 0x100fbf4
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x101938a
push 0xffffffffffffffff
push 0x100fbd8
push 0xffffffffffffffff
push edi
push 1
push 0x7f
call esi
cmp eax, 2
je 0x101939b
push 0xffffffffffffffff
push 0x100fc14
push 0xffffffffffffffff
push edi
xor edi, edi
inc edi
push edi
push 0x7f
call esi
cmp eax, 2
je 0x101040c
push 0x100fc0c
push 0
call ebx
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x100fb70
pop esi
pop ebx
mov eax, dword [ebp - 4]
pop edi
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x100fbbd
mov dword [ebp - 4], 1
call fcn.01022289
jmp 0x100fbce
mov dword [ebp - 4], 1
call fcn.01022201
jmp 0x100fbce

Function at 0x100ffc3
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20119
push 0
push 0x1010060
push 0x80000002
mov dword [0x103a0d8], 0x8000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101002f
and dword [ebp - 8], eax
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x1010038
push dword [ebp - 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x101e609
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov eax, dword [0x103a0d8]
leave
ret
cmp dword [ebp - 4], esi
jne 0x1010025
mov eax, dword [ebp - 8]
shl eax, 0xa
mov dword [0x103a0d8], eax
jmp 0x1010025

Function at 0x10115c6
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
push esi
call dword [eax + 0xc]
lea ebx, [esi + 0x50]
push ebx
push 0
push esi
push 0x1006111
push dword [esi + 0x58]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x4c], eax
test eax, eax
je 0x1019f25
push edi
push 1
mov edi, 0x103a118
push edi
call fcn.01002b50
mov ecx, dword [0x103a050]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push ebx
mov dword [ebp - 4], esi
call fcn.01010dc4
push edi
mov esi, eax
call fcn.01002b10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov esi, 0x80000001
jmp 0x1011627
Function at 0x1020e74
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c0
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1ac], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.msvcrt.dll__itow]
mov dword [ebp - 0x1b0], eax
push 0xa
lea eax, [ebp - 0x1a8]
push eax
push dword [ebp + 0xc]
call esi
push 0xa
lea eax, [ebp - 0xe0]
push eax
push dword [ebp + 0x10]
call esi
push 0xa
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1b0]
call esi
add esp, 0x24
lea eax, [ebp - 0x1a8]
mov dword [ebp - 0x1bc], eax
push ebx
lea eax, [ebp - 0xe0]
mov dword [ebp - 0x1b8], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x1b4], eax
lea eax, [ebp - 0x1c0]
push eax
push ebx
push 4
push ebx
push 0xc00015ec
push ebx
push 2
push dword [0x103a060]
mov dword [ebp - 0x1c0], edi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
test eax, eax
jne 0x1020f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1020f35
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x1ac], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1ac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006c81
leave
ret 0xc
Function at 0x1021fb1
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
mov esi, 0x100
push esi
lea eax, [ebp - 0x204]
push eax
mov dword [ebp - 0x20c], ecx
call fcn.01006e65
xor eax, eax
cmp edi, eax
je 0x1022016
push 0x1006e5c
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.0100bba9
push edi
push esi
lea eax, [ebp - 0x204]
push eax
call fcn.0100bba9
xor eax, eax
push eax
lea ecx, [ebp - 0x208]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
lea eax, [ebp - 0x204]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x1022041
xor eax, eax
jmp 0x102207b
test ebx, ebx
je 0x102206c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push ebx
push 1
push 0
push dword [ebp - 0x20c]
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x102203d
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01006c81
leave
ret 0x10

Function at 0x1022091
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea esi, [ebp + 0x10]
lea edi, [ebp - 0x414]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, 0x80
push esi
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
push 0x100ad54
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.01006e65
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x104]
push eax
call fcn.0100bba9
push 0x101fc38
lea eax, [ebp - 0x104]
push eax
push 0x10221f0
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.01021f52
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x204]
push eax
mov ebx, 0x80000000
push ebx
call edi
cmp dword [ebp + 8], 0
je 0x1022199
push 0x101fc28
push esi
lea eax, [ebp - 0x304]
push eax
call fcn.01006e65
lea eax, [ebp - 0x404]
push eax
push esi
lea eax, [ebp - 0x304]
push eax
call fcn.0100bba9
push 0
push 0
lea eax, [ebp - 0x304]
push eax
push ebx
call edi
push 0x100b19c
lea eax, [ebp - 0x104]
push eax
push 0x10221f0
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.01021f52
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push ebx
call edi
cmp dword [ebp + 0xc], 0
je 0x10221ce
push 0x101fc08
lea eax, [ebp - 0x104]
push eax
push 0x10221f0
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.01021f52
add esp, 0x14
push 0
push 0
lea eax, [ebp - 0x204]
push eax
push ebx
call edi
push 0
push 0
lea eax, [ebp - 0x104]
push eax
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.01006c81
leave
ret 0x18
Function at 0x1036333
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x103a02c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x103637a
cmp dword [ebp - 0x108], 2
jne 0x103637a
cmp dword [ebp - 0x114], 5
jb 0x103637a
xor eax, eax
inc eax
jmp 0x103637c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01006c81
leave
ret
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
mov ebx, 0x40de38
mov ecx, 0x5e5567b0
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x18e21a1a
nop
nop
nop
nop
test eax, eax
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401385
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
cmp word [eax], 0x22
jne 0x4013b8
add eax, 2
jmp 0x4013a5
cmp cx, 0x22
je 0x4013ad
inc eax
inc eax
movzx ecx, word [eax]
test cx, cx
jne 0x40139d
cmp word [eax], 0
je 0x4013bd
add eax, 2
jmp 0x4013bd
call fcn.00401057
call fcn.00491000
mov esi, eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x18], 1
jne 0x4013e1
mov word [ebp - 0x14], 0xa
movzx eax, word [ebp - 0x14]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call main
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x1001387
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x100407c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x120]
push eax
xor edi, edi
xor esi, esi
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10013d6
cmp byte [ebp - 6], 1
jne 0x10013cd
test dword [ebp - 8], 0x200
je 0x10013d6
inc esi
cmp byte [ebp - 6], 2
jne 0x10013d6
or esi, 4
lea eax, [ebp - 0x124]
push eax
push 0x20019
push edi
push 0x1001148
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100141f
push edi
push edi
push edi
push edi
push 0x100112c
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1001413
or esi, 2
push dword [ebp - 0x124]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.010025ff
leave
ret

Function at 0x100145c
Capabilities:
Acquire credentials from windows credential manager

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
push 2
mov dword [ebp - 8], ebx
xor edi, edi
call fcn.01002034
mov esi, eax
cmp esi, ebx
je 0x1001488
mov dword [0x1004a68], esi
push 0x9d9
jmp 0x1001490
xor edi, edi
inc edi
push 0x9da
call fcn.01001f33
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CredEnumerateW]
test eax, eax
je 0x1001584
cmp dword [ebp - 8], ebx
jbe 0x1001575
push 0x9e4
call fcn.01001f33
mov eax, dword [ebp - 4]
mov esi, ebx
shl esi, 2
mov eax, dword [esi + eax]
push str.Session
push dword [eax + 8]
call dword [sym.imp.msvcrt.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x10014eb
push 0x9e5
call fcn.01001f33
jmp 0x10014f9
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax]
push dword [eax + 8]
call fcn.01001dd7
push 0x10011ac
call fcn.01001dd7
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax]
push dword [eax + 4]
call fcn.01001343
push 0x9dd
mov dword [0x1004a68], eax
call fcn.01001f33
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax]
mov edx, dword [eax + 0x30]
test edx, edx
je 0x1001557
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1001532
sub eax, edi
sar eax, 1
je 0x1001557
push edx
call fcn.010012c8
push 0x9de
mov dword [0x1004a68], eax
call fcn.01001f33
mov eax, dword [ebp - 4]
mov eax, dword [esi + eax]
push dword [eax + 0x20]
call fcn.01001365
push eax
call fcn.01001dd7
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x10014b6
cmp dword [ebp - 4], 0
je 0x1001584
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CredFree]
cmp dword [ebp - 8], 0
pop edi
pop esi
pop ebx
jne 0x1001597
push 0x9e0
call fcn.01001f33
xor eax, eax
leave
ret
Function at 0x1001dd7
Capabilities:
Write file on windows

Disassembly:
push 0x1c
push 0x1002b50
call fcn.0100262c
xor esi, esi
mov dword [ebp - 0x24], esi
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, 0xffffffff
je 0x1001ec3
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x1001ec3
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
cmp eax, esi
je 0x1001e46
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x1001e28
sub eax, edx
sar eax, 1
push esi
lea ecx, [ebp - 0x24]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1001ec3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x1001ec3
mov dword [ebp - 4], esi
call fcn.010026c0
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x20], eax
jmp 0x1001e85
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x20], esi
je 0x1001ec3
push esi
push esi
push dword [ebp - 0x28]
push dword [ebp - 0x20]
push 0xffffffffffffffff
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleOutputCP]
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
je 0x1001ec3
push esi
lea ecx, [ebp - 0x24]
push ecx
dec eax
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x3c]
call fcn.01002674
ret 4

Function at 0x1001f4f
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
jne 0x1001f60
xor eax, eax
jmp 0x1001fcd
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
jg 0x1001f6c
xor eax, eax
jmp 0x1001fcc
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [sym.imp.msvcrt.dll_malloc]
mov dword [0x1004a88], eax
lea eax, [ebx*4 + 4]
push eax
mov dword [0x1004a80], esi
mov dword [0x1004a8c], ebx
call edi
mov esi, eax
pop ecx
mov dword [0x1004a84], esi
test esi, esi
je 0x1001fb5
lea eax, [ebx*4 + 4]
push eax
call edi
pop ecx
mov dword [0x1004a7c], eax
test eax, eax
jne 0x1001fb9
xor eax, eax
jmp 0x1001fcb
sub esi, eax
and dword [esi + eax], 0
and dword [eax], 0
add eax, 4
dec ebx
jne 0x1001fbb
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
pop ebp
ret 8
Function at 0x1002106
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ebx, ebx
cmp eax, ebx
je 0x1002140
cmp word [eax], bx
je 0x1002140
mov ecx, eax
lea edx, [ecx + 2]
mov si, word [ecx]
inc ecx
inc ecx
cmp si, bx
jne 0x1002124
sub ecx, edx
sar ecx, 1
add ecx, ecx
mov edx, eax
cmp ecx, ebx
je 0x1002140
mov byte [edx], bl
inc edx
dec ecx
jne 0x100213a
xor edi, edi
cmp dword [ebp + 8], ebx
jle 0x1002171
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x100216b
cmp byte [ecx], bl
je 0x100216b
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x1002158
sub ecx, esi
mov edx, eax
je 0x100216b
mov byte [edx], bl
inc edx
dec ecx
jne 0x1002165
inc edi
cmp edi, dword [ebp + 8]
jl 0x1002147
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10025f0
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002b70
call fcn.01002874
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, 0x1004df0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002405
cmp eax, esi
jne 0x10023f8
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002408
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10023df
xor esi, esi
inc esi
mov eax, dword [0x1004dec]
cmp eax, esi
jne 0x100241b
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002456
mov eax, dword [0x1004dec]
test eax, eax
jne 0x1002450
mov dword [0x1004dec], esi
push 0x100110c
push 0x1001100
call fcn.0100235c
pop ecx
pop ecx
test eax, eax
je 0x1002456
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002520
mov dword [0x1004ab0], esi
mov eax, dword [0x1004dec]
cmp eax, esi
jne 0x100247a
push 0x10010fc
push 0x10010f4
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004dec], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002487
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004df4], ebx
je 0x10024a8
push 0x1004df4
call fcn.010027e9
pop ecx
test eax, eax
je 0x10024a8
push ebx
push 2
push ebx
call dword [0x1004df4]
push dword [0x1004a98]
push dword [0x1004a9c]
push dword [0x1004a94]
call fcn.01001b43
add esp, 0xc
mov dword [0x1004aac], eax
cmp dword [0x1004aa0], ebx
jne 0x1002506
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 [0x1004ab0], ebx
jne 0x1002514
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004aac]
call fcn.010028b9
ret
call fcn.01002997
jmp 0x10023bd