joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e96a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ea07
push ebx
push esi
call fcn.0041e933
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d250
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41e9b4
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ea06
push edi
push eax
call fcn.0041983d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41e9d4
call fcn.00419803
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ea05
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d250
add esp, 0x20
test eax, eax
jne 0x41e9f3
push edi
call fcn.00419803
jmp 0x41e9fb
push ebx
call fcn.00419803
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x423815
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423791
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42398d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42398d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42393c
jg 0x42386e
test eax, eax
je 0x423932
push 1
push 0x1000
call fcn.0041d96d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x423894
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x423929
push 0x8000
push ebx
call fcn.00416f04
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4238c0
jg 0x4238bb
cmp ecx, 0x1000
jb 0x4238c0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041cb50
add esp, 0x10
cmp eax, 0xffffffff
je 0x423905
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4238bb
jl 0x4238ec
test ecx, ecx
jne 0x4238ad
push dword [ebp - 0xc]
push ebx
call fcn.00416f04
push esi
call fcn.00419803
add esp, 0xc
xor edi, edi
jmp 0x42399e
cmp byte [edi + 0x24], 0
je 0x42391c
cmp dword [edi + 0x20], 5
jne 0x42391c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x423927
mov edi, dword [edi + 0x18]
jmp 0x423929
xor edi, edi
push esi
call fcn.00419803
pop ecx
jmp 0x42399e
test ecx, ecx
jg 0x4238fe
jl 0x42393c
test eax, eax
jae 0x4238fe
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c205
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42395f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4238fe
jmp 0x423996
push ebx
call fcn.0041edd4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4238fe
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42399e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42399b
mov edi, dword [edi + 0x18]
jmp 0x42399e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041c205
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424d60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424d8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424d8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x403a74
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x44608c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.004046c1
cmp dword [esi + 0x14], 8
jb 0x403aaa
mov eax, dword [esi]
jmp 0x403aac
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x403adf
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.004046c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065bb
mov esp, ebp
pop ebp
ret 4
push 0x4243c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004018f5
push 0x442bc0
lea eax, [ebp - 0x38c]
push eax
call fcn.004073d4
int3

Function at 0x414b40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x414b62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414b69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414b58
mov eax, 1
add ebx, ebx
jne 0x414b7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414b70
jne 0x414b8c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414b70
xor ecx, ecx
sub eax, 3
jb 0x414ba0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414c12
mov ebp, eax
add ebx, ebx
jne 0x414bab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x414bb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x414bdc
inc ecx
add ebx, ebx
jne 0x414bc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414bbd
jne 0x414bd9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414bbd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414bfc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414bed
jmp 0x414b5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414bfc
add edi, ecx
jmp 0x414b5e
pop esi
mov edi, esi
mov ecx, 0x43b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x414c1a
cmp byte [edi], 0
jne 0x414c1a
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 0x414c1f
lea edi, [esi + 0x12000]
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x49214dba
nop
nop
nop
nop
test eax, eax
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x8351b39
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4376f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x32000]
push edi
jmp 0x43770a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x437711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x437700
mov eax, 1
add ebx, ebx
jne 0x437723
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x437718
jne 0x437734
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x437718
xor ecx, ecx
sub eax, 3
jb 0x437748
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4377ba
mov ebp, eax
add ebx, ebx
jne 0x437753
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x437760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x437784
inc ecx
add ebx, ebx
jne 0x437770
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x437765
jne 0x437781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x437765
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4377a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x437795
jmp 0x437706
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4377a4
add edi, ecx
jmp 0x437706
pop esi
mov edi, esi
mov ecx, 0x257
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4377c2
cmp byte [edi], 1
jne 0x4377c2
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 0x4377c7
lea edi, [esi + 0x35000]
mov eax, dword [edi]
or eax, eax
je 0x43783f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3dc20]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3dcd8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4377f4
mov ecx, edi
jns 0x437823
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3dce0]
or eax, eax
je 0x437839
mov dword [ebx], eax
add ebx, 4
jmp 0x437811
call dword [esi + 0x3dcdc]
mov ebp, dword [esi + 0x3dce4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1e7]
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 0x437873
sub esp, 0xffffff80
jmp 0x4030fb
Function at 0x4012d9
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x411610]
xor eax, dword [ebp + 4]
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp byte [edi], bl
mov dword [ebp - 4], eax
mov dword [ebp - 8], 1
je 0x40136c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ebx
push edi
call esi
test eax, eax
jne 0x40136b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401325
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jmp 0x401366
cmp eax, 3
jne 0x40136b
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
call fcn.0040155f
add esp, 0xc
cmp byte [ebp - 0x110], bl
je 0x401368
cmp byte [ebp - 0x218], bl
je 0x401368
lea ecx, [ebp - 0x110]
call fcn.004012d9
test eax, eax
je 0x401368
push ebx
push edi
call esi
test eax, eax
jne 0x40136b
mov dword [ebp - 8], ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov eax, dword [ebp - 8]
pop edi
pop ebx
call fcn.00407111
leave
ret

