joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e150d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x1b8]
test al, al
jns 0x4e152c
or ecx, 0xffffffff
jmp 0x4e1532
mov ecx, dword [0x5f189c]
mov eax, dword [esi]
lea edx, [ebp - 4]
push edx
push ecx
mov ecx, esi
call dword [eax + 0x2b4]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x5f1b34
call fcn.004183ed
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x4e15d6
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x4e15d6
test edi, edi
je 0x4e1587
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x228]
push eax
push 0x5f18e8
call fcn.004183ed
pop ecx
pop ecx
mov ebx, eax
jmp 0x4e1589
xor ebx, ebx
mov eax, dword [ebp - 8]
cmp eax, 2
jne 0x4e15e1
test ebx, ebx
je 0x4e15c2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c0]
test al, 0x40
je 0x4e15d6
cmp dword [ebp - 4], 0
je 0x4e15c2
mov eax, dword [ebx]
mov ecx, ebx
push esi
call dword [eax + 0x24c]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x4e15d8
mov eax, dword [esi]
mov ecx, esi
push 5
push 0
push edi
call dword [eax + 0x1f8]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne 0x4e15d6
test edi, edi
je 0x4e15d6
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x184]
test eax, eax
je 0x4e15d6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18c]
test eax, eax
je 0x4e15d6
mov eax, dword [esi]
mov ecx, esi
push 0
call dword [eax + 0x240]
mov eax, dword [esi]
mov ecx, esi
push 0
push 1
push 5
push edi
call dword [eax + 0x34c]
mov ecx, dword [ebp + 8]
xor edx, edx
test eax, eax
setne dl
mov dword [ecx], edx
jmp 0x4e15d8
Function at 0x4e33b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x2c]
mov edx, dword [0x5fe8dc]
push ebx
push esi
push edi
mov edx, dword [eax + edx*4]
mov ebx, ecx
mov eax, dword [0x5fd30c]
cmp eax, dword [edx + 4]
jle 0x4e340f
mov esi, 0x5fd30c
push esi
call fcn.00531b3f
cmp dword [0x5fd30c], 0xffffffff
pop ecx
jne 0x4e340f
call fcn.0041721b
push eax
mov ecx, 0x5fd308
call fcn.004132a7
push 0x5902b4
call fcn.005319d9
push esi
call fcn.00531b00
pop ecx
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4e34b1
mov eax, dword [ebx + 0x34c]
test eax, eax
je 0x4e34a8
cmp dword [eax + 0x20], 0
je 0x4e34a8
test eax, eax
je 0x4e3435
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x4e34a8
mov eax, dword [edi + 4]
sub eax, 1
je 0x4e347c
sub eax, 1
je 0x4e3452
sub eax, 1
jne 0x4e34a8
mov esi, 0x428e
jmp 0x4e3481
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x4e3481
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x340]
test eax, eax
je 0x4e3481
add esi, 3
jmp 0x4e3481
mov esi, 0x3ea0
push esi
call fcn.0041731b
test eax, eax
je 0x4e34b1
push esi
push eax
mov ecx, 0x5fd308
call fcn.00416283
test eax, eax
je 0x4e34b1
mov eax, dword [0x5fd308]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x4e34aa
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
call fcn.00415ace
int3
Function at 0x4f2e1b
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x5892e4
call fcn.00532125
mov esi, ecx
mov dword [ebp - 0x10], esi
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x100
jne 0x4f2f01
mov edi, dword [ebx + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4f2f01
cmp edi, 0x43
je 0x4f2e60
cmp edi, 0x2d
jne 0x4f2f01
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4f2f01
call dword [sym.imp.USER32.dll_EmptyClipboard]
call fcn.0041721b
push eax
lea ecx, [ebp + 8]
call fcn.004132a7
movzx eax, byte [esi + 0xe6]
and dword [ebp - 4], 0
push eax
movzx eax, byte [esi + 0xe5]
push eax
movzx eax, byte [esi + 0xe4]
push eax
lea eax, [ebp + 8]
push 0x5afe10
push eax
call fcn.00416ce8
mov esi, dword [ebp + 8]
add esp, 0x14
mov eax, dword [esi - 0xc]
lea eax, [eax*2 + 2]
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.004138b8
mov esi, dword [ebp - 0x10]
push ebx
mov ecx, esi
call fcn.004f0556
call fcn.005320ee
ret 4
Function at 0x5077a6
Capabilities:
Get common file path

Disassembly:
push 0x228
mov eax, 0x58a3ed
call fcn.00532159
mov ebx, ecx
mov dword [ebp - 0x230], ebx
call fcn.00518deb
push 0x1c4
call fcn.00415a21
pop ecx
mov dword [ebp - 0x22c], eax
and dword [ebp - 4], 0
test eax, eax
je 0x5077e9
push 0
push dword [ebx + 0x60]
mov ecx, eax
call fcn.005193fc
jmp 0x5077eb
xor eax, eax
or dword [ebp - 4], 0xffffffff
mov ecx, ebx
push eax
call fcn.00518235
call fcn.00417fd4
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x8c]
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x218]
push eax
call fcn.0055c2ea
mov esi, eax
pop ecx
push 0x5c
pop eax
mov word [ebp + esi*2 - 0x218], ax
inc esi
mov dword [ebp - 0x22c], esi
lea eax, [esi + esi]
cmp eax, 0x208
jae 0x507a02
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
xor eax, eax
mov dword [ebp - 0x228], eax
test edi, edi
je 0x5079fc
xor ebx, ebx
cmp dword [edi + 4], eax
jle 0x5079fc
call fcn.0041721b
push eax
lea ecx, [ebp - 0x21c]
call fcn.004132a7
mov eax, dword [edi]
xor ecx, ecx
inc ecx
push ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x218]
push esi
push ecx
push ebx
lea ecx, [ebp - 0x21c]
push ecx
mov ecx, edi
call dword [eax + 0xc]
test eax, eax
je 0x5079e0
push 0x59d518
mov esi, 0x59d520
lea ecx, [ebp - 0x21c]
push esi
call fcn.0044204f
push esi
push 0x5c6420
lea ecx, [ebp - 0x21c]
call fcn.0044204f
push esi
push 0x59d518
lea ecx, [ebp - 0x21c]
call fcn.0044204f
call fcn.0041721b
push eax
lea ecx, [ebp - 0x220]
call fcn.004132a7
mov eax, dword [ebp - 0x228]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x507916
push dword [ebp - 0x21c]
lea eax, [ebp - 0x220]
push str.10__Ts
push eax
call fcn.00416ce8
add esp, 0xc
jmp 0x507948
jge 0x507936
push dword [ebp - 0x21c]
inc eax
push eax
lea eax, [ebp - 0x220]
push str._d__Ts
push eax
call fcn.00416ce8
add esp, 0x10
jmp 0x507948
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.00416b37
push 0x1c4
call fcn.00415a21
pop ecx
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x507972
mov ecx, eax
call fcn.004bbdeb
mov ecx, eax
mov dword [ebp - 0x224], eax
jmp 0x50797a
xor ecx, ecx
mov dword [ebp - 0x224], ecx
mov eax, dword [ecx]
mov esi, dword [ebp - 0x220]
push esi
mov byte [ebp - 4], 2
call dword [eax + 0xb4]
mov ecx, dword [ebp - 0x224]
lea eax, [ebx + 0xe110]
push eax
mov edx, dword [ecx]
call dword [edx + 0xb0]
push ebx
mov ecx, edi
call fcn.0042ac82
mov ecx, dword [ebp - 0x224]
push dword [eax]
mov edx, dword [ecx]
call dword [edx + 0xc8]
mov ecx, dword [ebp - 0x224]
push ecx
mov ecx, dword [ebp - 0x230]
call fcn.00518235
inc dword [ebp - 0x228]
lea ecx, [esi - 0x10]
call fcn.004138b8
mov esi, dword [ebp - 0x22c]
mov ecx, dword [ebp - 0x21c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.004138b8
inc ebx
cmp ebx, dword [edi + 4]
jl 0x50786b
call fcn.00532103
ret
call fcn.00531d66
int3
Function at 0x534e54
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x569501
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00568e6f

Function at 0x56950c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005690aa

Function at 0x570b45
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x58d293
call fcn.00532159
mov edi, ecx
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
push 0x5c5ffc
call fcn.004035e2
and dword [ebp - 4], 0
xor bl, bl
cmp dword [edi + 0x238], 0
je 0x570bd7
test esi, esi
je 0x570b8c
cmp byte [edi + 0x228], bl
je 0x570b8c
push esi
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00570beb
mov bl, al
xor edx, edx
test esi, esi
je 0x570b9a
mov ecx, dword [esi]
test ecx, ecx
je 0x570b9a
mov edx, dword [ecx]
test bl, bl
je 0x570bab
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
jmp 0x570bad
xor eax, eax
push eax
push edx
push dword [ebp + 8]
call dword [edi + 0x238]
add esp, 0xc
test bl, bl
je 0x570bd7
cmp dword [ebp - 0x18], 0
je 0x570bd7
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00403a36
call fcn.00532103
ret 8
Function at 0x570beb
Capabilities:
Get common file path

Disassembly:
push 0x260
mov eax, 0x58d2ce
call fcn.00532159
mov edi, ecx
mov eax, dword [ebp + 8]
xor bl, bl
mov dword [ebp - 0x254], eax
mov eax, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054b330
xor esi, esi
add esp, 0xc
cmp dword [edi + 0x248], esi
je 0x570dad
cmp dword [edi + 0x24c], esi
je 0x570dad
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x570dad
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004035e2
push str.crashdump.dmp
mov edx, eax
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x238]
call fcn.0040406c
pop ecx
xor eax, eax
mov byte [ebp - 4], 2
push esi
inc eax
lea ecx, [ebp - 0x26c]
push eax
call fcn.00403a36
cmp dword [ebp - 0x224], 8
lea eax, [ebp - 0x238]
push esi
cmovae eax, dword [ebp - 0x238]
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x570d8c
test esi, esi
je 0x570d8c
push 6
pop eax
mov word [ebp - 0x220], ax
xor eax, eax
inc eax
mov word [ebp - 0x21e], ax
push 0xb
pop eax
mov word [ebp - 0x21c], ax
xor eax, eax
mov word [ebp - 0x21a], ax
lea eax, [ebp - 0x220]
push eax
call dword [edi + 0x248]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x24c], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x248], eax
xor eax, eax
inc eax
mov dword [ebp - 0x240], 0x570e01
mov dword [ebp - 0x244], eax
lea eax, [ebp - 0x240]
push eax
push 0
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x23c], edi
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [edi + 0x24c]
lea ecx, [ebp - 0x238]
test eax, eax
je 0x570d92
mov eax, dword [ebp - 0x254]
cmp eax, ecx
je 0x570d7f
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00403350
xor eax, eax
lea ecx, [ebp - 0x238]
inc eax
mov bl, al
jmp 0x570d95
lea ecx, [ebp - 0x238]
xor eax, eax
inc eax
push 0
push eax
call fcn.00403a36
cmp esi, 0xffffffff
je 0x570dad
test esi, esi
je 0x570dad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
call fcn.00532103
ret 8
Function at 0x571272
Capabilities:
Create thread

