joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5de218
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x5de220
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405ab4
mov esi, 0x5f1780
xor eax, eax
push ebp
push 0x5de44b
push dword fs:[eax]
mov dword fs:[eax], esp
mov bl, 1
mov eax, dword [0x5e78e4]
cmp byte [eax], 6
jbe 0x5de275
lea edx, [ebp - 0x10]
mov eax, dword [0x5e78fc]
mov eax, dword [eax]
call fcn.0040b0b8
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x5de464
call fcn.0040594c
jmp 0x5de297
lea eax, [ebp - 0x14]
call fcn.0047c1d0
push dword [ebp - 0x14]
push 0x5de478
push 0x5de464
lea eax, [ebp - 8]
mov edx, 3
call fcn.004059c8
push 0xffff
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x41ae9c]
call fcn.004206b0
mov dword [ebp - 0xc], eax
cmp dword [esi], 0
je 0x5de2ba
mov eax, dword [esi]
call fcn.004046b4
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4a2d04]
call fcn.0047ff64
mov dword [esi], eax
xor eax, eax
push ebp
push 0x5de2ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [esi]
call fcn.004a3288
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5de31b
mov eax, dword [esi]
call fcn.00494bb8
mov eax, dword [esi]
call fcn.004046b4
xor eax, eax
mov dword [esi], eax
mov esi, dword [0x5e78c0]
mov esi, dword [esi]
mov edx, dword [0x5e78c0]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
mov ecx, 0x5de4ac
call fcn.0040594c
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.00405ac4
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00405ac4
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov edx, dword [0x5e78c0]
mov edx, dword [edx]
mov eax, dword [ebp - 0xc]
call fcn.005de194
test al, al
je 0x5de3b5
mov edx, dword [0x5e78c0]
mov edx, dword [edx]
lea eax, [ebp - 0x24]
mov ecx, 0x5de4ac
call fcn.0040594c
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
call fcn.00405ac4
push eax
call sub.kernel32.dll_DeleteFileA
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x5de3f8
mov edx, dword [0x5e78c0]
mov edx, dword [edx]
lea eax, [ebp - 0x28]
mov ecx, 0x5de4ac
call fcn.0040594c
mov esi, dword [ebp - 0x28]
mov edi, dword [0x5e78c0]
mov edi, dword [edi]
mov dword [ebp - 0x1c], edi
mov eax, dword [ebp - 0x1c]
call fcn.00405ac4
push eax
mov dword [ebp - 0x20], esi
mov eax, dword [ebp - 0x20]
call fcn.00405ac4
push eax
call sub.kernel32.dll_MoveFileA
cmp eax, 1
sbb eax, eax
inc eax
mov eax, dword [ebp - 0xc]
call fcn.004046b4
mov eax, dword [ebp - 8]
call fcn.00405ac4
push eax
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5de452
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00405658
lea eax, [ebp - 0x18]
call fcn.00405634
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405658
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405658
ret
Function at 0x10003130
Capabilities:
Inspect section memory permissions

Disassembly:
adc byte [eax], al
add bh, bh
jne 0x10003111
push ebx
call dword [ebp - 0x88]
mov esi, eax
cmp esi, ebx
je 0x100033ed
test bh, dl
add al, byte [eax]
add bh, bh
mov ch, 0x4c
push dword [ebp - 0xb4]
push dword [ebp + 0x10]
push esi
xor ecx, dword [edi]
mov bh, 0x45
or al, 0x8b
dec ebp
mov esp, 0xff80048d
je 0x100030ff
adc byte [ebp + 0x488bc104], cl
adc al, 0x8b
inc eax
or al, 3
dec ebp
adc byte [ebx], al
invalid
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100038d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ss
cmp dword [ebp - 0x398], 0
je 0x10003ab2
cmp dword [ebp + 0xc], 1
je 0x10003ab2
cmp dword [ebp + 0xc], 8
jne 0x10003a7a
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.10002c04
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10002bb9
add esp, 0xc
mov dword [ebp - 0x690], eax
mov byte [ebp - 0x6a0], 0x8b
or byte [ebp - 0x69f], 0xff
mov byte [ebp - 0x69e], 0x55
mov byte [ebp - 0x69d], 0x8b
mov byte [ebp - 0x69c], 0xec
lea eax, [ebp - 0x694]
push eax
push 5
lea eax, [ebp - 0x6a0]
push eax
push dword [ebp - 0x33c]
push 0xffffffffffffffff
call dword [ebp - 0x690]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6bc], eax
push 0x1000
push 8
push dword [ebp - 0x674]
call dword [ebp - 0x67c]
mov dword [ebp - 0x698], eax
call fcn.10002bf4
push es
clc
nop
or edi, edi
mov ch, 0x68
stc
invalid
enter 0x75e8, 0xfffffffffffffff1
invalid
call fcn.10002bf4
js 0x10003a79
in al, dx
cmp dword [eax - 0x5435b], eax
inc dword [eax]
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.10002bf4
xchg byte [edi + 0x3f], cl
mov edi, 0xfdd0a580
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10002bd2
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
invalid
invalid
movsb byte es:[edi], byte [esi]
Function at 0x10001390
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
xor eax, eax
xor edx, edx
cmp ecx, 0
je 0x100013c3
mov dl, byte [esi]
lea esi, [esi + 1]
xor dl, byte [edi]
lea edi, [edi + 1]
or al, dl
dec ecx
jne 0x100013ab
neg eax
shr eax, 0x1f
pop edi
pop esi
ret

