joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bbe0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
movsx eax, word [0x466408]
add eax, 0x25b4eb3
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x4662a0]
mulsd xmm1, xmm0
movsd qword [0x4662a0], xmm1
mov cx, word [0x466408]
sub cx, 1
mov word [0x466408], cx
mov edx, dword [0x467f7c]
push edx
call fcn.00405460
add esp, 4
push 1
call fcn.0042a7e0
pop ebp
ret

Function at 0x41bca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movsx eax, word [0x466200]
cvtsi2ss xmm0, eax
subss xmm0, dword [0x466384]
addss xmm0, dword [0x45b510]
movss dword [0x466380], xmm0
movss xmm0, dword [0x466384]
subss xmm0, dword [0x45ade8]
movss dword [0x466384], xmm0
cmp dword [0x468460], 0
jne 0x41bd28
movss xmm0, dword [0x46637c]
addss xmm0, dword [0x45ade8]
movss dword [0x46637c], xmm0
mov ecx, dword [0x4661a4]
cvtsi2ss xmm0, ecx
subss xmm0, dword [0x46637c]
cvttss2si edx, xmm0
mov dword [0x4661a4], edx
call fcn.0040bcf0
mov dword [0x468460], eax
push 3
push 0x2e5
call fcn.0040fc50
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [0x466288]
cvtsi2sd xmm0, eax
movsd xmm1, qword [0x466188]
addsd xmm1, xmm0
subsd xmm1, qword [0x45b150]
movsd qword [ebp - 0x14], xmm1
mov ecx, dword [0x466288]
add ecx, 1
mov dword [0x466288], ecx
movsd xmm0, qword [0x466188]
subsd xmm0, qword [0x45adf0]
movsd qword [0x466188], xmm0
movsd xmm0, qword [0x45b440]
ucomisd xmm0, qword [ebp - 0x14]
lahf
test ah, 0x44
jnp 0x41bdf9
movsx edx, word [0x466448]
add edx, 0x1feddf6e
cmp edx, 0x5df28570
jl 0x41bdf9
movsd xmm0, qword [0x4662c8]
subsd xmm0, qword [0x45adf0]
movsd qword [0x4662c8], xmm0
movss xmm0, dword [0x46615c]
addss xmm0, dword [0x45b858]
cvtss2sd xmm0, xmm0
addsd xmm0, qword [0x4662c8]
movsx eax, word [0x466120]
cvtsi2sd xmm1, eax
addsd xmm1, xmm0
cvttsd2si ecx, xmm1
mov word [0x466120], cx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0042b077
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
push 3
call fcn.0040b630
add esp, 8
cmp dword [ebp - 4], 0
jne 0x41be7d
mov edx, dword [0x46645c]
add edx, dword [0x46612c]
mov dword [0x46645c], edx
mov eax, dword [0x46612c]
sub eax, 1
mov dword [0x46612c], eax
push 0x3e8
call dword [0x467d58]
push 3
push 0x2e5
call fcn.0040fc50
add esp, 8
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042b077
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
push eax
push 3
call fcn.0040b630
add esp, 8
cmp dword [ebp - 4], 0
je 0x41bea4
mov ecx, dword [ebp - 4]
push ecx
push 1
push 4
push 0x468460
call fcn.0042b22a
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0042ad4c
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x428470
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
movsx eax, word [0x466458]
add eax, 0x2db5da99
mov word [0x466458], ax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 4]
mov dword [eax + edx], 0
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx], 0
mov eax, 4
imul ecx, eax, 0
mov edx, dword [ebp - 4]
mov dword [edx + ecx + 8], 0x67452301
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax + 8], 0xefcdab89
mov edx, 4
shl edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + edx + 8], 0x98badcfe
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + edx + 8], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x43e662
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x467090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00430b7c
mov dword [ebp - 0x14], eax
cmp dword [0x469350], esi
jne 0x43e755
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x43e6e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x43e835
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x43e835
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x43e835
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x469350], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x469354], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x469358], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x469360], eax
test eax, eax
je 0x43e752
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46935c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x43e77a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x43e76d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x43e78f
push 4
pop eax
jmp 0x43e837
cmp dword [ebp - 0x14], esi
je 0x43e78f
push dword [0x469350]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x43e774
mov eax, dword [0x46935c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x43e7ed
cmp dword [0x469360], edi
je 0x43e7ed
push eax
call ebx
push dword [0x469360]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x43e7ed
test eax, eax
je 0x43e7ed
call ecx
test eax, eax
je 0x43e7e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x43e7e2
test byte [ebp - 8], 1
jne 0x43e7ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x43e81d
mov eax, dword [0x469354]
cmp eax, edi
je 0x43e81a
push eax
call ebx
test eax, eax
je 0x43e81a
call eax
mov esi, eax
test esi, esi
je 0x43e81a
mov eax, dword [0x469358]
cmp eax, edi
je 0x43e81a
push eax
call ebx
test eax, eax
je 0x43e81a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x469350]
call ebx
test eax, eax
je 0x43e835
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x43e837
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f58d
mov esp, ebp
pop ebp
ret
Function at 0x437230
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41b015
lea edi, [esi - 0x1a015]
push edi
or ebp, 0xffffffff
jmp 0x437252
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x437259
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x437248
mov eax, 1
add ebx, ebx
jne 0x43726b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x437260
jne 0x43727c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x437260
xor ecx, ecx
sub eax, 3
jb 0x437290
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x437302
mov ebp, eax
add ebx, ebx
jne 0x43729b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4372a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4372cc
inc ecx
add ebx, ebx
jne 0x4372b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4372ad
jne 0x4372c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4372ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4372ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4372dd
jmp 0x43724e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4372ec
add edi, ecx
jmp 0x43724e
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43730a
cmp byte [edi], 7
jne 0x43730a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43730f
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x437387
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x39c88]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x39d28]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43733c
mov ecx, edi
jns 0x43736b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x39d2c]
or eax, eax
je 0x437381
mov dword [ebx], eax
add ebx, 4
jmp 0x437359
call dword [esi + 0x39d3c]
mov ebp, dword [esi + 0x39d30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4373bb
sub esp, 0xffffff80
jmp 0x412a92
Function at 0x402b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x10], 0
xorps xmm0, xmm0
movlpd qword [ebp - 8], xmm0
jb 0x402b63
push edi
mov edi, dword [ebp + 0xc]
ja 0x402b2e
test edi, edi
je 0x402b62
push ebx
mov ebx, dword [ebp - 4]
push esi
mov esi, dword [ebp - 8]
mov eax, dword [ebp + 0x14]
mov ecx, esi
mov edx, dword [ebp + 0x18]
and ecx, 7
shl ecx, 3
call fcn.0042d700
mov ecx, dword [ebp + 8]
xor byte [esi + ecx], al
add esi, 1
adc ebx, 0
cmp ebx, dword [ebp + 0x10]
jb 0x402b36
ja 0x402b60
cmp esi, edi
jb 0x402b36
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40be10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4b3094]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40beca
cmp byte [esi + 0x3d], 0
je 0x40beca
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40beb8
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40be80
sub eax, 1
je 0x40be84
sub eax, 2
jne 0x40beb8
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40bea1
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00450c3f
add esp, 0x10
cmp edi, eax
jne 0x40beb8
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret

