joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40564a
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x40e060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.00405c06
pop ecx
test eax, eax
je 0x40567f
push esi
push esi
push esi
push esi
push esi
call fcn.0040930e
add esp, 0x14
push 4
pop eax
call fcn.004093d0
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40579b
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x405714
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x401428
call esi
test eax, eax
jne 0x4056eb
push 0x40140c
call esi
test eax, eax
je 0x405714
push 0x4013f4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405714
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x405714
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x405714
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.0040561e
add esp, 0xc
test eax, eax
jl 0x40579b
not esi
and dword [ebp - 8], esi
je 0x405746
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.0040561e
add esp, 0xc
test eax, eax
jl 0x40579b
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x405751
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x405765
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x40579b
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x40579b
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40579b
xor eax, eax
inc eax
jmp 0x40579d
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004047bf
leave
ret
Function at 0x406310
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x401490
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x406362
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4014fc
push edi
call esi
push 0x4014f0
push edi
mov dword [0x40ef0c], eax
call esi
push 0x4014e4
push edi
mov dword [0x40ef10], eax
call esi
push 0x4014dc
push edi
mov dword [0x40ef14], eax
call esi
mov dword [0x40ef18], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x40ef0c], ebx
je 0x406388
cmp dword [0x40ef10], ebx
je 0x406388
cmp dword [0x40ef14], ebx
je 0x406388
cmp dword [0x40ef18], ebx
jne 0x4063ac
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x40ef10], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x40ef0c], 0x405f61
mov dword [0x40ef14], esi
mov dword [0x40ef18], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x40e0f4], eax
cmp eax, 0xffffffff
je 0x40641f
push dword [0x40ef10]
push eax
call esi
test eax, eax
je 0x40641f
call fcn.00405e1c
push dword [0x40ef0c]
call fcn.00405e63
push dword [0x40ef10]
mov dword [0x40ef0c], eax
call fcn.00405e63
push dword [0x40ef14]
mov dword [0x40ef10], eax
call fcn.00405e63
push dword [0x40ef18]
mov dword [0x40ef14], eax
call fcn.00405e63
add esp, 0x10
mov dword [0x40ef18], eax
call fcn.004083e4
test eax, eax
jne 0x406425
call fcn.00405f9e
xor eax, eax
pop edi
pop esi
pop ebx
ret
push fcn.0040614d
push dword [0x40ef0c]
call fcn.00405ee9
pop ecx
call eax
mov dword [0x40e0f8], eax
cmp eax, 0xffffffff
je 0x40641a
push 0x214
push 1
call fcn.0040a2ba
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40641a
push esi
push dword [0x40e0f8]
push dword [0x40ef14]
call fcn.00405ee9
pop ecx
call eax
test eax, eax
jne 0x406478
push esi
call fcn.00405202
pop ecx
jmp 0x40641a
push ebx
push esi
call fcn.00405fe0
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x406421
Function at 0x40a964
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00405edb
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x40f864], ebx
jne 0x40aa3d
push ebx
push ebx
push 0x402354
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x40a9a8
xor eax, eax
jmp 0x40ab01
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402348
push edi
call esi
cmp eax, ebx
je 0x40a9a1
push eax
call fcn.00405e63
mov dword [esp], 0x402338
push edi
mov dword [0x40f864], eax
call esi
push eax
call fcn.00405e63
mov dword [esp], 0x402324
push edi
mov dword [0x40f868], eax
call esi
push eax
call fcn.00405e63
mov dword [0x40f86c], eax
lea eax, [ebp - 8]
push eax
call fcn.00405c06
pop ecx
pop ecx
test eax, eax
je 0x40aa0b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040930e
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40aa3d
push 0x402308
push edi
call esi
push eax
call fcn.00405e63
pop ecx
mov dword [0x40f874], eax
cmp eax, ebx
je 0x40aa3d
push 0x4022f0
push edi
call esi
push eax
call fcn.00405e63
pop ecx
mov dword [0x40f870], eax
mov eax, dword [0x40f870]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40aab6
cmp dword [0x40f874], esi
je 0x40aab6
push eax
call fcn.00405ee9
pop ecx
call eax
cmp eax, ebx
je 0x40aa83
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40f874]
call fcn.00405ee9
pop ecx
call eax
test eax, eax
je 0x40aa83
test byte [ebp - 0x18], 1
jne 0x40aab6
lea eax, [ebp - 0xc]
push eax
call fcn.00405c47
pop ecx
test eax, eax
je 0x40aa9e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040930e
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40aaad
or dword [ebp + 0x10], 0x200000
jmp 0x40aae7
or dword [ebp + 0x10], 0x40000
jmp 0x40aae7
mov eax, dword [0x40f868]
cmp eax, esi
je 0x40aae7
push eax
call fcn.00405ee9
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40aae7
mov eax, dword [0x40f86c]
cmp eax, esi
je 0x40aae7
push dword [ebp - 4]
push eax
call fcn.00405ee9
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40f864]
call fcn.00405ee9
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417da7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004126b6
and dword [ebp - 4], 0
cmp dword [0x44dbf4], 0
mov ebx, eax
jne 0x417e58
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x417f09
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x417f09
push eax
call fcn.00412644
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44dbf4], eax
call esi
push eax
call fcn.00412644
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44dbf8], eax
call esi
push eax
call fcn.00412644
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44dbfc], eax
call esi
push eax
call fcn.00412644
pop ecx
mov dword [0x44dc04], eax
test eax, eax
je 0x417e58
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412644
pop ecx
mov dword [0x44dc00], eax
mov eax, dword [0x44dc00]
cmp eax, ebx
je 0x417eb0
cmp dword [0x44dc04], ebx
je 0x417eb0
push eax
call fcn.004126bf
push dword [0x44dc04]
mov esi, eax
call fcn.004126bf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x417eb0
test edi, edi
je 0x417eb0
call esi
test eax, eax
je 0x417ea7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x417ea7
test byte [ebp - 0xc], 1
jne 0x417eb0
or dword [ebp + 0x10], 0x200000
jmp 0x417ee9
mov eax, dword [0x44dbf8]
cmp eax, ebx
je 0x417ee9
push eax
call fcn.004126bf
pop ecx
test eax, eax
je 0x417ee9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x417ee9
mov eax, dword [0x44dbfc]
cmp eax, ebx
je 0x417ee9
push eax
call fcn.004126bf
pop ecx
test eax, eax
je 0x417ee9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44dbf4]
call fcn.004126bf
pop ecx
test eax, eax
je 0x417f09
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x417f0b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0xde0800
Capabilities:
Encode data using xor

