joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466860
Capabilities:
Get file size
Read file via mapping
Terminate process

Disassembly:
sub esp, 0x214
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x210], eax
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x18]
push eax
xor edi, edi
push edi
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
push 0x80
push 3
push edi
push 7
push connect
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46691f
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46690a
push edi
push edi
push edi
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x46690a
push ebp
push ebp
push ebp
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x46690a
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x18]
push ecx
push ebx
push eax
call dword [sym.imp.imagehlp.dll_CheckSumMappedFile]
test eax, eax
je 0x466908
mov edx, dword [esp + 0x14]
cmp edx, dword [esp + 0x10]
jne 0x466908
mov ebp, 1
jmp 0x46690a
xor ebp, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
pop ebx
test edi, edi
je 0x46691b
push edi
call esi
test ebp, ebp
jne 0x46693e
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00486dc0
add esp, 0x214
ret

Function at 0x467300
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x49f21b
mov eax, dword fs:[0]
push eax
sub esp, 0x84
push esi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0xb30]
mov eax, dword [ecx]
mov eax, dword [eax + 0x28]
lea edx, [esp + 8]
push edx
call eax
push eax
lea ecx, [esi + 0xb74]
mov dword [esp + 0x98], 0
call fcn.00402240
lea ecx, [esp + 8]
mov dword [esp + 0x94], 0xffffffff
call fcn.00401fd0
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa4]
mov dword [0x4cda20], edx
mov dword [0x4cd9f4], ecx
mov ecx, dword [eax]
mov dword [0x4cda18], ecx
movzx edx, word [eax + 4]
mov eax, dword [esp + 0xa8]
mov dword [0x4cda14], eax
mov eax, dword [esp + 0xac]
mov word [0x4cda1c], dx
mov ecx, dword [eax]
mov dword [0x4cda0c], ecx
movzx edx, word [eax + 4]
mov eax, dword [esp + 0xb0]
mov dword [0x4cda08], eax
mov eax, dword [esp + 0xb4]
mov word [0x4cda10], dx
mov ecx, dword [eax]
mov dword [0x4cda00], ecx
movzx edx, word [eax + 4]
mov word [0x4cda04], dx
mov ecx, dword [esi + 0xb54]
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
push 0
call edx
push 0
push 0
push 0
push 0x467250
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cda24], eax
mov eax, 1
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x90
ret 0x1c
Function at 0x467560
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0xc
push ebx
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 1
mov ebx, ecx
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x20], 0x4000
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x46761f
push ebp
push 0x4000
call fcn.0048690e
push 0x4000
mov ebp, eax
push 0
push ebp
call fcn.00487630
mov eax, dword [esp + 0x1c]
add esp, 0x10
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x10]
push edx
push eax
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
jne 0x467607
cmp dword [esp + 8], 1
jb 0x467607
mov eax, dword [ebx + 0xb50]
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx + 0x20]
push esi
call eax
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x467606
push edi
lea edi, [ebp + 0x14]
mov ecx, dword [edi]
push ecx
mov ecx, ebx
call fcn.00467180
inc esi
add edi, 0x20
cmp esi, dword [esp + 0x10]
jb 0x4675f1
pop edi
pop esi
test ebp, ebp
je 0x467614
push ebp
call fcn.00487d04
add esp, 4
mov edx, dword [esp + 0xc]
push edx
call sub.MPR.dll_WNetCloseEnum
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x469e80
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push 0x4a602c
lea ecx, [esi + 0x30]
call fcn.0040a7c0
push 0
push 0
mov dword [esi + 0xb48], eax
mov eax, dword [esi + 4]
push eax
push 0x469c60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cda28], eax
mov eax, 1
pop esi
ret

