joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ea80
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4aabe0]
cmp dword [eax + 0x30], 0
je 0x45eb2a
cmp dword [ebx + 0x94], 0
jne 0x45eb24
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45ea10
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45eb24
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x45eaea
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45eb24
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041d0f8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45eaf9
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45f68c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45f6c1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040433c
jmp 0x45f6ce
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x460748
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x460789
mov eax, esi
call fcn.00446ee8
test al, al
je 0x460789
mov eax, dword [ebx + 0x84]
call fcn.00446be4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x460789
push 0
mov eax, dword [ebx + 0x84]
call fcn.00446be4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x47d708
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x47d72d
cmp dword [esp + 4], 5
jb 0x47d72d
mov al, 1
jmp 0x47d72f
xor eax, eax
add esp, 0x94
ret
Function at 0x490ae8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x490b16
mov eax, ebx
call fcn.0049159c
cmp dword [ebx + 0x40], 0
je 0x490b0f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x490b87
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x490b79
cmp dword [ebx + 8], 0
je 0x490b38
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x490b4a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x490b79
cmp dword [ebx + 8], 0
je 0x490b2b
cmp eax, 3
je 0x490b5d
dec eax
jne 0x490b2b
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x490b2b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x490b2b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x490ba5
cmp dword [ebx + 0x14], 0xcc
je 0x490ba5
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00490bb0
pop ebx
ret

Function at 0x4a4450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed0
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x130], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004046fc
xor eax, eax
push ebp
push 0x4a4524
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov dword [ebp - 0x12c], 0x128
xor edx, edx
mov eax, 2
call fcn.004a1350
mov esi, eax
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.004a1370
test eax, eax
je 0x4a44fd
lea eax, [ebp - 0x130]
lea edx, [ebp - 0x108]
mov ecx, 0x104
call fcn.004044bc
mov eax, dword [ebp - 0x130]
mov edx, dword [ebp - 4]
call fcn.00408730
test eax, eax
jne 0x4a44ec
mov eax, dword [ebp - 0x124]
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
push 0
push eax
call sub.kernel32.dll_TerminateProcess
mov bl, 1
lea edx, [ebp - 0x12c]
mov eax, esi
call fcn.004a1390
test eax, eax
jne 0x4a44a7
push esi
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a452b
lea eax, [ebp - 0x130]
call fcn.0040424c
lea eax, [ebp - 4]
call fcn.0040424c
ret
Function at 0x77205c43
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x772080bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
push edx
push 0xf003f
push 0
push ecx
push eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x77205cdb
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x100
jmp 0x77205ca5
lea eax, [ebp - 0x104]
push eax
push dword [ebp - 0x108]
call 0x77210f07
push edi
lea eax, [ebp - 0x104]
push eax
push 0
push dword [ebp - 0x108]
call esi
test eax, eax
je 0x77205c93
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.772069d6
leave
ret 8

Function at 0x77205dfa
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x772080bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
push esi
mov dword [ebp - 0x40c], ecx
cmp edi, ebx
je 0x77205e62
push eax
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.77205cee
push 0x772014d4
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.77205d28
push edi
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.77205d28
lea eax, [ebp - 0x404]
push ebx
lea ecx, [ebp - 0x408]
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x77205ebc
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp - 0x40c]
push 1
push ebx
push dword [ebp - 0x410]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x408]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.772069d6
leave
ret 8
Function at 0x430003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x52c31646
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x5c8b7edd
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402b00
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 0x402b53
push edi
mov edi, dword [ebp + 0xc]
ja 0x402b1e
test edi, edi
je 0x402b52
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.0042d870
mov ecx, dword [ebp + 8]
xor byte [esi + ecx], al
add esi, 1
adc ebx, 0
cmp ebx, dword [ebp + 0x10]
jb 0x402b26
ja 0x402b50
cmp esi, edi
jb 0x402b26
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40bde0
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 0x40be9a
cmp byte [esi + 0x3d], 0
je 0x40be9a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40be88
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 0x40be50
sub eax, 1
je 0x40be54
sub eax, 2
jne 0x40be88
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d85f
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40be71
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00450def
add esp, 0x10
cmp edi, eax
jne 0x40be88
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d85f
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d85f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.0042d85f
mov esp, ebp
pop ebp
ret