Disassembly:
jmp 0xde080a
pushal
call 0xde0810
pop ebp
sub ebp, 0x10
sub ebp, 0x9e0800
jmp 0xde0826
mov eax, 0x9e0800
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c6
mov edx, 0x4294b7c0
xor byte [eax], dl
inc eax
dec ecx
jne 0xde083d
jmp 0xde0850
dec ebx
or eax, 0xc0fc494b
rol al, 0x41
add dword [eax], edi
rol al, 0xc0
ret
Function at 0x401b50
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x41e494]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x808]
push eax
push 0
push 0
push 0x41722c
mov dword [ebp - 0x808], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x401bac
push str.EHNULL
push 0x400
push 0x420d48
call fcn.00406b82
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b73
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x808]
push esi
push ecx
lea edx, [ebp - 0x804]
push 0x400
push edx
call fcn.00406b82
lea eax, [ebp - 0x804]
push eax
push 0x400
push 0x420d48
call fcn.00406b82
mov ecx, dword [ebp - 0x808]
add esp, 0x18
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.PerfsLog
push 0x400
push 0x420d48
call fcn.0040795d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0xc
push 0x420d48
call esi
cmp eax, 0xffffffff
je 0x401c18
test al, 0x10
jne 0x401c65
push 0
push 0x420d48
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401c4f
push str.EHNULL
push 0x400
push 0x420d48
call fcn.00406b82
add esp, 0xc
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b73
mov esp, ebp
pop ebp
ret
push 0x420d48
call esi
or eax, 2
push eax
push 0x420d48
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00406b73
mov esp, ebp
pop ebp
ret