Disassembly:
push 0x48
mov eax, 0x58d3b1
call fcn.00532159
call fcn.00570e88
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
xor ebx, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
sub esp, 0x18
mov dword [ebp - 4], ebx
mov ecx, esp
mov dword [ebp - 0x3c], esp
mov dword [ebp - 0x38], ebx
push str.package
call fcn.004036e4
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 1
push eax
xor ecx, ecx
call fcn.00579897
mov ecx, eax
mov byte [ebp - 4], bl
call fcn.005797a8
push eax
mov edx, 0x5c6258
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004043cc
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.00403a36
cmp dword [ebp - 0x20], 8
lea eax, [ebp - 0x34]
push 0x2001f
cmovae eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x1c]
push eax
push SysReAllocString
call fcn.004031a2
test eax, eax
jne 0x571327
lea eax, [ebp - 0x38]
push eax
push str.CrashMe
lea ecx, [ebp - 0x1c]
call fcn.004045d3
mov ecx, dword [ebp - 0x38]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x38], ecx
jmp 0x57132a
mov ecx, dword [ebp - 0x38]
test ecx, ecx
je 0x57133e
push ebx
push ebx
push ecx
push 0x57136a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push 1
lea ecx, [ebp - 0x34]
call fcn.00403a36
lea ecx, [ebp - 0x1c]
call fcn.0040321c
call fcn.00532103
ret
Function at 0x571a18
Capabilities:
Download url
Receive data