Function at 0x4015bd
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x411610]
xor eax, dword [ebp + 4]
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10c]
push eax
xor bl, bl
call fcn.00401597
pop ecx
pop ecx
push 0x80
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x40160c
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40160e
mov bl, 0xa
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
mov al, bl
pop ebx
call fcn.00407111
leave
ret
Function at 0x401d48
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x104
xor ebx, ebx
push ebx
push 0x412160
call fcn.00407080
mov edi, 0x208
push edi
push ebx
mov esi, 0x411f40
push esi
call fcn.00407080
add esp, 0x18
mov byte [0x41242c], bl
mov byte [0x41242d], bl
call fcn.0040580e
mov edx, dword [eax]
push 1
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
mov dword [ebp - 0xc], eax
call dword [edx + 0x14]
test al, al
je 0x401db7
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
call fcn.00401889
pop ecx
jmp 0x401dbf
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, dword [ebp - 0xc]
push 1
jmp 0x401e3e
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
push str.file
call dword [eax + 4]
push eax
call fcn.0040d746
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
test eax, eax
mov eax, dword [ecx]
jne 0x401e00
push ebx
push ebx
push 0x104
push 0x412160
push 0xffffffffffffffff
call dword [eax + 8]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x401e3d
push str.silent
call dword [eax + 4]
push eax
call fcn.0040d746
test eax, eax
pop ecx
pop ecx
jne 0x401e1d
mov byte [0x41242c], 1
jmp 0x401e3d
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
push str.noreboot
call dword [eax + 4]
push eax
call fcn.0040d746
test eax, eax
pop ecx
pop ecx
jne 0x401e3d
mov byte [0x41242d], 1
push ebx
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
mov ecx, esi
call dword [eax + 0x18]
test al, al
jne 0x401dc6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40216c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov esi, 0x102
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4021e9
push dword [ebp - 0x10]
call edi
jmp 0x4021d3
push 0x3e8
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4021da
cmp eax, esi
jne 0x4021d3
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 4], ebx
jne 0x4021b2
jmp 0x4021f0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x4021f0
mov dword [ebp - 4], 0x65b
cmp byte [ebp + 0x10], bl
mov esi, dword [ebp - 4]
je 0x4021fc
xor esi, esi
jmp 0x40220c
cmp esi, ebx
je 0x40220c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
je 0x40220c
mov esi, eax
push dword [ebp - 0x14]
call edi
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4023f5
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x411610]
xor eax, dword [ebp + 4]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 4], eax
je 0x40248f
cmp byte [esi], bl
je 0x40248f
push esi
call fcn.00401812
test al, al
pop ecx
je 0x402427
mov al, 1
jmp 0x402491
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40243a
shr al, 4
and al, 1
jmp 0x402491
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x108]
push eax
call fcn.004018fa
lea eax, [ebp - 0x108]
push eax
call fcn.004023f5
test al, al
pop ecx
pop ecx
je 0x402476
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402476
mov bl, 1
jmp 0x40248b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push ebx
push eax
push 0x10
push 0x28
call fcn.004022bd
add esp, 0x14
mov al, bl
jmp 0x402491
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.00407111
leave
ret
Function at 0x4024a0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x411610]
xor eax, dword [ebp + 4]
push ebx
push esi
push edi
mov esi, 0x104
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.00407080
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
add esp, 0xc
push esi
lea eax, [ebp - 0x11c]
push eax
mov ebx, str.TEMP
push ebx
call edi
test eax, eax
jne 0x402532
push esi
lea eax, [ebp - 0x11c]
push eax
push 0x40e380
call edi
test eax, eax
jne 0x402532
push esi
lea eax, [ebp - 0x11c]
push eax
push str.USERPROFILE
call edi
test eax, eax
lea eax, [ebp - 0x11c]
je 0x40251b
push str.Local_SettingsTemp
jmp 0x40252a
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push ebx
lea eax, [ebp - 0x11c]
push eax
call fcn.004018ba
pop ecx
pop ecx
lea eax, [ebp - 0x11c]
push str.SFX
push eax
call fcn.004018ba
lea eax, [ebp - 8]
push eax
call fcn.0040753b
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0xc
push 0x10
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
xor bl, bl
call fcn.0040d48c
add esp, 0xc
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x220]
push eax
call fcn.004023f5
test al, al
pop ecx
jne 0x40259c
inc bl
inc dword [ebp - 8]
test bl, bl
jne 0x402555
lea eax, [ebp - 0x220]
push eax
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.00407111
leave
ret
Function at 0x4025bf
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp byte [0x412160], bl
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push edi
mov dword [ebp - 4], 1
mov dword [0x41241c], ebx
je 0x4025fb
push 0x412160
call esi
cmp eax, 0xffffffff
je 0x4025f3
test al, 0x10
je 0x402611
mov byte [0x412160], bl
jmp 0x402611
push 0x104
push 0x412160
push dword [0x41226c]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [0x411f40], bl
je 0x40263b
mov edi, 0x411f40
push edi
call esi
cmp eax, 0xffffffff
jne 0x402631
push edi
call fcn.004023f5
pop ecx
test al, al
jmp 0x402633
test al, 0x10
jne 0x40263b
mov byte [0x411f40], bl
mov al, byte [0x412160]
cmp al, bl
je 0x4026c1
cmp byte [0x411f40], bl
je 0x4026c1
push 0x412160
call fcn.00404bea
test al, al
pop ecx
je 0x40265f
push 2
jmp 0x4026d9
push ebx
push ebx
push 0x412420
call fcn.00404503
mov esi, dword [0x412420]
add esp, 0xc
cmp esi, ebx
mov dword [0x412268], ebx
je 0x4026bd
xor edi, edi
inc edi
test byte [esi + 0x1c], 1
je 0x40268d
mov dword [0x412424], edi
push str.AUTORUN.IFF
lea eax, [esi + 0x42]
push eax
mov dword [esi + 8], edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4026a9
mov dword [0x412268], edi
mov esi, dword [esi]
inc dword [0x41241c]
cmp esi, ebx
jne 0x402681
cmp dword [0x412268], ebx
jne 0x4026cf
push 0x10
jmp 0x4026d9
xor ecx, ecx
cmp al, bl
setne cl
lea ecx, [ecx + ecx + 1]
push ecx
jmp 0x4026d9
cmp dword [0x412424], ebx
je 0x4026e4
push 0xe
push ebx
call fcn.0040194b
pop ecx
pop ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402b7c
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x411610]
xor eax, dword [ebp + 4]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov al, byte [eax]
test al, al
mov ebx, 0x411f40
je 0x402bfb
movzx eax, al
dec eax
cmp eax, 0xf
push 2
pop ecx
ja case.0x402bab.3
jmp dword [eax*4 + 0x402cde]
xor ecx, ecx
jmp case.0x402bab.3
push 3
jmp 0x402be4
push 4
jmp 0x402be4
push 5
jmp 0x402be4
push 6
jmp 0x402be4
push 7
jmp 0x402be4
push 8
jmp 0x402be4
push 9
jmp 0x402be4
push 0xa
jmp 0x402be4
push 0xb
jmp 0x402be4
push 0xc
jmp 0x402be4
push 0xf
jmp 0x402be4
push 0xd
pop ecx
mov eax, dword [ebp + 8]
push ecx
push dword [eax]
call fcn.0040194b
or dword [0x412430], 0xffffffff
pop ecx
pop ecx
jmp 0x402c2c
cmp dword [0x412268], 0
je 0x402c2c
xor eax, eax
mov al, byte [0x41242d]
push eax
xor eax, eax
mov al, byte [0x41242c]
push eax
mov eax, dword [ebp + 8]
push ebx
push str.AUTORUN.IFF
push dword [eax]
call fcn.004026ec
add esp, 0x14
mov dword [0x412430], eax
cmp byte [0x41242e], 0
je 0x402cd0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push ebx
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x108]
push 0x40e398
push eax
call fcn.004018ba
pop ecx
pop ecx
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402cc7
test byte [ebp - 0x248], 0x10
jne 0x402cae
push ebx
lea eax, [ebp - 0x108]
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004018ba
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c79
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.00407111
leave
ret

