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

Disassembly:
push 0x51e78b48
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x51e78b2d
push 0x51e78b38
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x51e78b2d
push dword [esp + 4]
call eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x51e78d9c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x51e8c240]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x51eb30a8]
je 0x51e78dd1
inc eax
cmp eax, 0x13
jb 0x51e78dc2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x51eb30a8]
jne 0x51e78ef7
mov eax, dword [0x51eb8c10]
cmp eax, 1
je 0x51e78ecf
cmp eax, edx
jne 0x51e78e01
cmp dword [0x51eb8c14], 1
je 0x51e78ecf
cmp ecx, 0xfc
je 0x51e78ef7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x51e78e37
lea eax, [ebp - 0x80]
push 0x51e3e750
push eax
call fcn.51df279b
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.51df26bd
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x51e78e6b
mov eax, edi
push eax
call fcn.51df26bd
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x51e3e74c
push edi
call fcn.51e1b9e0
add esp, 0x10
push edi
call fcn.51df26bd
push dword [esi + 0x51eb30ac]
mov ebx, eax
call fcn.51df26bd
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.51e038cf
mov ebx, esp
push 0x51e78f14
push ebx
call fcn.51df279b
push edi
push ebx
call fcn.51e1b641
push 0x51e3e748
push ebx
call fcn.51e1b641
push dword [esi + 0x51eb30ac]
push ebx
call fcn.51e1b641
push 0x12010
push 0x51e3e720
push ebx
call fcn.51e7b0f8
add esp, 0x2c
jmp 0x51e78ef7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x51eb30ac]
push dword [esi]
call fcn.51df26bd
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.51e03d50
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x51e7b0f8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x51eb8c7c], ebx
push esi
push edi
jne 0x51e7b178
push 0x51df8934
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x51e7b1b3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51e7b24c
push edi
call esi
test eax, eax
mov dword [0x51eb8c7c], eax
je 0x51e7b1b3
push 0x51e7b23c
push edi
call esi
push 0x51e7b228
push edi
mov dword [0x51eb8c80], eax
call esi
cmp dword [0x51e895e0], 2
mov dword [0x51eb8c84], eax
jne 0x51e7b178
push 0x51e7b20c
push edi
call esi
test eax, eax
mov dword [0x51eb8c8c], eax
je 0x51e7b178
push 0x51e7b1f4
push edi
call esi
mov dword [0x51eb8c88], eax
mov eax, dword [0x51eb8c88]
test eax, eax
je 0x51e7b1bd
call eax
test eax, eax
je 0x51e7b1a4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x51eb8c8c]
test eax, eax
je 0x51e7b1a4
test byte [ebp - 8], 1
jne 0x51e7b1bd
cmp dword [0x51e895ec], 4
jb 0x51e7b1b7
or byte [ebp + 0x12], 0x20
jmp 0x51e7b1dc
xor eax, eax
jmp 0x51e7b1ec
or byte [ebp + 0x12], 4
jmp 0x51e7b1dc
mov eax, dword [0x51eb8c80]
test eax, eax
je 0x51e7b1dc
call eax
mov ebx, eax
test ebx, ebx
je 0x51e7b1dc
mov eax, dword [0x51eb8c84]
test eax, eax
je 0x51e7b1dc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x51eb8c7c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x51e7c93c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.51e038cf
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51e7c9d7
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x51e895e0]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x51e7c9d7
cmp eax, 1
je 0x51e7c9f8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x51e7c9d7
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x51e7c9a4
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x51e7c9d3
xor eax, eax
inc eax
jmp 0x51e7ca17
cmp edi, eax
jae 0x51e7c9db
xor eax, eax
jmp 0x51e7ca17
cmp eax, esi
jae 0x51e7c9e2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x51e895e0]
jmp 0x51e7c9fb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408f6c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x330b1205
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, str.Kig
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x690b05d7
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x4019ac
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov eax, dword [esp + 8]
mov dword [0x4040c0], eax
xor eax, eax
mov ebp, esp
mov ecx, 0xa
push eax
dec ecx
jne 0x4019bf
push esp
mov dword [ebp - 0x24], 0x401711
mov eax, dword [0x4040c0]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], str.zeenty
call dword [sym.imp.USER32.dll_RegisterClassA]
xor eax, eax
push eax
push dword [0x4040c0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.upsent
push str.zeenty
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4040c8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401a5e
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call esi
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401a3f
pop ebp
ret 0x10
Function at 0x402b42
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
mov esi, ecx
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 4
cmp dword [esi + 8], 0
je 0x402b7f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esi + 4], eax
cmp dword [esi + 4], 0
mov eax, dword [ebp + 0xc]
pop esi
jne 0x402b8c
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x402b90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x10]
cmp dword [esi + 8], ebx
mov dword [ebp - 8], eax
je 0x402c13
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 4]
push dword [esi + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x402bd3
cmp dword [esi + 0xc], ebx
je 0x402bda
cmp eax, 0xea
jne 0x402bfa
push dword [ebp - 8]
mov ecx, esi
call fcn.00402c2b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push dword [esi + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [esi]
call edi
mov dword [esi + 4], eax
cmp dword [esi + 4], ebx
pop edi
jne 0x402c22
cmp dword [ebp - 4], 1
je 0x402c13
cmp dword [ebp - 4], 2
je 0x402c13
mov dword [esi + 4], 0x57
cmp dword [esi + 4], ebx
jne 0x402c22
cmp dword [ebp - 8], ebx
je 0x402c22
mov eax, dword [esi + 0xc]
jmp 0x402c25
lea eax, [esi + 0x18]
pop esi
pop ebx
leave
ret 4
Function at 0x4079a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x4079ca
jl 0x4079c1
test edi, edi
jne 0x4079ca
xor eax, eax
xor edx, edx
jmp 0x407a8b
cmp dword [ebx + 0x38], 0
je 0x4079df
push eax
push edi
push dword [ebp + 8]
call fcn.00407a91
jmp 0x407a8b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x407a26
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x407a26
cmp eax, edi
jb 0x407a00
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00426d50
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x407a2c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x407a80
mov ecx, ebx
call fcn.00407066
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x407a6b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0042ad38
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x407a80
jmp 0x407a3e
test edx, edx
je 0x407a80
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0042ad38
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x407b80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x407ba2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407c65
jmp 0x407c60
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x407bc8
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x407bcd
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x407c2d
jg 0x407be2
test esi, esi
je 0x407c2d
test ecx, ecx
jl 0x407c28
jg 0x407bec
test eax, eax
je 0x407c28
cmp edi, ecx
jg 0x407bfe
jl 0x407bf6
cmp esi, eax
jae 0x407bfe
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.00426d50
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x407c30
mov ecx, dword [ebp + 8]
jmp 0x407c3a
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x407c54
jg 0x407c3a
test esi, esi
je 0x407c54
cmp dword [ebx + 0x4c], 0
je 0x407c54
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0042b3a4
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
mov eax, ebx
and eax, 0x3000
cmp eax, 0x3000
je 0x422ee7
test eax, eax
je 0x422e24
test bl, 0x92
je 0x422ee7
push edi
mov edi, dword [esp + 0xc]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x422e33
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
test esi, esi
jne 0x422e62
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x422e62
push str.boost::filesystem::permissions
push dword [esp + 0x1c]
push edi
push eax
call fcn.004245e0
add esp, 0x10
pop esi
pop edi
pop ebx
ret
push ebp
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x422e7a
xorps xmm0, xmm0
movq qword [ebp], xmm0
mov dword [ebp + 8], 0
test ebx, 0x1000
je 0x422e87
and esi, 0xfffffffe
jmp 0x422e9c
test ebx, 0x2000
jne 0x422e99
test bl, 0x92
je 0x422e99
and esi, 0xfffffffe
jmp 0x422e9c
or esi, 1
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x422ea6
mov eax, dword [edi]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x422ed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x422ed1
push str.boost::filesystem::permissions
push ebp
push edi
push eax
call fcn.004245e0
add esp, 0x10
pop ebp
pop esi
pop edi
pop ebx
ret
test ebp, ebp
je 0x422ee4
xorps xmm0, xmm0
movq qword [ebp], xmm0
mov dword [ebp + 8], 0
pop ebp
pop esi
pop edi
pop ebx
ret
Function at 0x422fe0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
je 0x422ff6
xorps xmm0, xmm0
movq qword [eax], xmm0
mov dword [eax + 8], 0
push esi
mov esi, dword [esp + 8]
mov ecx, esi
cmp dword [esi + 0x14], 8
jb 0x423005
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
push esi
call fcn.00423020
add esp, 0xc
pop esi
ret

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

Disassembly:
sub esp, 0x30
push ebx
mov ebx, dword [esp + 0x3c]
push esi
mov esi, dword [esp + 0x3c]
push edi
cmp ebx, 0xffffffff
jne 0x423094
lea eax, [esp + 0x14]
mov dword [esp + 0x1c], 0
push eax
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push esi
push eax
movq qword [esp + 0x20], xmm0
call fcn.00422ef0
add esp, 0xc
mov eax, dword [eax]
cmp eax, 1
je 0x42317f
test eax, eax
jne 0x42308c
mov ecx, dword [esp + 0x48]
movq xmm0, qword [esp + 0x14]
mov eax, dword [esp + 0x1c]
test ecx, ecx
je 0x423191
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x30
ret
cmp eax, 3
sete al
jmp 0x4230b3
test ebx, 0x400
je 0x4230ac
test bl, 0x10
je 0x423105
push esi
call fcn.00422ba0
add esp, 4
jmp 0x4230b3
mov eax, ebx
shr eax, 4
and al, 1
test al, al
je 0x423105
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4230c1
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x423188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push ecx
call fcn.00422dc0
add esp, 4
test al, al
jne 0x42317f
push str.boost::filesystem::remove
push dword [esp + 0x4c]
push esi
push ecx
call fcn.004245e0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x30
ret
mov al, bl
and al, 1
mov byte [esp + 0x44], al
je 0x42312a
mov eax, ebx
mov ecx, esi
and eax, 0xfffffffe
cmp dword [esi + 0x14], 8
jb 0x42311e
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4230d0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x423134
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x423188
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
call fcn.00422dc0
add esp, 4
test al, al
jne 0x42317f
cmp byte [esp + 0x44], al
je 0x42316c
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x423164
mov eax, dword [esi]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push str.boost::filesystem::remove
push dword [esp + 0x4c]
push esi
push edi
call fcn.004245e0
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
add esp, 0x30
ret
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x30
ret
sub esp, 0xc
mov ecx, esp
push esi
movq qword [ecx], xmm0
mov dword [ecx + 8], eax
lea ecx, [esp + 0x30]
push str.boost::filesystem::remove
call fcn.00423f10
push 0x45b2e8
lea eax, [esp + 0x24]
push eax
call fcn.00426cd8
int3
Function at 0x426313
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x426352
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426352
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426352
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x426352
cmp dword [ecx + 0x74], 0xe
jbe 0x426352
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x438f0a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438d80

Function at 0x43fc85
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043f902

Function at 0x4463d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4463fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4463fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1002a55
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x7c8
mov eax, dword [0x1009604]
and word [ebp - 0x104], 0
push esi
mov esi, dword [ebp + 8]
push edi
push 0x3f
mov dword [ebp - 4], eax
pop ecx
push dword [0x1009040]
xor eax, eax
lea edi, [ebp - 0x102]
rep stosd dword es:[edi], eax
push esi
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x1002aae
push dword [0x1009040]
lea eax, [ebp - 0x370]
push 0x136
push eax
call fcn.01002409
jmp 0x1002b14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [ebp - 0x7c8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1002aec
lea eax, [ebp - 0x79c]
push eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01002409
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x1002aff
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x578]
push eax
call fcn.01002409
push esi
lea eax, [ebp - 0x370]
push eax
lea eax, [ebp - 0x578]
push eax
call dword [sym.imp.comdlg32.dll_GetFileTitleW]
push 1
push 1
push dword [0x10090c8]
lea eax, [ebp - 0x104]
push 0x7f
push eax
call dword [sym.imp.msvcrt.dll__snwprintf]
mov eax, dword [0x1009834]
add esp, 0x14
test eax, eax
pop edi
pop esi
je 0x1002b50
lea ecx, [ebp - 0x104]
push ecx
push 1
push 0x40b
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [0x1009044]
lea eax, [ebp - 0x370]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x370]
push eax
push dword [0x1009830]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
call fcn.01007147
leave
ret 4

Function at 0x1002e0c
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x1002e47
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x1002e2e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x1002e3f
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x1002e49
inc edi
add eax, 0x28
cmp edi, esi
jb 0x1002e24
xor eax, eax
pop edi
pop esi
ret
Function at 0x4017c4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x404004]
jne 0x4017ce
repz ret
jmp fcn.00401b99

Function at 0x449559
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5ddf80]
jne 0x449563
repz ret
jmp fcn.0044bbfe

Function at 0x453288
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5ddf80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0044eb02
and dword [ebp - 0x14], 0
cmp dword [0x5dfcf4], 0
mov dword [ebp - 0x18], eax
jne 0x45333b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4533e3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4533e3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x5dfcf4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x5dfcf8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5dfcfc], eax
call edi
push eax
call esi
mov dword [0x5dfd04], eax
test eax, eax
je 0x45333b
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5dfd00], eax
mov eax, dword [0x5dfd00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x453394
cmp dword [0x5dfd04], ecx
je 0x453394
push eax
call esi
push dword [0x5dfd04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x453394
test ebx, ebx
je 0x453394
call edi
test eax, eax
je 0x45338b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45338b
test byte [ebp - 8], 1
jne 0x453394
or dword [ebp + 0x10], 0x200000
jmp 0x4533c7
mov eax, dword [0x5dfcf8]
cmp eax, dword [ebp - 0x18]
je 0x4533c7
push eax
call esi
test eax, eax
je 0x4533c7
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4533c7
mov eax, dword [0x5dfcfc]
cmp eax, dword [ebp - 0x18]
je 0x4533c7
push eax
call esi
test eax, eax
je 0x4533c7
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5dfcf4]
call esi
test eax, eax
je 0x4533e3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4533e5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00449559
leave
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x43a054], 1
mov dword [0x43a050], 1
mov dword [0x43a04c], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x43a00c], eax
mov eax, dword [0x43a060]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x43a074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x43a05c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x437030], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056