joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467664
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x49ebe8]
cmp dword [eax + 0x30], 0
je 0x46770e
cmp dword [ebx + 0x94], 0
jne 0x467708
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4675f4
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x467708
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4676ce
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x467708
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418d2c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4676dd
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x468270
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4682a5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404170
jmp 0x4682b2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040d4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x469304
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x469345
mov eax, esi
call fcn.0044f570
test al, al
je 0x469345
mov eax, dword [ebx + 0x84]
call fcn.0044f26c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x469345
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044f26c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x46a450
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x46a4ec
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.004046cc
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00404598
lea edx, [ebp + 0x30]
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x46a478
cmp byte [esp], 0
je 0x46a4bd
mov eax, edi
call fcn.00404598
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x46a4f8
mov eax, edi
call fcn.00404598
push eax
mov eax, edi
call fcn.00404598
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004028e8
mov edx, ebx
mov eax, edi
call fcn.004046cc
jmp 0x46a4f8
mov eax, edi
mov edx, 0x46a508
call fcn.004040d4
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x46aad8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404530
xor eax, eax
push ebp
push 0x46ab3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004040d4
mov eax, ebx
call fcn.00404590
mov eax, dword [ebx]
call fcn.00404340
test eax, eax
jle 0x46ab24
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x46ab19
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ab41
lea eax, [ebp - 4]
call fcn.00404080
ret

Function at 0x46ade0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor ebx, ebx
xor edx, edx
push ebp
push 0x46ae18
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [eax], 0x5a4d
jne 0x46ae0e
lea edx, [eax + 0x3c]
mov ebx, dword [edx]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x46ae0e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46ae24
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x46af5c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404530
xor eax, eax
push ebp
push 0x46b13a
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
test ebx, ebx
je 0x46b119
mov eax, ebx
call fcn.0046ade0
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x46b104
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x78]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
add eax, ebx
mov edi, eax
test edi, edi
je 0x46b104
mov eax, dword [edi + 0x18]
dec eax
test eax, eax
jl 0x46b104
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x12c]
mov edx, dword [edi + 0x20]
add edx, ebx
mov ecx, dword [ebp - 0xc]
mov edx, dword [edx + ecx*4]
add edx, ebx
call fcn.00404278
mov eax, dword [ebp - 0x12c]
mov edx, dword [ebp - 4]
call fcn.0040448c
jne 0x46b0f8
mov eax, dword [edi + 0x24]
add eax, ebx
mov edx, dword [ebp - 0xc]
mov si, word [eax + edx*2]
movzx eax, si
mov edx, dword [edi + 0x1c]
add edx, ebx
mov edi, dword [edx + eax*4]
mov eax, dword [ebp - 8]
cmp edi, dword [eax + 0x50]
jbe 0x46b0eb
xor edi, edi
push 0x104
lea eax, [ebp - 0x125]
push eax
push ebx
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x46b0eb
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x46b0e2
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x46b0d9
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.0046af08
add eax, dword [ebp - 0x1c]
mov edi, eax
mov edx, dword [edi + 0x1c]
mov eax, dword [ebp - 8]
call fcn.0046af08
add eax, dword [ebp - 0x1c]
movzx edx, si
mov edi, dword [eax + edx*4]
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push 0x104
lea eax, [ebp - 0x125]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
mov edx, edi
mov eax, ebx
call fcn.0046ae58
mov esi, eax
jmp 0x46b104
inc dword [ebp - 0xc]
dec dword [ebp - 0x20]
jne 0x46afd8
test esi, esi
jne 0x46b119
mov eax, dword [ebp - 4]
call fcn.00404540
push eax
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b141
lea eax, [ebp - 0x12c]
call fcn.00404080
lea eax, [ebp - 4]
call fcn.00404080
ret
Function at 0x46dd48
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
jne 0x46ddc4
cmp dword [esp + 0x10], 0x1000
jne 0x46ddc4
cmp dword [esp + 4], 0
je 0x46ddc4
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
test eax, eax
je 0x46ddc4
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x46ddc4
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x46ddc4
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x470b9c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x470c55
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, 0x470c6c
call fcn.0046aad8
push dword [ebp - 0xc]
push 0x470c80
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov edx, dword [eax - 4]
mov cl, byte [ebp - 1]
mov eax, 0x470c8c
call fcn.00470a60
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404400
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.00404540
push eax
call fcn.00470970
mov esi, eax
test esi, esi
je 0x470c3a
push 0
push 0
push 0
push 4
push esi
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x470c34
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov ecx, dword [eax]
mov dword [edx - 4], ecx
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x470c5c
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004040a4
ret

