joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405950
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
cmp dword [ecx + 0x40], 0
je 0x40599c
mov edi, ecx
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x405ad0
mov eax, dword [edi + 0x54]
test al, 0x10
jne 0x4059a8
mov dword [esp], 0
test al, 8
je 0x405a60
mov eax, dword [edi + 0x4c]
mov dword [esp + 8], eax
cmp byte [edi + 0x5a], 0
je 0x405a21
mov ebx, dword [edi + 0x10]
sub ebx, dword [edi + 0xc]
jmp 0x405a3d
mov dword [esp], 0
jmp 0x405a60
mov eax, dword [edi + 0x18]
cmp eax, dword [edi + 0x14]
je 0x4059c2
mov eax, dword [edi]
mov ecx, edi
push 0xffffffffffffffff
call dword [eax + 0x34]
cmp eax, 0xffffffff
je 0x405a59
mov dword [esp], 0
lea ebp, [edi + 0x48]
nop dword [eax]
mov eax, dword [edi + 0x20]
mov ecx, dword [edi + 0x44]
mov edx, dword [edi + 0x34]
add edx, eax
mov esi, dword [ecx]
lea ebx, [esp + 0xc]
push ebx
push edx
push eax
push ebp
call dword [esi + 0x14]
mov ebx, eax
mov esi, dword [esp + 0xc]
mov eax, dword [edi + 0x20]
sub esi, eax
push dword [edi + 0x40]
push esi
push 1
push eax
call sub.msvcrt.dll_fwrite
add esp, 0x10
cmp eax, esi
jne 0x405a59
cmp ebx, 1
je 0x4059d0
cmp ebx, 2
je 0x405a59
push dword [edi + 0x40]
call sub.msvcrt.dll_fflush
add esp, 4
test eax, eax
jne 0x405a59
jmp 0x405a60
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [edi + 0x24]
mov ebx, dword [edi + 0x28]
sub ebx, edx
test eax, eax
jle 0x405aa0
mov ecx, dword [edi + 0x10]
sub ecx, dword [edi + 0xc]
imul ecx, eax
add ebx, ecx
mov dword [esp + 4], 0
neg ebx
push 1
push ebx
push dword [edi + 0x40]
call fcn.0042eec0
add esp, 0xc
test eax, eax
je 0x405a6b
mov dword [esp], 0xffffffff
mov eax, dword [esp]
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
cmp byte [esp + 4], 0
je 0x405a79
mov eax, dword [esp + 8]
mov dword [edi + 0x48], eax
mov eax, dword [edi + 0x20]
mov dword [edi + 0x28], eax
mov dword [edi + 0x24], eax
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x54], 0
jmp 0x405a60
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
je 0x405a3d
mov ecx, dword [edi + 0x44]
sub eax, dword [edi + 8]
mov esi, dword [ecx]
lea ebp, [esp + 8]
push eax
push edx
push dword [edi + 0x20]
push ebp
call dword [esi + 0x20]
add ebx, dword [edi + 0x24]
add eax, dword [edi + 0x20]
sub ebx, eax
mov al, 1
mov dword [esp + 4], eax
jmp 0x405a45
call fcn.00405f00
int3
Function at 0x406420
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov edi, dword [esp + 0x44]
nop
test eax, eax
nop
nop
test eax, eax
nop
mov eax, dword [edi + 0x3c]
nop
test eax, eax
nop
mov esi, dword [edi + eax + 0x78]
nop
test eax, eax
nop
mov eax, dword [edi + esi + 0x1c]
add eax, edi
mov dword [esp + 0x20], eax
nop
test eax, eax
nop
mov eax, dword [edi + esi + 0x20]
add eax, edi
mov dword [esp + 0x28], eax
nop
test eax, eax
nop
mov eax, dword [edi + esi + 0x24]
add eax, edi
mov dword [esp + 0x1c], eax
nop
test eax, eax
nop
nop
test eax, eax
nop
nop
test eax, eax
nop
nop
test eax, eax
nop
nop
test eax, eax
nop
mov word [esp + 4], 0x30
lea eax, [esp + 4]
push eax
call sub.msvcrt.dll_atoi
add esp, 4
mov dword [esp + 0x24], esi
mov dword [esp], edi
cmp eax, dword [edi + esi + 0x18]
jae 0x4065ec
mov ebp, eax
nop
nop
test eax, eax
nop
mov eax, dword [esp + 0x28]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x44]
nop
test eax, eax
nop
push dword [esp + 0x48]
call main
add esp, 4
cmp eax, 0xfffffff0
jae 0x40661a
mov ebx, eax
mov dword [esp + 0x2c], ebp
cmp eax, 0xa
ja 0x406500
mov eax, ebx
add al, bl
mov byte [esp + 4], al
lea ebp, [esp + 5]
jmp 0x406522
mov edi, ebx
or edi, 0xf
lea eax, [edi + 1]
push eax
call fcn.00409960
add esp, 4
mov ebp, eax
mov dword [esp + 0xc], eax
add edi, 2
mov dword [esp + 4], edi
mov dword [esp + 8], ebx
push ebx
push dword [esp + 0x4c]
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx], 0
push esi
call main
add esp, 4
cmp eax, 0xfffffff0
jae 0x406623
mov ebx, eax
cmp eax, 0xa
ja 0x406560
mov eax, ebx
add al, bl
mov byte [esp + 0x10], al
lea ebp, [esp + 0x11]
jmp 0x406582
mov edi, ebx
or ebx, 0xf
inc ebx
push ebx
call fcn.00409960
add esp, 4
mov ebp, eax
mov dword [esp + 0x18], eax
or ebx, 1
mov dword [esp + 0x10], ebx
mov ebx, edi
mov dword [esp + 0x14], edi
push ebx
push esi
push ebp
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [ebp + ebx], 0
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 8]
push eax
call fcn.00406a30
add esp, 8
mov ebx, eax
test byte [esp + 0x10], 1
mov ebp, dword [esp + 0x2c]
je 0x4065bd
push dword [esp + 0x18]
call fcn.004099d0
add esp, 4
test byte [esp + 4], 1
je 0x4065d0
push dword [esp + 0xc]
call fcn.004099d0
add esp, 4
nop
test eax, eax
nop
test bl, bl
jne 0x4065fa
inc ebp
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x44]
cmp ebp, dword [ecx + eax + 0x18]
jb 0x4064b0
nop
test eax, eax
nop
mov dword [esp], 0
jmp 0x40660f
mov eax, dword [esp + 0x1c]
movzx eax, word [eax + ebp*2]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp]
add edx, dword [ecx + eax*4]
mov dword [esp], edx
mov eax, dword [esp]
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 4]
call fcn.004054c0
lea ecx, [esp + 0x10]
call fcn.004054c0
mov esi, eax
test byte [esp + 4], 1
je 0x406652
jmp 0x40666b
push esi
call fcn.0042e970
push dword [esp + 0x18]
call fcn.004099d0
add esp, 4
test byte [esp + 4], 1
je 0x406652
push dword [esp + 0xc]
call fcn.004099d0
add esp, 4
push esi
call fcn.0042e970
int3
Function at 0x42ede0
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
call fcn.004356f0
test al, al
je 0x42ee14
push 2
call dword [0x46907c]
add esp, 4
push ebx
push edi
push esi
push str.libunwind:__Unwind_SetGR_context_p__reg_d__value0x_0x__n
push eax
call fcn.0042e660
add esp, 0x14
pop esi
pop edi
pop ebx
jmp fcn.004357d0
Function at 0x435100
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x435111
jmp dword [eax*4 + 0x4633e8]
cmp dword [0x4692a8], 0
je 0x435213
push 0x4692ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4692c4]
test edi, edi
je 0x435208
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43515b
mov edi, dword [edi + 8]
test edi, edi
je 0x435208
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x435150
test esi, esi
je 0x435150
mov ecx, dword [edi + 4]
call dword [section.......]
push esi
call ecx
add esp, 4
jmp 0x435150
cmp dword [0x4692a8], 0
jne 0x435190
push 0x4692ac
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4692a8], 1
jmp case.default.0x435111
call fcn.0042de10
jmp case.default.0x435111
cmp dword [0x4692a8], 0
je case.default.0x435111
push 0x4692ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4692c4]
test edi, edi
je 0x435263
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4351e7
mov edi, dword [edi + 8]
test edi, edi
je 0x435263
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x4351e0
test esi, esi
je 0x4351e0
mov ecx, dword [edi + 4]
call dword [section.......]
push esi
call ecx
add esp, 4
jmp 0x4351e0
push 0x4692ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4692a8]
cmp eax, 1
jne case.default.0x435111
mov eax, dword [0x4692c4]
test eax, eax
je 0x435242
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call fcn.004583f6
add esp, 4
mov eax, esi
test esi, esi
jne 0x435230
mov dword [0x4692c4], 0
mov dword [0x4692a8], 0
push 0x4692ac
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
jmp case.default.0x435111
push 0x4692ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4353a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x459004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x435406
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x435406
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x435406
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x435406
mov edx, dword [esp + 0xc]
sub edx, dword [0x459004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x4353f6
add esi, 0x28
dec ecx
je 0x435406
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x4353f0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x4353f0
mov eax, esi
pop esi
pop edi
ret
Function at 0x435640
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0xc]
cmp byte [0x46a49f], 1
jne 0x43565e
cmp byte [0x46a49e], 0
jne 0x43567d
jmp 0x435698
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x46a49f], 1
test eax, eax
setne byte [0x46a49e]
je 0x435698
push 2
call dword [0x46907c]
add esp, 4
push edi
push esi
push str.libunwind:___unw_init_local_cursor_p__context_p__n
push eax
call fcn.0042f080
add esp, 0x10
mov dword [esi], 0x4635d8
mov dword [esi + 4], 0x46a398
movups xmm0, xmmword [edi]
movups xmm1, xmmword [edi + 0x10]
movups xmmword [esi + 8], xmm0
movups xmmword [esi + 0x18], xmm1
movups xmm0, xmmword [edi + 0x20]
movups xmmword [esi + 0x28], xmm0
movups xmm0, xmmword [edi + 0x30]
movups xmmword [esi + 0x38], xmm0
xorps xmm0, xmm0
movups xmmword [esi + 0x48], xmm0
movups xmmword [esi + 0x58], xmm0
movups xmmword [esi + 0x62], xmm0
mov ecx, esi
push 0
call fcn.004362f0
xor eax, eax
pop esi
pop edi
ret