Function at 0x40e110
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40e141
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40e130
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40f930
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4b3094]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40f960
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40f99c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40f99c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40fa82
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40f9c4
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40f9f7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045017d
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x40fa55
sub eax, 1
je 0x40fa55
sub eax, 2
jne 0x40fa82
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00401a80
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40fa72
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00450c3f
add esp, 0x10
cmp edi, eax
jne 0x40fa82
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40f987
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret 4
Function at 0x438760
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49642d
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4b3094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
mov edx, 2
test esi, esi
mov eax, 1
cmove esi, eax
xor ecx, ecx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004903a1
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
push ebx
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4387eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4387eb
push str.boost::filesystem::current_path
push dword [ebp + 0xc]
push eax
call fcn.0043fa10
add esp, 0xc
jmp 0x438800
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x438800
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov esi, dword [ebp + 8]
mov ecx, ebx
xor eax, eax
mov dword [esi], 0
lea edx, [ecx + 2]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438821
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.0040dd70
push ebx
call fcn.0042d5c0
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b9c0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
mov cl, al
push ebx
mov ebx, eax
shr ebx, 4
and bl, 1
and cl, 1
push esi
mov esi, dword [esp + 0x10]
mov byte [esp + 0xb], cl
je 0x43ba6d
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x43b9ef
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43ba6d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43bb01
cmp eax, 3
je 0x43bb01
cmp eax, 0x7b
je 0x43bb01
cmp eax, 0xf
je 0x43bb01
cmp eax, 0x15
je 0x43bb01
cmp eax, 0x57
je 0x43bb01
cmp eax, 0xa1
je 0x43bb01
cmp eax, 0x35
je 0x43bb01
cmp eax, 0x43
je 0x43bb01
push str.boost::filesystem::remove
push dword [esp + 0x1c]
push esi
push eax
call fcn.0043f9a0
add esp, 0x10
xor al, al
pop esi
pop ebx
pop ecx
ret
mov ecx, dword [esi + 0x14]
mov eax, esi
test bl, bl
jne 0x43ba86
cmp ecx, 8
jb 0x43ba7d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43ba94
cmp ecx, 8
jb 0x43ba8d
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x43bb07
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x43bb00
cmp edi, 3
je 0x43bb00
cmp edi, 0x7b
je 0x43bb00
cmp edi, 0xf
je 0x43bb00
cmp edi, 0x15
je 0x43bb00
cmp edi, 0x57
je 0x43bb00
cmp edi, 0xa1
je 0x43bb00
cmp edi, 0x35
je 0x43bb00
cmp edi, 0x43
je 0x43bb00
cmp byte [esp + 0xf], 0
je 0x43baed
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43bae2
mov eax, dword [esi]
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.boost::filesystem::remove
push dword [esp + 0x20]
push esi
push edi
call fcn.0043f9a0
add esp, 0x10
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret
pop esi
mov al, 1
pop ebx
pop ecx
ret
Function at 0x43c610
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496985
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b3094]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov edx, edi
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
cmp dword [edi + 0x14], 8
jb 0x43c651
mov edx, dword [edi]
mov ecx, edx
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x43c671
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040dd70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push 0x2200000
push 3
push 0
push 7
push 0x88
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x34], esi
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x43c700
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x43c6f2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43c7b6
push edx
push ecx
call fcn.0042d5b2
add esp, 8
mov byte [ebp - 4], 2
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp esi, 0xffffffff
jne 0x43c77c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp eax, 5
jne 0x43c76c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43c731
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43c761
test esi, 0x400
jne 0x43c769
push esi
push edi
call fcn.00439980
and esi, 0x10
mov dword [ebx + 4], eax
or esi, 0x20
add esp, 8
shr esi, 4
mov dword [ebx], esi
jmp 0x43c798
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43c76c
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x2c]
push edi
push eax
push ebx
call fcn.0043a120
add esp, 0x10
jmp 0x43c798
push dword [ebp - 0x2c]
push edi
push esi
push ebx
call fcn.0043c310
add esp, 0x10
push esi
mov dword [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042d6f2
mov esp, ebp
pop ebp
ret
call fcn.0044f541
int3
Function at 0x43ef90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496d18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b3094]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x14], edi
push dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
call fcn.0043f480
mov dword [edi], vtable.boost::filesystem::filesystem_error.0
mov dword [ebp - 4], 0
mov dword [edi + 0x18], 0
push 0x4c
mov byte [ebp - 4], 2
call fcn.0042d582
mov ecx, eax
add esp, 4
mov eax, 1
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 7
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 7
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0xf
lock xadd dword [ecx], eax
mov esi, dword [edi + 0x18]
mov dword [edi + 0x18], ecx
test esi, esi
je 0x43f269
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x43f269
mov ecx, dword [esi + 0x48]
cmp ecx, 0x10
jb 0x43f0fd
mov eax, dword [esi + 0x34]
inc ecx
mov byte [ebp - 4], 3
cmp ecx, 0x1000
jb 0x43f0f3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f27f
mov eax, edx
push ecx
push eax
call fcn.0042d5b2
add esp, 8
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0xf
mov byte [esi + 0x34], 0
mov eax, dword [esi + 0x30]
mov byte [ebp - 4], 4
cmp eax, 8
jb 0x43f128
inc eax
lea ecx, [esi + 0x1c]
push eax
push dword [esi + 0x1c]
call fcn.0042398a
xor eax, eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 7
mov word [esi + 0x1c], ax
mov eax, dword [esi + 0x18]
mov byte [ebp - 4], 5
cmp eax, 8
jb 0x43f155
inc eax
lea ecx, [esi + 4]
push eax
push dword [esi + 4]
call fcn.0042398a
xor eax, eax
mov dword [esi + 0x14], 0
push 0x4c
push esi
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
call fcn.0042d5b2
add esp, 8
jmp 0x43f269
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0044f541
int3

Function at 0x477f88
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00477b80

Function at 0x4809f8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004808cc

Function at 0x4832e5
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482ca3