joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4193d0
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1854
call fcn.00450fc0
mov eax, dword [0x498068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x1848]
push 0x228
push 0
push eax
call fcn.00452a30
push 0x208
lea eax, [ebp - 0x620]
push 0
push eax
call fcn.00452a30
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00452a30
push 0x1000
lea eax, [ebp - 0x1620]
push 0
push eax
call fcn.00452a30
add esp, 0x30
mov dword [ebp - 0x1850], 0
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41947d
lea eax, [ebp - 0x184c]
mov dword [ebp - 0x184c], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x41948f
test ebx, ebx
je 0x41947d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450164
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, eax
mov dword [ebp - 0x1854], ecx
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [ebp - 0x1844]
cmp eax, ecx
je 0x4195f0
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4195ea
lea eax, [ebp - 0x1850]
push eax
push 0x1000
lea eax, [ebp - 0x1620]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x4195df
push 0x208
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x1620]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x4195df
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push 0x20a
lea eax, [ebp - 0x418]
push 0
push eax
call fcn.00452a30
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x418]
push 0x5c
push eax
call fcn.00451b3f
add esp, 8
test eax, eax
je 0x41956b
add eax, 2
jmp 0x419571
lea eax, [ebp - 0x418]
push str.TM.exe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4195f0
push ecx
lea eax, [ebp - 0x620]
mov edx, 0x4884a0
push eax
lea ecx, [ebp - 0x20c]
call fcn.00418fc0
add esp, 8
test eax, eax
je 0x4195f0
lea eax, [ebp - 0x620]
push 0x484908
push eax
call fcn.0045a0ea
add esp, 8
test eax, eax
jne 0x4195f0
mov ecx, dword [edi + 4]
cmp dword [edi + 8], ecx
je 0x4195ce
mov eax, dword [ebp - 0x1844]
mov dword [ecx], eax
add dword [edi + 4], 4
jmp 0x4195f0
lea eax, [ebp - 0x1844]
push eax
push ecx
mov ecx, edi
call fcn.00419f60
jmp 0x4195f0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x4195f0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x184c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ecx, dword [ebp - 0x1854]
test eax, eax
jne 0x4194b0
test ebx, ebx
je 0x419613
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00450164
mov esp, ebp
pop ebp
ret
Function at 0x41a2b0
Capabilities:
Enumerate process modules
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1650
call fcn.00450fc0
mov eax, dword [0x498068]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x228
lea eax, [ebp - 0x1640]
mov dword [ebp - 0x1650], ecx
push 0
push eax
call fcn.00452a30
push 0x208
lea eax, [ebp - 0x418]
mov dword [ebp - 0x164c], 0
push 0
push eax
call fcn.00452a30
push 0x1000
lea eax, [ebp - 0x1418]
push 0
push eax
call fcn.00452a30
add esp, 0x24
xor eax, eax
mov dword [ebp - 0x1648], eax
push eax
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41a353
lea eax, [ebp - 0x1644]
mov dword [ebp - 0x1644], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x41a364
test ebx, ebx
je 0x41a353
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00450164
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
nop dword [eax]
push dword [ebp - 0x163c]
push 0
push 0x100411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41a441
lea eax, [ebp - 0x164c]
push eax
push 0x1000
lea eax, [ebp - 0x1418]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x41a43e
push 0x208
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x1418]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x41a43e
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.00452a30
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call fcn.00451b3f
add esp, 8
test eax, eax
je 0x41a415
add eax, 2
jmp 0x41a41b
lea eax, [ebp - 0x210]
push dword [ebp - 0x1650]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x41a43e
push eax
push esi
mov dword [ebp - 0x1648], 1
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
lea eax, [ebp - 0x1644]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x41a370
pop esi
test ebx, ebx
je 0x41a45f
push ebx
call edi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1648]
xor ecx, ebp
pop edi
pop ebx
call fcn.00450164
mov esp, ebp
pop ebp
ret
Function at 0x420a60
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
cmp dword [0x49ad14], 1
push esi
mov esi, ecx
jne 0x420ad0
cmp dword [0x49ad28], 3
jg 0x420ad0
call fcn.00421f10
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
lea edx, [esp + 0x10]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], esi
call fcn.00422fe0
add esp, 4
test eax, eax
je 0x420ad0
push eax
push ecx
push 0x135
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basemessage_loop.cc
lea ecx, [esp + 0x20]
call fcn.00425a60
lea ecx, [esp + 0x10]
call fcn.00425b00
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x420ae4
mov byte [eax + 4], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x49ad14], 1
jne 0x420b29
cmp dword [0x49ad28], 3
jg 0x420b29
push 3
push 0x139
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basemessage_loop.cc
lea ecx, [esp + 0x1c]
call fcn.00425970
mov edx, str.Check_failed:_false.
lea ecx, [eax + 8]
call fcn.00407b40
mov edx, str.Must_be_inside_Run_to_call_Quit
mov ecx, eax
call fcn.00407b40
mov ebx, 1
test bl, 1
je 0x420b37
lea ecx, [esp + 0x10]
call fcn.00425b00
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x420bc0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x498068]
xor eax, esp
mov dword [esp + 0xd8], eax
cmp dword [0x49ad14], 1
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], 0
jne 0x420c41
cmp dword [0x49ad28], 3
jg 0x420c41
call fcn.00421f10
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push ecx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
call fcn.00422fe0
add esp, 4
test eax, eax
je 0x420c41
push eax
push ecx
push 0x194
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basemessage_loop.cc
lea ecx, [esp + 0x28]
call fcn.00425a60
lea ecx, [esp + 0x18]
call fcn.00425b00
cmp byte [0x49ad08], 0
je 0x420d28
cmp dword [edi + 0x84], 0
jne 0x420d28
mov esi, dword [0x49ad54]
test esi, esi
je 0x420d28
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x49ad4c], 0
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test bl, bl
je 0x420d28
cmp dword [0x49ad14], 1
jne 0x420cd0
cmp dword [0x49ad28], 3
jg 0x420cd0
lea ecx, [edi + 0x6c]
call fcn.00405620
test al, al
je 0x420cd0
push 3
push 0x262
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basemessage_loop.cc
lea ecx, [esp + 0x24]
call fcn.00425970
mov edx, str.Check_failed:__thread_name_.empty__.
lea ecx, [eax + 8]
call fcn.00407b40
mov eax, 1
jmp 0x420cd4
mov eax, dword [esp + 0xc]
test al, 1
je 0x420ce1
lea ecx, [esp + 0x18]
call fcn.00425b00
sub esp, 0xc
lea eax, [edi + 0x6c]
mov edx, str.MsgLoop:
lea ecx, [esp + 0xd8]
push eax
call fcn.004230f0
add esp, 4
mov ecx, eax
call fcn.004322c0
add esp, 0xc
mov dword [edi + 0x84], eax
lea ecx, [esp + 0xcc]
call fcn.004057e0
mov ecx, dword [edi + 0x84]
push 0x4852cc
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [edi + 0xb4]
mov eax, dword [eax + 8]
test eax, eax
je 0x420d9c
cmp dword [edi + 4], 1
jne 0x420d9c
mov esi, dword [edi + 0x4c]
mov dword [esp + 0xcc], edi
mov dword [esp + 0xd0], eax
mov byte [esp + 0xd4], 0
mov edi, dword [esi + 0x2c]
test edi, edi
je 0x420d68
mov eax, dword [edi + 0xc]
inc eax
mov dword [esp + 0xd8], eax
jmp 0x420d73
mov dword [esp + 0xd8], 1
lea eax, [esp + 0xcc]
mov ecx, esi
mov dword [esi + 0x2c], eax
mov eax, dword [esi]
call dword [eax + 0x14]
mov dword [esi + 0x2c], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xd8]
xor ecx, esp
call fcn.00450164
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi + 0x4c]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00450164
mov esp, ebp
pop ebp
ret
Function at 0x422be0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xbc
cmp dword [0x49ad14], 1
push esi
mov esi, ecx
jne 0x422c55
cmp dword [0x49ad28], 3
jg 0x422c55
mov eax, esi
mov dword [esp + 0xc], 0
and eax, 3
mov dword [esp + 8], eax
je 0x422c55
push str.reinterpret_cast_uintptr_t__instance______alignof_Type____1___0u
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
call fcn.00423cb0
add esp, 4
test eax, eax
je 0x422c55
push eax
push ecx
push 0x3f
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_baselazy_instance.h
lea ecx, [esp + 0x20]
call fcn.00425a60
mov edx, str.:_Bad_boy__the_buffer_passed_to_placement_new_is_not_aligned__nThis_may_break_some_stuff_like_SSE_based_optimizations_assuming_the__Type__objects_are_word_aligned.
lea ecx, [eax + 8]
call fcn.00407b40
lea ecx, [esp + 0x10]
call fcn.00425b00
push esi
push 4
call fcn.004013c0
mov esi, eax
add esp, 8
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi], eax
mov dword [esp + 8], 0xffffffff
cmp eax, 0xffffffff
jne 0x422cae
push str.slot_____DWORD_0xFFFFFFFF_
lea edx, [esp + 0xc]
mov ecx, esi
call fcn.004248b0
add esp, 4
test eax, eax
je 0x422cae
push eax
push 0x12
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_base_threading_thread_local_win.cc
lea ecx, [esp + 0x1c]
call fcn.004259c0
lea ecx, [esp + 0x10]
call fcn.00425b00
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x424430
Capabilities:
Create process on windows
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
xor eax, eax
mov dword [esp + 0x1c], 0x44
push edi
mov edi, edx
mov word [esp + 0x62], ax
xorps xmm0, xmm0
mov dword [esp + 0x4c], 1
movlpd qword [esp + 0x24], xmm0
mov eax, 0x4849fc
mov ebx, ecx
movlpd qword [esp + 0x2c], xmm0
cmp byte [edi + 8], 0
mov esi, dword [edi + 0xc]
cmove eax, dword [esp + 0x28]
xor ecx, ecx
cmp byte [edi + 1], cl
mov dword [esp + 0x28], eax
mov eax, 5
cmovne eax, ecx
movlpd qword [esp + 0x34], xmm0
neg esi
mov word [esp + 0x50], ax
mov eax, dword [edi + 4]
sbb esi, esi
movlpd qword [esp + 0x3c], xmm0
and esi, 0x1000004
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x52], xmm0
movlpd qword [esp + 0x5a], xmm0
test eax, eax
je 0x424518
push ecx
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x424589
lea eax, [esp + 0x10]
or esi, 0x400
push eax
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
movzx eax, byte [edi + 2]
push 0
push dword [esp + 0x18]
push esi
push eax
push 0
push 0
call fcn.00401810
push eax
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [esp + 0xc]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
test esi, esi
jmp 0x424542
lea eax, [esp + 0x10]
mov ecx, ebx
push eax
lea eax, [esp + 0x24]
push eax
movzx eax, byte [edi + 2]
push 0
push 0
push esi
push eax
push 0
push 0
call fcn.00401810
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x424589
mov eax, dword [edi + 0xc]
test eax, eax
je 0x42459c
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x424592
mov esi, dword [esp + 0x10]
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x424577
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x14]
call esi
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp byte [edi], 0
je 0x4245b9
push 0xffffffffffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4245cf
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x10]
call esi
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424640
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test eax, eax
je 0x42466d
cmp byte [ebp + 8], 0
je 0x42466d
push 0xea60
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424c20
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb8
push ebx
xor ebx, ebx
cmp dword [0x49ad14], 1
push edi
mov edi, ecx
mov dword [esp + 0xc], ebx
jne 0x424ca9
cmp dword [0x49ad28], 3
jg 0x424ca9
cmp dword [edi], ebx
jne 0x424ca9
sub esp, 8
mov dword [esp + 0x18], 3
lea ecx, [esp + 0x20]
call fcn.004235a0
mov dword [esp + 0xb4], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewin_registry.cc
mov dword [esp + 0xb8], 0x8c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8c
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewin_registry.cc
lea ecx, [esp + 0x18]
mov dword [esp + 0xc4], eax
call fcn.00426000
mov edx, str.Check_failed:_key_.
lea ecx, [esp + 0x18]
call fcn.00407b40
mov ebx, 1
test bl, 1
je 0x424cba
lea ecx, [esp + 0x10]
and ebx, 0xfffffffe
call fcn.00425b00
cmp dword [0x49ad14], 1
jne 0x424d2d
cmp dword [0x49ad28], 3
jg 0x424d2d
cmp dword [ebp + 8], 0
jne 0x424d2d
sub esp, 8
mov dword [esp + 0x18], 3
lea ecx, [esp + 0x20]
or ebx, 2
call fcn.004235a0
mov dword [esp + 0xb4], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewin_registry.cc
mov dword [esp + 0xb8], 0x8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x8d
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewin_registry.cc
lea ecx, [esp + 0x18]
mov dword [esp + 0xc4], eax
call fcn.00426000
mov edx, str.Check_failed:_value_name.
lea ecx, [esp + 0x18]
call fcn.00407b40
test bl, 2
je 0x424d3b
lea ecx, [esp + 0x10]
call fcn.00425b00
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x424d50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 8], eax
cmp dword [0x49ad14], 1
push edi
mov edi, ecx
jne 0x424ddc
cmp dword [0x49ad28], 3
jg 0x424ddc
test esi, esi
jne 0x424ddc
sub esp, 8
mov dword [esp + 0x20], 3
lea ecx, [esp + 0x28]
call fcn.004235a0
mov dword [esp + 0xbc], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewin_registry.cc
mov dword [esp + 0xc0], 0x93
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x93
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewin_registry.cc
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], eax
call fcn.00426000
mov edx, str.Check_failed:_out_value.
lea ecx, [esp + 0x20]
call fcn.00407b40
mov eax, 1
test al, 1
je 0x424de9
lea ecx, [esp + 0x18]
call fcn.00425b00
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 4
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 4
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0
push eax
push 0
push str.HummerSetup2012
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, eax
test edx, edx
jne 0x424e40
mov ecx, dword [esp + 0x10]
cmp ecx, 4
je 0x424e33
cmp ecx, 3
jne 0x424e4a
cmp dword [esp + 0x14], 4
jne 0x424e4a
mov eax, dword [esp + 0xc]
mov dword [esi], eax
mov eax, edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0x3f4
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x424e60
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1014
call fcn.00450fc0
mov eax, dword [0x498068]
xor eax, esp
mov dword [esp + 0x1010], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov dword [esp + 0xc], eax
mov esi, ecx
cmp dword [0x49ad14], 1
push edi
mov edi, dword [ebp + 0xc]
jne 0x424f02
cmp dword [0x49ad28], 3
jg 0x424f02
test edi, edi
jne 0x424f02
sub esp, 8
mov dword [esp + 0x20], 3
lea ecx, [esp + 0x28]
call fcn.004235a0
mov dword [esp + 0xbc], str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewin_registry.cc
mov dword [esp + 0xc0], 0xb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xb5
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewin_registry.cc
lea ecx, [esp + 0x20]
mov dword [esp + 0xcc], eax
call fcn.00426000
mov edx, str.Check_failed:_out_value.
lea ecx, [esp + 0x20]
call fcn.00407b40
mov eax, 1
test al, 1
je 0x424f0f
lea ecx, [esp + 0x18]
call fcn.00425b00
lea eax, [esp + 0x10]
mov dword [esp + 0x14], 1
push eax
lea eax, [esp + 0x81c]
mov dword [esp + 0x14], 0x800
push eax
lea eax, [esp + 0x1c]
push eax
push 0
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x424f6b
mov ecx, dword [esp + 0x14]
cmp ecx, 1
jne 0x424f84
lea eax, [esp + 0x818]
push eax
call fcn.00401c50
add esp, 4
push eax
lea eax, [esp + 0x81c]
push eax
mov ecx, edi
call fcn.00401a50
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00450164
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x424fe0
push 0x400
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x820]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x424fc4
cmp eax, 0x400
ja 0x424fc4
lea eax, [esp + 0x18]
push eax
call fcn.00401c50
add esp, 4
push eax
lea eax, [esp + 0x1c]
jmp 0x424f63
mov eax, 0xea
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1010]
xor ecx, esp
call fcn.00450164
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [esp + 0x101c]
mov eax, 0x3f4
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00450164
mov esp, ebp
pop ebp
ret 8

