joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a336
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x44f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0040b610
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x18]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
movzx eax, byte [esi + 0x28]
mov byte [edi + 0x28], al
movzx eax, byte [esi + 0x29]
mov byte [edi + 0x29], al
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x34]
mov dword [edi + 0x34], eax
movzx eax, byte [esi + 0x38]
mov byte [edi + 0x38], al
movzx eax, byte [esi + 0x39]
mov byte [edi + 0x39], al
mov eax, dword [esi + 0x3c]
mov dword [edi + 0x3c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x40], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x44], eax
mov eax, dword [esi + 0x48]
mov dword [edi + 0x48], eax
mov eax, dword [esi + 0x4c]
mov dword [edi + 0x4c], eax
movzx eax, byte [esi + 0x50]
mov byte [edi + 0x50], al
mov eax, dword [esi + 0x54]
mov dword [edi + 0x54], eax
mov eax, dword [esi + 0x58]
mov dword [edi + 0x58], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
movzx eax, byte [esi + 0x60]
mov byte [edi + 0x60], al
movzx eax, byte [esi + 0x61]
mov byte [edi + 0x61], al
mov eax, dword [esi + 0x68]
mov dword [edi + 0x68], eax
mov eax, dword [esi + 0x6c]
mov dword [edi + 0x6c], eax
mov eax, dword [esi + 0x70]
mov dword [edi + 0x70], eax
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov eax, dword [esi + 0x78]
mov dword [edi + 0x78], eax
movzx eax, byte [esi + 0x7c]
mov byte [edi + 0x7c], al
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
mov eax, dword [esi + 0x84]
mov dword [edi + 0x84], eax
movzx eax, byte [esi + 0x88]
mov byte [edi + 0x88], al
mov eax, dword [esi + 0x8c]
mov dword [edi + 0x8c], eax
movzx eax, byte [esi + 0x90]
mov byte [edi + 0x90], al
movzx eax, byte [esi + 0x91]
mov byte [edi + 0x91], al
movzx eax, byte [esi + 0x92]
mov byte [edi + 0x92], al
movzx eax, byte [esi + 0x93]
mov byte [edi + 0x93], al
mov eax, dword [esi + 0x98]
mov dword [edi + 0x98], eax
mov eax, dword [esi + 0x9c]
mov dword [edi + 0x9c], eax
lea eax, [esi + 0xa0]
push eax
lea ecx, [edi + 0xa0]
call fcn.0040b610
mov byte [ebp - 4], 1
lea ecx, [edi + 0xcc]
mov eax, dword [esi + 0xb8]
mov dword [edi + 0xb8], eax
mov eax, dword [esi + 0xbc]
mov dword [edi + 0xbc], eax
mov eax, dword [esi + 0xc0]
mov dword [edi + 0xc0], eax
mov eax, dword [esi + 0xc4]
mov dword [edi + 0xc4], eax
mov eax, dword [esi + 0xc8]
mov dword [edi + 0xc8], eax
lea eax, [esi + 0xcc]
push eax
call fcn.0040b2f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x407700
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 4]
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
test eax, eax
je 0x407768
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
cmp dword [ecx + esi*4], 0
jne 0x40773f
push 0x7d2
push str.C:DriveProjectsdiskspd2_0_21aIORequestGeneratorIORequestGenerator.cpp
push str.NULL___vhThreads_x_
call fcn.0042c860
mov ecx, dword [edi]
add esp, 0xc
push 0
push dword [ecx + esi*4]
call ebx
test eax, eax
jne 0x407758
push esi
push str.Warning:_unable_to_terminate_worker_thread__u_n
call fcn.00402e20
add esp, 8
mov eax, dword [edi + 4]
inc esi
mov ecx, dword [edi]
sub eax, ecx
sar eax, 2
cmp esi, eax
jb 0x407720
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x40f0b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
fld dword [eax]
fstp dword [ebp + 8]
fld dword [ebp + 8]
fldz
fucom st(1)
fnstsw ax
test ah, 0x44
jp 0x40f0cd
fstp st(1)
jmp 0x40f0cf
fstp st(0)
fstp dword [ebp + 8]
mov edx, dword [ebp + 8]
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, eax
mov eax, edx
imul ecx, ecx, 0x1000193
shr eax, 0x10
movzx eax, al
shr edx, 0x18
xor ecx, eax
imul eax, ecx, 0x1000193
xor eax, edx
imul eax, eax, 0x1000193
pop ebp
ret 4
Function at 0x40f6a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43aa58
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x44f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], ebx
call fcn.0040b610
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x50]
mov eax, dword [edi + 0x18]
lea esi, [ecx + 4]
mov dword [ebx + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [ebx + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [ebx + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [ebx + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [ebx + 0x48], eax
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0x10], ecx
mov dword [ebx + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [ecx], eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 0x54]
mov dword [esi], eax
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00423f21
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x64]
sub eax, dword [edi + 0x60]
push ecx
sar eax, 2
lea ecx, [esi + 0xc]
push eax
call fcn.0040be90
mov byte [ebp - 4], 2
mov ecx, esi
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x58]
push eax
push dword [eax]
call fcn.0040fcf0
mov byte [ebp - 4], 3
lea ecx, [ebx + 0x74]
mov dword [ebp - 0x14], ecx
lea esi, [ecx + 4]
mov eax, dword [edi + 0x74]
mov dword [ecx], eax
mov dword [ebp - 0x14], esi
mov eax, dword [edi + 0x78]
mov dword [esi], eax
push 0x10
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call fcn.00423f21
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 4], eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x88]
sub eax, dword [edi + 0x84]
push ecx
sar eax, 2
lea ecx, [esi + 0xc]
push eax
call fcn.0040be90
mov byte [ebp - 4], 5
mov ecx, esi
mov eax, dword [edi + 0x90]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x94]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x7c]
push eax
push dword [eax]
call fcn.0040fcf0
lea eax, [edi + 0x98]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebx + 0x98]
call fcn.0040f860
lea ecx, [edi + 0xb8]
mov byte [ebp - 4], 7
push ecx
lea ecx, [ebx + 0xb8]
call fcn.0040f860
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x418da0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0xf1ea5eed
mov dword [ebp - 0x10], edi
mov dword [ebp + 0xc], esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x18], 0x14
mov edi, edi
mov ecx, dword [ebp - 0x10]
mov edx, edi
shld edx, esi, 7
mov eax, esi
shld eax, edi, 7
sub dword [ebp - 4], edx
sbb ebx, eax
mov eax, dword [ebp - 4]
mov edx, ebx
mov dword [ebp - 4], ecx
mov ebx, dword [ebp + 0xc]
shld dword [ebp - 4], ebx, 0xd
xor dword [ebp - 4], edi
shld ebx, ecx, 0xd
xor ebx, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0xc]
mov edi, ebx
shld edi, esi, 5
shld esi, ebx, 5
mov ebx, dword [ebp - 8]
add edi, ecx
mov ecx, dword [ebp - 0x14]
adc esi, dword [ebp + 0xc]
add ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ecx + 8], edi
mov dword [ecx + 0xc], esi
mov ecx, dword [ebp - 0xc]
adc ecx, edx
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ecx + 0x14], ebx
mov ebx, dword [ebp - 4]
add ebx, eax
mov dword [ebp - 8], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
adc eax, edx
sub dword [ebp - 0x18], 1
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ecx + 0x18], edx
mov dword [ecx + 0x1c], eax
jne 0x418dd0
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x430f55
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00430ed8