Function at 0x470edc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x470f4d
mov ebx, 0x5f040000
jmp 0x470f3b
cmp dword [esp + 0x10], 0x10000
jne 0x470f19
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
jmp 0x470f4d
cmp dword [esp + 0xc], 0x10000
jae 0x470f2d
mov dword [esp + 0xc], 0x10000
jmp 0x470f35
and dword [esp + 0xc], 0xffff0000
mov eax, dword [esp + 0xc]
add ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp eax, 0x1c
je 0x470ef9
push 0x40
push 0x1000
push edi
push esi
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x4710b4
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x49c964]
cmp eax, 0x1c
jne 0x47112f
cmp dword [ebp - 0xc], 0x1000
jne 0x47112a
cmp dword [ebp - 0x18], 0
je 0x47112a
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x47112a
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x471109
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x47112f
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x49c934]
cmp eax, 0
je 0x47112a
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x49c97c]
add ebx, dword [ebp - 0x10]
jmp 0x4710cb
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x475f88
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404530
xor eax, eax
push ebp
push 0x476048
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
setne bl
xor eax, eax
mov dword [ebp - 8], eax
test bl, bl
jne 0x476032
cmp dword [ebp - 4], 0
jne 0x475fd5
lea edx, [ebp - 8]
mov eax, esi
call fcn.00475dd0
test al, al
je 0x476032
call sub.kernel32.dll_GetCurrentProcess
lea edx, [ebp - 0xc]
call fcn.00475dd0
test al, al
je 0x476023
cmp dword [ebp - 4], 0
je 0x476003
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x47601a
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
push eax
call sub.advapi32.dll_EqualSid
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFree_1
cmp dword [ebp - 8], 0
je 0x476032
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47604f
lea eax, [ebp - 4]
call fcn.00404080
ret