Function at 0x4030fc
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
push esi
push edi
xor esi, esi
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebp, eax
push ebp
push esi
push 0x8000002
push esi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
cmp edi, esi
je 0x403154
push ebx
push esi
push esi
push esi
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp ebx, esi
je 0x40314c
push ebp
push ebx
call fcn.0040304a
pop ecx
pop ecx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40345c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
dec esi
dec eax
test ax, ax
jl 0x4034e1
inc eax
push edi
movzx edi, ax
movzx edx, word [0x41294c]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
inc esi
mov cl, byte [esi]
sar eax, 8
xor al, cl
cmp dword [ebp + 0x10], 0
mov byte [ebp + 8], cl
mov byte [esi], al
jne 0x40349a
mov byte [ebp + 8], al
push dword [0x412944]
push dword [ebp + 8]
call fcn.0040113b
mov dword [0x412944], eax
movzx eax, al
add eax, dword [0x412948]
push dword [0x41294c]
imul eax, eax, 0x8088405
inc eax
mov dword [0x412948], eax
xor eax, eax
mov al, byte [0x41294b]
push eax
call fcn.0040113b
add esp, 0x10
dec edi
mov dword [0x41294c], eax
jne 0x403472
pop edi
pop esi
pop ebp
ret

Function at 0x4034e4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push dword [0x412944]
push dword [esp + 8]
call fcn.0040113b
mov dword [0x412944], eax
movzx eax, al
add eax, dword [0x412948]
push dword [0x41294c]
imul eax, eax, 0x8088405
inc eax
mov dword [0x412948], eax
xor eax, eax
mov al, byte [0x41294b]
push eax
call fcn.0040113b
add esp, 0x10
mov dword [0x41294c], eax
ret 4

Function at 0x40749d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x4074ba
call fcn.00409705
mov dword [eax], 0x16
xor eax, eax
jmp 0x407524
push esi
push 0x88
push 1
call fcn.00409781
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40750f
push esi
call fcn.00409089
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4074ed
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4073f9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x407523
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00409694
test ebx, ebx
pop ecx
je 0x407521
push ebx
call fcn.0040970e
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret