joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5fcb70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xaa7000
lea edi, [esi - 0x1a6000]
push edi
jmp 0x5fcb8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5fcb91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcb80
mov eax, 1
add ebx, ebx
jne 0x5fcba3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5fcbb4
jne 0x5fcbd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcbd3
dec eax
add ebx, ebx
jne 0x5fcbc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5fcb98
add ebx, ebx
jne 0x5fcbcf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5fcc25
xor ecx, ecx
sub eax, 3
jb 0x5fcbeb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5fcc5a
sar eax, 1
mov ebp, eax
jmp 0x5fcbf6
add ebx, ebx
jne 0x5fcbf6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcbc4
inc ecx
add ebx, ebx
jne 0x5fcc04
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fcbc4
add ebx, ebx
jne 0x5fcc11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5fcc06
jne 0x5fcc22
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5fcc06
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5fcc44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5fcc36
jmp 0x5fcb86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5fcc44
add edi, ecx
jmp 0x5fcb86
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5fcc62
cmp byte [edi], 0x11
jne 0x5fcc62
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5fcc67
lea edi, [esi + 0x1f5000]
mov eax, dword [edi]
or eax, eax
je 0x5fccdf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x320030]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3201ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5fcc94
mov ecx, edi
jns 0x5fccc3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3201b0]
or eax, eax
je 0x5fccd9
mov dword [ebx], eax
add ebx, 4
jmp 0x5fccb1
call dword [esi + 0x3201c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5fcd10
cmp al, 0xef
ja 0x5fcd03
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5fcce5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5fccf2
mov ebp, dword [esi + 0x3201b4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5fcd44
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x401806
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401845
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401845
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401845
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401845
cmp dword [ecx + 0x74], 0xe
jbe 0x401845
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4062ac
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4062f7
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004064c9
test al, al
jne 0x4062f1
sub edx, 2
cmp edx, edi
jne 0x4062d7
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x406319
lea eax, [edi + 2]
cmp edx, eax
je 0x406319
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004061f8
add esp, 0x10
jmp 0x406413
push esi
lea ecx, [ebp - 0x255]
call fcn.004064c9
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40635c
push dword [ebp - 0x25c]
jmp 0x406309
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x406399
cmp word [ebp - 0x226], 0
je 0x4063ba
cmp word [ebp - 0x226], ax
jne 0x406399
cmp word [ebp - 0x224], 0
je 0x4063ba
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004061f8
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x406406
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406373
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4063ee
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x406413
push 0x406028
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00409640
add esp, 0x10
jmp 0x4063e3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x406fd1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x406fe2
pop esi
ret
push ebx
push edi
push esi
call fcn.00406f9a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00407bd8
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40700a
push ebx
push esi
push edi
call fcn.00402ae0
add esp, 0xc
push 0
call fcn.00405fee
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4073da
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040701f

Function at 0x40851a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffd4
push 0x40ffcc
push str.FlsAlloc
push 0x1f
call fcn.004083f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40854e
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
jmp 0x408554
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408598
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffe4
push 0x40ffdc
push str.FlsGetValue
push 0x21
call fcn.004083f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4085cf
push dword [ebp + 8]
mov ecx, esi
call dword [0x40e114]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4085d7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x40ffec
push 0x40ffe4
push str.FlsSetValue
push 0x22
call fcn.004083f8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408611
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40e114]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40d4f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40d51d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40d51d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4019ac
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x400
push esi
push edi
xor esi, esi
xor edi, edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp edi, 0x58ced85
jg 0x4019d9
inc edi
cmp edi, 0x1f6502b1
jl 0x4019b8
cmp dword [0x2810ac4], 0x400
jne 0x401a36
push str.sadahoziyofejonoh_niforapo_pihekezavokigubodatojup_rafepigojamulexiwodugaxexude_jam
push str.nelugidoneyari
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeKeepStringHandle]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameW]
push 0x41fb10
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogW]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
push esi
call fcn.00401fbd
push esi
push esi
call fcn.00401fbd
push esi
call fcn.00402127
push esi
call fcn.00402136
add esp, 0x18
xor edi, edi
cmp edi, 0xd0fe
jge 0x401a47
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
cmp edi, 0xd2ce6e
jg 0x401a6e
inc edi
cmp edi, 0x26bcf
jl 0x401a38
mov eax, dword [0x422c14]
mov dword [0x2810ac4], eax
call fcn.00401726
mov edi, 0x3078f
cmp dword [0x2810ac4], 0x51f
jne 0x401a9a
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
dec edi
jne 0x401a82
pop edi
xor eax, eax
pop esi
add esp, 0x400
ret 0x10

Function at 0x404bbe
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x422930]
jne 0x404bc8
repz ret
jmp fcn.004061fc
Function at 0x404f20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5af4
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push esi
push edi
mov eax, dword [0x51f164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
lea esi, [edi + 0x14]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
push 0x20
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0049101a
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
je 0x404fff
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x44]
call fcn.00404dc0
push eax
mov byte [ebp - 4], 4
call fcn.00439b70
int3