Function at 0x10047f80
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x10047fa6
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push 0x10048bd0
push 4
shr eax, 2
push eax
push dword [ebp + 0xc]
call fcn.100ccd70
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
mov dword [eax], ecx
setne al
mov esp, ebp
pop ebp
ret
Function at 0x10049240
Capabilities:
Write file on windows

Disassembly:
mov ecx, 0x1046f840
call fcn.100aeba0
test eax, eax
jne 0x10049257
call fcn.100b44b0
test eax, eax
je 0x1004925e
mov ecx, eax
call fcn.100b2f50
mov ecx, dword [0x10422490]
test ecx, ecx
je 0x100492f4
cmp byte [0x1042249c], 0
je 0x100492f4
mov eax, dword [0x10422a48]
push ecx
push 1
mov word [eax + 0x10422648], 0xa
inc eax
push eax
push 0x10422648
call fcn.100cd9b1
add esp, 0x10
cmp byte [0x10422494], 0
je 0x100492b9
cmp byte [0x10422495], 0
je 0x100492b9
push 0x10422648
push 0x1024cc2c
call fcn.100ae1a0
add esp, 8
mov eax, dword [0x10422640]
sub eax, dword [0x10422644]
mov dword [0x10422a48], 0
cmp eax, 0x1388
jbe 0x100492ed
push dword [0x10422490]
call fcn.100cd5a2
mov eax, dword [0x10422640]
add esp, 4
mov dword [0x10422644], eax
mov byte [0x1042249c], 0
mov dword [0x10422a4c], 0
ret
Function at 0x100498d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 4], ebx
call fcn.100afd80
sub eax, dword [0x1042253c]
push eax
lea eax, [ebp - 0x10c]
push str.Calls_over_the_last__u_milliseconds:_n
push eax
call fcn.10048e00
lea eax, [ebp - 0x10c]
push eax
push 0x1024cc2c
call fcn.100ae1a0
mov eax, dword [0x10422490]
add esp, 0x14
test eax, eax
je 0x1004992f
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x10c]
push 1
push eax
call fcn.100cd9b1
add esp, 0x10
push str.Last
push str.First
push str.Calls
push str.Method
push str.Process
lea eax, [ebp - 0x10c]
mov byte [ebp - 0x10c], 0
push str.__20.20s___40.40s___10.10s___10.10s___10.10s_n
push eax
mov dword [ebp - 0xc], 0
call fcn.10048fb0
lea eax, [ebp - 0x10c]
push str._______________________________________________________________________________________________n
push eax
call fcn.10048fb0
lea eax, [ebp - 0x10c]
push eax
push 0x1024cc2c
call fcn.100ae1a0
mov ecx, dword [0x10422490]
add esp, 0x2c
test ecx, ecx
je 0x100499b1
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x10c]
push 1
push eax
call fcn.100cd9b1
mov ecx, dword [0x10422490]
add esp, 0x10
mov eax, dword [ebx + 0x20]
xor esi, esi
test eax, eax
jle 0x10049a84
push edi
nop
test esi, esi
js 0x10049a77
cmp esi, eax
jge 0x10049a77
mov eax, dword [ebx + 0x28]
lea edx, [esi + esi*2]
add edx, edx
cmp dword [eax + edx*8], esi
je 0x10049a77
lea ebx, [eax + edx*8]
mov byte [ebp - 0x10c], 0
mov dword [ebp - 0xc], 0
mov edx, 0x1024cb86
mov ecx, dword [ebx + 0x2c]
sub ecx, dword [0x1042253c]
mov edi, dword [ebx + 0x28]
sub edi, dword [0x1042253c]
mov eax, dword [ebx + 0x14]
test eax, eax
mov dword [ebp - 8], ecx
mov ecx, 0x1024cb86
push dword [ebp - 8]
cmovne edx, eax
mov eax, dword [ebx + 0x10]
push edi
push dword [ebx + 0x24]
test eax, eax
push edx
cmovne ecx, eax
lea eax, [ebp - 0x10c]
push ecx
push str.__20.20s___40.40s___10u___10u___10u_n
push eax
call fcn.10048fb0
lea eax, [ebp - 0x10c]
push eax
push 0x1024cc2c
call fcn.100ae1a0
mov ecx, dword [0x10422490]
add esp, 0x24
test ecx, ecx
je 0x10049a74
push ecx
push dword [ebp - 0xc]
lea eax, [ebp - 0x10c]
push 1
push eax
call fcn.100cd9b1
mov ecx, dword [0x10422490]
add esp, 0x10
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x20]
inc esi
cmp esi, eax
jl 0x100499c0
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x10049a93
push ecx
call fcn.100cd5a2
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x100504d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0xa0]
test ecx, ecx
je 0x100504ed
call fcn.100aee60
xor esi, esi
lea eax, [ebp - 4]
push esi
push eax
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push dword [edi + 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10050575
cmp dword [ebp - 4], 4
jne 0x10050575
mov eax, dword [ebp - 8]
test eax, eax
je 0x1005056a
mov ebx, dword [ebp + 8]
mov ecx, 0x400
sub eax, esi
cmp eax, 0x400
push 0
cmovg eax, ecx
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x408]
push eax
push dword [edi + 0x94]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10050575
push dword [ebp - 4]
lea eax, [ebp - 0x408]
mov ecx, ebx
push eax
call fcn.100789d0
add esi, dword [ebp - 4]
mov ecx, 0x400
mov eax, dword [ebp - 8]
cmp esi, eax
jb 0x10050522
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100505e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
cmp dword [ebx + 0x10], 0
jg 0x10050610
push str.buffer.TellPut_____0
push 0x1ab
push str.C:_buildworker_steam_rel_client_win32_build_srccommonprocesspipe_any.cpp
call fcn.100ad9f0
add esp, 0xc
test al, al
jne 0x10050610
int3
mov edx, dword [edi + 0x98]
cmp edx, 0xffffffff
jne 0x1005064b
cmp byte [0x10422a84], 0
jne 0x1005079f
push str.Writing_to_pipe_we_closed_locally
push 0x1ae
push str.C:_buildworker_steam_rel_client_win32_build_srccommonprocesspipe_any.cpp
mov byte [0x10422a84], 1
call fcn.100ad9f0
add esp, 0xc
jmp 0x1005079a
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
mov dword [ebp + 8], 0
push 0
mov al, byte [ecx + eax]
mov byte [ebp - 8], al
lea eax, [ebp + 8]
push eax
push 5
lea eax, [ebp - 0xc]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005072d
cmp dword [ebp + 8], 5
jne 0x1005072d
mov ecx, dword [ebx + 0xc]
mov edx, 0x400
mov ebx, dword [ebx]
inc ecx
mov al, byte [ebp + 0xc]
add ebx, ecx
test al, al
mov ecx, 0x100000
mov esi, 1
cmovne ecx, edx
mov edx, dword [ebp - 4]
cmp edx, esi
jbe 0x10050713
mov eax, edx
mov dword [ebp + 8], 0
sub eax, esi
lea edx, [ebp + 8]
push 0
cmp eax, ecx
push edx
cmovbe ecx, eax
push ecx
push ebx
push dword [edi + 0x98]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100506ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x5aa
jne 0x1005079f
mov al, byte [ebp + 0xc]
add ebx, dword [ebp + 8]
add esi, dword [ebp + 8]
test al, al
je 0x10050707
mov ecx, dword [edi + 0x9c]
call fcn.100aeea0
xor al, al
mov byte [ebp + 0xc], al
mov edx, dword [ebp - 4]
mov ecx, 0x100000
cmp esi, edx
jb 0x100506b1
test al, al
je 0x10050722
mov ecx, dword [edi + 0x9c]
call fcn.100aeea0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe8
jne 0x10050772
push dword [edi + 0xc]
call fcn.100af8f0
add esp, 4
cmp byte [0x10422a85], 0
jne 0x1005079f
test al, al
je 0x1005079f
push str.CCrossProcessPipe::BWrite_GetLastErrorERROR_NO_DATA__remote_end_must_be_closing__process_still_running_
push 0x1c5
push str.C:_buildworker_steam_rel_client_win32_build_srccommonprocesspipe_any.cpp
mov byte [0x10422a85], 1
call fcn.100ad9f0
add esp, 0xc
jmp 0x1005079a
cmp byte [0x10422a86], 0
jne 0x1005079f
push eax
push str.CCrossProcessPipe::BWrite_GetLastError_u
push 0x1c9
push str.C:_buildworker_steam_rel_client_win32_build_srccommonprocesspipe_any.cpp
mov byte [0x10422a86], 1
call fcn.100ada00
add esp, 0x10
test al, al
jne 0x1005079f
int3
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10056530
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [eax], 0
mov ebx, 0x1024cb86
mov eax, dword [ebp + 0xc]
test eax, eax
push 4
push 0
cmovne ebx, eax
push 0
push ebx
mov dword [ebp - 4], ebx
call fcn.100bf010
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.100c192b
push 0
mov edi, eax
push esi
push edi
push ebx
mov dword [ebp + 0xc], edi
call fcn.100bf010
add esp, 0x24
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
jg 0x100565c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.string_expansion_failed__1__res__d_GLE__d
push 0x25
push str.C:_buildworker_steam_rel_client_win32_build_srccommon_serviceinstallscript.cpp
call fcn.100ada00
add esp, 0x14
test al, al
jne 0x100566b2
int3
call fcn.100ad570
mov ecx, eax
push 0
push 0
push 0x22a
mov eax, dword [ecx]
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1utlmemory.h
mov edx, dword [eax + 8]
lea eax, [edi + edi]
push eax
call edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x10056621
push 4
push eax
push eax
push dword [ebp - 4]
call fcn.100bf010
mov esi, eax
mov ecx, 2
mul ecx
mov ecx, 0xffffffff
cmovb eax, ecx
push eax
call fcn.100c192b
push 0
push esi
push eax
push dword [ebp - 4]
mov dword [ebp + 0xc], eax
call fcn.100bf010
mov eax, dword [ebp + 0xc]
add esp, 0x24
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esi, eax
test esi, esi
jle 0x1005667e
cmp esi, edi
jg 0x1005667e
test ebx, ebx
jne 0x10056647
mov ecx, dword [ebp + 8]
push 0x1024cb86
call fcn.10077780
jmp 0x100566b2
push 4
push 0
push 0
push ebx
call fcn.100bee50
mov esi, eax
push esi
call fcn.100c192b
push 0
mov edi, eax
push esi
push edi
push ebx
call fcn.100bee50
mov ecx, dword [ebp + 8]
add esp, 0x24
push edi
call fcn.10077780
push edi
call fcn.100c1934
add esp, 4
jmp 0x100566a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.string_expansion_failed__2__res__d_GLE__d
push 0x32
push str.C:_buildworker_steam_rel_client_win32_build_srccommon_serviceinstallscript.cpp
call fcn.100ada00
add esp, 0x14
test al, al
jne 0x1005669f
int3
test ebx, ebx
je 0x100566b2
call fcn.100ad570
push 0
push ebx
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
push dword [ebp + 0xc]
call fcn.100c1934
mov eax, dword [ebp + 8]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10057250
Capabilities:
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
lea ecx, [ebp - 0x34]
push ebx
push esi
push edi
push 0
push 0
push 0
xor bl, bl
call fcn.10077b30
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x34]
push 0
push 0
push eax
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.10086320
add esp, 0x10
test al, al
je 0x1005746c
push 0
lea ecx, [ebp - 0x34]
call fcn.10078a10
push 0
push 0
call fcn.100d2383
add esp, 8
mov dword [ebp + 8], eax
test esi, esi
mov dword [ebp - 0xc], 0
mov ecx, 0x1024cb86
mov dword [ebp - 8], 0
cmovne ecx, esi
mov dword [ebp - 4], 0x4000000
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x10]
push 0
call fcn.10057500
push eax
push 0
call fcn.100ce4b6
add esp, 0xc
mov edi, eax
cmp byte [ebp - 4], bl
je 0x100572eb
push dword [ebp - 0x10]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 3], bl
je 0x100572fb
push dword [ebp - 0xc]
call fcn.100c1934
add esp, 4
cmp byte [ebp - 2], bl
je 0x1005730b
push dword [ebp - 8]
call fcn.100c1934
add esp, 4
cmp dword [ebp + 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0x4000000
je 0x1005745b
test edi, edi
je 0x1005745b
push 0x5c
push edi
call fcn.100c3bf0
add esp, 8
test eax, eax
je 0x1005745b
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
push edi
mov word [eax], cx
call esi
push edi
push str.INSTALLDIR
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov al, byte [ebp + 0x10]
mov ecx, 0x103170c8
mov word [0x103170e4], 0x3000
mov dword [0x103170dc], 0
mov byte [0x103170e4], al
mov eax, dword [ebp + 0xc]
mov word [0x10317125], 0
mov byte [0x10317127], bl
mov dword [0x103170e0], 0
mov dword [0x1031715c], 0
mov dword [0x10317158], 0
mov dword [0x103170dc], eax
call fcn.100564c0
mov eax, dword [0x103170dc]
mov ecx, 0x103170c8
mov edx, dword [ebp - 0x34]
mov dword [0x103170e0], eax
mov eax, dword [ebp - 0x24]
add eax, edx
mov dword [0x10317144], 0
mov dword [0x10317148], 0
mov dword [0x10317134], 0x103170e5
mov dword [0x10317130], 0
mov dword [0x10317138], 0
mov dword [0x1031713c], 0
mov dword [0x1031712c], 1
mov word [0x10317128], 0
mov dword [0x10317140], 0
mov byte [0x103170e5], bl
mov dword [0x103170cc], edx
mov dword [0x103170d0], edx
mov dword [0x103170d4], eax
push 0
mov byte [0x103170d8], bl
call fcn.10056800
push dword [ebp + 8]
mov bl, al
call esi
push edi
call fcn.100cdfb7
push dword [ebp + 8]
call fcn.100cdfb7
add esp, 8
cmp dword [ebp - 0x2c], 0
jl 0x10057489
cmp dword [ebp - 0x34], 0
je 0x10057489
call fcn.100ad570
push 0
push dword [ebp - 0x34]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x1c]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005a930
Capabilities:
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x30], 0
jne 0x1005a949
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [edi + 0xc]
dec ebx
mov ecx, dword [eax]
shr ecx, 0x10
xor ecx, dword [eax]
imul ecx, ecx, 0x85ebca6b
push esi
mov esi, ebx
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul eax, eax, 0xc2b2ae35
mov ecx, eax
shr ecx, 0x10
xor ecx, eax
mov dword [ebp - 4], ecx
and esi, ecx
lea ebx, [ebx]
mov eax, dword [edi]
mov eax, dword [eax + esi*4]
cmp eax, 0xffffffff
je 0x1005a9ad
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 0x20]
mov esi, dword [ecx]
lea ecx, [eax + eax*2]
cmp esi, dword [edx + ecx*4]
je 0x1005a9a5
mov eax, dword [edx + ecx*4 + 8]
cmp eax, 0xffffffff
jne 0x1005a992
jmp 0x1005a9aa
cmp eax, 0xffffffff
jne 0x1005aa15
mov ecx, dword [ebp - 4]
sar ebx, 1
cmp ebx, dword [edi + 0x40]
jl 0x1005aa12
mov esi, ebx
and esi, ecx
cmp esi, dword [edi + 0x38]
jl 0x1005aa12
test esi, esi
js 0x1005a9c6
cmp esi, dword [edi + 0x10]
jl 0x1005a9e2
push str.bitNum___0__bitNum___this__Size__
push 0x14a
push str.C:_buildworker_steam_rel_client_win32_build_srcpublic_tier1_bitstring.h
call fcn.100ad9f0
add esp, 0xc
test al, al
jne 0x1005a9e2
int3
cmp dword [edi + 0x14], 1
lea eax, [edi + 0x18]
je 0x1005a9ee
mov eax, dword [edi + 0x1c]
mov dword [ebp - 8], eax
mov ecx, esi
and ecx, 0x1f
mov edx, 1
shl edx, cl
mov eax, esi
mov ecx, dword [ebp - 8]
sar eax, 5
test dword [ecx + eax*4], edx
jne 0x1005aa12
mov ecx, dword [ebp - 4]
jmp 0x1005a980
or eax, 0xffffffff
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4