Function at 0x469ec0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
push str.Portscan
lea ecx, [esi + 0x30]
call fcn.0040a7c0
push 0
push 0
mov dword [esi + 0xb4c], eax
mov eax, dword [esi + 4]
push eax
push 0x469d70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4cda28], eax
pop esi
ret
Function at 0x46ab70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49e6ab
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x98]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xb40]
lea ecx, [eax + 0x6c0]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
test eax, eax
jl 0x46ac7a
mov ecx, dword [esi + 0xb40]
mov edx, dword [ecx + 0x550]
add ecx, 0x550
push eax
mov eax, dword [edx]
call eax
test eax, eax
je 0x46ac7f
mov edx, dword [eax + 0x550]
lea ecx, [eax + 0x550]
mov eax, dword [edx]
push 1
call eax
mov edx, dword [eax]
mov edx, dword [edx + 0x28]
lea ecx, [esp + 0x10]
push ecx
mov ecx, eax
call edx
sub esp, 0x84
mov edi, esp
push 0x4a632c
lea ebx, [esi + 0x928]
push 0x104
mov ecx, 0x21
lea esi, [esp + 0x9c]
push ebx
mov dword [esp + 0x130], 0
rep movsd dword es:[edi], dword [esi]
call fcn.00466960
push ebx
call fcn.00470070
add esp, 0x94
push 1
lea ecx, [esp + 0x14]
call fcn.00402010
push eax
push 0
push 0
push 0x4a6340
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [esp + 0x10]
mov dword [esp + 0xa0], 0xffffffff
call fcn.00401fd0
mov eax, 1
mov ecx, dword [esp + 0x98]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00486dc0
add esp, 0x94
ret
Function at 0x46adc0
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x49de1b
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x30]
push str.driverCombo
mov ecx, edi
call fcn.0040a7c0
push str.CmpNameCntTypeEdit
mov ecx, edi
mov dword [esi + 0xb58], eax
call fcn.0040a7c0
push str.IPcntTypeEdit
mov ecx, edi
mov dword [esi + 0xb5c], eax
call fcn.0040a7c0
push str.opt_ClickComputer
mov ecx, edi
mov dword [esi + 0xb60], eax
call fcn.0040a7c0
push str.opt_ClickIpaddress
mov ecx, edi
mov dword [esi + 0xb64], eax
call fcn.0040a7c0
mov ecx, dword [esi + 0xb5c]
mov edx, dword [esi + 0xb6c]
mov dword [esi + 0xb68], eax
mov eax, dword [ecx]
mov eax, dword [eax + 0x2c]
push edx
call eax
mov ecx, dword [esi + 0xb60]
mov edx, dword [ecx]
mov eax, dword [esi + 0xb70]
mov edx, dword [edx + 0x2c]
push eax
call edx
mov ecx, dword [esi + 0xb5c]
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
push 0
call edx
mov ecx, dword [esi + 0xb60]
mov eax, dword [ecx]
mov edx, dword [eax + 0x110]
push 0
call edx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call ebp
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048690e
add esp, 4
push eax
push edi
mov dword [esp + 0x1c], eax
call ebp
mov ebp, 0x5a
mov ebx, ebp
mov edi, dword [esp + 0x14]
cmp word [edi], 0
je 0x46af1a
lea ecx, [ecx]
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
movzx eax, word [edi]
cmp ax, bp
je 0x46af7d
mov eax, edi
lea edx, [eax + 2]
jmp 0x46af00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46af00
sub eax, edx
sar eax, 1
cmp word [edi + eax*2 + 2], cx
lea edi, [edi + eax*2 + 2]
jne 0x46aee0
push 0x568
call fcn.004872c3
add esp, 4
mov dword [esp + 0x18], eax
xor edi, edi
mov dword [esp + 0x68], edi
cmp eax, edi
je 0x46af3e
mov ecx, eax
call fcn.00413c10
mov edi, eax
push ebx
push 0x4a6408
lea eax, [esp + 0x24]
push 0x20
push eax
mov dword [esp + 0x78], 0xffffffff
call fcn.004679c0
mov edx, dword [edi]
mov edx, dword [edx + 0x2c]
add esp, 0x10
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call edx
mov eax, dword [esi + 0xb58]
lea ecx, [eax + 0x550]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
push edi
call edx
add ebp, 0xffff
dec ebx
cmp bp, 0x41
jae 0x46aed3
mov esi, dword [esi + 0xb58]
mov eax, dword [esi + 0x698]
mov edx, dword [eax + 0xc]
lea ecx, [esi + 0x698]
push 0
push 0
call edx
mov eax, dword [esp + 0x14]
push eax
call fcn.00487d04
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.00486dc0
add esp, 0x58
ret
Function at 0x46afe0
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0xb8
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0xb4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
push 0x4a6424
mov dword [esp + 0x34], esi
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edi
call fcn.00470070
add esp, 4
push 0x4a643c
lea ecx, [esi + 0x30]
call fcn.0040a7c0
lea ecx, [eax + 0x550]
mov dword [esi + 0xb3c], eax
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
call edx
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x18]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x30]
push eax
push 0x1f6
push edi
call sub.NETAPI32.dll_NetShareEnum
test eax, eax
jne 0x46b1d8
cmp dword [esp + 0x10], 1
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], ecx
mov dword [esp + 0x18], 1
jb 0x46b1ce
push ebx
push ebp
lea esp, [esp]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x40]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [eax]
push 0xffffffffffffffff
lea edx, [esp + 0x34]
push edx
push 1
push ecx
push edi
call sub.NETAPI32.dll_NetConnectionEnum
test eax, eax
jne 0x46b1b4
mov dword [esp + 0x1c], edi
cmp dword [esp + 0x14], edi
jbe 0x46b1aa
mov ebp, dword [esp + 0x24]
add ebp, 0x10
push 0x40
lea edx, [esp + 0x88]
push edi
push edx
call fcn.00487630
mov eax, dword [ebp - 8]
push eax
push 0x4a6448
lea ecx, [esp + 0x98]
push 0x40
push ecx
call fcn.004679c0
mov esi, dword [ebp]
mov eax, 0x91a2b3c5
imul esi
add edx, esi
sar edx, 0xb
mov edi, edx
shr edi, 0x1f
add edi, edx
mov eax, 0x88888889
imul esi
add edx, esi
mov ebx, edi
shl ebx, 4
sar edx, 5
sub ebx, edi
mov eax, edx
shr eax, 0x1f
add ebx, ebx
push 0x40
add eax, edx
add ebx, ebx
lea ecx, [esp + 0x64]
sub eax, ebx
push 0
push ecx
mov dword [esp + 0x58], eax
call fcn.00487630
mov eax, dword [esp + 0x58]
add ebx, eax
mov edx, ebx
shl edx, 4
sub edx, ebx
add edx, edx
add edx, edx
sub esi, edx
push esi
push eax
push edi
push 0x4a6450
lea eax, [esp + 0x7c]
push 0x40
push eax
call fcn.004679c0
mov edx, dword [ebp + 4]
add esp, 0x40
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [ecx + 0x18]
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x8c]
push eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.00466d90
mov eax, dword [esp + 0x1c]
inc eax
add ebp, 0x1c
xor edi, edi
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x14]
jb 0x46b0d2
mov ecx, dword [esp + 0x24]
push ecx
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [esp + 0x20]
add dword [esp + 0x10], 0x28
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 0x18]
jbe 0x46b090
pop ebp
pop ebx
mov edx, dword [esp + 0x20]
push edx
call sub.NETAPI32.dll_NetApiBufferFree
mov ecx, dword [esp + 0xbc]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00486dc0
add esp, 0xb8
ret
Function at 0x46c300
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x9c
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
mov dword [esp], 0
mov dword [esp + 4], 1
test eax, eax
jne 0x46c343
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00486dc0
add esp, 0x9c
ret
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push edx
push str._2x__2x__2x__2x__2x__2x
push eax
call fcn.004884b5
push 0x66
lea eax, [esp + 0x54]
push 0
push eax
call fcn.00487630
mov dl, byte [esp + 0x48]
add esp, 0x2c
or eax, 0xffffffff
push ebx
mov dword [esp + 0x34], eax
mov word [esp + 0x38], ax
lea eax, [esp + 0x3b]
mov ecx, 0x10
push esi
jmp 0x46c3a0
movzx ebx, byte [esp + 0x10]
mov byte [eax - 1], bl
movzx ebx, byte [esp + 0x14]
mov byte [eax], bl
movzx ebx, byte [esp + 0x18]
mov byte [eax + 1], bl
movzx ebx, byte [esp + 0x1c]
mov byte [eax + 2], bl
movzx ebx, byte [esp + 0x20]
mov byte [eax + 3], bl
mov byte [eax + 4], dl
add eax, 6
sub ecx, 1
jne 0x46c3a0
push ecx
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x46c46a
push 4
lea ecx, [esp + 0x10]
push ecx
push 0x20
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x46c463
push ebp
push edi
mov edx, 2
push 7
mov word [esp + 0x34], dx
call dword [sym.imp.WS2_32.dll_htons]
push 0xffffffffffffffff
mov word [esp + 0x36], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edi, dword [sym.imp.WS2_32.dll_sendto]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x34], eax
mov ebx, 0xa
push 0x10
lea eax, [esp + 0x34]
push eax
push 0
push 0x66
lea ecx, [esp + 0x50]
push ecx
push esi
call edi
cmp eax, 0xffffffff
je 0x46c458
mov dword [esp + 0x10], 1
push 0x64
call ebp
sub ebx, 1
jne 0x46c438
pop edi
pop ebp
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [esp + 0xa0]
mov eax, dword [esp + 8]
pop esi
pop ebx
xor ecx, esp
call fcn.00486dc0
add esp, 0x9c
ret
Function at 0x46c970
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
cmp byte [ebx + 0x48], 0
push edi
mov edi, ecx
je 0x46c994
add ebx, 4
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
jne 0x46c99e
push 0x80070057
call fcn.0046c4b0
cmp byte [edi + 8], 0
je 0x46c9ae
pop edi
xor al, al
pop ebx
add esp, 8
ret 4
mov eax, dword [edi]
mov edx, dword [eax + 4]
push esi
xor esi, esi
mov ecx, edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
call edx
test eax, eax
jbe 0x46ca74
push ebp
lea esp, [esp]
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
push esi
mov ecx, edi
call edx
mov esi, eax
add esi, 4
test ebx, ebx
je 0x46ca40
lea ebp, [esi + 4]
test ebp, ebp
je 0x46ca40
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x48], 0
je 0x46ca40
push ebx
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x46ca40
cmp byte [esi + 0x48], 0
je 0x46ca40
push ebp
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
setne al
test al, al
je 0x46ca40
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
test al, al
je 0x46ca40
mov edx, dword [edi]
mov eax, dword [esp + 0x14]
mov edx, dword [edx + 0xc]
push eax
mov ecx, edi
call edx
mov byte [esp + 0x13], 1
jmp 0x46ca44
inc dword [esp + 0x14]
mov eax, dword [edi]
mov edx, dword [eax + 4]
mov ecx, edi
call edx
mov esi, dword [esp + 0x14]
cmp esi, eax
jb 0x46c9d0
cmp byte [esp + 0x13], 0
pop ebp
je 0x46ca74
mov eax, dword [edi + 4]
push eax
call fcn.0048836e
add esp, 4
mov dword [edi + 4], 0
mov al, byte [esp + 0xf]
pop esi
pop edi
pop ebx
add esp, 8
ret 4
Function at 0x46e000
Capabilities:
Get user security identifier

