joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10036f50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100afe66
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x100e2524]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x10036ffc
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x10036ffc
call fcn.10036310
mov esi, eax
jmp 0x100370ec
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x1003701f
call fcn.10036310
jmp 0x100370df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x1003703d
call fcn.10036310
jmp 0x100370df
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x1003705e
mov esi, 0x8007000e
jmp 0x100370e1
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.10036140
jmp 0x10037088
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x1003709f
mov esi, 0x8007000e
jmp 0x100370e1
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100370bf
call fcn.10036310
jmp 0x100370df
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.10036db0
mov esi, eax
test edi, edi
je 0x100370ec
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10037110
lea ecx, [ebp - 0x418]
call fcn.10036650
nop word [eax + eax]
mov eax, esi
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.1007850b
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1003cea0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0aec
mov eax, dword fs:[0]
push eax
mov eax, 0x19010
call fcn.100785e0
mov eax, dword [0x100e2524]
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 dword [ebp - 0x19018], ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x19014], esi
mov edi, dword [eax]
cmp dword [edi - 0xc], 0
jne 0x1003cf3c
call fcn.1000b090
mov ecx, eax
test ecx, ecx
je 0x1003d0c6
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x100ba088
mov dword [ebp - 4], 0
mov ecx, esi
test eax, 0xffff0000
jne 0x1003cf2b
movzx eax, ax
push eax
call fcn.1000bf50
jmp 0x1003d0a6
push 0
push 0x100ba088
call fcn.10017b00
jmp 0x1003d0a6
push 0x19000
lea eax, [ebp - 0x19010]
push 0
push eax
call fcn.100832e0
mov eax, dword [ebp - 0x19018]
add esp, 0xc
push dword [eax]
lea eax, [ebp - 0x19010]
push 0xc800
push eax
push 0x100ba088
push dword [ebx]
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x19010]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003cf80
sub ecx, edx
sar ecx, 1
jne 0x1003cffa
call fcn.1000b090
mov ecx, eax
test ecx, ecx
je 0x1003d0d0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
lea eax, [ebp - 0x19010]
mov dword [ebp - 4], 1
test eax, 0xffff0000
jne 0x1003cfce
movzx eax, ax
mov ecx, esi
push eax
call fcn.1000bf50
jmp 0x1003d0a6
lea ecx, [ebp - 0x19010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003cfd7
sub ecx, edx
lea eax, [ebp - 0x19010]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10017b00
jmp 0x1003d0a6
call fcn.1000b090
mov ecx, eax
test ecx, ecx
je 0x1003d0da
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x19014], eax
lea eax, [ebp - 0x19010]
mov dword [ebp - 4], 2
test eax, 0xffff0000
jne 0x1003d03c
movzx eax, ax
lea ecx, [ebp - 0x19014]
push eax
call fcn.1000bf50
jmp 0x1003d067
lea ecx, [ebp - 0x19010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003d045
sub ecx, edx
lea eax, [ebp - 0x19010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x19014]
call fcn.10017b00
mov ecx, dword [ebp - 0x19018]
lea eax, [ebp - 0x19014]
push eax
push esi
mov dword [ebp - 4], 3
call fcn.1003bfd0
mov edx, dword [ebp - 0x19014]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003d0a6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, esi
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.1007850b
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.1000aa20
push 0x80004005
call fcn.1000aa20
push 0x80004005
call fcn.1000aa20
int3
Function at 0x1003da10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b0cfe
mov eax, dword fs:[0]
push eax
mov eax, 0x5014
call fcn.100785e0
mov eax, dword [0x100e2524]
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]
lea eax, [ebp - 0x5010]
push 0x5000
push 0
mov dword [ebp - 0x5020], edi
push eax
mov dword [ebp - 0x501c], 0
call fcn.100832e0
add esp, 0xc
lea eax, [ebp - 0x5010]
push dword [esi]
push 0x2800
push eax
push 0x100ba088
push 0x100bcc38
push str.Benchmark
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x501c], 1
call fcn.1000b090
mov ecx, eax
test ecx, ecx
je 0x1003dbef
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5018], eax
mov eax, 0x100bcc34
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x5018]
test eax, 0xffff0000
jne 0x1003daf5
movzx eax, ax
push eax
call fcn.1000bf50
jmp 0x1003db01
push 1
push 0x100bcc34
call fcn.10017b00
mov dword [ebp - 4], 2
call fcn.1000b090
mov ecx, eax
test ecx, ecx
je 0x1003dbf9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x5014], eax
lea eax, [ebp - 0x5010]
mov byte [ebp - 4], 3
test eax, 0xffff0000
jne 0x1003db47
movzx eax, ax
lea ecx, [ebp - 0x5014]
push eax
call fcn.1000bf50
jmp 0x1003db72
lea ecx, [ebp - 0x5010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003db50
sub ecx, edx
lea eax, [ebp - 0x5010]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x5014]
call fcn.10017b00
push edi
lea eax, [ebp - 0x5018]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x5014]
push eax
call fcn.100552e0
mov edx, dword [ebp - 0x5014]
or esi, 0xffffffff
add esp, 0xc
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003dbb1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x5018]
mov byte [ebp - 4], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1003dbd0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 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.1007850b
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1000aa20
push 0x80004005
call fcn.1000aa20
int3
Function at 0x1003f0f0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b10e7
mov eax, dword fs:[0]
push eax
sub esp, 0x910
mov eax, dword [0x100e2524]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x918], esi
cmp dword [eax + 0x14], 0x10
jb 0x1003f133
mov eax, dword [eax]
push 0xfde9
push eax
lea ecx, [ebp - 0x914]
call fcn.1003b870
push dword [eax]
lea ecx, [ebp - 0x91c]
mov dword [ebp - 4], 0
call fcn.10012b10
mov eax, dword [ebp - 0x914]
lea ecx, [ebp - 0x910]
mov byte [ebp - 4], 2
cmp eax, ecx
je 0x1003f175
push eax
call fcn.100868b1
add esp, 4
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.100832e0
add esp, 0xc
lea eax, [ebp - 0x810]
push dword [edi]
push 0x400
push eax
push 0x100ba088
push 0x100bc9bc
push dword [ebp - 0x91c]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f1c0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jae 0x1003f244
call fcn.1000b090
mov ecx, eax
test ecx, ecx
je 0x1003f32a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
mov eax, 0x100ba088
mov byte [ebp - 4], 3
mov ecx, esi
test eax, 0xffff0000
jne 0x1003f20a
movzx eax, ax
push eax
call fcn.1000bf50
jmp 0x1003f216
push 0
push 0x100ba088
call fcn.10017b00
mov edi, dword [ebp - 0x91c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1003f30b
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x1003f30b
call fcn.1000b090
mov ecx, eax
test ecx, ecx
je 0x1003f334
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x918], eax
lea eax, [ebp - 0x810]
mov byte [ebp - 4], 4
test eax, 0xffff0000
jne 0x1003f283
movzx eax, ax
lea ecx, [ebp - 0x918]
push eax
call fcn.1000bf50
jmp 0x1003f2b2
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003f290
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x918]
call fcn.10017b00
lea eax, [ebp - 0x918]
mov byte [ebp - 4], 5
push eax
push esi
mov ecx, edi
call fcn.1003bfd0
mov edx, dword [ebp - 0x918]
or edi, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1003f2e9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x91c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x1003f30b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.1007850b
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.1000aa20
push 0x80004005
call fcn.1000aa20
int3
Function at 0x1003f340
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100aaf1b
mov eax, dword fs:[0]
push eax
sub esp, 0xcc
mov eax, dword [0x100e2524]
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 ebx, ecx
call fcn.10063090
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1003f489
push 0x7d
push str.d:jenkins.jenkinsworkspacemaster_lu_benchmark_suite_benchmark_suite_aimarkbenchmarksuite_benchmarksuitehelperconfig.cpp
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
call fcn.1000f000
push 3
push 0x100b9b00
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.1000f000
mov byte [ebp - 4], 1
call fcn.10063090
mov edi, eax
lea ecx, [ebp - 0xd8]
push 0x73
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10008c30
mov esi, eax
push str.ResetScoreAndRank
push esi
mov byte [ebp - 4], 2
call fcn.10009db0
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0xd8]
call fcn.10009fe0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x1003f447
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003f43d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f4ad
push edx
push ecx
call fcn.1007819a
add esp, 8
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp edx, 0x10
jb 0x1003f489
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1003f47f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003f4b2
push edx
push ecx
call fcn.1007819a
add esp, 8
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
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.1007850b
mov esp, ebp
pop ebp
ret
call fcn.10086209
call fcn.10086209
int3
Function at 0x10049a50
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x10049a74
lea eax, [esi + 0xc]
push eax
push 0
push esi
push 0x10049ae0
push 0
push 0
call fcn.10094ab4
add esp, 0x18
mov dword [esi + 8], eax
pop esi
ret
Function at 0x1004cc10
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100b2c96
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x100e2524]
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
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100832e0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x1004cc91
lea eax, [ebp - 0x218]
push eax
call ebx
sub esi, 1
jne 0x1004cc83
push str.netul.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.1000b090
mov ecx, eax
test ecx, ecx
je 0x1004ce01
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
test eax, 0xffff0000
jne 0x1004cce5
movzx eax, ax
lea ecx, [ebp - 0x21c]
push eax
call fcn.1000bf50
jmp 0x1004cd12
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004ccf0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.10017b00
mov esi, dword [ebp - 0x21c]
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1004cd2e
mov bl, 1
jmp 0x1004cd3c
push esi
call fcn.100576f0
add esp, 4
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1004cd5b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x1004cde1
cmp dword [edi], 0
jne 0x1004cdc8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x1004cde1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x1004cdc8
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x1004cde1
cmp dword [edi + 4], 0
je 0x1004cde1
cmp dword [edi + 0xc], 0
je 0x1004cde1
mov eax, 1
jmp 0x1004cde3
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 - 0x10]
xor ecx, ebp
call fcn.1007850b
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.1000aa20
int3
Function at 0x10051f50
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c8
mov eax, dword [0x100e2524]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c4], eax
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x4c0], ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
je 0x1005202f
test ebx, ebx
je 0x1005202f
lea eax, [ebp - 0x4bc]
push eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x1005202f
mov ax, word [ebp - 0x4bc]
xor esi, esi
test ax, ax
je 0x1005202f
xor ecx, ecx
movzx edx, ax
nop dword [eax + eax]
mov ax, word [ebp + ecx - 0x4ba]
mov word [ebp - 0xa], ax
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xd4]
push 0x64
push eax
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], dx
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x1005201a
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
mov dword [ebp - 0x4c8], eax
lea eax, [ebp - 0xd4]
push eax
push dword [ebp - 0x4c4]
call fcn.10094b8a
add esp, 0xc
test eax, eax
je 0x10052042
add esi, 4
lea ecx, [esi + esi]
movzx eax, word [ebp + ecx - 0x4bc]
mov edx, eax
test ax, ax
jne 0x10051fc0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007850b
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x10052099
cmp edi, 0x7fffffff
ja 0x10052090
mov ecx, ebx
mov esi, 0x7ffffffe
lea ebx, [ebp - 0xc]
sub esi, edi
mov edx, edi
sub ebx, ecx
nop
lea eax, [esi + edx]
test eax, eax
je 0x1005207b
movzx eax, word [ebx + ecx]
test ax, ax
je 0x1005207b
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10052060
mov ebx, dword [ebp - 0x4c0]
lea eax, [ecx - 2]
test edx, edx
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
jmp 0x10052099
test edi, edi
je 0x10052099
xor eax, eax
mov word [ebx], ax
xor ecx, ecx
test edi, edi
je 0x100520a7
cmp edi, 0x7fffffff
jbe 0x100520ac
mov ecx, 0x80070057
test ecx, ecx
js 0x100520de
mov esi, edi
mov eax, ebx
test edi, edi
je 0x100520c6
cmp word [eax], 0
je 0x100520c6
add eax, 2
sub esi, 1
jne 0x100520b8
xor eax, eax
mov ecx, 0x80070057
test esi, esi
cmovne ecx, eax
mov eax, edi
sub eax, esi
neg esi
sbb esi, esi
and esi, eax
jmp 0x100520e0
xor esi, esi
test ecx, ecx
js 0x10052136
mov edx, edi
lea ecx, [ebx + esi*2]
sub edx, esi
je 0x10052129
mov eax, edx
sub eax, edi
mov edi, dword [ebp - 0x4c4]
add eax, 0x7ffffffe
add esi, eax
mov eax, dword [ebp - 0x4c8]
add eax, eax
sub eax, ecx
add edi, eax
nop word [eax + eax]
test esi, esi
je 0x10052129
movzx eax, word [edi + ecx]
test ax, ax
je 0x10052129
mov word [ecx], ax
dec esi
add ecx, 2
sub edx, 1
jne 0x10052110
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007850b
mov esp, ebp
pop ebp
ret
Function at 0x10053370
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100e2524]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100533e8
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [ebp - 0x14]
mov dword [ebp - 8], 2
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push dword [ebp - 0x18]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007850b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1007850b
mov esp, ebp
pop ebp
ret
Function at 0x100538a0
Capabilities:
Check if file exists
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100db470
push 0x100837c0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x3a14
call fcn.100785e0
mov eax, dword [0x100e2524]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3a2c], esi
test esi, esi
je 0x10053b18
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10053b18
mov dword [ebp - 4], 0
call fcn.10053370
mov dword [ebp - 4], 0xfffffffe
jmp 0x1005392b
push 0x800
push 0
lea eax, [ebp - 0x1224]
push eax
call fcn.100832e0
mov dword [ebp - 0x3a28], 0
push 0x2000
push 0
lea eax, [ebp - 0x3a24]
push eax
call fcn.100832e0
add esp, 0x18
lea eax, [ebp - 0x3a28]
push eax
push 0x800
lea eax, [ebp - 0x3a24]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10053b18
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.100832e0
push 0x104
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.10094b47
lea eax, [ebp - 0x224]
push eax
call fcn.100948bd
add esp, 0x1c
xor edi, edi
cmp dword [ebp - 0x3a28], edi
jbe 0x10053b18
mov ebx, dword [ebp + edi*4 - 0x3a24]
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x100539f2
push ebx
push eax
push 0x1010
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x10053b0b
push 0x800
push 0
lea eax, [ebp - 0xa24]
push eax
call fcn.100832e0
add esp, 0xc
xor ebx, ebx
push 0x400
lea eax, [ebp - 0xa24]
push eax
push ebx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x10053aa7
mov ebx, 1
push 0x800
push 0
lea eax, [ebp - 0x1a24]
push eax
call fcn.100832e0
push 0x7e
lea eax, [ebp - 0xa24]
push eax
call fcn.100836b6
add esp, 0x14
test eax, eax
je 0x10053a8d
push 0x400
lea eax, [ebp - 0x1a24]
push eax
lea eax, [ebp - 0xa24]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x3fe
ja 0x10053a8d
push 0x400
lea eax, [ebp - 0x1a24]
push eax
lea eax, [ebp - 0x1224]
push eax
call fcn.10094b47
jmp 0x10053ad7
push 0x400
lea eax, [ebp - 0xa24]
push eax
lea eax, [ebp - 0x1224]
push eax
call fcn.10094b47
jmp 0x10053ad7
push 0x400
lea eax, [ebp - 0xa24]
push eax
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x10053ada
push 0x400
lea eax, [ebp - 0x1224]
push eax
lea eax, [ebp - 0xa24]
push eax
call fcn.10051f50
mov ebx, eax
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x10053b0b
lea eax, [ebp - 0x1224]
push eax
call fcn.100948bd
lea eax, [ebp - 0x1224]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.100925f3
add esp, 0xc
test eax, eax
je 0x10053b36
inc edi
cmp edi, dword [ebp - 0x3a28]
jb 0x100539c0
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1007850b
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x10053b1a