Function at 0x4356f0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x46a49f], 1
jne 0x435704
cmp byte [0x46a49e], 0
setne al
ret
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x46a49e]
mov byte [0x46a49f], 1
ret

Function at 0x435730
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x46a49f], 1
jne 0x435754
cmp byte [0x46a49e], 0
jne 0x435773
jmp 0x43578f
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x46a49f], 1
test eax, eax
setne byte [0x46a49e]
je 0x43578f
push 2
call dword [0x46907c]
add esp, 4
push ebx
push ebp
push esi
push str.libunwind:___unw_get_reg_cursor_p__regNum_d__value_p__n
push eax
call fcn.0042f080
add esp, 0x14
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section.......]
mov ecx, esi
push ebp
call edi
mov ecx, eax
mov eax, 0xffffe672
test cl, cl
je 0x4357c2
mov eax, dword [esi]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [section.......]
mov ecx, esi
push ebp
call edi
mov dword [ebx], eax
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4357d0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov ebp, dword [esp + 0x44]
mov ebx, dword [esp + 0x40]
mov esi, dword [esp + 0x3c]
cmp byte [0x46a49f], 1
jne 0x4357f7
cmp byte [0x46a49e], 0
jne 0x435816
jmp 0x435832
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x46a49f], 1
test eax, eax
setne byte [0x46a49e]
je 0x435832
push 2
call dword [0x46907c]
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_set_reg_cursor_p__regNum_d__value0x_x__n
push eax
call fcn.0042f080
add esp, 0x14
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov ecx, edi
call dword [section.......]
mov ecx, esi
push ebx
call edi
mov edi, 0xffffe672
test al, al
je 0x4358c2
mov eax, dword [esi]
mov edi, dword [eax + 0x10]
mov ecx, edi
call dword [section.......]
mov ecx, esi
push ebp
push ebx
call edi
xor edi, edi
cmp ebx, 0xffffffff
jne 0x4358c2
mov eax, dword [esi]
mov ebx, dword [eax + 0x24]
mov ecx, ebx
call dword [section.......]
mov eax, esp
mov ecx, esi
push eax
call ebx
mov eax, dword [esi]
mov ebx, dword [eax + 0x34]
mov ecx, ebx
call dword [section.......]
mov ecx, esi
push 0
call ebx
cmp dword [esp + 0x10], 0
je 0x4358c2
mov eax, dword [esi]
mov ebx, dword [eax + 0xc]
mov ecx, ebx
call dword [section.......]
mov ecx, esi
push 0xfffffffffffffffe
call ebx
mov ebx, eax
add ebx, dword [esp + 0x10]
mov eax, dword [esi]
mov ebp, dword [eax + 0x10]
mov ecx, ebp
call dword [section.......]
mov ecx, esi
push ebx
push 0xfffffffffffffffe
call ebp
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4358d0
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x46a49f], 1
jne 0x4358ea
cmp byte [0x46a49e], 0
jne 0x435909
jmp 0x435923
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x46a49f], 1
test eax, eax
setne byte [0x46a49e]
je 0x435923
push 2
call dword [0x46907c]
add esp, 4
push esi
push str.libunwind:___unw_step_cursor_p__n
push eax
call fcn.0042f080
add esp, 0xc
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section.......]
mov ecx, esi
push 0
call edi
pop esi
pop edi
ret

Function at 0x435940
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x46a49f], 1
jne 0x43595a
cmp byte [0x46a49e], 0
jne 0x435979
jmp 0x435993
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x46a49f], 1
test eax, eax
setne byte [0x46a49e]
je 0x435993
push 2
call dword [0x46907c]
add esp, 4
push esi
push str.libunwind:___unw_step_stage2_cursor_p__n
push eax
call fcn.0042f080
add esp, 0xc
mov eax, dword [esi]
mov edi, dword [eax + 0x20]
mov ecx, edi
call dword [section.......]
mov ecx, esi
push 1
call edi
pop esi
pop edi
ret
Function at 0x4359b0
Capabilities:
Query environment variable

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp byte [0x46a49f], 1
jne 0x4359cf
cmp byte [0x46a49e], 0
jne 0x4359ee
jmp 0x435a09
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x46a49f], 1
test eax, eax
setne byte [0x46a49e]
je 0x435a09
push 2
call dword [0x46907c]
add esp, 4
push ebx
push esi
push str.libunwind:___unw_get_proc_info_cursor_p__info_p__n
push eax
call fcn.0042f080
add esp, 0x10
mov eax, dword [esi]
mov edi, dword [eax + 0x24]
mov ecx, edi
call dword [section.......]
mov ecx, esi
push ebx
call edi
xor ecx, ecx
cmp dword [ebx + 4], 0
mov eax, 0xffffe66b
cmovne eax, ecx
pop esi
pop edi
pop ebx
ret