Function at 0x401c80
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov ecx, str.EHNULL
mov eax, 0x420d48
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401cb6
test dx, dx
je 0x401cb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401cb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x401c90
xor eax, eax
jmp 0x401cbb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401cd7
push str.EHNULL
push 0x400
push 0x421548
call fcn.00406b82
add esp, 0xc
ret
push esi
push 0x420d48
push 0x400
push 0x421548
call fcn.00406b82
push str.Sys
push 0x400
push 0x421548
call fcn.0040795d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push 0x421548
call esi
cmp eax, 0xffffffff
je 0x401d19
test al, 0x10
jne 0x401d59
push 0
push 0x421548
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401d43
push str.EHNULL
push 0x400
push 0x421548
call fcn.00406b82
add esp, 0xc
pop esi
ret
push 0x421548
call esi
or eax, 2
push eax
push 0x421548
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret
Function at 0x401d60
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov ecx, str.EHNULL
mov eax, 0x420d48
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401d96
test dx, dx
je 0x401d92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401d96
add eax, 4
add ecx, 4
test dx, dx
jne 0x401d70
xor eax, eax
jmp 0x401d9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401db7
push str.EHNULL
push 0x400
push 0x421d48
call fcn.00406b82
add esp, 0xc
ret
push esi
push 0x420d48
push 0x400
push 0x421d48
call fcn.00406b82
push str.Log
push 0x400
push 0x421d48
call fcn.0040795d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push 0x421d48
call esi
cmp eax, 0xffffffff
je 0x401df9
test al, 0x10
jne 0x401e39
push 0
push 0x421d48
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401e23
push str.EHNULL
push 0x400
push 0x421d48
call fcn.00406b82
add esp, 0xc
pop esi
ret
push 0x421d48
call esi
or eax, 2
push eax
push 0x421d48
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x401e40
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov ecx, str.EHNULL
mov eax, 0x420d48
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401e76
test dx, dx
je 0x401e72
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401e76
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e50
xor eax, eax
jmp 0x401e7b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401e97
push str.EHNULL
push 0x400
push 0x422548
call fcn.00406b82
add esp, 0xc
ret
push esi
push 0x420d48
push 0x400
push 0x422548
call fcn.00406b82
push str.WinLog
push 0x400
push 0x422548
call fcn.0040795d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push 0x422548
call esi
cmp eax, 0xffffffff
je 0x401ed9
test al, 0x10
jne 0x401f19
push 0
push 0x422548
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401f03
push str.EHNULL
push 0x400
push 0x422548
call fcn.00406b82
add esp, 0xc
pop esi
ret
push 0x422548
call esi
or eax, 2
push eax
push 0x422548
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret
Function at 0x401f20
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
mov ecx, str.EHNULL
mov eax, 0x420d48
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401f56
test dx, dx
je 0x401f52
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401f56
add eax, 4
add ecx, 4
test dx, dx
jne 0x401f30
xor eax, eax
jmp 0x401f5b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401f77
push str.EHNULL
push 0x400
push 0x422d48
call fcn.00406b82
add esp, 0xc
ret
push esi
push 0x420d48
push 0x400
push 0x422d48
call fcn.00406b82
push str.WinRm
push 0x400
push 0x422d48
call fcn.0040795d
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
add esp, 0x18
push 0x422d48
call esi
cmp eax, 0xffffffff
je 0x401fb9
test al, 0x10
jne 0x401ff9
push 0
push 0x422d48
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401fe3
push str.EHNULL
push 0x400
push 0x422d48
call fcn.00406b82
add esp, 0xc
pop esi
ret
push 0x422d48
call esi
or eax, 2
push eax
push 0x422d48
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
ret

Function at 0x402260
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x808
mov eax, dword [0x41e494]
xor eax, esp
mov dword [esp + 0x804], eax
mov ecx, str.EHNULL
mov eax, 0x421d48
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4022aa
test dx, dx
je 0x4022a6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4022aa
add eax, 4
add ecx, 4
test dx, dx
jne 0x402284
xor eax, eax
jmp 0x4022af
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4022dc
push str.EHNULL
push 0x400
push 0x420548
call fcn.00406b82
add esp, 0xc
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00406b73
mov esp, ebp
pop ebp
ret
lea eax, [esp]
push eax
call fcn.00402000
push 0x421d48
push 0x400
push 0x420548
call fcn.00406b82
add esp, 0xc
lea ecx, [esp]
push ecx
push 0x400
push 0x420548
call fcn.0040795d
add esp, 0xc
call fcn.00401760
test al, al
je 0x402326
push 0x420548
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.00406b73
mov esp, ebp
pop ebp
ret
Function at 0x403ce0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416348
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x41e494]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403e71
cmp byte [ebx + 0x49], 0
je 0x403e71
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x403e65
lea esi, [ebp - 0x2c]
call fcn.00403770
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403d53
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x403d8c
dec eax
je 0x403d90
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x403e6c
call fcn.00402340
xor al, al
jmp 0x403e73
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403da0
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x403dcd
cmp edi, 0x10
jae 0x403daf
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00408097
add esp, 0x10
cmp esi, eax
jne 0x403e5d
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x403e69
test esi, esi
jne 0x403d47
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x403e8e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x403e8e
cmp edi, esi
jae 0x403e46
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00404510
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x403d47
mov ecx, eax
cmp edi, 0x10
jae 0x403e22
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x403e3d
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x403d41
test esi, esi
jne 0x403e18
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x403e55
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x403d41
lea ecx, [ebp - 0x2c]
call fcn.00402340
xor al, al
jmp 0x403e73
lea ecx, [ebp - 0x2c]
call fcn.00402340
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406b73
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004068f6
int3
Function at 0x4041e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4162bb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x41e494]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004069b1
push 4
mov dword [ebp - 4], 0
call fcn.004071e1
mov edi, eax
add esp, 4
test edi, edi
je 0x40425c
call fcn.004062a5
mov dword [edi], eax
call fcn.00406064
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405f96
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x404252
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00405fbe
jmp 0x40425e
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404e50
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416456
mov eax, dword fs:[0]
push eax
mov eax, 0x184c
call fcn.00413f90
mov eax, dword [0x41e494]
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
push 0x400
lea eax, [ebp - 0x810]
xor esi, esi
push eax
push esi
mov dword [ebp - 0x184c], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
lea eax, [ebp - 0x810]
mov dword [ebp - 0x1818], 7
mov dword [ebp - 0x181c], esi
mov word [ebp - 0x182c], cx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x404ec0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x182c]
call fcn.00404310
mov ebx, 1
lea edi, [ebp - 0x182c]
mov dword [ebp - 4], esi
call fcn.004039c0
lea ecx, [eax + 1]
lea eax, [ebp - 0x1848]
mov edx, edi
call fcn.00402910
mov edi, eax
lea esi, [ebp - 0x182c]
mov byte [ebp - 4], bl
call fcn.004038a0
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x1834], esi
jb 0x404f34
mov edx, dword [ebp - 0x1848]
push edx
call fcn.00406d5b
add esp, 4
mov eax, dword [ebp - 0x182c]
cmp dword [ebp - 0x1818], esi
jae 0x404f48
lea eax, [ebp - 0x182c]
push eax
lea eax, [ebp - 0x810]
push 0x400
push eax
call fcn.00406b82
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
lea ecx, [ebp - 0x1854]
push ecx
lea edx, [ebp - 0x1810]
push edx
mov dword [ebp - 0x1858], eax
mov dword [ebp - 0x1854], 0x400
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
push 0x22c
mov dword [ebp - 0x1850], ebx
call fcn.004071e1
add esp, 4
mov esi, eax
push esi
push ebx
mov dword [esi], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x405045
lea eax, [ebp - 0x810]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.00407d00
add esp, 8
test eax, eax
jne 0x405039
mov ecx, dword [esi + 8]
push ecx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x405039
push edi
lea ecx, [ebp - 0x1010]
call fcn.00404c90
add esp, 4
push edi
mov bl, al
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x405033
lea edx, [ebp - 0x1810]
push edx
lea eax, [ebp - 0x1010]
push eax
call fcn.00407d00
add esp, 8
test eax, eax
jne 0x405033
mov ecx, dword [ebp - 0x1858]
cmp dword [esi + 8], ecx
jne 0x405091
mov ebx, dword [ebp - 0x1850]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x404fc5
mov edi, dword [ebp - 0x184c]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00406d5b
add esp, 4
cmp dword [ebp - 0x1818], 8
jb 0x405073
mov edx, dword [ebp - 0x182c]
push edx
call fcn.00406d5b
add esp, 4
mov eax, edi
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.00406b73
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1850]
mov edi, 1
jmp 0x40504b