Function at 0x4328c4
Capabilities:
Set environment variable

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

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp loc.00401219

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..retplne
mov ebx, 0x40de38
nop
nop
mov ecx, 0x3bea3e83
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x71ad1dad
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x411390
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
pop ebp
jmp 0x411419
ret

Function at 0x43f200
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret

Function at 0x452822
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5143e4]
jne 0x45282c
repz ret
jmp fcn.00455ec4

Function at 0x45b9a9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5143e4]
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.00455939
and dword [ebp - 0x14], 0
cmp dword [0x51613c], 0
mov dword [ebp - 0x18], eax
jne 0x45ba5c
push 0x402ab0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x45bb04
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402aa4
push ebx
call edi
test eax, eax
je 0x45bb04
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x402a94
push ebx
mov dword [0x51613c], eax
call edi
push eax
call esi
push 0x402a80
push ebx
mov dword [0x516140], eax
call edi
push eax
call esi
push 0x402a64
push ebx
mov dword [0x516144], eax
call edi
push eax
call esi
mov dword [0x51614c], eax
test eax, eax
je 0x45ba5c
push 0x402a4c
push ebx
call edi
push eax
call esi
mov dword [0x516148], eax
mov eax, dword [0x516148]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x45bab5
cmp dword [0x51614c], ecx
je 0x45bab5
push eax
call esi
push dword [0x51614c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x45bab5
test ebx, ebx
je 0x45bab5
call edi
test eax, eax
je 0x45baac
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x45baac
test byte [ebp - 8], 1
jne 0x45bab5
or dword [ebp + 0x10], 0x200000
jmp 0x45bae8
mov eax, dword [0x516140]
cmp eax, dword [ebp - 0x18]
je 0x45bae8
push eax
call esi
test eax, eax
je 0x45bae8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45bae8
mov eax, dword [0x516144]
cmp eax, dword [ebp - 0x18]
je 0x45bae8
push eax
call esi
test eax, eax
je 0x45bae8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x51613c]
call esi
test eax, eax
je 0x45bb04
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x45bb06
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452822
leave
ret
Function at 0x461420
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462ec0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x5143e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x18]
push 0x513ae8
xor ebx, ebx
push eax
xor esi, esi
mov dword [ebp - 4], ebx
call fcn.004480f0
mov ecx, dword [ebp - 0x18]
add esp, 8
cmp dword [ecx - 0xc], ebx
je 0x4614f6
mov edi, dword [ebp + 8]
cmp ebx, 2
jge 0x4614f6
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
push 0
xor eax, eax
push 2
test ebx, ebx
push 0
setne al
push 0
push 0
push ecx
mov dword [ebp - 0x14], 0
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4614ed
mov esi, dword [ebp - 0x14]
mov ecx, esi
mov dword [ebp - 0x28], ecx
test edi, edi
jne 0x4614b9
lea eax, [edi + 0xd]
jmp 0x4614d9
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push edi
push 1
push 0
push 0x4019a4
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x28]
xor edx, edx
test eax, eax
sete dl
mov esi, edx
test ecx, ecx
je 0x4614ed
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
inc ebx
jmp 0x461472
lea eax, [ecx - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x461536
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461550
Capabilities:
Delete file
Get common file path
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462eeb
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x5143e4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
mov dword [ebp - 0x230], edi
mov dword [ebp - 0x22c], edi
mov dword [ebp - 0x228], edi
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x230]
push ecx
push edx
push eax
mov byte [ebp - 4], 1
call fcn.0042fae0
add esp, 0xc
cmp eax, edi
je 0x4616f8
mov eax, dword [ebp - 0x230]
cmp eax, dword [ebp - 0x22c]
je 0x4616f8
lea ecx, [ebp - 0x230]
push 0x4019d8
push ecx
call fcn.004309b0
add esp, 8
push 0x4019c8
push 0x4019b0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4616f8
push esi
call eax
cmp eax, edi
je 0x46167d
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x46167d
push 0x206
lea eax, [ebp - 0x21a]
xor edx, edx
push edi
push eax
mov word [ebp - 0x21c], dx
call fcn.00452d40
add esp, 0xc
lea ecx, [ebp - 0x21c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4616f8
lea edx, [ebp - 0x21c]
push edx
push edi
push edi
mov eax, edx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x4616f8
push 1
lea ecx, [ebp - 0x21c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x4616f8
push 0x4019a8
lea edx, [ebp - 0x220]
push esi
push edx
mov dword [ebp - 0x220], edi
call fcn.00454968
add esp, 0xc
test eax, eax
jne 0x4616f8
mov eax, dword [ebp - 0x220]
cmp eax, edi
je 0x4616f8
mov ecx, dword [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x230]
sub ecx, eax
push ecx
push 1
push eax
call fcn.00454830
mov edx, dword [ebp - 0x220]
push edx
call fcn.0045467d
mov eax, dword [ebp - 0x220]
mov esi, dword [ebp - 0x22c]
sub esi, dword [ebp - 0x230]
push eax
call fcn.0045448e
mov ecx, dword [ebp - 0x220]
xor ebx, ebx
cmp esi, eax
push ecx
sete bl
call fcn.00454286
add esp, 0x1c
mov eax, dword [ebp - 0x230]
cmp eax, edi
je 0x461723
push eax
call fcn.00452ba1
add esp, 4
jmp 0x461723
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 - 0x14]
xor ecx, ebp
call fcn.00452822
mov esp, ebp
pop ebp
ret
Function at 0x4618b0
Capabilities:
Check if file exists
Create process on windows
Delete file
Extract resource via kernel32 functions
Move file
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462f68
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
push edi
mov eax, dword [0x5143e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x461a97
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4618f3
sub eax, edx
sar eax, 1
je 0x461a97
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461a97
push 0x409
push 0x65
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x461a89
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp edi, ebx
je 0x461a97
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x461a97
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x461a97
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
lea ecx, [ebp - 0x2c]
push ecx
push edi
push eax
mov byte [ebp - 4], 1
call fcn.0042fae0
add esp, 0xc
cmp eax, ebx
je 0x461a70
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x28]
je 0x461a70
mov edi, dword [ebp + 8]
push 0x4019a8
lea eax, [ebp - 0x18]
push edi
push eax
mov dword [ebp - 0x18], ebx
call fcn.00454968
add esp, 0xc
test eax, eax
jne 0x461a70
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x461a70
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x28]
push ecx
sub esi, eax
push esi
push 1
push eax
call fcn.00454830
mov edx, dword [ebp - 0x18]
xor ecx, ecx
cmp esi, eax
sete cl
push edx
mov esi, ecx
call fcn.00454286
add esp, 0x14
cmp esi, ebx
je 0x461a70
mov eax, dword [0x5152e0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5152e0
call edx
add eax, 0x10
mov dword [ebp - 0x1c], eax
push 0x6b
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00428350
cmp eax, ebx
je 0x461a68
mov esi, dword [ebp - 0x1c]
cmp dword [esi - 0xc], ebx
je 0x461a68
push edi
lea ecx, [ebp + 8]
call fcn.00428aa0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 3
call fcn.0044e220
push esi
lea ecx, [ebp + 8]
call int.0044d710
cmp eax, ebx
je 0x461a60
mov eax, dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x461a60
mov ecx, dword [ebp + 8]
push 1
push ebx
push ebx
push ecx
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 8]
call fcn.0044c790
lea ecx, [ebp - 0x1c]
call fcn.004255e0
lea ecx, [ebp - 0x2c]
call fcn.0042d480
jmp 0x461a97
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x461f90
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x462fe0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5143e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
cmp esi, edi
je 0x462155
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x461fd3
sub eax, edx
sar eax, 1
je 0x462155
push esi
lea ecx, [ebp - 0x1c]
call fcn.00428aa0
mov eax, dword [0x5152e0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5152e0
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x5152e0]
mov edx, dword [eax + 0xc]
mov ecx, 0x5152e0
mov byte [ebp - 4], 2
call edx
lea esi, [eax + 0x10]
mov dword [ebp + 8], esi
mov byte [ebp - 4], 3
lea eax, [ebp - 0x20]
push eax
push 0x401a40
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0044f960
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0044e580
mov edi, dword [ebp - 0x18]
cmp dword [edi - 0xc], 0
mov eax, dword [ebp - 0x24]
setne bl
add eax, 0xfffffff0
mov byte [ebp - 4], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x462079
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x4620f2
mov eax, dword [edi - 0xc]
push eax
push edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 1
call fcn.00426280
push 1
push 0x401a40
lea ecx, [ebp + 8]
call fcn.00426280
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
jne 0x46202a
push 0x401a2c
push 0x401698
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4620da
push 0
push esi
call eax
test eax, eax
jne 0x46216a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46216a
mov dword [ebp - 0x14], 0
lea eax, [esi - 0x10]
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462112
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462132
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x462155
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0xc], 0
je 0x46202a
push 2
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x46202a