Disassembly:
push 0x2c
mov eax, 0x58d512
call fcn.00532159
mov esi, ecx
xor eax, eax
lea edi, [ebp - 0x26]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov word [ebp - 0x28], ax
stosd dword es:[edi], eax
push 0xa
push 0xc
mov dword [ebp - 0x2c], ebx
stosd dword es:[edi], eax
mov dword [ebp - 0x30], vtable.MyCallback.0
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00554fa1
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
add esi, 0x1c
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x14], 8
jb 0x571a77
mov esi, dword [esi]
cmp dword [ebp + 0x1c], 8
lea ecx, [ebp - 0x30]
push ecx
push 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push esi
push eax
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
test eax, eax
mov esi, ebx
cmovne esi, eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x5c62a4
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
mov dword [ebp - 0x38], esp
push 0x5c5ffe
call fcn.004036e4
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
push str.urlDownloadToFile
call fcn.004036e4
mov dl, bl
mov byte [ebp - 4], bl
mov ecx, esi
call fcn.00572271
add esp, 0x48
lea ecx, [ebp + 8]
push ebx
push 1
call fcn.00403a36
mov eax, esi
call fcn.00532103
ret 0x18
Function at 0x57318c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x5f2114]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x64], 0
lea eax, [ebp - 0x5c]
push esi
mov esi, ecx
push eax
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3a]
push eax
lea eax, [ebp - 0x38]
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.004036e4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00531668
mov esp, ebp
pop ebp
ret
Function at 0x5739b4
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58db81
mov eax, dword fs:[0]
push eax
mov eax, 0x2b38
call fcn.00532460
mov eax, dword [0x5f2114]
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 dword [ebp - 0x2b44], edx
mov esi, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
xor bl, bl
test esi, esi
jne 0x5739ff
xor al, al
jmp 0x573b9e
and dword [ebp - 0x2b14], 0
xor eax, eax
mov dword [ebp - 0x2b10], 7
mov word [ebp - 0x2b24], ax
and dword [ebp - 4], eax
mov edi, str..PhysicalDrive
push edi
call fcn.004035bb
pop ecx
push eax
push edi
lea ecx, [ebp - 0x2b24]
call fcn.00403542
push ecx
push ecx
lea ecx, [ebp - 0x2b3c]
call fcn.00408ad3
pop ecx
pop ecx
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x2b24]
mov byte [ebp - 4], 1
call fcn.00404145
push 0
push 1
lea ecx, [ebp - 0x2b3c]
mov byte [ebp - 4], 0
call fcn.00403a36
cmp dword [ebp - 0x2b10], 8
lea eax, [ebp - 0x2b24]
cmovae eax, dword [ebp - 0x2b24]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2b40], eax
cmp eax, 0xffffffff
je 0x573b8d
xor eax, eax
lea edi, [ebp - 0x2b30]
stosd dword es:[edi], eax
xor ecx, ecx
mov dword [ebp - 0x2b0c], ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x2b08]
mov edi, 0x2710
mov dword [ebp - 0x2b30], ecx
push edi
push ecx
push eax
mov dword [ebp - 0x2b2c], ecx
call fcn.0054b330
add esp, 0xc
lea eax, [ebp - 0x2b0c]
push 0
push eax
push edi
mov edi, dword [ebp - 0x2b40]
lea eax, [ebp - 0x2b08]
push eax
push 0xc
lea eax, [ebp - 0x2b30]
push eax
push 0x2d1400
push edi
call esi
test eax, eax
je 0x573b86
push 0x3e8
lea eax, [ebp - 0x3f8]
push 0
push eax
call fcn.0054b330
mov edx, dword [ebp - 0x2af0]
add esp, 0xc
test edx, edx
je 0x573b40
mov byte [ebp - 0x3f8], 0
js 0x573b40
lea eax, [ebp - 0x3f8]
push eax
lea ecx, [ebp - 0x2b08]
call fcn.00573bba
pop ecx
movsx eax, byte [ebp - 0x3f8]
push eax
call fcn.005554f3
pop ecx
test eax, eax
jne 0x573b64
movsx eax, byte [ebp - 0x3e5]
push eax
call fcn.005554f3
pop ecx
test eax, eax
je 0x573b86
lea eax, [ebp - 0x3f8]
push eax
call fcn.004036c7
pop ecx
mov ecx, dword [ebp - 0x2b44]
push eax
lea eax, [ebp - 0x3f8]
push eax
call fcn.0040364e
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 1
lea ecx, [ebp - 0x2b24]
call fcn.00403a36
mov al, bl
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.00531668
mov esp, ebp
pop ebp
ret
Function at 0x5742e5
Capabilities:
Get mac address on windows