Function at 0x406ed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5d60
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x51f164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.00468710
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x406f34
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x406f45
push 0x48
push esi
call fcn.004913bc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4071d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d5d60
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x51f164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xb4]
mov dword [esi], vtable.CryptoPP::AuthenticatedDecryptionFilter.0
mov dword [esi + 4], vtable.CryptoPP::AuthenticatedDecryptionFilter.1.0
call fcn.00406fc0
lea ecx, [esi + 0x4c]
call fcn.004070d0
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov edx, dword [esi + 0x34]
mov edi, edx
cmovb ecx, eax
xor al, al
rep stosb byte es:[edi], al
push edx
call fcn.00468710
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x407254
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408ae0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d60da
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x51f164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x18], esi
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], 0
mov eax, dword fs:[0x2c]
mov edi, dword [eax]
mov dword [ebp - 0x2c], edi
mov eax, dword [edi + 0xc]
test al, 1
jne 0x408ba1
or eax, 1
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 1
call fcn.00479750
mov ecx, eax
mov dword [edi + 0x139c], 0xffffffff
mov dword [edi + 0x1c], ecx
lea esi, [edi + 0x20]
mov edx, 1
nop dword [eax]
mov eax, ecx
lea esi, [esi + 4]
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
inc edx
mov dword [esi - 4], ecx
cmp edx, 0x270
jl 0x408b70
mov eax, dword [edi + 0xc]
mov esi, dword [ebp - 0x18]
mov dword [edi + 0x18], 0x270
test al, 2
jne 0x408bc2
or eax, 2
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], eax
mov dword [edi + 0x14], 0x32
xor eax, eax
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov word [ebx], ax
mov dword [ebp - 4], eax
mov ecx, ebx
push esi
mov dword [ebp - 0x24], 1
call fcn.00431670
test esi, esi
je 0x408c94
lea ecx, [edi + 0x18]
mov dword [ebp - 0x28], ecx
nop dword [eax + eax]
mov eax, dword [edi + 0x10]
dec esi
mov dword [ebp - 0x18], esi
mov esi, dword [edi + 0x14]
sub esi, eax
mov dword [ebp - 0x14], eax
cmp esi, 0xffffffff
jne 0x408c23
call fcn.00440800
mov edx, eax
jmp 0x408c6c
lea ebx, [esi + 1]
mov dword [ebp - 0x20], ebx
jmp 0x408c33
lea ebx, [esi + 1]
xor edi, edi
xor eax, eax
test esi, esi
je 0x408c45
call fcn.00440800
mov edi, eax
or eax, 0xffffffff
xor edx, edx
div ebx
mov ecx, eax
mov ebx, edx
xor edx, edx
mov eax, edi
div dword [ebp - 0x20]
cmp eax, ecx
jb 0x408c5f
mov ecx, dword [ebp - 0x28]
cmp ebx, esi
jne 0x408c30
mov ebx, dword [ebp - 0x1c]
mov eax, edi
mov edi, dword [ebp - 0x2c]
xor edx, edx
div dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
mov ecx, ebx
movsx ax, byte [edx + eax + str.0123456789abcdefghijklmnopqrstuvwxyzABCDFGHIJKLMNOPQRSTUVWXYZ]
movzx eax, ax
push eax
call fcn.004370e0
mov esi, dword [ebp - 0x18]
lea ecx, [edi + 0x18]
test esi, esi
jne 0x408c00
cmp dword [ebx + 0x14], 8
mov ecx, ebx
jb 0x408c9e
mov ecx, dword [ebx]
mov esi, ebx
jb 0x408ca4
mov esi, dword [ebx]
mov eax, dword [ebx + 0x10]
lea eax, [esi + eax*2]
mov esi, ebx
jb 0x408cb0
mov esi, dword [ebx]
mov ebx, eax
xor edx, edx
sub ebx, esi
xor edi, edi
inc ebx
shr ebx, 1
cmp esi, eax
cmova ebx, edx
test ebx, ebx
je 0x408cec
sub ecx, esi
mov dword [ebp - 0x14], ecx
nop dword [eax]
movzx eax, word [esi]
push eax
call fcn.004b1cb8
mov ecx, dword [ebp - 0x14]
lea esi, [esi + 2]
inc edi
add esp, 4
mov word [ecx + esi - 2], ax
cmp edi, ebx
jne 0x408cd0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d3b
mov esp, ebp
pop ebp
ret
Function at 0x413d50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7222
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x51f164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x238], esi
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x104
mov dword [ebp - 0x23c], esi
push eax
mov dword [ebp - 0x21c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [esi + 0x10], 0
lea ecx, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov word [esi], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413dd0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.004373b0
mov dword [ebp - 4], 0
xor eax, eax
mov ecx, 1
mov word [ebp - 0x234], ax
cmp dword [esi + 0x10], ecx
mov eax, esi
mov dword [ebp - 0x21c], 1
cmovb ecx, dword [esi + 0x10]
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x220], 7
jb 0x413e32
mov eax, dword [esi]
push ecx
push eax
lea ecx, [ebp - 0x234]
call fcn.004373b0
lea eax, [ebp - 0x234]
mov ecx, esi
push eax
call fcn.00431930
mov edx, dword [ebp - 0x220]
cmp edx, 8
jb 0x413e89
mov ecx, dword [ebp - 0x234]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x413e7f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x413ea5
push edx
push ecx
call fcn.004913bc
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d3b
mov esp, ebp
pop ebp
ret
call fcn.004b58b2
int3
Function at 0x413eb0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7266
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x51f164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x101
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov dword [ebp - 0x21c], 0
mov word [ebp - 0x22c], ax
lea eax, [ebp - 0x214]
mov dword [ebp - 0x218], 7
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x413f20
sub eax, edx
lea ecx, [ebp - 0x22c]
sar eax, 1
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004373b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x22c]
cmp dword [ebp - 0x218], 8
mov ecx, 0x51fc48
push dword [ebp - 0x21c]
cmovae eax, dword [ebp - 0x22c]
push eax
call fcn.004373b0
cmp dword [ebp - 0x218], 8
lea ecx, [ebp - 0x22c]
mov eax, dword [ebp - 0x21c]
cmovae ecx, dword [ebp - 0x22c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x22c]
cmovae ecx, dword [ebp - 0x22c]
push ecx
push eax
push ecx
lea ecx, [ebp - 0x248]
call fcn.0043ac60
mov byte [ebp - 4], 1
lea eax, [ebp - 0x248]
cmp dword [ebp - 0x234], 0x10
mov ecx, 0x520070
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
push eax
call fcn.00431f60
mov edx, dword [ebp - 0x234]
cmp edx, 0x10
jb 0x414005
mov ecx, dword [ebp - 0x248]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x413ffb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414075
push edx
push ecx
call fcn.004913bc
add esp, 8
mov edx, dword [ebp - 0x218]
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
cmp edx, 8
jb 0x41405c
mov ecx, dword [ebp - 0x22c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x414052
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x414075
push edx
push ecx
call fcn.004913bc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00490d3b
mov esp, ebp
pop ebp
ret
call fcn.004b58b2
int3
Function at 0x414be0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
sub esp, 0x78
mov eax, dword [0x51f164]
xor eax, esp
mov dword [esp + 0x74], eax
push esi
mov esi, ecx
mov dword [esp + 0x34], 0x40
push edi
lea eax, [esp + 0x38]
mov dword [esp + 0x30], esi
push eax
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x40]
call fcn.00491c70
xorps xmm1, xmm1
sub esp, 8
cvtsd2ss xmm1, xmm0
movss xmm0, dword [0x505640]
mulss xmm1, xmm0
mulss xmm1, xmm0
mulss xmm1, xmm0
cvtps2pd xmm0, xmm1
movsd qword [esp], xmm0
push 0x4f8208
movsd qword [esp + 0x3c], xmm0
call fcn.00402120
add esp, 0xc
mov dword [esi + 0x10], 0
mov edi, eax
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov byte [esi], 0
push 0
push edi
call fcn.00437600
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x414c80
mov eax, dword [esi]
movsd xmm0, qword [esp + 0x30]
lea ecx, [edi + 1]
sub esp, 8
movsd qword [esp], xmm0
push 0x4f8208
push ecx
push eax
call fcn.004020c0
mov ecx, dword [esp + 0x90]
add esp, 0x14
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00490d3b
mov esp, ebp
pop ebp
ret

