joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404fe0
Capabilities:
Create http request
Delete file
Write file on windows

Disassembly:
mov eax, 0x1014
call fcn.00405ae0
mov eax, dword [0x40e0b0]
push esi
push edi
push 0x40b75c
mov dword [esp + 0x101c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
call fcn.00402e80
add esp, 4
mov esi, eax
push esi
push 0x40b750
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push 0
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push 0
push 0
push 0
push 0x40b289
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x84000100
push 0
mov esi, eax
mov eax, dword [esp + 0x102c]
push 0
push eax
push esi
mov dword [esp + 0x24], esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
test esi, esi
mov edi, eax
je 0x405142
test edi, edi
je 0x405142
cmp esi, 0xffffffff
je 0x405142
cmp edi, 0xffffffff
je 0x405142
mov esi, dword [esp + 0x1024]
test esi, esi
push ebx
je 0x4050c5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
jmp 0x4050d0
mov ebx, dword [esp + 0x10]
lea esp, [esp]
lea ecx, [esp + 0xc]
push ecx
push 0x1000
lea edx, [esp + 0x24]
push edx
push edi
call dword [esp + 0x28]
test esi, esi
je 0x405104
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x40510c
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
test eax, eax
ja 0x4050d0
test esi, esi
je 0x405117
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1010]
call fcn.00405b4e
add esp, 0x1014
ret
mov ecx, dword [esp + 0x1018]
pop edi
xor eax, eax
pop esi
call fcn.00405b4e
add esp, 0x1014
ret

