joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405689
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00401cbc
mov dword [ebp - 0x14], eax
cmp dword [0x412f18], esi
jne 0x40577c
push 0x800
push esi
push 0x40d414
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x405709
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40585c
push esi
push esi
push 0x40d414
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40585c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40585c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x412f18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x412f1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x412f20], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x412f28], eax
test eax, eax
je 0x405779
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x412f24], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4057a1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405794
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4057b6
push 4
pop eax
jmp 0x40585e
cmp dword [ebp - 0x14], esi
je 0x4057b6
push dword [0x412f18]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40579b
mov eax, dword [0x412f24]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x405814
cmp dword [0x412f28], edi
je 0x405814
push eax
call ebx
push dword [0x412f28]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405814
test eax, eax
je 0x405814
call ecx
test eax, eax
je 0x405809
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x405809
test byte [ebp - 8], 1
jne 0x405814
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x405844
mov eax, dword [0x412f1c]
cmp eax, edi
je 0x405841
push eax
call ebx
test eax, eax
je 0x405841
call eax
mov esi, eax
test esi, esi
je 0x405841
mov eax, dword [0x412f20]
cmp eax, edi
je 0x405841
push eax
call ebx
test eax, eax
je 0x405841
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x412f18]
call ebx
test eax, eax
je 0x40585c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40585e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x40b5e0
Capabilities:
Create process on windows
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x46c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x44
lea eax, [ebp - 0x46c]
mov esi, ecx
push 0
push eax
call fcn.00403350
add esp, 0xc
mov dword [ebp - 0x46c], 0x44
xor eax, eax
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x40b659
mov eax, 0x7f
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.0040109a
add esp, 8
test eax, eax
je 0x40b645
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040107b
add esp, 8
cmp word [ebp + eax*2 - 0x416], 0x5c
jne 0x40b6c0
lea eax, [eax*2 - 2]
cmp eax, 0x208
jae 0x40b7d9
xor ecx, ecx
mov word [ebp + eax - 0x414], cx
lea ecx, [ebp - 0x414]
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b6f6
test dx, dx
je 0x40b6f2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b6f6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b6d0
xor eax, eax
jmp 0x40b6fb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b70c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push str.SETUP64.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0040100f
add esp, 0xc
test eax, eax
jne 0x40b645
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x46c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40b645
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x418], 0x103
push 0x64
call esi
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
je 0x40b799
cmp dword [ebp - 0x418], 0x103
je 0x40b774
jmp 0x40b7a3
mov dword [ebp - 0x418], 0x7f
mov eax, dword [ebp - 0x424]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test eax, eax
je 0x40b7b7
push eax
call esi
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x40b7c4
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x418]
xor ecx, ebp
pop esi
call fcn.00401000
mov esp, ebp
pop ebp
ret
call fcn.0040150b
int3
Function at 0x401a01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, 8
call sub.MFC42.DLL_CString::Empty
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 0xc]
and edx, 0x10
test edx, edx
jne 0x401a67
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
push 1
push 1
lea edx, [ebp - 4]
push edx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
movsx eax, byte [ebp - 4]
cmp eax, 0xa
je 0x401a4f
movsx ecx, byte [ebp - 4]
cmp ecx, 0xd
jne 0x401a56
mov eax, 1
jmp 0x401a7f
mov dl, byte [ebp - 4]
push edx
mov ecx, dword [ebp - 8]
add ecx, 8
call sub.MFC42.DLL_CString::operator
jmp 0x401a15
mov ecx, dword [ebp - 8]
add ecx, 8
call fcn.00402110
test eax, eax
je 0x401a7a
xor eax, eax
jmp 0x401a7f
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x402a9b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x412438], 0
je 0x402aaf
jmp 0x402bf3
push 0
call dword [sym.imp.USER32.dll_GetWindowDC]
mov dword [ebp - 0x18], eax
push 8
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 4], eax
push 0xa
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x18]
push edx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push 0
mov eax, dword [ebp + 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov eax, dword [ebp - 4]
cdq
mov ecx, 0xc
idiv ecx
push eax
mov eax, dword [ebp - 4]
cdq
mov ecx, 0xa
idiv ecx
push eax
mov eax, dword [ebp - 4]
shl eax, 1
cdq
mov ecx, 0xe
idiv ecx
mov edx, dword [ebp - 0x14]
sub edx, eax
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0xd
cdq
mov ecx, 0xf
idiv ecx
push eax
push 0x80400000
push 0x41244c
push 0x4110c8
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x412438], eax
cmp dword [0x412438], 0
jne 0x402b54
jmp 0x402bf3
push 0
mov eax, dword [ebp - 4]
cdq
mov ecx, 0xc
idiv ecx
push eax
mov eax, dword [ebp - 4]
cdq
mov ecx, 0xa
idiv ecx
push eax
mov eax, dword [ebp - 4]
shl eax, 1
cdq
mov ecx, 0xe
idiv ecx
mov edx, dword [ebp - 0x14]
sub edx, eax
push edx
mov eax, dword [ebp - 4]
imul eax, eax, 0xd
cdq
mov ecx, 0xf
idiv ecx
push eax
push 0xffffffffffffffff
mov edx, dword [0x412438]
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
push 1
mov eax, dword [0x412438]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.Touch32Ex.dll_GetTouchMouseMode]
add esp, 4
mov edx, dword [ebp - 0x10]
and edx, 0x40000000
test edx, edx
je 0x402bd7
push 0
mov eax, dword [0x412438]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x402be6
push 1
mov ecx, dword [0x412438]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x412438]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40372a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
mov dword [ebp - 4], 4
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
mov ecx, 0xa
mov esi, str.SystemCurrentControlSetServicesTouchkit
lea edi, [ebp - 0x40]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
lea ecx, [ebp - 0x40]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4037b8
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push str.MaxRotation
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4037ae
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
jmp 0x4037bb
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4083a5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x4083d6
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
push 0x4082d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret

Function at 0x409a21
Capabilities:
Persist via windows service
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x4123ac
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409b72
cmp dword [ebp - 0xc], 1
jne 0x409aaa
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
je 0x409aa0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409b72
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], 2
jne 0x409b72
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409b1f
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x18]
push edx
push 0
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409b09
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
jmp 0x409b1d
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x409b72
jmp 0x409b68
cmp dword [ebp - 8], 2
jne 0x409b68
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], ecx
push 4
lea edx, [ebp - 0x18]
push edx
push 4
push 0
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409b60
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x409b72
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x18]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x409b78
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SYSTEMCurrentControlSetServicesTouchkit
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x409bec
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x409be2
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x409bec
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 8
Function at 0x102a9bc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x102a9d8
test al, 0x10
jne 0x102a9d8
xor eax, eax
inc eax
jmp 0x102a9da
xor eax, eax
pop ebp
ret 4

Function at 0x103008f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, eax
mov dword [ebp - 0x14], eax
push esi
mov esi, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
shr esi, 1
xor ecx, ecx
and ebx, 1
and esi, 1
stosd dword es:[edi], eax
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ebx
mov eax, 0x102ff3a
cmp dword [ebp + 8], ecx
jne 0x10300d7
mov eax, 0x102ff01
lea edx, [ebp + 0x10]
push edx
push ecx
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1030108
call fcn.01091f43
push eax
push 0x1c0012f
mov dword [ebp - 4], eax
call fcn.0108c55a
jmp 0x1030190
push 0
push esi
push ebx
push dword [ebp + 8]
call fcn.0102ff7a
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x1f4
jmp 0x103012a
cmp dword [ebp - 4], 0x102
jne 0x103017a
push ebx
push dword [ebp + 0xc]
call edi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0102ff7a
cmp dword [ebp - 4], 0
jne 0x1030121
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x103016a
call fcn.01091f43
push eax
mov dword [ebp - 4], eax
push 0x1d6012f
jmp 0x1030182
cmp dword [ebp - 4], 0
je 0x1030187
push dword [ebp - 4]
push 0x1d9012f
jmp 0x1030182
push dword [ebp - 4]
push 0x1e2012f
call fcn.0108c55a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1031e8f
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x10d2280]
neg eax
push ebx
sbb eax, eax
push esi
add eax, 0x8b9
push eax
call fcn.0108bc14
push eax
push 0x1002cc0
call fcn.0109c1a8
mov eax, dword [0x10d2280]
neg eax
pop ecx
sbb eax, eax
pop ecx
and eax, 0xff000000
add eax, 0x1000000
push eax
xor ebx, ebx
push ebx
push ebx
push ebx
push 0x1002c98
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 4], eax
cmp eax, ebx
jne 0x1031efa
call fcn.01091f43
mov esi, eax
push esi
push 0x34c0140
call fcn.0108c55a
jmp 0x103203d
mov ecx, dword [0x10d2280]
push edi
mov edi, dword [ebp + 8]
neg ecx
sbb ecx, ecx
push ebx
and ecx, 0x80000000
or ecx, 0x1000
push ecx
push 0xffffffffffffffff
push 0x1002c7c
push edi
push eax
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov dword [ebp + 8], eax
cmp eax, ebx
jne 0x1031f4d
call fcn.01091f43
mov esi, eax
cmp esi, ebx
je 0x1031f4d
push 0x80072ee6
push esi
push 0x35f0140
push edi
call fcn.0108c4ae
jmp 0x1031fed
cmp dword [0x10d2280], ebx
je 0x1031f71
cmp dword [0x10d2284], ebx
je 0x1031f94
push edi
call fcn.010310d6
mov esi, eax
cmp esi, ebx
je 0x1031f94
push esi
push 0x3670140
jmp 0x1031fe8
cmp dword [0x10d2284], ebx
je 0x1031f94
cmp dword [ebp + 8], ebx
je 0x1031f94
push dword [ebp + 8]
call fcn.010315d6
mov esi, eax
cmp esi, ebx
je 0x1031f94
push esi
push 0x36f0140
jmp 0x1031fe8
push dword [ebp + 0xc]
push edi
push dword [ebp + 8]
call fcn.01031891
mov esi, eax
cmp esi, ebx
je 0x1031fb1
push esi
push 0x3730140
call fcn.0108c55a
cmp dword [0x10d2280], ebx
jne 0x1031fde
cmp dword [0x10d2284], ebx
je 0x1031fde
push edi
call fcn.010310d6
mov edi, eax
cmp edi, ebx
je 0x1031fd8
push edi
push 0x3780140
call fcn.0108c55a
cmp esi, ebx
jne 0x1031fe2
mov esi, edi
cmp esi, ebx
je 0x1031fed
push esi
push 0x37e0140
call fcn.0108c55a
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp + 8], ebx
je 0x103201b
push dword [ebp + 8]
call edi
test eax, eax
jne 0x103201b
call fcn.01091f43
mov ebx, eax
push ebx
push 0x3860140
call fcn.0108c55a
test esi, esi
jne 0x1032019
mov esi, ebx
xor ebx, ebx
push dword [ebp - 4]
call edi
test eax, eax
jne 0x103203c
call fcn.01091f43
mov edi, eax
push edi
push 0x3920140
call fcn.0108c55a
cmp esi, ebx
jne 0x103203c
mov esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x10345ef
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
push ebx
push esi
push edi
xor esi, esi
mov dl, 1
movzx eax, si
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
and edi, ecx
shr ax, 1
xor di, ax
movzx eax, di
mov bl, al
and bl, dl
movzx edi, bl
neg edi
sbb edi, edi
shr ax, 1
and edi, ecx
xor di, ax
mov eax, dword [ebp + 8]
mov word [eax + esi*2], di
inc esi
cmp esi, 0x100
jl 0x1034601
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x10346d1
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
movzx eax, word [edx]
je 0x1034705
push esi
push edi
movzx edi, byte [ecx]
movzx esi, al
xor esi, edi
mov edi, dword [ebp + 8]
shr ax, 8
xor ax, word [edi + esi*2]
inc ecx
dec dword [ebp + 0x14]
movzx eax, ax
jne 0x10346e7
pop edi
pop esi
mov word [edx], ax
pop ebp
ret 0x10
Function at 0x1037a1e
Capabilities:
Get domain controller name
List groups for user account

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.010a715f
mov edi, eax
cmp edi, ebx
je 0x1037a58
push edi
push 0x1b920133
jmp 0x1037b36
cmp dword [ebp - 4], ebx
je 0x1037b0c
push 0x24
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x1037b0c
lea eax, [ebp - 0x10]
push eax
push SysReAllocString
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
cmp eax, ebx
je 0x1037aa2
push eax
call fcn.01091f0e
mov edi, eax
push edi
push 0x1ba50133
jmp 0x1037b36
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push ebx
push dword [ebp - 4]
push dword [eax]
call sub.NETAPI32.dll_NetUserGetGroups
cmp eax, ebx
je 0x1037ad2
push eax
call fcn.01091f0e
mov edi, eax
push edi
push 0x1bb30133
jmp 0x1037b36
push 0x81b
call fcn.0108bc14
push eax
push 0x100456c
call fcn.0109c1a8
pop ecx
xor esi, esi
pop ecx
cmp dword [ebp + 8], ebx
jbe 0x1037b08
mov eax, dword [ebp - 0xc]
push dword [eax + esi*4]
push 0x1001d5c
call fcn.0109c1a8
inc esi
pop ecx
pop ecx
cmp esi, dword [ebp + 8]
jb 0x1037af0
xor edi, edi
jmp 0x1037b3b
push 0x85c
call fcn.0108bc14
push eax
call fcn.0109c1a8
mov dword [esp], 0x1004310
call fcn.0109c1a8
pop ecx
mov eax, 0x80070057
push eax
mov edi, eax
push 0x1b990133
call fcn.0108c55a
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], ebx
je 0x1037b4b
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], ebx
je 0x1037b55
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], ebx
je 0x1037b62
push dword [ebp - 0xc]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1046881
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
push esi
push edi
mov edi, dword [ebp + 0x18]
mov dword [ebp + 0x18], edi
cmp dword [ebp + 0x1c], edi
jbe 0x10468c9
mov eax, dword [ebp + 0x1c]
sub eax, edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 8], eax
test eax, eax
jne 0x10468c9
mov eax, 0x8007000e
push eax
push 0x6c013e
mov esi, eax
call fcn.0108c55a
jmp 0x1046982
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], ebx
jle 0x104697f
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
xor eax, eax
cmp dword [ebp + 8], 0x10
setne al
add eax, 0x8003
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10469a8
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp - 4]
call esi
test eax, eax
je 0x10469b7
mov eax, dword [ebp + 0x18]
cmp dword [ebp + 0x1c], eax
jbe 0x104694d
mov ecx, dword [ebp + 0x1c]
sub ecx, eax
push ecx
push ebx
push dword [ebp - 8]
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0x1c]
sub eax, dword [ebp + 0x18]
add esp, 0xc
push 0
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call esi
test eax, eax
je 0x10469c6
push 0
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x14]
mov dword [ebp + 0x18], edi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x10469d5
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
and dword [ebp - 4], 0
inc ebx
cmp ebx, dword [ebp + 0x10]
jl 0x10468ed
xor esi, esi
pop ebx
cmp dword [ebp - 8], 0
je 0x1046991
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 4], 0
je 0x10469a0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
pop edi
mov eax, esi
pop esi
leave
ret 0x18
call fcn.01091f43
mov esi, eax
push esi
push 0x7d013e
jmp 0x10469e2
call fcn.01091f43
mov esi, eax
push esi
push 0x85013e
jmp 0x10469e2
call fcn.01091f43
mov esi, eax
push esi
push 0x97013e
jmp 0x10469e2
call fcn.01091f43
mov esi, eax
push esi
push 0xa6013e
call fcn.0108c55a
jmp 0x1046981