joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411bc0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
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
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x411c3c
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x411c3c
mov ecx, dword [edi]
nop word [eax + eax]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x411c84
cmp esi, eax
jne 0x411c30
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x411c6a
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [esp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x411ce5
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x411d07
mov edx, dword [ebp + 0x10]
lea edi, [edx + 0xc]
mov dword [esp + 0xc], edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
mov eax, dword [edi + 0x14]
cmp eax, 8
jb 0x411cb7
inc eax
mov ecx, edi
push eax
push dword [edi]
call fcn.0040b1a0
mov edx, dword [esp + 0xc]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
push edx
mov word [edi], ax
call fcn.0045a086
mov eax, dword [ebp + 8]
add esp, 4
mov dword [eax], esi
mov byte [eax + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp eax, esi
jne 0x411ced
mov dword [ecx], edi
jmp 0x411d07
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x411d07
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00411d20
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x412040
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 0x412065
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x412068
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 0x4120f2
cmp byte [ebp + 0xc], 0
je 0x412144
cmp byte [esi], 0
je 0x412092
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x412095
mov eax, dword [esi + 4]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x412144
cmp dword [0x494e44], 2
jg 0x4120eb
push 2
push 0x86
push str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 2
call fcn.00413f50
mov ecx, dword [ebp + 8]
add eax, 8
push ecx
push str.Error_waiting_for_process_exit__exit_code:
push eax
call fcn.0040b370
add esp, 8
mov ecx, eax
call fcn.0040f3f0
test byte [esp + 0xc], 2
jmp 0x412139
cmp dword [0x494e44], 2
jg 0x412134
push 2
push 0x8d
push str.d:webapps_b_build_slave_repo_build_src_baseprocessprocess_win.cc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 4
call fcn.00413f50
mov ecx, dword [ebp + 8]
add eax, 8
push ecx
push str.Unable_to_terminate_process__exit_code:
push eax
call fcn.0040b370
add esp, 8
mov ecx, eax
call fcn.0040f3f0
test byte [esp + 0xc], 4
je 0x412144
lea ecx, [esp + 0x10]
call fcn.00414010
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x413c70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x492250]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 4]
push esi
mov dword [esp + 8], 0
push edi
mov edi, dword [0x494dc4]
mov ecx, edi
push eax
mov dword [esp + 0x10], 0x48db4c
mov dword [esp + 0x14], 1
call fcn.00407100
test al, al
jne 0x413cdc
lea eax, [esp + 0xc]
mov dword [esp + 0xc], str.vmodule
push eax
mov ecx, edi
mov dword [esp + 0x14], 7
call fcn.00407100
test al, al
je 0x413db0
cmp dword [0x494e3c], 0
je 0x413cf3
cmp byte [0x494ee8], 0
jne 0x413e79
int3
mov eax, dword [0x494e58]
push 0x10
mov dword [0x494e3c], eax
call fcn.0045a053
mov esi, eax
mov dword [esp + 0x10], str.vmodule
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 7
push eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x1c], 0x48db4c
push eax
mov ecx, edi
mov dword [esp + 0x24], 1
call fcn.00407200
push eax
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00407200
push eax
mov ecx, esi
call fcn.00425b50
mov dword [0x494e58], eax
mov eax, dword [esp + 0x30]
cmp eax, 0x10
jb 0x413d6e
inc eax
lea ecx, [esp + 0x1c]
push eax
push dword [esp + 0x20]
call fcn.0040a4f0
mov eax, dword [esp + 0x48]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
cmp eax, 0x10
jb 0x413d9b
inc eax
lea ecx, [esp + 0x34]
push eax
push dword [esp + 0x38]
call fcn.0040a4f0
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
mov eax, dword [ebx]
mov dword [0x492c18], eax
test al, 1
jne 0x413dcf
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
mov eax, dword [0x494e50]
test eax, eax
je 0x413de9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x494e50], 0
mov edx, dword [0x494e54]
test edx, edx
jne 0x413e18
push 0x18
call fcn.0045a053
mov edx, eax
add esp, 4
xor eax, eax
mov dword [0x494e54], edx
mov dword [edx + 0x14], 7
mov dword [edx + 0x10], 0
mov word [edx], ax
mov esi, dword [ebx + 4]
cmp word [esi], 0
jne 0x413e25
xor ecx, ecx
jmp 0x413e3f
mov ecx, esi
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413e30
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00409bb0
cmp dword [ebx + 0xc], 0
jne 0x413e62
mov eax, dword [0x494e54]
cmp dword [eax + 0x14], 8
jb 0x413e5b
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00413ae0
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
push 1
call fcn.0046515c
int3
Function at 0x414010
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x43c
mov eax, dword [0x492250]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
mov ebx, ecx
push esi
push edi
lea edi, [ebx + 8]
push edi
call fcn.00412c00
add esp, 4
lea eax, [esp + 0x10]
lea esi, [ebx + 0xc]
mov ecx, esi
push eax
call fcn.0040c220
mov eax, dword [0x494e4c]
test eax, eax
je 0x414079
lea ecx, [esp + 0x10]
push ecx
push dword [ebx + 0xa0]
push dword [ebx + 0xa8]
push dword [ebx + 0xa4]
push dword [ebx]
call eax
add esp, 0x14
test al, al
jne 0x4141a1
test byte [0x492c18], 2
je 0x414099
cmp dword [esp + 0x24], 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x41409e
cmp dword [ebx], 2
jl 0x4140dd
cmp dword [esp + 0x24], 0x10
lea edi, [esp + 0x10]
mov esi, dword [esp + 0x20]
cmovae edi, dword [esp + 0x10]
push 2
call fcn.00463c65
add esp, 4
push eax
push 1
push esi
push edi
call fcn.00464c4a
push 2
call fcn.00463c65
add esp, 0x14
push eax
call fcn.00464132
lea edi, [ebx + 8]
add esp, 4
lea esi, [ebx + 0xc]
test byte [0x492c18], 1
je 0x414115
call fcn.00413ae0
test al, al
je 0x414115
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0xc]
push 0
push ecx
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
cmovae eax, dword [esp + 0x1c]
push eax
push dword [0x494e50]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebx], 3
jne 0x4141a1
mov ecx, 0x400
lea eax, [esp + 0x10]
cmp dword [esp + 0x20], ecx
cmovb ecx, dword [esp + 0x20]
cmp dword [esp + 0x24], 0x10
cmovae eax, dword [esp + 0x10]
test ecx, ecx
je 0x41414d
push ecx
push eax
lea eax, [esp + 0x48]
push eax
call fcn.0045ba70
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call fcn.00425730
add esp, 4
cmp dword [0x494e5c], 0
je 0x414197
lea eax, [esp + 0x28]
mov ecx, esi
push eax
call fcn.0040c220
lea eax, [esp + 0x28]
push eax
call dword [0x494e5c]
mov eax, dword [esp + 0x40]
add esp, 4
cmp eax, 0x10
jb 0x4141a1
inc eax
lea ecx, [esp + 0x28]
push eax
push dword [esp + 0x2c]
call fcn.0040a4f0
jmp 0x4141a1
cmp byte [0x494ee8], 0
jne 0x4141f3
int3
mov eax, dword [esp + 0x24]
cmp eax, 0x10
jb 0x4141b9
inc eax
lea ecx, [esp + 0x10]
push eax
push dword [esp + 0x14]
call fcn.0040a4f0
push dword [ebx + 0xac]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea esi, [edi + 0x50]
mov ecx, esi
call fcn.00408920
push esi
mov dword [esi], 0x48b4b4
call fcn.0045977b
mov ecx, dword [esp + 0x448]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
push 1
call fcn.0046515c
int3
Function at 0x415580
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
movsd xmm0, qword [0x494ea8]
xorps xmm1, xmm1
ucomisd xmm0, xmm1
push ebx
push esi
push edi
mov dword [ebp - 4], 0
lahf
test ah, 0x44
jp 0x4156bf
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 2
mov dword [ebp - 4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [0x495f30]
test cl, 1
jne 0x4155e7
rdtsc
or ecx, 1
mov dword [0x495f28], eax
mov dword [0x495f30], ecx
mov dword [0x495f2c], edx
test cl, 2
jne 0x415617
lea eax, [ebp - 0x10]
or ecx, 2
xorps xmm0, xmm0
mov dword [0x495f30], ecx
push eax
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
mov dword [0x495f38], eax
mov eax, dword [ebp - 0xc]
mov dword [0x495f3c], eax
rdtsc
mov edi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [ebp - 4]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea eax, [ebp - 0x18]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [ebp - 0x10]
sub ecx, dword [0x495f38]
mov edx, dword [ebp - 0xc]
sbb edx, dword [0x495f3c]
call fcn.0045ada0
mov edx, dword [ebp - 0x14]
movaps xmm1, xmm0
mov ecx, dword [ebp - 0x18]
movsd qword [ebp - 0x10], xmm1
call fcn.0045ade0
movsd xmm2, qword [ebp - 0x10]
divsd xmm2, xmm0
movsd xmm1, qword [0x48dcd0]
comisd xmm1, xmm2
movsd qword [ebp - 0x10], xmm2
jbe 0x41569d
xorps xmm0, xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
sub edi, dword [0x495f28]
mov ecx, edi
sbb ebx, dword [0x495f2c]
mov edx, ebx
call fcn.0045ada0
divsd xmm0, qword [ebp - 0x10]
movsd qword [0x494ea8], xmm0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4177b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
lea eax, [esp + 8]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x10]
mov dword [esp + 8], 4
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 4
push eax
push 0
push dword [ebp + 8]
mov dword [esp + 0x20], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x417826
mov ecx, dword [esp + 4]
cmp ecx, 4
je 0x417809
cmp ecx, 3
jne 0x417821
cmp dword [esp + 8], 4
jne 0x417821
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [ecx], eax
mov eax, edx
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov esp, ebp
pop ebp
ret 8
Function at 0x417830
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.0045a360
mov eax, dword [0x492250]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x417977
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x417904
cmp word [esp + 0x10], ax
jne 0x4178c8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00409bb0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4178d0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00409bb0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x417972
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x417957
cmp eax, 0x400
ja 0x417957
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.0040dd70
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 8