Function at 0x414cc0
Capabilities:
List user accounts

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7410
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x51f164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], 0
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x24]
mov dword [ebp - 0x1c], 0
push eax
xor edi, edi
push 2
push edi
push edi
mov dword [ebp - 0x2c], edi
call dword [sym.imp.NETAPI32.dll_NetUserEnum]
mov ebx, eax
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x414d41
cmp ebx, 0xea
je 0x414d41
mov ecx, dword [ebp - 0x24]
jmp 0x414dbb
mov ecx, dword [ebp - 0x24]
mov esi, ecx
test esi, esi
je 0x414dcf
xor ebx, ebx
cmp ebx, dword [ebp - 0x18]
jae 0x414db8
test esi, esi
je 0x414db8
mov dword [ebp - 4], 0
mov edx, dword [esi]
mov eax, edx
lea ecx, [eax + 2]
mov dword [ebp - 0x30], ecx
nop word [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x414d70
sub eax, dword [ebp - 0x30]
sar eax, 1
push eax
lea eax, [ebx + ebx*2]
push edx
lea ecx, [eax*8 + 0x5296c0]
call fcn.004373b0
inc edi
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x24]
add esi, 4
mov dword [ebp - 0x2c], edi
inc ebx
jmp 0x414d50
mov ebx, dword [ebp - 0x28]
test ecx, ecx
je 0x414dcf
mov esi, dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
push ecx
call esi
xor ecx, ecx
mov dword [ebp - 0x24], ecx
jmp 0x414dd5
mov esi, dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
cmp ebx, 0xea
je 0x414dd5
test ecx, ecx
je 0x414de4
push ecx
call esi
push 7
lea eax, [edi + edi*2]
push 0x4ff9e0
lea ecx, [eax*8 + 0x5296c0]
call fcn.004373b0
lea eax, [edi + 1]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00490d3b
mov esp, ebp
pop ebp
ret