Function at 0x476058
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404530
xor eax, eax
push ebp
push 0x4760de
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.004046cc
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x4760b5
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x4760b0
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x4760a5
add ebx, 2
jmp 0x4760bb
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.00404340
add eax, dword [edi]
cmp eax, esi
ja 0x476093
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4760e5
lea eax, [ebp - 4]
call fcn.00404080
ret
Function at 0x4760ec
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x476241
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jne 0x476139
mov word [ebp - 0x212], 0x2e
mov word [ebp - 0x210], 0
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_lstrlenW
cmp word [ebp + eax*2 - 0x214], 0x5c
je 0x476161
push 0x476250
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_lstrcatW
lea eax, [ebp - 0x226]
push eax
lea edx, [ebp - 0x22c]
mov eax, 0x47625c
call fcn.0046aad8
mov eax, dword [ebp - 0x22c]
call fcn.00404540
push eax
call fcn.004700ec
push ebx
push 0
lea eax, [ebp - 0x226]
push eax
lea eax, [ebp - 0x212]
push eax
call sub.kernel32.dll_GetTempFileNameW
test eax, eax
jne 0x4761bd
lea eax, [ebp - 0x212]
push eax
push ebx
call sub.kernel32.dll_lstrcpyW
lea eax, [ebp - 0x226]
push eax
push ebx
call sub.kernel32.dll_lstrcatW
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x47621e
lea edx, [ebp - 4]
mov eax, 0x476270
call fcn.00476058
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404340
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x476210
mov eax, dword [ebp - 4]
call fcn.00404340
cmp eax, dword [ebp - 8]
je 0x476214
xor ebx, ebx
jmp 0x476216
mov bl, 1
push esi
call sub.kernel32.dll_CloseHandle
jmp 0x476220
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476248
lea eax, [ebp - 0x22c]
call fcn.00404080
lea eax, [ebp - 4]
call fcn.00404080
ret
Function at 0x4779fc
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x477a50
push esi
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x477a39
test ebx, ebx
je 0x477a31
push ebx
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x477a31
push ebx
push esi
call sub.advapi32.dll_EqualSid
test eax, eax
jne 0x477a35
xor eax, eax
jmp 0x477a52
mov al, 1
jmp 0x477a52
test ebx, ebx
je 0x477a4b
push ebx
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x477a4b
xor eax, eax
jmp 0x477a52
mov al, 1
pop esi
pop ebx
ret
mov al, 1
pop esi
pop ebx
ret
Function at 0x47821c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.00477f60
pop ecx
test al, al
jne 0x478344
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.00477f60
pop ecx
test al, al
jne 0x478344
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x49e664]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x49e664]
push eax
call sub.kernel32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.00477f60
pop ecx
test al, al
jne 0x478344
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.00477f60
pop ecx
test al, al
jne 0x478344
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.00477f60
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4789b4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x4789df
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x4789f3
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
jne 0x4789f7
xor eax, eax
jmp 0x4789f9
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x478b68
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x478bff
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00478988
test al, al
je 0x478bff
cmp word [ebp - 2], 0x5a4d
jne 0x478bff
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00478988
test al, al
je 0x478bff
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.00478988
test al, al
je 0x478bff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x478bff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x478c03
xor eax, eax
jmp 0x478c05
mov al, 1
test al, al
je 0x478c22
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret
Function at 0x47a7f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, eax
mov byte [ebp - 1], 0
push ebx
mov eax, dword [esi]
push eax
call fcn.0046eab4
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x149
push esi
push edi
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x47a945
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x47a945
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x47a945
cmp dword [esi + 0x20], 0
je 0x47a8c1
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x20]
push eax
push ebx
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x47a945
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
lea eax, [edi + 0x24]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
test eax, eax
je 0x47a945
mov byte [ebp - 1], 1
cmp dword [esi + 0x145], 0
je 0x47a945
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x145]
dec eax
push eax
push ebx
call sub.kernel32.dll_ReadProcessMemory
test eax, eax
je 0x47a945
cmp byte [ebp - 0x16], 0xe8
jne 0x47a945
lea eax, [edi + 0x3c]
sub eax, dword [esi + 0x145]
sub eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x40
push 4
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0x47a945
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + 0x145]
push eax
call sub.kernel32.dll_VirtualProtect
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47b238
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
lea eax, [ebp - 4]
push eax
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x47b2f9
xor ecx, ecx
push ebp
push 0x47b2f2
push dword fs:[ecx]
mov dword fs:[ecx], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
cmp dword [ebp - 8], 0
je 0x47b2db
mov eax, dword [ebp - 8]
add eax, eax
call fcn.004026ec
mov ebx, eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push 3
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_GetTokenInformation
test eax, eax
je 0x47b2d4
mov eax, dword [ebx]
dec eax
test eax, eax
jl 0x47b2c0
inc eax
xor edx, edx
lea ecx, [edx + edx*2]
or dword [ebx + ecx*4 + 0xc], 2
inc edx
dec eax
jne 0x47b2b4
push 0
push 0
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
mov eax, ebx
call fcn.0040270c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b2f9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CloseHandle
ret
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x480e08
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a0], edx
mov esi, eax
xor eax, eax
push ebp
push 0x480f59
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x480e54
cmp dword [ebp - 0x8c], 1
je 0x480e58
xor ebx, ebx
jmp 0x480e5a
mov bl, 1
mov dl, 1
mov eax, dword [0x436db8]
call fcn.00436e88
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x480f34
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.00436f28
test bl, bl
je 0x480e97
mov edx, 0x480f70
mov eax, dword [ebp - 4]
call fcn.00436f8c
jmp 0x480ea4
mov edx, 0x480fa4
mov eax, dword [ebp - 4]
call fcn.00436f8c
lea ecx, [ebp - 0x1a0]
mov edx, 0x480fdc
mov eax, dword [ebp - 4]
call fcn.004371bc
mov edx, dword [ebp - 0x1a0]
lea eax, [esi + 0x1c]
call fcn.004040d4
lea ecx, [ebp - 0x1a4]
mov edx, 0x480ff4
mov eax, dword [ebp - 4]
call fcn.004371bc
mov edx, dword [ebp - 0x1a4]
lea eax, [esi + 0x20]
call fcn.004040d4
mov eax, dword [ebp - 4]
call fcn.00436ef8
cmp dword [esi + 0x1c], 0
jne 0x480f1e
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x19c]
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [esi + 0x1c]
lea edx, [ebp - 0x19c]
mov ecx, pe_nt_image_headers32
call fcn.004042f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480f3b
mov eax, dword [ebp - 4]
call fcn.00403188
ret