Disassembly:
push 0x74
mov eax, 0x58dd0b
call fcn.00532159
mov ebx, ecx
mov dword [ebp - 0x78], ebx
xor esi, esi
mov dword [ebp - 4], esi
push 0x5c5ffe
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], esi
call fcn.004036e4
mov eax, 0x288
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x78], eax
call fcn.00415a53
mov esi, eax
pop ecx
test esi, esi
je 0x5743dc
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 0x78]
push eax
push esi
call edi
cmp eax, 0x6f
jne 0x57435a
push esi
call fcn.00415a4e
push dword [ebp - 0x78]
call fcn.00415a53
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5743dc
lea eax, [ebp - 0x78]
push eax
push esi
call edi
test eax, eax
jne 0x5743d1
mov edi, esi
test esi, esi
je 0x5743dc
cmp dword [edi + 0x1a0], 6
jne 0x5743cb
movzx eax, byte [edi + 0x199]
push eax
movzx eax, byte [edi + 0x198]
push eax
movzx eax, byte [edi + 0x197]
push eax
movzx eax, byte [edi + 0x196]
push eax
movzx eax, byte [edi + 0x195]
push eax
movzx eax, byte [edi + 0x194]
push eax
lea eax, [ebp - 0x74]
push 0x5c6b0c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x74]
push eax
call fcn.004036c7
add esp, 0x24
mov ecx, ebx
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.00404f02
mov edi, dword [edi]
test edi, edi
jne 0x57436b
test esi, esi
je 0x5743dc
push esi
call fcn.00415a4e
pop ecx
mov eax, ebx
call fcn.00532103
ret