Function at 0x435a30
Capabilities:
Query environment variable

Disassembly:
push edi
push esi
mov esi, dword [esp + 0xc]
cmp byte [0x46a49f], 1
jne 0x435a4a
cmp byte [0x46a49e], 0
jne 0x435a69
jmp 0x435a83
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x46a49f], 1
test eax, eax
setne byte [0x46a49e]
je 0x435a83
push 2
call dword [0x46907c]
add esp, 4
push esi
push str.libunwind:___unw_resume_cursor_p__n
push eax
call fcn.0042f080
add esp, 0xc
mov eax, dword [esi]
mov edi, dword [eax + 0x28]
mov ecx, edi
call dword [section.......]
mov ecx, esi
call edi
mov eax, 0xffffe674
pop esi
pop edi
ret

Function at 0x435aa0
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp byte [0x46a49f], 1
jne 0x435ac4
cmp byte [0x46a49e], 0
jne 0x435ae3
jmp 0x435aff
push str.LIBUNWIND_PRINT_APIS
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x46a49f], 1
test eax, eax
setne byte [0x46a49e]
je 0x435aff
push 2
call dword [0x46907c]
add esp, 4
push ebp
push ebx
push esi
push str.libunwind:___unw_get_proc_name_cursor_p__buf_p__bufLen_lu__n
push eax
call fcn.0042f080
add esp, 0x14
mov eax, dword [esi]
mov edi, dword [eax + 0x30]
mov ecx, edi
call dword [section.......]
mov ecx, esi
push dword [esp + 0x20]
push ebp
push ebx
call edi
xor ecx, ecx
test al, al
mov eax, 0xffffe674
cmovne eax, ecx
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x435fa0
Capabilities:
Query environment variable