Function at 0x405160
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
push edi
push str.System32_
call ebx
mov esi, dword [esp + 0x18]
push esi
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push edi
call ebx
sub esi, ebp
cmp eax, esi
jg 0x4051b2
mov esi, dword [esp + 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.System32_
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x405800
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405ae0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40589b
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40e664]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40589b
cmp eax, 1
je 0x4058bc
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40589b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x405868
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x405897
xor eax, eax
inc eax
jmp 0x4058db
cmp edi, eax
jae 0x40589f
xor eax, eax
jmp 0x4058db
cmp eax, esi
jae 0x4058a6
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40e664]
jmp 0x4058bf
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406692
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40b7f8
call fcn.004068d0
mov edi, 0x94
mov eax, edi
call fcn.00405ae0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40e664], ecx
mov eax, dword [esi + 4]
mov dword [0x40e670], eax
mov edx, dword [esi + 8]
mov dword [0x40e674], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40e668], esi
cmp ecx, 2
je 0x4066f2
or esi, 0x8000
mov dword [0x40e668], esi
shl eax, 8
add eax, edx
mov dword [0x40e66c], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40672d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40672d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x406745
cmp eax, 0x20b
je 0x406732
mov dword [ebp - 0x1c], esi
jmp 0x406759
cmp dword [ecx + 0x84], 0xe
jbe 0x40672d
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x406753
cmp dword [ecx + 0x74], 0xe
jbe 0x40672d
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.00406a98
pop ecx
test eax, eax
jne 0x406785
cmp dword [0x40e64c], 1
jne 0x406772
call fcn.00408e05
push 0x1c
call fcn.00408c8e
push 0xff
call fcn.00407627
pop ecx
pop ecx
call fcn.004095ae
mov dword [ebp - 4], esi
call fcn.00409403
test eax, eax
jge 0x40679e
push 0x1b
call fcn.0040666d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40ebf8], eax
call fcn.004092e1
mov dword [0x40e644], eax
call fcn.0040923f
test eax, eax
jge 0x4067c4
push 8
call fcn.0040666d
pop ecx
call fcn.0040900c
test eax, eax
jge 0x4067d5
push 9
call fcn.0040666d
pop ecx
push 1
call fcn.00407657
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4067eb
push eax
call fcn.0040666d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00408faf
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40680c
movzx eax, word [ebp - 0x40]
jmp 0x40680f
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00404030
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40682d
push edi
call fcn.00407782
call fcn.004077a4
jmp 0x40685f
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0040690b
ret
Function at 0x4076c1
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40e6a4], esi
push edi
jne 0x4076e1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x40e6a0], esi
mov byte [0x40e69c], al
jne 0x407747
mov ecx, dword [0x40ebc8]
test ecx, ecx
je 0x407728
mov eax, dword [0x40ebc4]
sub eax, 4
cmp eax, ecx
jmp 0x407721
mov eax, dword [eax]
test eax, eax
je 0x407713
call eax
mov eax, dword [0x40ebc4]
sub eax, 4
cmp eax, dword [0x40ebc8]
mov dword [0x40ebc4], eax
jae 0x40770b
mov eax, 0x40e02c
mov esi, 0x40e030
cmp eax, esi
mov edi, eax
jae 0x407747
mov eax, dword [edi]
test eax, eax
je 0x407740
call eax
add edi, 4
cmp edi, esi
jb 0x407738
mov eax, 0x40e034
mov esi, 0x40e03c
cmp eax, esi
mov edi, eax
jae 0x407766
mov eax, dword [edi]
test eax, eax
je 0x40775f
call eax
add edi, 4
cmp edi, esi
jb 0x407757
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x407780
push dword [ebp + 8]
mov dword [0x40e6a4], 1
call fcn.00407627
pop ebp
ret
Function at 0x4077c2
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4077f0
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4077f7
cmp ebx, dword [eax + 4]
jae 0x4077f7
xor eax, eax
jmp 0x4079e7
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407808
xor eax, eax
inc eax
jmp 0x4079e6
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40781e
cmp ecx, edx
jae 0x407963
cmp dword [eax + 4], 0
je 0x407827
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40780f
cmp dword [ebp + 8], 0
je 0x407849
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x407963
cmp eax, esi
jae 0x407963
mov eax, dword [0x40e6a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40786e
cmp dword [esi*4 + 0x40e6b0], edi
je 0x407967
inc esi
cmp esi, eax
jl 0x40785c
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4079e3
cmp dword [ebp - 8], 0x1000000
jne 0x4079e3
test byte [ebp - 0xc], 0xcc
je 0x4078ec
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4079e3
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4079e3
cmp word [eax + 0x18], 0x10b
jne 0x4079e3
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4079e3
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4078ec
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4078ec
test byte [ecx + 0x27], 0x80
jne 0x407963
push 1
push 0x40e6f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407800
mov ecx, dword [0x40e6a8]
test ecx, ecx
mov edx, ecx
jle 0x407920
lea eax, [ecx*4 + 0x40e6ac]
cmp dword [eax], edi
je 0x407920
dec edx
sub eax, 4
test edx, edx
jg 0x407914
test edx, edx
jne 0x407951
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40792d
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x407945
lea eax, [edx*4 + 0x40e6b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x407933
cmp ecx, 0x10
jge 0x407951
inc ecx
mov dword [0x40e6a8], ecx
push 0
push 0x40e6f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407800
xor eax, eax
jmp 0x4079e6
test esi, esi
jle 0x407800
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40e6f0
call ebx
test eax, eax
jne 0x407800
cmp dword [esi*4 + 0x40e6b0], edi
je 0x4079bd
mov eax, dword [0x40e6a8]
lea esi, [eax - 1]
test esi, esi
jl 0x4079ab
cmp dword [esi*4 + 0x40e6b0], edi
je 0x4079a7
dec esi
jns 0x40799b
test esi, esi
jge 0x4079bb
cmp eax, 0x10
jge 0x4079b6
inc eax
mov dword [0x40e6a8], eax
lea esi, [eax - 1]
jmp 0x4079bd
je 0x4079d5
xor ecx, ecx
test esi, esi
jl 0x4079d5
lea eax, [ecx*4 + 0x40e6b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4079c3
push 0
push 0x40e6f0
call ebx
jmp 0x407800
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c8e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40e0b0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40e200]
je 0x408cc3
inc eax
cmp eax, 0x13
jb 0x408cb4
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40e200]
jne 0x408de9
mov eax, dword [0x40e64c]
cmp eax, 1
je 0x408dc1
cmp eax, edx
jne 0x408cf3
cmp dword [0x40e0d8], 1
je 0x408dc1
cmp ecx, 0xfc
je 0x408de9
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408d29
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00409a80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004089d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x408d5d
mov eax, edi
push eax
call fcn.004089d0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b858
push edi
call fcn.00409b80
add esp, 0x10
push edi
call fcn.004089d0
push dword [esi + 0x40e204]
mov ebx, eax
call fcn.004089d0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405ae0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00409a80
push edi
push ebx
call fcn.00409a90
push 0x40b854
push ebx
call fcn.00409a90
push dword [esi + 0x40e204]
push ebx
call fcn.00409a90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040997d
add esp, 0x2c
jmp 0x408de9
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40e204]
push dword [esi]
call fcn.004089d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00405b4e
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40997d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40e82c], ebx
push esi
push edi
jne 0x4099fd
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409a38
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x40e82c], eax
je 0x409a38
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40e830], eax
call esi
cmp dword [0x40e664], 2
mov dword [0x40e834], eax
jne 0x4099fd
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40e83c], eax
je 0x4099fd
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40e838], eax
mov eax, dword [0x40e838]
test eax, eax
je 0x409a42
call eax
test eax, eax
je 0x409a29
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40e83c]
test eax, eax
je 0x409a29
test byte [ebp - 8], 1
jne 0x409a42
cmp dword [0x40e670], 4
jb 0x409a3c
or byte [ebp + 0x12], 0x20
jmp 0x409a61
xor eax, eax
jmp 0x409a71
or byte [ebp + 0x12], 4
jmp 0x409a61
mov eax, dword [0x40e830]
test eax, eax
je 0x409a61
call eax
mov ebx, eax
test ebx, ebx
je 0x409a61
mov eax, dword [0x40e834]
test eax, eax
je 0x409a61
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40e82c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4079d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419efb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x2c]
call fcn.0040ed50
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x407a6b
push ecx
mov ecx, 0x6f3c5097
mov ecx, 0x7fed519f
add ecx, ebx
pop ecx
push 0
push pe_nt_image_headers32
lea ecx, [ebp - 0x12c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x407a40
jmp 0x407a6b
cmp dword [ebp - 0x10], 0
jne 0x407a48
jmp 0x407a6b
push ebp
sbb ebp, esi
and ebp, ebx
and ebp, edx
mov ebp, 0x4f942841
nop
pop ebp
mov eax, dword [ebp - 0x10]
push eax
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004137a0
jmp 0x407a04
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040eaa0
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.0040f630
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x407aa0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push esi
push edi
mov dword [ebp - 4], 0
push 0
push 0x41b6a0
mov ecx, dword [ebp + 8]
call fcn.00414960
cmp eax, 0xffffffff
je 0x407b01
mov eax, dword [0x41b6e0]
push eax
push 0
push str.http:__
mov ecx, dword [ebp + 8]
call fcn.00414960
add eax, 7
push eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00418000
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040fa90
lea ecx, [ebp - 0x34]
call fcn.0040f630
jmp 0x407b1c
push 0
push str.https:__
mov ecx, dword [ebp + 8]
call fcn.00414960
cmp eax, 0xffffffff
je 0x407b1c
xor al, al
jmp 0x407c1d
push ebp
mov ebp, 0x5ce4459b
mov ebp, 0x4cbd0b7c
add ebp, eax
pop ebp
mov dword [ebp - 0x54], 0
xor eax, eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov ecx, 8
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x74], pe_nt_image_headers32
mov dword [ebp - 0x70], 2
mov dword [ebp - 0x68], 4
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x74]
push edx
push 0
mov ecx, dword [ebp + 8]
call fcn.00413f90
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x407b93
xor al, al
jmp 0x407c1d
push eax
mov eax, 0x55c062e3
mov eax, 0x50fb6b22
and eax, ecx
pop eax
xor eax, eax
mov word [ebp - 0x1c], ax
xor ecx, ecx
mov dword [ebp - 0x1a], ecx
mov dword [ebp - 0x16], ecx
mov dword [ebp - 0x12], ecx
mov word [ebp - 0xe], cx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0x14]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 0x10]
mov dword [edx + 0xc], ecx
mov edx, 2
mov eax, dword [ebp + 0xc]
mov word [eax], dx
push esi
mov esi, 0x73f13f9c
mov esi, 0x10486963
add esi, esp
pop esi
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0xc]
mov word [ecx + 2], ax
push ebp
and ebp, eax
mov ebp, 0x5eeb0024
mov ebp, 0x45c55fcd
pop ebp
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x410df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a828
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push esi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x38], 0
je 0x410e23
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x410e2f
mov al, 1
jmp 0x410fd4
mov dword [ebp - 0x2c], 8
call fcn.004146d0
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x20], eax
call fcn.004146d0
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00414740
add esp, 8
movzx eax, al
test eax, eax
je 0x410e72
xor al, al
jmp 0x410fd4
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.0040ec10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebp - 0x54]
call fcn.00413eb0
mov ecx, eax
call fcn.0040fef0
mov esi, eax
lea ecx, [ebp - 0x54]
call fcn.00417e50
add esi, eax
push esi
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x54]
call fcn.00413eb0
mov ecx, eax
call fcn.0040fef0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + 0x38]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x410eee
cmp dword [ebp - 0x1c], 1
je 0x410ef5
cmp dword [ebp - 0x1c], 3
je 0x410f90
jmp 0x410fa8
mov eax, dword [ebp - 0x14]
mov byte [eax + 0x3d], 0
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x54]
call fcn.00413eb0
mov ecx, eax
call fcn.0040fef0
mov edx, dword [ebp - 0x28]
sub edx, eax
mov dword [ebp - 0x18], edx
je 0x410f59
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 1
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x54]
call fcn.00413eb0
mov ecx, eax
call fcn.0040fef0
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x18], eax
je 0x410f59
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040f630
mov al, byte [ebp - 0xd]
jmp 0x410fd4
mov ecx, dword [ebp - 0x14]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x410f7c
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040f630
mov al, byte [ebp - 0xe]
jmp 0x410fd4
cmp dword [ebp - 0x18], 0
jne 0x410f8e
push 0
push 8
lea ecx, [ebp - 0x54]
call fcn.004136e0
jmp 0x410fc0
mov byte [ebp - 0xf], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040f630
mov al, byte [ebp - 0xf]
jmp 0x410fd4
mov byte [ebp - 0x10], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.0040f630
mov al, byte [ebp - 0x10]
jmp 0x410fd4
jmp 0x410e85
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x401070
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x437f88
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x44cc80]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44cc80]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea eax, [esp + 0x28]
push str.CheckTokenAuthority
push eax
mov edi, ecx
call fcn.00405b00
add esp, 0xc
mov dword [esp + 0x40], ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea ecx, [esp + 0x18]
push ecx
push ebx
push ebx
push 2
push edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x2c], ebx
call ebp
test eax, eax
jne 0x4011a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4011a4
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x4011a4
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4011a4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x18]
push edx
push eax
push esi
push 2
push edi
call ebp
test eax, eax
je 0x40119d
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea edx, [esp + 0x54]
push edx
mov byte [esp + 0x58], bl
mov byte [esp + 0x59], bl
mov byte [esp + 0x5a], bl
mov byte [esp + 0x5b], bl
mov byte [esp + 0x5c], bl
mov byte [esp + 0x5d], 5
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x40119d
xor edi, edi
cmp dword [esi], ebx
jbe 0x401192
mov ebp, dword [sym.imp.ADVAPI32.dll_EqualSid]
lea ebx, [esi + 4]
mov eax, dword [esp + 0x1c]
mov ecx, dword [ebx]
push eax
push ecx
call ebp
test eax, eax
jne 0x40118a
add edi, 1
add ebx, 8
cmp edi, dword [esi]
jb 0x401170
jmp 0x401192
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x20]
push esi
push str.return_BOOL__d__n
lea eax, [esp + 0x2c]
push 2
push eax
call fcn.00404dc0
add esp, 0x10
mov dword [esp + 0x40], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.00405a70
mov eax, esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004237ad
add esp, 0x30
ret