Function at 0x417990
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4179b0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41a0c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
mov edx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea esi, [edi + 4]
mov ecx, esi
call fcn.0041ed70
add esp, 4
test al, al
jne 0x41a142
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x41a134
cmp eax, 0x21
je 0x41a134
cmp eax, 5
jne 0x41a10d
mov eax, 0x3e8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x14], 8
jb 0x41a115
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx*2 + 0x3e9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x10]
mov dword [edi + 0x20], eax
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41b5f0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
nop
push 0x22c
push 0
push edi
call fcn.0045c050
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x41b628
mov byte [esi + 8], 1
call ebx
jmp 0x41b62e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x41b64a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x41b600
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x41b780
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x492250]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0x20], 7
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
xor bl, bl
mov word [esp + 0xc], ax
call fcn.0040efe0
test al, al
je 0x41b804
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.0040d4c0
cmp dword [esp + 0x34], 0
je 0x41b7ec
cmp dword [esp + 0x38], 8
lea eax, [esp + 0x24]
cmovae eax, dword [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov bl, 1
mov eax, dword [esp + 0x38]
cmp eax, 8
jb 0x41b804
inc eax
lea ecx, [esp + 0x24]
push eax
push dword [esp + 0x28]
call fcn.0040b1a0
cmp dword [esi + 0x14], 8
jb 0x41b80c
mov esi, dword [esi]
push esi
call dword [esp + 0xc]
mov esi, eax
test bl, bl
je 0x41b82c
cmp dword [esp + 0x20], 8
lea ecx, [esp + 0xc]
cmovae ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov eax, dword [esp + 0x20]
cmp eax, 8
jb 0x41b844
inc eax
lea ecx, [esp + 0xc]
push eax
push dword [esp + 0x10]
call fcn.0040b1a0
mov ecx, dword [esp + 0x3c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.0045a313
mov esp, ebp
pop ebp
ret
Function at 0x41e850
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 8
jb 0x41e863
mov esi, dword [esi]
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x41e87a
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 1
push ebx
call fcn.0045ffe1
mov edi, eax
add esp, 8
test edi, edi
je 0x41e8ef
push edi
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x41e8e6
lea eax, [ebp - 8]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41e8e6
cmp dword [ebp + 8], 0
je 0x41e8e6
push 0x10
call fcn.0045a053
mov edx, dword [ebp + 8]
add esp, 4
movzx ecx, word [edx + 2]
push ecx
movzx ecx, word [edx]
push ecx
push edi
mov ecx, eax
call fcn.0041e7a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call fcn.0045ffec
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41eb50
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x492250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov edi, ecx
mov dword [ebp - 0x228], eax
movzx eax, word [edi + 8]
mov word [ebp - 0x14], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0x12], ax
call esi
mov word [ebp - 0x10], ax
movzx eax, word [edi + 0xa]
mov word [ebp - 0xe], ax
movzx eax, word [edi + 8]
mov word [ebp - 0xc], ax
mov eax, 0x4e4
mov word [ebp - 0xa], ax
call esi
mov word [ebp - 8], ax
xor esi, esi
mov eax, 0x4e4
mov word [ebp - 6], ax
nop word [eax + eax]
movzx eax, word [ebp + esi*2 - 0x12]
movzx ecx, word [ebp + esi*2 - 0x14]
add esi, 2
push ebx
push eax
push ecx
push 0x48bd8c
push 0x104
lea eax, [ebp - 0x220]
push 0x104
push eax
call fcn.0041e730
add esp, 0x1c
mov dword [ebp - 0x224], 0
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x224]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [edi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x41ec24
mov edx, dword [ebp - 0x224]
test edx, edx
jne 0x41ec3e
cmp esi, 8
jb 0x41ebc0
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 8
cmp word [edx], 0
jne 0x41ec68
mov ecx, dword [ebp - 0x228]
xor eax, eax
push eax
push edx
call fcn.00409bb0
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a313
mov esp, ebp
pop ebp
ret 8
mov eax, edx
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41ec70
mov ecx, dword [ebp - 0x228]
sub eax, esi
sar eax, 1
push eax
push edx
call fcn.00409bb0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a313
mov esp, ebp
pop ebp
ret 8
Function at 0x41ed40
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.0040d960
test al, al
jne 0x41ed67
mov ecx, dword [ebp + 0xc]
call fcn.0040d960
test al, al
jne 0x41ed67
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040f1d0
xor al, al
pop ebp
ret

Function at 0x41ed70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
test ebx, ebx
je 0x41ed97
mov dword [ebx + 0x10], 0
cmp dword [ebx + 0x14], 0x10
jb 0x41ed92
mov eax, dword [ebx]
jmp 0x41ed94
mov eax, ebx
mov byte [eax], 0
call fcn.0040d960
test al, al
je 0x41eda9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0040ee50
mov edi, eax
mov dword [ebp - 0xc], edi
test edi, edi
je 0x41eda0
push 0x10000
call fcn.0045a324
add esp, 4
mov dword [ebp - 8], 0
mov esi, eax
push edi
push 0x10000
push 1
push esi
call fcn.00465940
mov edi, eax
add esp, 0x10
test edi, edi
je 0x41ee36
mov eax, dword [ebp + 8]
nop dword [eax]
test ebx, ebx
je 0x41ee0c
mov ecx, eax
mov eax, edi
sub ecx, dword [ebp - 8]
cmp ecx, edi
cmovb eax, ecx
mov ecx, ebx
push eax
push esi
call fcn.0040a1f0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
sub eax, ecx
cmp eax, edi
jb 0x41ee4c
push dword [ebp - 0xc]
add ecx, edi
push 0x10000
push 1
push esi
mov dword [ebp - 8], ecx
call fcn.00465940
mov edi, eax
add esp, 0x10
mov eax, dword [ebp + 8]
test edi, edi
jne 0x41edf0
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.004654b4
add esp, 4
test eax, eax
jne 0x41ee4f
mov byte [ebp - 1], 1
jmp 0x41ee53
mov ebx, dword [ebp - 0xc]
mov byte [ebp - 1], 0
push ebx
call fcn.00465555
add esp, 4
test esi, esi
je 0x41ee69
push esi
call fcn.0045a32d
add esp, 4
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41eea0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
mov ecx, dword [ebp + 8]
pop ebp
jmp fcn.0040ebe0
Function at 0x41f780
Capabilities:
Get thread local storage value

Disassembly:
push ecx
mov eax, dword [0x494ed4]
test eax, 0xfffffffe
jne 0x41f7bd
push 0x494ed4
call fcn.004168e0
add esp, 4
test al, al
je 0x41f7bd
mov ecx, 0x494ed8
call fcn.004212c0
push 0
push 0x494ed4
push eax
push 0x494ed4
call fcn.00416930
add esp, 0x10
mov eax, dword [0x494ed4]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop ecx
ret
Function at 0x421200
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
push ebx
push dword [ebp + 8]
xor ebx, ebx
push dword [ecx]
mov dword [esp + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x42125f
cmp dword [0x494e44], 3
jg 0x421251
push 3
push 0x23
push str.d:webapps_b_build_slave_repo_build_src_base_threading_thread_local_win.cc
lea ecx, [esp + 0x14]
lea ebx, [eax + 1]
call fcn.00413f50
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.0040b370
add esp, 8
test bl, 1
je 0x42125f
lea ecx, [esp + 8]
call fcn.00414010
pop ebx
mov esp, ebp
pop ebp
ret 4