Disassembly:
cmp byte [0x46a49d], 1
jne 0x435fb4
cmp byte [0x46a49c], 0
setne al
ret
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
test eax, eax
setne al
setne byte [0x46a49c]
mov byte [0x46a49d], 1
ret
Function at 0x4391b0
Capabilities:
Enumerate process modules
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x101c
call fcn.0042e374
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push 0x1000
push edx
push eax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x439312
mov ecx, dword [esp + 0x18]
xor edx, edx
mov eax, 0
cmp ecx, 4
jb 0x439369
shr ecx, 2
cmp ecx, 2
mov eax, 1
cmovae eax, ecx
mov dword [esp + 0xc], eax
mov bl, 1
mov dword [esp + 0x10], ecx
jmp 0x43922a
mov edx, dword [esp + 0x14]
inc edx
mov ecx, dword [esp + 0x10]
cmp edx, ecx
setb bl
xor eax, eax
cmp edx, dword [esp + 0xc]
je 0x439369
mov byte [esp + 3], bl
mov dword [esp + 0x14], edx
mov esi, dword [esp + edx*4 + 0x1c]
mov eax, dword [esi + 0x3c]
movzx ecx, word [esi + eax + 0x14]
mov edx, dword [esp + 0x1034]
mov dword [edx], esi
mov dword [esp + 8], esi
movzx esi, word [esi + eax + 6]
test esi, esi
je 0x439210
add eax, dword [esp + 8]
lea ebp, [eax + ecx]
add ebp, 0x18
mov dword [esp + 4], 0
xor ebx, ebx
jmp 0x439276
add ebp, 0x28
dec esi
je 0x439210
mov edi, dword [ebp + 0xc]
add edi, dword [esp + 8]
push 8
push str..text
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4392b0
push 8
push str..eh_frame
push ebp
call sub.msvcrt.dll_strncmp
add esp, 0xc
test eax, eax
je 0x4392e0
test bl, 1
jne 0x4392ff
jmp 0x439270
mov eax, dword [ebp + 8]
add eax, edi
mov ecx, dword [esp + 0x1030]
cmp eax, ecx
movzx eax, bl
mov ebx, eax
mov edx, 1
cmova ebx, edx
cmp edi, ecx
cmova ebx, eax
test bl, 1
jne 0x4392ff
jmp 0x439270
mov ecx, dword [esp + 0x1034]
mov dword [ecx + 4], edi
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov al, 1
mov dword [esp + 4], eax
test bl, 1
je 0x439270
mov eax, dword [esp + 4]
and al, 1
je 0x439270
movzx eax, byte [esp + 3]
jmp 0x439369
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp byte [0x46a49d], 1
jne 0x43932e
cmp byte [0x46a49c], 0
jne 0x43934d
jmp 0x439367
push str.LIBUNWIND_PRINT_UNWINDING
call sub.msvcrt.dll_getenv
add esp, 4
mov byte [0x46a49d], 1
test eax, eax
setne byte [0x46a49c]
je 0x439367
push 2
call dword [0x46907c]
add esp, 4
push esi
push str.libunwind:_findUnwindSections:_EnumProcessModules_failed__returned_error__d_n
push eax
call fcn.0042f080
add esp, 0xc
xor eax, eax
and al, 1
add esp, 0x101c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x401541
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea eax, [ebp - 0x22c]
push ebx
sub esp, 0x25c
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
and edi, 0x300
mov dword [esp], ebx
mov eax, edi
mov dword [esp + 4], esi
or eax, 9
mov dword [esp + 8], eax
call fcn.0040880a
sub esp, 0x10
test eax, eax
jne 0x4016a1
mov eax, dword [ebp - 0x22c]
test byte [ebp + 0x10], 2
je 0x4015d7
xor edx, edx
xor ecx, ecx
mov dword [ebp - 0x228], edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x228]
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x222]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
sub esp, 0x20
cmp eax, 0x103
jne 0x401642
mov eax, dword [ebp + 0x10]
and eax, 1
mov dword [ebp - 0x23c], eax
jmp 0x4015ff
mov ecx, dword [ebp + 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.00401541
sub esp, 0xc
test eax, eax
jne 0x401659
lea edx, [ebp - 0x222]
xor eax, eax
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea edx, [ebp - 0x222]
sub esp, 0x10
test eax, eax
jne 0x401659
cmp dword [ebp - 0x23c], 0
mov eax, dword [ebp - 0x22c]
je 0x4015e5
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
push ecx
jmp 0x4016a1
mov eax, dword [ebp - 0x22c]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
mov dword [esp], 3
call fcn.00409059
push edx
test eax, eax
jne 0x40168b
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push ecx
push ecx
jmp 0x4016a1
xor edx, edx
mov dword [esp + 8], edi
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], ebx
call eax
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4081fc
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
xor ecx, ecx
mov ebp, esp
sub esp, 0x48
mov dword [0x47d1e0], 0x44
lea eax, [ebp - 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], edx
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0x20], 0x47d1e0
mov dword [esp + 0x14], 0x4000000
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, eax
sub esp, 0x28
xor eax, eax
test edx, edx
je 0x408268
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
leave
ret 4

Function at 0x40826c
Capabilities:
Create process on windows

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x3c
mov dword [eax + 0x24], edx
pop ebp
jmp dword [sym.imp.SHELL32.dll_ShellExecuteExW]

Function at 0x4084e2
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
inc eax
push edx
je 0x408510
mov eax, ebx
mov dword [esp], esi
and eax, 0xfffffffe
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
lea esp, [ebp - 8]
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 4

Function at 0x40851b
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call fcn.004084e2
push ecx
cmp eax, 0xffffffff
je 0x408570
test byte [ebp + 0xc], 1
mov esi, eax
mov dword [esp], ebx
je 0x408568
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
jne 0x408561
test byte [ebp + 0xc], 4
jne 0x408570
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
push eax
jmp 0x408570
mov eax, 1
jmp 0x408572
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x408545
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
cmp eax, 0xffffffff
jne 0x408596
xor eax, eax
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
xor edx, edx
xor ecx, ecx
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], edx
mov dword [esp + 0xc], ecx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc