joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov edi, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
cmp esi, 1
mov eax, edi
sbb eax, 0
jl 0x4aa826
mov edx, dword [ebp + 8]
cmp dword [ecx + 0x38], 0
mov ebx, ecx
je 0x4aa82f
mov ecx, esi
mov esi, edi
mov dword [ebp - 0x14], ebx
jmp 0x4aa7dc
mov ebx, edi
sar ebx, 0x1f
cmp edi, dword [ebp - 0x10]
mov ecx, ebx
sbb ecx, esi
cmovge edi, dword [ebp - 0x10]
cmovge ebx, esi
push edi
push eax
push edx
mov esi, edx
call fcn.0061e340
mov edx, esi
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
add esp, 0xc
add edx, edi
sub ecx, edi
sbb esi, ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x2c]
sub dword [eax], edi
mov eax, dword [ebx + 0x1c]
add dword [eax], edi
mov eax, ecx
neg eax
mov eax, 0
sbb eax, esi
jge 0x4aa8d5
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], esi
mov eax, dword [eax]
test eax, eax
je 0x4aa7f4
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ecx]
test edi, edi
jg 0x4aa790
mov eax, dword [ebx]
mov esi, edx
mov edi, dword [eax + 0x1c]
mov ecx, edi
call dword [0x64689c]
mov ecx, ebx
call edi
cmp eax, 0xffffffff
je 0x4aa8cf
mov ecx, dword [ebp - 0x10]
mov edx, esi
mov byte [esi], al
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
inc edx
add ecx, 0xffffffff
adc esi, 0xffffffff
jmp 0x4aa7cb
xor eax, eax
xor edi, edi
jmp 0x4aa907
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x4aa865
mov ecx, dword [ebx + 0x2c]
mov edi, dword [ecx]
test edi, edi
je 0x4aa862
cmp edi, esi
cmovae edi, esi
push edi
push eax
push edx
call fcn.0061e340
mov edx, dword [ebp + 8]
add esp, 0xc
mov eax, dword [ebx + 0x2c]
add edx, edi
sub esi, edi
sub dword [eax], edi
mov eax, dword [ebx + 0x1c]
add dword [eax], edi
mov edi, dword [ebp + 0x10]
cmp dword [ebx + 0x4c], 0
je 0x4aa8fd
mov eax, dword [ebx + 0xc]
lea ecx, [ebx + 0x3c]
mov dword [ebp - 0x14], ebx
cmp dword [eax], ecx
jne 0x4aa8a0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov edx, dword [ecx + 0x50]
mov ebx, dword [ecx + 0x54]
mov dword [eax], edx
sub ebx, edx
mov eax, dword [ecx + 0x1c]
mov dword [eax], edx
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x2c]
mov dword [eax], ebx
nop dword [eax]
cmp esi, 0x1000
jb 0x4aa8e1
mov eax, dword [ebp - 0x14]
push dword [eax + 0x4c]
push 0xfff
push 1
push edx
mov ebx, edx
call fcn.0062ab7b
mov edx, ebx
add esp, 0x10
add edx, eax
sub esi, eax
cmp eax, 0xfff
je 0x4aa8a0
jmp 0x4aa8fd
mov esi, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
sub eax, ecx
sbb edi, esi
jmp 0x4aa907
test esi, esi
je 0x4aa8fb
mov eax, dword [ebp - 0x14]
push dword [eax + 0x4c]
push esi
push 1
push edx
call fcn.0062ab7b
add esp, 0x10
sub esi, eax
jmp 0x4aa8fd
xor esi, esi
mov ebx, dword [ebp + 0xc]
sub ebx, esi
mov eax, ebx
sbb edi, 0
mov edx, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4aa920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ecx + 0x38], 0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edx
je 0x4aaa07
mov ecx, eax
cmp eax, 1
mov edx, ebx
sbb edx, 0
mov esi, ecx
jl 0x4aaa9e
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
jmp 0x4aa9ae
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov edi, esi
sar edi, 0x1f
mov ecx, edi
cmp esi, edx
sbb ecx, ebx
cmovge esi, edx
cmovge edi, ebx
push esi
push dword [ebp - 0x14]
push eax
call fcn.0061e340
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
add dword [ebp - 0x14], esi
mov eax, dword [ecx + 0x30]
sub edx, esi
sbb ebx, edi
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
mov esi, edx
mov eax, esi
neg eax
mov eax, 0
sbb eax, ebx
jge 0x4aaa9e
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
mov eax, dword [eax + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4aa9cc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x30]
mov esi, dword [ecx]
test esi, esi
jg 0x4aa960
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [edi]
movzx eax, byte [ebx]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x20], eax
mov ecx, esi
call dword [0x64689c]
mov ecx, edi
push dword [ebp - 0x20]
call esi
cmp eax, 0xffffffff
je 0x4aaa98
inc ebx
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x1c]
add esi, 0xffffffff
adc ebx, 0xffffffff
jmp 0x4aa99d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x4aaa6b
cmp dword [ebp + 0xc], 1
mov ecx, ebx
sbb ecx, 0
jl 0x4aaa6b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x30]
mov esi, dword [ecx]
test esi, esi
jle 0x4aaa6b
mov edx, dword [ebp + 0xc]
mov edi, esi
mov ecx, ebx
sar edi, 0x1f
cmp edx, esi
sbb ecx, edi
cmovl esi, edx
cmovl edi, ebx
push esi
push dword [ebp + 8]
push eax
call fcn.0061e340
mov edx, dword [ebp + 8]
add esp, 0xc
add edx, esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x10]
sub ecx, esi
mov eax, dword [edx + 0x30]
sbb ebx, edi
sub dword [eax], esi
mov eax, dword [edx + 0x20]
add dword [eax], esi
mov esi, ecx
jmp 0x4aaa6e
mov esi, dword [ebp + 0xc]
cmp esi, 1
mov eax, ebx
sbb eax, 0
jl 0x4aaa9e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x4aaa9e
push eax
push esi
push 1
push dword [ebp - 0x14]
call fcn.00628833
add esp, 0x10
sub esi, eax
sbb ebx, 0
jmp 0x4aaa9e
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, esi
sbb edx, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4aaed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [0x6ccc30]
mov bl, 1
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x38], 0
je 0x4aaf72
cmp byte [ecx + 0x3d], 0
mov esi, ecx
je 0x4aaf72
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
push 0xffffffffffffffff
call edi
cmp eax, 0xffffffff
je 0x4aaf70
mov edi, dword [esi + 0x38]
lea eax, [esi + 0x40]
mov dword [ebp - 0x38], eax
mov eax, dword [edi]
mov ebx, dword [eax + 0x20]
mov ecx, ebx
call dword [0x64689c]
lea eax, [ebp - 0x34]
lea edx, [ebp - 0x30]
mov ecx, edi
push eax
lea eax, [ebp - 0x10]
push eax
push edx
push dword [ebp - 0x38]
call ebx
cmp eax, 3
je 0x4aaf86
cmp eax, 1
je 0x4aaf4a
test eax, eax
jne 0x4aaf70
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x4aaf67
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00628833
add esp, 0x10
cmp edi, eax
jne 0x4aaf70
cmp byte [esi + 0x3d], 0
sete bl
jmp 0x4aaf72
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov bl, 1
mov byte [esi + 0x3d], 0
jmp 0x4aaf72