Function at 0x425000
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
xor eax, eax
cmp dword [0x49ad14], 1
push ebx
mov ebx, ecx
mov dword [esp + 4], eax
jne 0x425058
cmp dword [0x49ad28], 3
jg 0x425058
cmp dword [ebp + 0xc], eax
jne 0x425058
cmp dword [ebp + 0x10], eax
je 0x425058
push 3
push 0x10b
push str.d:devopsworkspacep_37d34ce895ed4865ac95061b653d796fmisc_setup3_basewin_registry.cc
lea ecx, [esp + 0x14]
call fcn.00425970
mov edx, str.Check_failed:_data___dsize.
lea ecx, [eax + 8]
call fcn.00407b40
mov eax, 1
test al, 1
je 0x425065
lea ecx, [esp + 8]
call fcn.00425b00
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x428210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
call fcn.00401810
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

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

Disassembly:
call fcn.00401810
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x428247
shr eax, 4
and al, 1
ret
xor al, al
ret

Function at 0x428380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
mov eax, dword [0x498068]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
lea eax, [esp + 0x50]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x428443
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x3c]
call fcn.004018b0
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x24]
call fcn.00401920
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0xc]
call fcn.00401920
lea ecx, [esp + 8]
call fcn.00427330
lea ecx, [esp + 8]
call fcn.00401a00
cmp esi, eax
je 0x428413
call fcn.00401a00
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x428408
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.00401a50
lea ecx, [esp + 8]
call fcn.00401850
lea ecx, [esp + 0x20]
call fcn.00401850
lea ecx, [esp + 0x38]
call fcn.00401850
mov al, 1
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00450164
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
xor al, al
pop esi
xor ecx, esp
call fcn.00450164
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x498068]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.00401810
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4284a3
shr al, 4
and al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00450164
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00426ca0
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004086e0
test al, al
jne 0x4284f4
lea ecx, [esp + 0xc]
call fcn.00428460
test al, al
je 0x4284f4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4284f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4284f4
mov ecx, esi
call fcn.00428230
test al, al
je 0x4284f4
mov bl, 1
jmp 0x4284f6
xor bl, bl
lea ecx, [esp + 0xc]
call fcn.00401850
mov ecx, dword [esp + 0x24]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00450164
mov esp, ebp
pop ebp
ret