Function at 0x40e0e0
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 0x40e111
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40e100
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x40faa0
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 0x40fad0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d85f
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40fb0c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40fb0c
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.0042d85f
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40fbf2
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40fb34
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 0x40fb67
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0045032d
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.0042d85f
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 0x40fbc5
sub eax, 1
je 0x40fbc5
sub eax, 2
jne 0x40fbf2
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00401a70
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.0042d85f
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40fbe2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00450def
add esp, 0x10
cmp edi, eax
jne 0x40fbf2
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40faf7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d85f
mov esp, ebp
pop ebp
ret 4
Function at 0x438910
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4965ed
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.00490551
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 0x43899b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x43899b
push str.boost::filesystem::current_path
push dword [ebp + 0xc]
push eax
call fcn.0043fbc0
add esp, 0xc
jmp 0x4389b0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4389b0
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 0x4389d1
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, esi
call fcn.0040dd40
push ebx
call fcn.0042d72d
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 0x43bb70
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 0x43bc1d
and eax, 0xfffffffe
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x43bb9f
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x43bc1d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x43bcb0
cmp eax, 3
je 0x43bcb0
cmp eax, 0x7b
je 0x43bcb0
cmp eax, 0xf
je 0x43bcb0
cmp eax, 0x15
je 0x43bcb0
cmp eax, 0x57
je 0x43bcb0
cmp eax, 0xa1
je 0x43bcb0
cmp eax, 0x35
je 0x43bcb0
cmp eax, 0x43
je 0x43bcb0
push str.boost::filesystem::remove
push dword [esp + 0x1c]
push esi
push eax
call fcn.0043fb50
add esp, 0x10
xor al, al
pop esi
pop ebx
pop ecx
ret
mov eax, esi
test bl, bl
jne 0x43bc34
cmp dword [esi + 0x14], 8
jb 0x43bc2b
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43bc43
cmp dword [esi + 0x14], 8
jb 0x43bc3c
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x43bcb6
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 2
je 0x43bcaf
cmp edi, 3
je 0x43bcaf
cmp edi, 0x7b
je 0x43bcaf
cmp edi, 0xf
je 0x43bcaf
cmp edi, 0x15
je 0x43bcaf
cmp edi, 0x57
je 0x43bcaf
cmp edi, 0xa1
je 0x43bcaf
cmp edi, 0x35
je 0x43bcaf
cmp edi, 0x43
je 0x43bcaf
cmp byte [esp + 0xf], 0
je 0x43bc9c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x43bc91
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.0043fb50
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 0x43c7c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496b45
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 0x43c801
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 0x43c821
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.0040dd40
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 0x43c8b0
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x43c8a2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43c966
push edx
push ecx
call fcn.0042d71f
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 0x43c92c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
cmp eax, 5
jne 0x43c91c
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x43c8e1
mov eax, dword [edi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x43c911
test esi, 0x400
jne 0x43c919
push esi
push edi
call fcn.00439b30
and esi, 0x10
mov dword [ebx + 4], eax
or esi, 0x20
add esp, 8
shr esi, 4
mov dword [ebx], esi
jmp 0x43c948
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43c91c
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x2c]
push edi
push eax
push ebx
call fcn.0043a2d0
add esp, 0x10
jmp 0x43c948
push dword [ebp - 0x2c]
push edi
push esi
push ebx
call fcn.0043c4c0
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.0042d85f
mov esp, ebp
pop ebp
ret
call fcn.0044f6f1
int3
Function at 0x43f140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x496ed8
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.0043f630
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.0042d6ef
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 0x43f419
or eax, 0xffffffff
lock xadd dword [esi], eax
add eax, 0xffffffff
jne 0x43f419
mov ecx, dword [esi + 0x48]
cmp ecx, 0x10
jb 0x43f2ad
mov eax, dword [esi + 0x34]
inc ecx
mov byte [ebp - 4], 3
cmp ecx, 0x1000
jb 0x43f2a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x43f42f
mov eax, edx
push ecx
push eax
call fcn.0042d71f
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 0x43f2d8
inc eax
lea ecx, [esi + 0x1c]
push eax
push dword [esi + 0x1c]
call fcn.00423af8
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 0x43f305
inc eax
lea ecx, [esi + 4]
push eax
push dword [esi + 4]
call fcn.00423af8
xor eax, eax
mov dword [esi + 0x14], 0
push 0x4c
push esi
mov dword [esi + 0x18], 7
mov word [esi + 4], ax
call fcn.0042d71f
add esp, 8
jmp 0x43f419
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.0044f6f1
int3

Function at 0x478138
Capabilities:
Read file on windows

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

Function at 0x480ba8
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00480a7c

Function at 0x483495
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00482e53
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x38cc063b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x572d0498
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219