Function at 0x4acbb0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 0x3c]
movzx edx, word [ecx + eax + 6]
test edx, edx
je 0x4acc08
add eax, ecx
xor ebx, ebx
movzx esi, word [eax + 0x14]
lea edi, [eax + esi + 0x18]
xor esi, esi
jmp 0x4acbf3
xor eax, eax
add eax, dword [edi + ebx + 8]
cmp eax, dword [ebp + 8]
ja 0x4acc11
inc esi
add ebx, 0x28
cmp esi, edx
jae 0x4acc08
test edi, edi
je 0x4acc08
mov eax, dword [edi + ebx + 0xc]
test eax, eax
je 0x4acbe0
add eax, ecx
cmp eax, dword [ebp + 8]
jbe 0x4acbe2
jmp 0x4acbeb
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 4
add edi, ebx
mov eax, edi
jmp 0x4acc0a
Function at 0x4ae128
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov eax, edi
shr eax, 4
inc eax
movzx eax, ax
push 6
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
xor eax, eax
test esi, esi
je 0x4ae1f3
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ae1f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4ae1f1
mov ebx, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
setg cl
and edi, 0xf
je 0x4ae1a8
test eax, eax
jle 0x4ae1a8
mov edx, ebx
dec edi
add edx, eax
movzx eax, word [ebx]
lea ebx, [ebx + eax*2 + 2]
cmp ebx, edx
setb cl
add edi, 0xffffffff
jae 0x4ae1a8
cmp ebx, edx
jb 0x4ae193
test cl, cl
je 0x4ae1f1
movzx esi, word [ebx]
mov eax, 0
test esi, esi
je 0x4ae1f3
mov edi, dword [ebp - 0x14]
lea eax, [ebx + 2]
mov dword [ebp - 0x10], eax
mov ecx, edi
push esi
call fcn.004ae2c0
movzx ecx, word [ebx]
push ecx
push dword [ebp - 0x10]
push esi
push eax
call fcn.004ae24a
add esp, 0x10
mov eax, dword [edi]
cmp dword [eax - 8], esi
jl 0x4ae1fd
mov dword [eax - 0xc], esi
mov eax, dword [edi]
mov word [eax + esi*2], 0
xor eax, eax
inc eax
jmp 0x4ae1f3
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
push 0x80070057
call fcn.005ef7e0
int3
Function at 0x4ae9c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x6ccc30]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x4aea93
or eax, dword [ebp - 0x220]
je 0x4aea93
push 0
push 1
push 0
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x4aea93
mov esi, eax
push 1
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4aea97
mov edi, eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0
push ebx
call fcn.0061e8c0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x104
push ebx
push edi
push eax
call sub.PSAPI.DLL_GetMappedFileNameW
test eax, eax
je 0x4aea9b
push ebx
call fcn.005d3244
mov edx, dword [ebp + 0xc]
add esp, 4
mov ecx, ebx
mov ebx, eax
mov eax, dword [edx + 0x14]
cmp eax, ebx
jae 0x4aea9f
sub esp, 0xc
mov al, byte [ebp - 0x21c]
mov byte [esp + 4], al
mov dword [esp + 8], ecx
mov ecx, edx
mov dword [esp], ebx
call fcn.00405590
jmp 0x4aeace
xor ebx, ebx
jmp 0x4aeade
xor ebx, ebx
jmp 0x4aead7
xor ebx, ebx
jmp 0x4aead0
cmp eax, 8
mov eax, edx
jb 0x4aeaa8
mov eax, dword [edx]
mov dword [edx + 0x10], ebx
mov edx, eax
mov dword [ebp - 0x224], eax
mov eax, ebx
add eax, ebx
push eax
push ecx
push edx
call fcn.0061e340
add esp, 0xc
mov eax, dword [ebp - 0x224]
mov word [eax + ebx*2], 0
mov bl, 1
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4afd00
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x220
mov eax, dword [0x6ccc30]
mov ecx, dword [ebp + 8]
xor eax, ebp
test ecx, ecx
mov dword [ebp - 0x10], eax
je 0x4afe27
cmp word [ecx], 0x5c
jne 0x4afe27
cmp word [ecx + 2], 0x5c
jne 0x4afe27
movzx eax, word [0x65d264]
mov ecx, dword [0x65d260]
mov esi, dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov bx, 0x43
lea edi, [ebp - 0x220]
mov word [ebp - 0x21c], ax
mov dword [ebp - 0x220], ecx
jmp 0x4afd81
lea edi, [ebp - 0x220]
inc ebx
cmp bx, 0x5b
je 0x4afe27
mov word [ebp - 0x220], bx
push edi
call esi
cmp eax, 4
jne 0x4afd76
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x104
push eax
lea eax, [ebp - 0x218]
push eax
push edi
call sub.MPR.dll_WNetGetConnectionW
test eax, eax
jne 0x4afd70
lea eax, [ebp - 0x218]
push eax
call fcn.005d3244
add esp, 4
mov edi, eax
push dword [ebp + 8]
call fcn.005d3244
add esp, 4
cmp eax, edi
jbe 0x4afd70
push edi
lea eax, [ebp - 0x218]
push eax
push dword [ebp + 8]
call fcn.005dcc34
add esp, 0xc
test eax, eax
jne 0x4afd70
lea esi, [ebp - 0x220]
mov dword [ebp - 0x22c], edi
push esi
call fcn.005d3244
add esp, 4
mov ebx, dword [ebp + 0xc]
mov edi, eax
mov eax, dword [ebx + 0x14]
cmp eax, edi
jae 0x4afe40
sub esp, 0xc
mov al, byte [ebp - 0x224]
mov ecx, ebx
mov byte [esp + 4], al
mov dword [esp + 8], esi
mov dword [esp], edi
call fcn.00405590
jmp 0x4afe67
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x220
pop esi
pop edi
pop ebx
pop ebp
ret
cmp eax, 8
mov esi, ebx
jb 0x4afe49
mov esi, dword [ebx]
mov eax, edi
mov dword [ebx + 0x10], edi
add eax, edi
push eax
lea eax, [ebp - 0x220]
push eax
push esi
call fcn.0061e340
add esp, 0xc
mov word [esi + edi*2], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x22c]
lea esi, [eax + ecx*2]
push esi
call fcn.005d3244
add esp, 4
mov edx, dword [ebx + 0x14]
mov ecx, dword [ebx + 0x10]
mov edi, edx
sub edi, ecx
cmp edi, eax
jae 0x4afeab
sub esp, 0x10
mov cl, byte [ebp - 0x224]
mov byte [esp + 4], cl
mov ecx, ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
mov dword [esp], eax
call fcn.0040b010
jmp 0x4afece
lea edi, [ecx + eax]
cmp edx, 8
mov dword [ebx + 0x10], edi
jb 0x4afeb8
mov ebx, dword [ebx]
add eax, eax
lea ecx, [ebx + ecx*2]
push eax
push esi
push ecx
call fcn.0061e340
add esp, 0xc
mov word [ebx + edi*2], 0
mov bl, 1
jmp 0x4afe29
Function at 0x4b8380
Capabilities:
Access peb ldr_data
Check if file exists
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c02d0
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ecx + 0x34], 0
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x39], 0
mov dword [ecx + 0x35], 0
lea ecx, [esi + 1]
cmp ecx, 2
jb 0x4b8478
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [ecx]
inc eax
cmp eax, 2
mov eax, ecx
jb 0x4b8468
call fcn.0040e440
mov eax, dword [ebp - 0x20]
push dword [eax]
call fcn.0040f9e0
mov edx, dword [ebp + 8]
add esp, 4
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
mov dword [eax], edx
call fcn.0040e440
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x4b84e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c02e0
mov eax, ecx
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov ecx, dword fs:[0]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x18]
mov dword fs:[0], ecx
mov cl, byte [ebp + 0x14]
mov dword [eax + 0x34], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x2c], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x30], 0
mov dword [eax + 0x39], 0
mov dword [eax + 0x35], 0
mov dword [ebp - 0x10], 0
movzx ebx, cl
mov ecx, eax
push edi
push ebx
push esi
push edx
push dword [ebp + 8]
call fcn.004b8620
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, dword [ebp - 0x20]
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x4bb810
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c0430
mov edx, dword [ebp + 0xc]
xor ebx, ebx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edx, edx
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4bb9a2
mov esi, dword [ebp + 8]
cmp dword [esi + 0x10], 0
je 0x4bb9a2
cmp dword [edx + 0x14], 8
mov eax, edx
jb 0x4bb861
mov eax, dword [edx]
mov dword [edx + 0x10], 0
mov word [eax], 0
mov eax, esi
cmp dword [esi + 0x14], 7
jbe 0x4bb877
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4bb8d0
mov edi, eax
mov dword [ebp - 0x2c], eax
mov eax, 0
mov dword [ebp - 0x24], 0
inc edi
je 0x4bb8f8
test edi, edi
js 0x4bb9b5
lea ebx, [edi + edi]
cmp edi, 0x800
jb 0x4bb8d7
cmp edi, 0x7fffffef
jae 0x4bb9c6
lea eax, [ebx + 0x23]
push eax
call fcn.005d0220
add esp, 4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4bb8e2
xor ebx, ebx
jmp 0x4bb9a2
push ebx
call fcn.005d0220
add esp, 4
mov ecx, eax
lea eax, [ecx + edi*2]
mov dword [ebp - 0x24], eax
push ebx
push 0
push ecx
mov ebx, ecx
call fcn.0061e8c0
mov eax, ebx
add esp, 0xc
cmp dword [esi + 0x14], 7
jbe 0x4bb900
mov esi, dword [esi]
mov dword [ebp - 0x10], 1
push edi
mov dword [ebp - 0x20], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
cmp eax, dword [ebp - 0x2c]
jae 0x4bb949
mov edi, dword [ebp - 0x20]
push edi
call fcn.005d3244
add esp, 4
mov ecx, dword [ebp + 0xc]
mov esi, eax
mov eax, dword [ecx + 0x14]
cmp eax, esi
jae 0x4bb94d
sub esp, 0xc
mov al, byte [ebp - 0x28]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00405590
jmp 0x4bb970
xor ebx, ebx
jmp 0x4bb972
cmp eax, 8
mov edi, ecx
jb 0x4bb956
mov edi, dword [ecx]
mov eax, esi
mov dword [ecx + 0x10], esi
add eax, esi
push eax
push dword [ebp - 0x20]
push edi
call fcn.0061e340
add esp, 0xc
mov word [edi + esi*2], 0
mov bl, 1
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
test edx, edx
je 0x4bb9a2
sub ecx, edx
cmp ecx, 0x1000
jb 0x4bb998
mov eax, dword [edx - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bb9ba
add ecx, 0x23
mov edx, eax
push ecx
push edx
call fcn.005d319e
add esp, 8
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005e99f0
mov dword [ebp - 0x10], 0
call fcn.006207e0
call fcn.005e8c60
nop dword [eax + eax]
push ebp
sub esp, 0xc
add ebp, 0xc
call fcn.0061de80
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp - 0x20], 0
je 0x4bba1e
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
mov ecx, eax
cmp eax, 0x1000
jb 0x4bba12
mov edx, dword [ebp - 0x20]
mov eax, dword [edx - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x4bba23
add ecx, 0x23
mov dword [ebp - 0x20], eax
push ecx
push dword [ebp - 0x20]
call fcn.005d319e
add esp, 8
add esp, 0xc
pop ebp
ret
call fcn.006207e0
int3
Function at 0x4bca60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov eax, dword [0x6ccc30]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
xor eax, ebp
test ecx, ecx
mov dword [ebp - 0x10], eax
je 0x4bca86
mov dword [ecx], 0
cmp dword [ebx + 0x10], 0
je 0x4bcb33
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x4bcb33
mov esi, eax
lea eax, [ebp - 0x238]
push 0x228
push 0
push eax
call fcn.0061e8c0
add esp, 0xc
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4bcb2f
lea edi, [ebp - 0x218]
nop dword [eax + eax]
mov word [ebp - 0x12], 0
mov eax, ebx
cmp dword [ebx + 0x14], 7
jbe 0x4bcaf0
mov eax, dword [ebx]
push eax
push edi
call fcn.005d3f0e
add esp, 8
test eax, eax
je 0x4bcb37
push 0x228
push 0
lea eax, [ebp - 0x238]
push eax
call fcn.0061e8c0
add esp, 0xc
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4bcae0
xor ebx, ebx
jmp 0x4bcb48
xor ebx, ebx
jmp 0x4bcb4f
mov ecx, dword [ebp + 0xc]
mov bl, 1
test ecx, ecx
je 0x4bcb48
mov eax, dword [ebp - 0x234]
mov dword [ecx], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ce525
mov eax, ebx
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4bdec0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x4c0570
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], ecx
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ecx], vtable.std::wstring_convert_class_std::codecvt_utf8_utf16_wchar_t__1114111__0___wchar_t__class_std::allocator_wchar_t___class_std::allocator_char__.0
mov dword [ebp - 0x10], 0
push 1
call fcn.005dd08e
add esp, 4
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x24], 0xf
mov dword [ecx + 0x20], 0
mov byte [ecx + 0x10], 0
mov dword [ecx + 0x3c], 7
mov dword [ecx + 0x38], 0
mov word [ecx + 0x28], 0
mov word [ecx + 0x48], 0
mov byte [ecx + 0x4a], 0
mov dword [ebp - 0x10], 1
push 0x34
call fcn.005d0220
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x24], eax
mov dword [eax], vtable.std::codecvt_wchar_t__char__struct__Mbstatet_.0
mov dword [ebp - 0x10], 2
lea ecx, [ebp - 0x84]
push 0x65e154
call fcn.005dd490
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], 3
push eax
call fcn.005df459
add esp, 4
mov ebx, dword [ebp - 0x24]
movsd xmm2, qword [ebp - 0x38]
movsd xmm1, qword [ebp - 0x40]
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x28]
movsd xmm0, qword [ebp - 0x30]
lea ecx, [ebp - 0x84]
movsd qword [ebx + 0x20], xmm2
movsd qword [ebx + 0x18], xmm1
movsd xmm2, qword [ebp - 0x50]
movsd xmm1, qword [ebp - 0x48]
lea esi, [edi + 8]
mov dword [ebx + 0x30], eax
movsd qword [ebx + 0x28], xmm0
movsd qword [ebx + 0x10], xmm1
movsd qword [ebx + 8], xmm2
call fcn.005ddc10
mov dword [ebx], vtable.std::codecvt_utf8_utf16_wchar_t__1114111__0_.0
mov dword [edi + 0x44], 0
mov dword [edi + 0x40], 0
mov dword [edi + 4], ebx
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x84]
push ebx
push esi
call fcn.004becd0
mov ebx, dword [ebp - 0x20]
mov esi, dword [ebx + 0xc]
cmp esi, dword [ebp - 0x80]
je 0x4be054
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
call edi
test eax, eax
je 0x4be03a
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
push 1
call edi
mov esi, dword [ebp - 0x80]
mov dword [ebx + 0xc], esi
mov eax, dword [esi]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
call edi
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x4be088
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov dword [ebp - 0x10], 0xffffffff
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
call edi
test eax, eax
je 0x4be088
mov esi, eax
mov eax, dword [eax]
mov edi, dword [eax]
mov ecx, edi
call dword [0x64689c]
mov ecx, esi
push 1
call edi
mov dword [ebx + 0x4c], 0
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, ebx
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret