joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10038250
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.10037ed0
push eax
push esi
push dword [ebp + 8]
call fcn.10037e85
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
mov byte [ebp - 0x65], 0x35
mov byte [ebp - 0x64], 0x34
mov byte [ebp - 0x63], 0x20
mov byte [ebp - 0x62], 0x2d
mov byte [ebp - 0x61], 0x11
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.10037ed0
push eax
push esi
push dword [ebp + 8]
call fcn.10037e85
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.10037ed0
push eax
push esi
push dword [ebp + 8]
call fcn.10037e85
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.10037ec0
and eax, 0x8830ba7b
popfd
jl 0x10038345
invalid
invalid

Function at 0x10038720
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.10037ed0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10037e85
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
Function at 0x10038780
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.10037ed0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10037e85
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.10037ed0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.10037e85
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.10037ec0
ror byte [edx - 0x5a7fa073], 0xcc
cli
invalid
Function at 0x1003b410
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x10064448]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x300]
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [edi + 0x13c]
lea esi, [edi + 0x148]
push 0
add eax, 4
push eax
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x1003b49e
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [edi + 0xb0]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x1003b4d1
push str.Received_too_short_packet
push ebx
call fcn.1002f120
add esp, 8
mov dword [edi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004fb8f
mov esp, ebp
pop ebp
ret
push esi
call fcn.1003b020
movzx eax, ax
add esp, 4
mov dword [edi + 0xc], eax
dec eax
cmp eax, 5
ja case.0x1003b4ea.1
jmp dword [eax*4 + 0x1003b62c]
cmp edx, 4
jle case.0x1003b4ea.4
push esi
call fcn.1003b000
movzx ecx, word [edi + 0x144]
add esp, 4
inc ecx
cmp cx, ax
jne case.0x1003b4ea.4
lea eax, [edx - 4]
push eax
mov eax, dword [esi]
add eax, 4
push eax
push 1
push ebx
call fcn.1002f080
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1003b54d
push 5
push edi
call fcn.1003be80
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004fb8f
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.1002c970
jmp 0x1003b5f5
mov eax, dword [esi]
lea esi, [edx - 4]
add eax, 4
mov dword [ebp - 0x8c], eax
lea eax, [edi + 0x148]
push eax
call fcn.1003b000
push esi
push dword [ebp - 0x8c]
movzx eax, ax
mov dword [edi + 8], eax
call fcn.1003bfb0
add esp, 0xc
cmp eax, esi
jae case.0x1003b4ea.4
push dword [ebp - 0x8c]
push str.TFTP_error:__s
push ebx
call fcn.1002f1e0
jmp 0x1003b5f5
lea eax, [edx - 2]
push eax
mov eax, dword [esi]
add eax, 2
push eax
push edi
call fcn.1003b1e0
add esp, 0xc
test eax, eax
je case.0x1003b4ea.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004fb8f
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x10052ac0
push ebx
call fcn.1002f120
add esp, 0xc
push ebx
call fcn.1002cc80
add esp, 4
test eax, eax
je 0x1003b4be
push 5
push edi
call fcn.1003be80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x2a
pop edi
pop esi
pop ebx
call fcn.1004fb8f
mov esp, ebp
pop ebp
ret
Function at 0x1003be80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
cmp edx, 3
ja case.default.0x1003be90
jmp dword [edx*4 + 0x1003bee4]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.1003b930
mov dword [ebp + 8], eax
pop ebp
jmp fcn.1003b650
mov dword [ebp + 8], eax
pop ebp
jmp fcn.1003c0f0
push str.TFTP_finished
push 0x10052ac0
push ecx
call fcn.1002f1e0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x10052ac0
push ecx
call fcn.1002f120
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x10045860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.10045960
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
Function at 0x4059b0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x4059ce
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x4059d9
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [ebp + 0xc], 0
jne 0x405a2c
lea ecx, [esp + 8]
call fcn.0041bae0
mov edx, ecx
mov ecx, esi
call fcn.00405ea0
test al, al
je 0x405a15
cmp byte [esp + 0x10], 0
je 0x405a15
cmp dword [esi + 0x14], 8
jb 0x405a04
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x405a1f
mov eax, dword [esi]
jmp 0x405a21
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4059d2
mov ecx, esi
call fcn.004062c0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405a40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x405a4e
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x405a60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x405a68
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405a7b
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x405a80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x49f270]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x405bb5
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.00406410
xor eax, eax
mov dword [esp + 0x1c], 7
push 0xffffffffffffffff
push eax
mov word [esp + 0x10], ax
lea ecx, [esp + 0x10]
lea eax, [esp + 0x40]
mov dword [esp + 0x20], 0
push eax
call fcn.00404290
push 1
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
lea ecx, [esp + 0x14]
call fcn.004043e0
cmp eax, 0xffffffff
je 0x405b1b
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x10]
call fcn.00403180
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
call fcn.00402830
cmp esi, eax
je 0x405b39
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404290
cmp dword [esp + 0x34], 8
jb 0x405b4c
push dword [esp + 0x20]
call fcn.00466fe4
add esp, 4
xor eax, eax
mov dword [esp + 0x34], 7
cmp dword [esp + 0x1c], 8
mov dword [esp + 0x30], 0
mov word [esp + 0x20], ax
jb 0x405b76
push dword [esp + 8]
call fcn.00466fe4
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x405ba0
push dword [esp + 0x38]
call fcn.00466fe4
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
xor al, al
pop esi
xor ecx, esp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
Function at 0x405bd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x405c41
cmp word [ebp - 0x210], 0
je 0x405c41
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x228]
call fcn.00406410
lea eax, [ebp - 0x228]
mov ecx, esi
push eax
call fcn.00401ef0
cmp dword [ebp - 0x214], 8
jb 0x405d63
push dword [ebp - 0x228]
jmp 0x405d5b
xor eax, eax
mov dword [ebp - 0x22c], 7
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x240]
push eax
mov dword [ebp - 0x230], 0
call fcn.00405a80
add esp, 4
test al, al
je 0x405c9a
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x240]
push eax
call fcn.00404290
jmp 0x405d4c
push 3
xor eax, eax
mov dword [ebp - 0x214], 7
push 0x49817c
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
call fcn.00404be0
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp - 0x228]
push eax
call fcn.00404290
push 1
push 0
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
mov ecx, esi
call fcn.004043e0
cmp eax, 0xffffffff
je 0x405d18
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.00403180
cmp dword [ebp - 0x214], 8
jb 0x405d2f
push dword [ebp - 0x228]
call fcn.00466fe4
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
cmp dword [ebp - 0x22c], 8
jb 0x405d63
push dword [ebp - 0x240]
call fcn.00466fe4
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00467f35
mov esp, ebp
pop ebp
ret
Function at 0x405d80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x405da8
mov ebx, dword [edi]
jmp 0x405daa
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405dea
test al, 0x10
je 0x405dcd
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x405dd7
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00402330
cmp dword [edi + 0x14], 8
jb 0x405dff
mov eax, dword [edi]
jmp 0x405e01
mov eax, edi
push dword [edi + 0x10]
push eax
push dword [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00404600
test eax, eax
jne 0x405e23
test esi, esi
je 0x405e6a
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x405e70
mov edx, esi
lea ecx, [ebp - 0x1c]
call fcn.00405d80
test al, al
jne 0x405e35
xor bl, bl
jmp 0x405e70
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x405e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x405e5d
mov ecx, edi
call fcn.00405a60
test al, al
jne 0x405e6e
test esi, esi
je 0x405e6a
mov ecx, ebx
call fcn.0041bb20
mov dword [esi], eax
xor bl, bl
jmp 0x405e70
mov bl, 1
cmp dword [ebp - 8], 8
jb 0x405e81
push dword [ebp - 0x1c]
call fcn.00466fe4
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467f35
mov esp, ebp
pop ebp
ret
Function at 0x406090
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [esp + 0x14], 0
cmp dword [eax + 0x14], 8
push edi
mov edi, dword [ebp + 0x10]
jb 0x4060b5
mov eax, dword [eax]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
xor ecx, ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x406154
lea ecx, [esp + 0x10]
call fcn.00406810
cmp esi, 0xffffffff
je 0x406121
mov dword [esp + 0x10], esi
call fcn.00413e20
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 4]
mov ecx, dword [0x4a2d50]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x40610e
call fcn.00413e80
mov ecx, dword [0x4a2d50]
push dword [esp + 0x1c]
mov eax, dword [ecx]
lea edx, [esp + 0x14]
push dword [esp + 0x18]
push edx
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x406154
cmp ecx, 0xffffffff
je 0x406154
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406150
mov esi, dword [esp + 0x18]
cmp esi, edi
jne 0x406150
mov ecx, dword [esp + 0x10]
jmp 0x406157
mov ecx, dword [esp + 0x10]
or esi, 0xffffffff
test ecx, ecx
je 0x4061b5
cmp ecx, 0xffffffff
je 0x4061b5
call fcn.00413e20
mov ebx, dword [ebp + 4]
mov edi, eax
mov ecx, dword [0x4a2d50]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
test ecx, ecx
jne 0x406187
call fcn.00413e80
mov ecx, dword [0x4a2d50]
mov eax, dword [ecx]
lea edx, [esp + 0x10]
push edi
push ebx
push edx
push dword [esp + 0x20]
call dword [eax + 8]
mov ecx, dword [0x4a2d50]
mov edi, dword [esp + 0x10]
test ecx, ecx
jne 0x4061b0
call fcn.00413e80
mov ecx, dword [0x4a2d50]
mov edx, dword [ecx]
push edi
call dword [edx]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4061c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x49f270]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov word [esp + 0x50], ax
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4062a5
cmp eax, 0x104
ja 0x4062a5
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x24]
call fcn.00406410
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
call fcn.00401ef0
mov ecx, eax
call fcn.00402830
cmp esi, eax
je 0x406240
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00404290
cmp dword [esp + 0x1c], 8
jb 0x406253
push dword [esp + 8]
call fcn.00466fe4
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x40627d
push dword [esp + 0x38]
call fcn.00466fe4
add esp, 4
cmp dword [esp + 0x34], 8
jb 0x406290
push dword [esp + 0x20]
call fcn.00466fe4
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
Function at 0x4062c0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f0
mov eax, dword [0x49f270]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov word [ebp - 0x40], 0
push ebx
push esi
lea edx, [ebp - 0x48]
movlpd qword [ebp - 0x48], xmm0
mov esi, ecx
movlpd qword [ebp - 0x38], xmm0
movlpd qword [ebp - 0x30], xmm0
movlpd qword [ebp - 0x28], xmm0
call fcn.00405ea0
test al, al
je 0x4063fa
cmp byte [ebp - 0x40], 0
jne 0x40632e
cmp dword [esi + 0x14], 8
jb 0x406312
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
sub esp, 8
lea ecx, [ebp - 0x2f0]
mov bl, 1
push esi
call fcn.0041b090
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x2f0]
call fcn.0041b210
cmp dword [ebp - 0xc], 0
je 0x406395
lea ecx, [ebp - 0x1c]
call fcn.004062c0
and bl, al
lea ecx, [ebp - 0x2f0]
lea eax, [ebp - 0x38]
push eax
call fcn.0041b210
lea ecx, [ebp - 0x1c]
cmp ecx, eax
je 0x40637e
push 0xffffffffffffffff
push 0
push eax
call fcn.00404290
cmp dword [ebp - 0x24], 8
jb 0x40638f
push dword [ebp - 0x38]
call fcn.00466fe4
add esp, 4
cmp dword [ebp - 0xc], 0
jne 0x406354
cmp dword [ebp - 8], 8
jb 0x4063a6
push dword [ebp - 0x1c]
call fcn.00466fe4
add esp, 4
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
test bl, bl
je 0x4063ef
cmp dword [esi + 0x14], 8
jb 0x4063c6
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x2f0]
setne bl
call fcn.0041b160
mov al, bl
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00467f35
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x2f0]
call fcn.0041b160
mov ecx, dword [ebp - 4]
mov al, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00467f35
mov esp, ebp
pop ebp
ret
Function at 0x408890
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], 0
cmp byte [esi], 0
je 0x4088b5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4088b8
mov eax, dword [esi + 4]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x408942
cmp byte [ebp + 0xc], 0
je 0x4089cb
cmp byte [esi], 0
je 0x4088e2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4088e5
mov eax, dword [esi + 4]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4089cb
cmp dword [0x4a2cc0], 2
jg 0x40893b
push 2
push 0x89
push str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 2
call fcn.0040af30
mov ecx, dword [ebp + 8]
add eax, 8
push ecx
push str.Error_waiting_for_process_exit__exit_code:
push eax
call fcn.00405180
add esp, 8
mov ecx, eax
call fcn.00406470
test byte [esp + 0xc], 2
jmp 0x4089c0
cmp dword [0x4a2cc0], 2
jg 0x4089bb
push 1
push 2
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], 4
mov dword [esp + 0x18], 2
call fcn.00405490
mov dword [esp + 0xb4], str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
mov dword [esp + 0xb8], 0x90
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x90
push str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
lea ecx, [esp + 0x18]
mov dword [esp + 0xc4], eax
call fcn.0040b200
mov ecx, dword [ebp + 8]
lea eax, [esp + 0x18]
push ecx
push str.Unable_to_terminate_process__exit_code:
push eax
call fcn.00405180
add esp, 8
mov ecx, eax
call fcn.00406470
test byte [esp + 0xc], 4
je 0x4089cb
lea ecx, [esp + 0x10]
call fcn.0040af80
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x409740
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0x14]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, edx
and ecx, eax
cmp dword [esi + 0x18], ecx
ja 0x409792
shr edx, 1
or eax, 0xffffffff
sub eax, edx
add ecx, eax
mov edx, dword [esi + 8]
mov esi, dword [esi]
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x4097aa
mov ecx, esi
jmp 0x4097af
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4097dc
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x4097be
mov eax, dword [eax]
jmp 0x4097a2
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
lea ecx, [ebp + 0xc]
mov dword [ebp + 0xc], esi
jne 0x4097ce
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ecx]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8