Function at 0x574590
Capabilities:
Get hostname

Disassembly:
push 0x22c
mov eax, 0x58ddb0
call fcn.00532159
mov esi, ecx
mov dword [ebp - 0x218], esi
xor edi, edi
mov dword [ebp - 4], edi
push 0x5c5ffc
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.004035e2
mov eax, 0x102
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push edi
push eax
mov dword [ebp - 0x21c], 1
call fcn.0054b330
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
cmp dword [ebp - 0x218], edi
jbe 0x57462f
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x238]
call fcn.004035e2
push eax
mov ecx, esi
call fcn.00402068
push edi
push 1
lea ecx, [ebp - 0x238]
call fcn.00403a36
mov eax, esi
call fcn.00532103
ret

Function at 0x574637
Capabilities:
Get session user name

Disassembly:
push 0x22c
mov eax, 0x58ddfa
call fcn.00532159
mov esi, ecx
mov dword [ebp - 0x218], esi
xor edi, edi
mov dword [ebp - 4], edi
push 0x5c5ffc
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call fcn.004035e2
mov eax, 0x102
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x214]
push edi
push eax
mov dword [ebp - 0x21c], 1
call fcn.0054b330
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
cmp dword [ebp - 0x218], edi
jbe 0x5746d6
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0x238]
call fcn.004035e2
push eax
mov ecx, esi
call fcn.00402068
push edi
push 1
lea ecx, [ebp - 0x238]
call fcn.00403a36
mov eax, esi
call fcn.00532103
ret
Function at 0x5746de
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push 0xc0
mov eax, 0x58de69
call fcn.00532159
mov esi, edx
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
push 0xf0000000
xor edi, edi
mov dword [ebp - 0xcc], ebx
push 0x18
push edi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 0xc8], edi
push eax
mov dword [ebp - 0x18], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x57472d
push 0x5c5ffe
mov ecx, ebx
call fcn.004036e4
jmp 0x5748cc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push edi
push edi
push 0x8003
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
push edi
test eax, eax
jne 0x574763
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5c5ffe
mov ecx, ebx
call fcn.004036e4
jmp 0x5748cc
push dword [ebp + 8]
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x574780
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
jmp 0x574749
push 4
pop ecx
push edi
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x2c], edi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
push eax
push ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x574774
push dword [ebp - 0x2c]
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
lea ecx, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004054e1
xor edi, edi
mov dword [ebp - 4], 1
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
push edi
push eax
push esi
push 2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x5747f8
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push 0x5c5ffe
mov ecx, ebx
call fcn.004036e4
jmp 0x5748c4
push 0x98
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.0054b330
pop ecx
lea ecx, [ebp - 0xc4]
call fcn.00405618
mov byte [ebp - 4], 2
jmp 0x574879
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov byte [ebp + eax - 0x84], 0x30
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xa4], 2
mov dword [ebp + eax - 0xa0], edi
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0xb0]
and eax, 0xfffff9ff
or eax, 0x800
mov dword [ebp + ecx - 0xb0], eax
lea ecx, [ebp - 0xc4]
movzx eax, byte [esi]
push eax
call fcn.00405c38
inc esi
cmp esi, dword [ebp - 0x24]
jne 0x57481c
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
lea ecx, [ebp - 0xc4]
call fcn.004055b9
mov dword [ebp - 0xc8], 1
lea ecx, [ebp - 0x74]
call fcn.004055d5
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x74], vtable.std::ios_base.0
call fcn.0052f7c0
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004068cd
mov eax, ebx
call fcn.00532103
ret