Disassembly:
push 0xffffffffffffffff
push 0x49e13b
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0xe0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0xf8]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x108]
mov ebx, dword [esp + 0x10c]
mov esi, ecx
lea ecx, [esi + 0x50]
lea edi, [esi + 0x4c]
mov dword [edi], 7
mov dword [esp + 0x20], ecx
call fcn.0046caa0
lea ecx, [esi + 0x54]
mov dword [esp + 0x28], ecx
call fcn.0046caa0
lea ecx, [esi + 0x58]
call fcn.0046caa0
lea ecx, [esi + 0x5c]
mov dword [esp + 0x24], ecx
call fcn.0046caa0
xor eax, eax
mov byte [esi + 0x48], 0
cmp ebp, eax
je 0x46e1d8
mov dword [esp + 0x2c], eax
push pe_nt_image_headers32
lea ecx, [esp + 0x30]
mov dword [esp + 0x104], eax
call fcn.0046c6b0
mov eax, dword [esp + 0x2c]
push edi
lea ecx, [esp + 0x1c]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x2c], eax
lea eax, [esp + 0xc0]
push eax
push ebp
push ebx
mov dword [esp + 0x30], 0x44
mov dword [esp + 0x34], 0x80
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x46e140
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x46e198
cmp dword [esp + 0x14], 0x44
jbe 0x46e0ff
push 0x80004005
call fcn.0046c4b0
mov eax, dword [esp + 0x18]
cmp eax, 0x80
jbe 0x46e11c
push eax
lea ecx, [esp + 0x30]
call fcn.0046cc70
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
push edi
lea edx, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0xc0]
push edx
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x46e198
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xb0]
push eax
lea ecx, [esi + 4]
push ecx
push edx
mov byte [esi + 0x48], 1
call dword [sym.imp.ADVAPI32.dll_CopySid]
test eax, eax
je 0x46e198
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push eax
call fcn.0046dfc0
mov ecx, dword [esp + 0x20]
push ebp
call fcn.0046dfc0
mov ecx, dword [esp + 0x24]
push ebx
call fcn.0046dfc0
lea ecx, [esp + 0x30]
cmp dword [esp + 0x2c], ecx
je 0x46e194
lea ecx, [esp + 0x2c]
call fcn.0046c710
mov al, 1
jmp 0x46e1da
mov ecx, dword [esp + 0x20]
mov dword [edi], 7
call fcn.0046caa0
mov ecx, dword [esp + 0x28]
call fcn.0046caa0
lea ecx, [esi + 0x58]
call fcn.0046caa0
mov ecx, dword [esp + 0x24]
call fcn.0046caa0
lea edx, [esp + 0x30]
mov byte [esi + 0x48], 0
cmp dword [esp + 0x2c], edx
je 0x46e1d8
lea ecx, [esp + 0x2c]
call fcn.0046c710
xor al, al
mov ecx, dword [esp + 0xf8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xe0]
xor ecx, esp
call fcn.00486dc0
add esp, 0xf0
ret 8
Function at 0x46e6c0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49e1d3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4cacfc]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x4cacfc]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov esi, dword [esp + 0xac]
mov edi, dword [esp + 0xb0]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x20], bl
mov dword [esp + 0x24], 2
mov dword [esp + 0x18], vtable.ATL::CDacl.0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
lea ecx, [esp + 0x38]
mov dword [esp + 0xa4], ebx
call fcn.0046cd50
mov byte [esp + 0xa4], 1
cmp esi, ebx
je 0x46e83a
cmp edi, ebx
je 0x46e83a
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e83a
push 0x4a692c
push edi
call fcn.00487536
add esp, 8
test eax, eax
je 0x46e78c
push edi
call fcn.00465f50
add esp, 4
test eax, eax
je 0x46e83a
push ebx
push edi
lea ecx, [esp + 0x40]
call fcn.0046e000
test al, al
je 0x46e83a
lea eax, [esp + 0x14]
push eax
push ebx
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoW]
cmp eax, ebx
je 0x46e7c4
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x46e83a
mov edi, dword [esp + 0x10]
cmp edi, ebx
je 0x46e7e3
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x18]
call eax
push edi
lea ecx, [esp + 0x1c]
call fcn.0046dc00
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x10], ebx
setne al
cmp al, bl
je 0x46e83a
lea edx, [esp + 0x38]
push edx
lea ecx, [esp + 0x1c]
call fcn.0046c970
test al, al
je 0x46e83a
push ebx
lea ecx, [esp + 0x1c]
call fcn.0046c5b0
push eax
push ebx
push ebx
push 4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp esi, ebx
sete al
cmp al, bl
je 0x46e83a
mov ebx, 1
lea ecx, [esp + 0x38]
call fcn.0046cdc0
lea ecx, [esp + 0x18]
call fcn.0046dec0
mov eax, ebx
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00486dc0
add esp, 0x98
ret
Function at 0x46e880
Capabilities:
Check if file exists
List user accounts

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
xor ebp, ebp
push esi
xor esi, esi
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
cmp ebx, ebp
je 0x46e92b
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46e92b
push 0x4a67d8
push ebx
call fcn.0046e6c0
add esp, 8
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x20]
push eax
push 2
push 1
push ebp
call sub.NETAPI32.dll_NetUserEnum
test eax, eax
jne 0x46e91f
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
cmp dword [esp + 0x10], ebp
jbe 0x46e914
cmp esi, ebp
je 0x46e914
cmp dword [esi + 0xc], 1
jne 0x46e90a
mov eax, dword [esi]
cmp eax, ebp
je 0x46e90a
push eax
push ebx
call fcn.0046e6c0
add esp, 8
inc edi
add esi, 0x20
cmp edi, dword [esp + 0x10]
jb 0x46e8f0
mov ecx, dword [esp + 0x14]
push ecx
call sub.NETAPI32.dll_NetApiBufferFree
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x46ea30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
xor ecx, ecx
not eax
test edx, edx
jle 0x46ea6d
push esi
mov esi, dword [esp + 0xc]
push edi
jmp 0x46ea50
movsx edi, byte [ecx + esi]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4a6950]
inc ecx
cmp ecx, edx
jl 0x46ea50
pop edi
pop esi
not eax
ret

Function at 0x46ea70
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
push esi
mov dword [esp + 0xc], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46ea8c
pop edi
pop esi
pop ecx
ret
push ebx
push edi
push 0x80
push 3
push edi
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46eab2
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
push ebp
push 0xa00000
call fcn.0048690e
push 0xa00000
mov esi, eax
push edi
push esi
call fcn.00487630
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0x10
push edi
lea eax, [esp + 0x14]
push eax
push 0xa00000
push esi
push ebx
call ebp
test eax, eax
je 0x46eb10
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x46eb10
push eax
push esi
push edi
call fcn.0046ea30
add esp, 0xc
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xa00000
push esi
push ebx
mov edi, eax
call ebp
test eax, eax
jne 0x46eae7
pop ebp
test esi, esi
je 0x46eb1e
push esi
call fcn.00487d04
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret