joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401570
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x324], edi
mov dword [ebp - 0x328], 0
call fcn.004026c0
push 0x114
lea eax, [ebp - 0x320]
push 0
push eax
call fcn.004026c0
add esp, 0x18
mov dword [ebp - 0x32c], 0
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x320], 0x114
mov dword [ebp - 0x32c], eax
xorps xmm0, xmm0
lea eax, [ebp - 0x320]
push eax
movups xmmword [ebp - 0x33c], xmm0
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401630
cmp dword [ebp - 0x31c], 6
jae 0x401630
push str.This_tool_is_for_Windows_Vista_and_above_only._n
push 2
call fcn.00402fff
add esp, 4
push eax
call fcn.00401270
add esp, 8
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401821
mov esp, ebp
pop ebp
ret
push ebx
push esi
mov esi, 1
cmp dword [ebp + 8], esi
jle 0x4017fb
mov ebx, dword [ebp - 0x334]
mov edx, dword [ebp + 8]
nop dword [eax]
cmp dword [ebp - 0x328], 0
jne 0x4016ee
mov edi, dword [edi + esi*4]
movzx eax, word [edi]
cmp eax, 0x2d
je 0x40166d
cmp eax, 0x2f
jne 0x4016e8
add edi, 2
push 0x418b68
push edi
call fcn.00403106
add esp, 8
test eax, eax
jne 0x401698
mov edi, dword [ebp - 0x324]
mov ecx, 1
mov dword [ebp - 0x33c], ecx
jmp 0x40174a
push 0x418b6c
push edi
call fcn.00403106
add esp, 8
test eax, eax
jne 0x4016bf
mov edi, dword [ebp - 0x324]
mov dword [ebp - 0x338], 1
jmp 0x401744
push 0x418b78
push edi
call fcn.00403106
add esp, 8
test eax, eax
jne 0x401793
mov edi, dword [ebp - 0x324]
mov ebx, 1
mov dword [ebp - 0x334], ebx
jmp 0x401744
mov edi, dword [ebp - 0x324]
cmp dword [ebp - 0x330], 0
mov dword [ebp - 0x328], 1
jne 0x401716
test ebx, ebx
jne 0x401716
mov eax, dword [edi + esi*4]
mov ecx, dword [ebp - 0x33c]
mov dword [ebp - 0x330], eax
jmp 0x401753
push dword [edi + esi*4]
lea ecx, [ebp - 0x20c]
call fcn.004012d0
test eax, eax
js 0x4017cd
push 0x418ba8
lea ecx, [ebp - 0x20c]
call fcn.004012d0
test eax, eax
js 0x4017cd
mov ecx, dword [ebp - 0x33c]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x330]
inc esi
cmp esi, edx
jl 0x401650
cmp edx, 1
jle 0x4017fb
test ecx, ecx
jne 0x401805
test ebx, ebx
je 0x4017c2
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401780
sub ecx, edx
sar ecx, 1
je 0x4017c6
jmp 0x401805
push edi
push 0x418b7c
push 2
call fcn.00402fff
add esp, 4
push eax
call fcn.00401270
add esp, 0xc
mov eax, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401821
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x401805
push str.Invalid_arguments_n
jmp 0x4017d2
push 0x418bac
push 2
call fcn.00402fff
add esp, 4
push eax
call fcn.00401270
add esp, 8
mov eax, 1
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401821
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x33c], 1
lea ecx, [ebp - 0x33c]
call fcn.00401490
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
pop edi
call fcn.00401821
mov esp, ebp
pop ebp
ret
Function at 0x40a0a7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00409d55
Function at 0x2f3f914
Capabilities:
Encode data using xor

Disassembly:
jmp 0x2f3f91e
pushal
call 0x2f3f924
pop ebp
sub ebp, 0x10
sub ebp, 0x2b3f914
jmp 0x2f3f93a
mov eax, 0x2b3f914
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b9
mov edx, 0x25b7ba36
xor byte [eax], dl
inc eax
dec ecx
jne 0x2f3f951
jmp 0x2f3f964
mov ebp, 0xabfbdfb
mov bh, 0xf7
into
xor eax, 0x36328efb
mov word ss:[esi], ds
rcl esp, 0x35
invalid

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x5993b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.005982a4
and dword [ebp - 4], 0
cmp dword [0x5a6420], 0
mov ebx, eax
jne 0x599464
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x599515
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x599515
push eax
call fcn.00598232
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5a6420], eax
call esi
push eax
call fcn.00598232
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5a6424], eax
call esi
push eax
call fcn.00598232
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5a6428], eax
call esi
push eax
call fcn.00598232
pop ecx
mov dword [0x5a6430], eax
test eax, eax
je 0x599464
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00598232
pop ecx
mov dword [0x5a642c], eax
mov eax, dword [0x5a642c]
cmp eax, ebx
je 0x5994bc
cmp dword [0x5a6430], ebx
je 0x5994bc
push eax
call fcn.005982ad
push dword [0x5a6430]
mov esi, eax
call fcn.005982ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5994bc
test edi, edi
je 0x5994bc
call esi
test eax, eax
je 0x5994b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5994b3
test byte [ebp - 0xc], 1
jne 0x5994bc
or dword [ebp + 0x10], 0x200000
jmp 0x5994f5
mov eax, dword [0x5a6424]
cmp eax, ebx
je 0x5994f5
push eax
call fcn.005982ad
pop ecx
test eax, eax
je 0x5994f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5994f5
mov eax, dword [0x5a6428]
cmp eax, ebx
je 0x5994f5
push eax
call fcn.005982ad
pop ecx
test eax, eax
je 0x5994f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5a6420]
call fcn.005982ad
pop ecx
test eax, eax
je 0x599515
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x599517
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x59b21e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5a3168]
jne 0x59b228
repz ret
jmp fcn.0059c945
Function at 0x423400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x42341a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x423421
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x423410
mov eax, 1
add ebx, ebx
jne 0x423433
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x423428
jne 0x423444
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423428
xor ecx, ecx
sub eax, 3
jb 0x423458
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4234ca
mov ebp, eax
add ebx, ebx
jne 0x423463
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x423470
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x423494
inc ecx
add ebx, ebx
jne 0x423480
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x423475
jne 0x423491
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x423475
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4234b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4234a5
jmp 0x423416
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4234b4
add edi, ecx
jmp 0x423416
pop esi
mov edi, esi
mov ecx, 0x3f5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4234d2
cmp byte [edi], 1
jne 0x4234d2
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 0x4234d7
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x423546
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23b00]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23b64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x423504
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23b68]
or eax, eax
je 0x423540
mov dword [ebx], eax
add ebx, 4
jmp 0x423521
call dword [esi + 0x23b78]
mov ebp, dword [esi + 0x23b6c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x42357a
sub esp, 0xffffff80
jmp 0x407a5c
Function at 0x401000
Capabilities:
Packed with generic packer

Disassembly:
mov eax, 0x121841c
push eax
push dword fs:[0]
test byte [ecx], ah
add dword [eax + 0x64], edx
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xeb
jp 0x40109d
mov byte [eax - 0x47], dh
jg 0x401033
in al, 0xd4
jmp 0x4010af
test eax, 0xcf33638c
adc ch, bl
js 0x400fd0
sbb ch, ah
daa
stosd dword es:[edi], eax
mov dword [0x540fb128], eax
xchg edi, eax
inc ecx
and dword [esi + esi*8 - 0x78], ebp
rcr byte [eax - 0x2e], 0xa4
sti
push ss
scasd eax, dword es:[edi]
jne 0x40108b
jl 0x40102c
salc
pushal
jbe 0x401085
daa
xchg esp, eax
lcall 0xa4e8, 0x1020bb2d
push eax
in eax, dx
xor bl, ah
sti
bnd jg 0x401002
popal
lea ebp, [edx - 0x70bb56c6]
push ds
pop ss
cmp dword [eax + ebx*8 + 0x46], eax
and byte [eax - 0x702274c0], al
pop eax
test al, 0xc5
fisttp qword [edi + 0x3dc5a858]
lahf
mov ah, 0xc2
sub ecx, dword [0x6e1df55c]
cmp eax, 0x2bc2b49f
or eax, 0x6e1df55c
pop esp
cmc
sbb eax, 0x97530b6e
or edx, dword [ebx - 0x69]
in al, 0x34
sub dword [ebx], esp
jge 0x401055
ja 0x4010fe
fld xword [esi - 7]
or al, 0xb7
dec edx
mov ch, 0xfc
outsd dx, dword [esi]
jns 0x4010cd
fcom qword [eax - 0x69d98623]
retf 0x41f8
and ecx, eax
hlt
int1
push 0xffffffffffffffc2
cmp dh, byte [edx + 0xc64b3b4]
inc edx
stosd dword es:[edi], eax
adc eax, 0xa48720e9
jl 0x40108d
hlt
aaa
add ecx, dword [edi - 0xe]
xor ebp, dword [ebx + edx - 0x787dfa7e]
ret
Function at 0x869330
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x6eb015
lea edi, [esi - 0x2ea015]
lea eax, [edi + 0x45b040]
push dword [eax]
mov dword [eax], 0x736fc384
push eax
push edi
or ebp, 0xffffffff
jmp 0x869362
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x869369
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x869358
mov eax, 1
add ebx, ebx
jne 0x86937b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x869370
jne 0x86938c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x869370
xor ecx, ecx
sub eax, 3
jb 0x8693a0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x869412
mov ebp, eax
add ebx, ebx
jne 0x8693ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x8693b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x8693dc
inc ecx
add ebx, ebx
jne 0x8693c8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x8693bd
jne 0x8693d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x8693bd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x8693fc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x8693ed
jmp 0x86935e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x8693fc
add edi, ecx
jmp 0x86935e
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x2537
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x86941e
cmp byte [edi], 7
jne 0x86941e
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 0x869423
lea edi, [esi + 0x465000]
mov eax, dword [edi]
or eax, eax
je 0x869492
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x469000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4691a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x869450
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4691b0]
or eax, eax
je 0x86948c
mov dword [ebx], eax
add ebx, 4
jmp 0x86946d
call dword [esi + 0x4691ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x8694cc
cmp al, 0xef
ja 0x8694b6
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x869498
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
or eax, eax
jne 0x8694a5
mov eax, dword [edi]
add edi, 4
jmp 0x8694a5
mov ebp, dword [esi + 0x4691b4]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x469527]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x869518
sub esp, 0xffffff80
jmp 0x4013f0
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x65a974a9
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x49b84270
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x401000
Capabilities:
Create process on windows
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
mov eax, dword [0x40b084]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00405610
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 7
mov dword [ebp - 0x218], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401070
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
lea ecx, [ebp - 0x228]
call fcn.00401700
mov ebx, 0x11
lea eax, [ebp - 0x228]
call fcn.004011f0
cmp dword [ebp - 0x214], 8
jb 0x4010b8
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x22c], ecx
jmp 0x4010c4
lea edx, [ebp - 0x228]
mov dword [ebp - 0x22c], edx
push 0x100
push 0x64
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
mov edi, eax
mov eax, dword [ebp - 0x22c]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea ecx, [ebp - 0x240]
push ecx
push edi
mov esi, eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
xor eax, eax
push 0x44
push eax
lea edx, [ebp - 0x284]
push edx
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], eax
call fcn.00405610
mov eax, dword [ebp - 0x228]
mov edi, 8
add esp, 0xc
mov dword [ebp - 0x258], 0x80
cmp dword [ebp - 0x214], edi
jae 0x40117e
lea eax, [ebp - 0x228]
lea ecx, [ebp - 0x23c]
push ecx
lea edx, [ebp - 0x284]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4011b7
mov eax, dword [ebp - 0x23c]
push eax
call esi
mov ecx, dword [ebp - 0x238]
push ecx
call esi
cmp dword [ebp - 0x214], edi
pop edi
pop esi
pop ebx
jb 0x4011d1
mov edx, dword [ebp - 0x228]
push edx
call fcn.004018ee
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004018df
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4018df
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b084]
jne 0x4018e9
repz ret
jmp fcn.0040205d
Function at 0x40448c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40b084]
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.0040333e
and dword [ebp - 0x14], 0
cmp dword [0x40c9a8], 0
mov dword [ebp - 0x18], eax
jne 0x40453f
push 0x409470
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4045e7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x409464
push ebx
call edi
test eax, eax
je 0x4045e7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x409454
push ebx
mov dword [0x40c9a8], eax
call edi
push eax
call esi
push 0x409440
push ebx
mov dword [0x40c9ac], eax
call edi
push eax
call esi
push 0x409424
push ebx
mov dword [0x40c9b0], eax
call edi
push eax
call esi
mov dword [0x40c9b8], eax
test eax, eax
je 0x40453f
push 0x40940c
push ebx
call edi
push eax
call esi
mov dword [0x40c9b4], eax
mov eax, dword [0x40c9b4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404598
cmp dword [0x40c9b8], ecx
je 0x404598
push eax
call esi
push dword [0x40c9b8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404598
test ebx, ebx
je 0x404598
call edi
test eax, eax
je 0x40458f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40458f
test byte [ebp - 8], 1
jne 0x404598
or dword [ebp + 0x10], 0x200000
jmp 0x4045cb
mov eax, dword [0x40c9ac]
cmp eax, dword [ebp - 0x18]
je 0x4045cb
push eax
call esi
test eax, eax
je 0x4045cb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4045cb
mov eax, dword [0x40c9b0]
cmp eax, dword [ebp - 0x18]
je 0x4045cb
push eax
call esi
test eax, eax
je 0x4045cb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40c9a8]
call esi
test eax, eax
je 0x4045e7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4045e9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004018df
leave
ret
Function at 0x1002d240
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f404d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x38
push esi
push edi
mov eax, dword [0x101110c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebx + 8]
test esi, esi
je 0x1002d3fa
mov eax, dword [ebx + 0xc]
test byte [eax + 0x1c], 1
je 0x1002d3fa
cmp byte [esi + 0x54], 0
jne 0x1002d3fa
mov edx, dword [0x101ae65c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [edx + 0x1c]
mov dword [ebp - 0x14], edx
cmp ecx, edx
jle 0x1002d397
movaps xmm0, xmmword [0x10106ba0]
sub ecx, edx
xorps xmm0, xmmword [0x10106e90]
mov eax, 0x10
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], 0xe7e2f8e2
mov word [ebp - 0x18], 0xc2b1
movups xmmword [ebp - 0x2c], xmm0
nop
xor byte [ebp + eax - 0x2c], 0xc2
inc eax
cmp eax, 0x16
jb 0x1002d2e0
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.10033320
add esp, 4
mov dword [ebp - 4], 0
mov ecx, dword [edi + 0x64a1c]
cmp ecx, dword [edi + 0x64a20]
je 0x1002d350
xorps xmm0, xmm0
movups xmmword [ecx], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
add dword [edi + 0x64a1c], 0x18
jmp 0x1002d35d
push eax
push ecx
lea ecx, [edi + 0x64a18]
call fcn.10034bd0
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xf
jbe 0x1002d393
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002d389
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002d389
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100f2c1b
add esp, 8
mov al, 1
jmp 0x1002d3fc
cmp dword [eax + 0x84], 4
movss xmm0, dword [esi + 0x68]
subss xmm0, dword [eax + 0x88]
mov ecx, dword [0x101ae65c]
divss xmm0, dword [ecx + 0x20]
addss xmm0, dword [0x10105da0]
cvttss2si edi, xmm0
ja 0x1002d3fa
mov eax, dword [0x10131174]
sub eax, dword [0x10131178]
cmp edi, eax
jge 0x1002d3fa
push 1
push dword [0x10135490]
push dword [0x1013548c]
call fcn.100f25e0
cmp eax, dword [0x10135490]
je 0x1002d3fa
mov eax, dword [ebp - 0x14]
add eax, edi
mov dword [esi + 0x2c], eax
mov al, 1
jmp 0x1002d3fc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8