joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2ba0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x80000]
push edi
jmp 0x4c2bba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c2bc1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c2bb0
mov eax, 1
add ebx, ebx
jne 0x4c2bd3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c2be4
jne 0x4c2c03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c2c03
dec eax
add ebx, ebx
jne 0x4c2bf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c2bc8
add ebx, ebx
jne 0x4c2bff
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c2c55
xor ecx, ecx
sub eax, 3
jb 0x4c2c1b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c2c8a
sar eax, 1
mov ebp, eax
jmp 0x4c2c26
add ebx, ebx
jne 0x4c2c26
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c2bf4
inc ecx
add ebx, ebx
jne 0x4c2c34
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c2bf4
add ebx, ebx
jne 0x4c2c41
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c2c36
jne 0x4c2c52
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c2c36
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c2c74
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c2c66
jmp 0x4c2bb6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c2c74
add edi, ecx
jmp 0x4c2bb6
pop esi
mov edi, esi
mov ecx, 0x377e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c2c92
cmp byte [edi], 0x11
jne 0x4c2c92
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 0x4c2c97
lea edi, [esi + 0xbe000]
mov eax, dword [edi]
or eax, eax
je 0x4c2d0f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd3468]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd35bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c2cc4
mov ecx, edi
jns 0x4c2cf3
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 + 0xd35c0]
or eax, eax
je 0x4c2d09
mov dword [ebx], eax
add ebx, 4
jmp 0x4c2ce1
call dword [esi + 0xd35d0]
mov ebp, dword [esi + 0xd35c4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4c2d43
sub esp, 0xffffff80
jmp 0x416310
Function at 0x10ebb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10ebb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10ebb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ebb06a
add dl, dl
jne 0x10ebb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ebb0dc
xor eax, eax
add dl, dl
jne 0x10ebb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10ebb17d
add dl, dl
jne 0x10ebb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ebb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ebb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ebb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10ebb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10ebb075
mov eax, 1
add dl, dl
jne 0x10ebb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10ebb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ebb0e1
sub eax, ebx
mov ebx, 1
jne 0x10ebb128
mov ecx, 1
add dl, dl
jne 0x10ebb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ebb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ebb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ebb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10ebb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10ebb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10ebb136
cmp eax, 0x7d00
jae 0x10ebb16d
cmp eax, 0x500
jb 0x10ebb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ebb075
cmp eax, 0x7f
ja 0x10ebb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10ebb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10ebb19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10ebb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401142
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
xor ebx, ebx
cmp esi, 0xffffffff
je 0x401183
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, edi
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x40124c
Capabilities:
Encode data using xor
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0xa
push dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, edi
je 0x4012ff
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
cmp ebx, edi
jbe 0x4012ff
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
je 0x4012ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
lea eax, [ebx + 1]
push eax
call fcn.00402cf8
cmp byte [ebp + 0x14], 0
pop ecx
mov dword [ebp - 4], eax
je 0x4012d8
cmp ebx, edi
jbe 0x4012f6
mov ecx, dword [ebp + 8]
sub ecx, eax
mov dword [ebp + 0x14], ecx
lea esi, [edi + eax]
mov eax, dword [ebp + 0x14]
push edi
mov al, byte [eax + esi]
push eax
call fcn.00401129
xor al, byte [ebp + 0x18]
inc edi
pop ecx
cmp edi, ebx
mov byte [esi], al
mov eax, dword [ebp - 4]
pop ecx
jb 0x4012b7
jmp 0x4012f6
cmp ebx, edi
jbe 0x4012f6
mov ecx, dword [ebp + 8]
mov esi, eax
sub ecx, eax
mov dword [ebp + 0x14], ebx
mov edi, ebx
mov dl, byte [esi + ecx]
xor dl, byte [ebp + 0x18]
mov byte [esi], dl
inc esi
dec dword [ebp + 0x14]
jne 0x4012e8
and byte [edi + eax], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401c60
Capabilities:
Get common file path
Get hostname
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
mov esi, 0x104
push eax
push 0x40c8c8
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x40c7a4
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0x40c69c
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push esi
mov esi, 0x40c458
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
mov esi, 0x40c598
push esi
call fcn.00402a20
push esi
call fcn.00402920
add esp, 0xc
add eax, esi
cmp eax, esi
jb 0x401ccc
cmp byte [eax], 0x5c
je 0x401ccc
dec eax
jmp 0x401cc0
inc eax
cmp eax, esi
pop esi
jb 0x401cd5
and byte [eax], 0
leave
ret

Function at 0x407099
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b228
cmp edx, dword [eax]
je 0x4070bb
add eax, 8
inc ecx
cmp eax, 0x40b2b8
jl 0x4070ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b228]
jne 0x4071e9
mov eax, dword [0x40cbf0]
cmp eax, 1
je 0x4071c3
test eax, eax
jne 0x4070ec
cmp dword [0x40b154], 1
je 0x4071c3
cmp edx, 0xfc
je 0x4071e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407123
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402a20
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402920
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407166
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402920
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4095cc
push edi
call fcn.00407fa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402a20
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402a30
lea eax, [ebp - 0xa0]
push 0x4095ac
push eax
call fcn.00402a30
push dword [esi + 0x40b22c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402a30
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407f0e
add esp, 0x2c
pop edi
jmp 0x4071e9
lea eax, [ebp + 8]
lea esi, [esi + 0x40b22c]
push 0
push eax
push dword [esi]
call fcn.00402920
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10066868
Capabilities:
Encode data using xor

Disassembly:
push dword [esp + 0xc]
lea esp, [esp + 0x18]
call fcn.10057350
test cl, bl
cmc
neg ch
btc cx, 9
add dword [ebp - 0x20], eax
btr ecx, eax
neg ecx
pop ecx
cwde
movsx ax, al
inc ax
inc eax
pop eax
clc
push edi
mov byte [esp], 0x21
cmp ecx, 7
call fcn.10066a7c
je 0x10066914
sub eax, ebp
push 0x5b
mov eax, dword [0xde23f953]
salc
push ds
pop esi
xchg dh, ch
mov esp, 0xecd31991
js 0x1006688e
or eax, 0xeef957c6
loope 0x10066922
invalid
ficom dword [edi + 0x69]
mov dword [ebp - 0x16bfdb9c], ecx
ror dword [eax + 0x5295fffd], cl
std
call dword [ebp - 0x464b45ae]
nop
mov dword [eax + 0x48f372aa], edx
push edx
mov edx, 0x8990b9b4
nop
stosb byte es:[edi], al
jb 0x1006691f
dec eax
shr byte [eax], 1
pushal
sub byte [eax + 0x78], dl
push eax
sbb byte [eax - 0x55149dc8], ah
or byte [edi], bh
scasd eax, dword es:[edi]
inc edx
scasb al, byte es:[edi]
xchg esp, eax
in eax, dx
mov eax, 0x9ea583cc
mov edi, 0x55f2155c
popal
out 0x15, eax
xor ecx, dword [esi]
dec esi
sal byte [eax + 0x27d40fab], cl
invalid

Function at 0x10069d9f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x1006870e
mov dword [esp + 0x20], edi
pushfd
call fcn.10068ac8
mov esp, eax
movzx di, bl
pushfd
pushal
movzx edi, dl
pushfd
movsx di, dl
mov dword [esp + 0x20], esi
lea esi, [esi*8 + 0x10a00a7b]
mov esi, edx
push 0x41f96416
lea edi, [ecx + eax - 0x40]
cld
jmp 0x100685a8
Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x7b9d2ca3
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
loop 0x433060
nop
nop
nop
mov eax, section..text_1
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4bcd34dc
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x401713
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x26c
mov eax, 0x4344c9
call fcn.0040f7b5
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x270], eax
call fcn.00403624
push eax
lea ecx, [ebp - 0x264]
call fcn.00402a57
xor edi, edi
push esi
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], edi
call fcn.00401cd6
push str..
lea ecx, [ebp - 0x264]
call fcn.00401cd6
mov esi, dword [ebp - 0x264]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x268], eax
jne 0x401793
lea ecx, [esi - 0x10]
jmp 0x401982
mov ebx, 0x250
lea ecx, [ebp - 0x264]
call fcn.00402adb
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x274]
lea eax, [ebp - 0x264]
push str._s_s
push eax
call fcn.00402688
add esp, 0x10
test byte [ebp - 0x260], 0x10
je 0x4018d0
lea eax, [ebp - 0x234]
push 0x43c420
push eax
call fcn.0040e002
test eax, eax
pop ecx
pop ecx
je 0x401952
lea eax, [ebp - 0x234]
push 0x43c454
push eax
call fcn.0040e002
test eax, eax
pop ecx
pop ecx
je 0x401952
push edi
lea ecx, [ebp - 0x264]
call fcn.00402c75
push str.C:UsersAll_Users
push eax
call fcn.0040e002
test eax, eax
pop ecx
pop ecx
je 0x401952
push edi
lea ecx, [ebp - 0x264]
call fcn.00402c75
push str.C:UsersDefault
push eax
call fcn.0040e002
test eax, eax
pop ecx
pop ecx
je 0x401952
push edi
lea ecx, [ebp - 0x264]
call fcn.00402c75
push str.C:UsersPublic
push eax
call fcn.0040e002
test eax, eax
pop ecx
pop ecx
je 0x401952
push edi
lea ecx, [ebp - 0x264]
call fcn.00402c75
push str.C:Documents_and_SettingsDefault_User
push eax
call fcn.0040e002
test eax, eax
pop ecx
pop ecx
je 0x401952
push edi
lea ecx, [ebp - 0x264]
call fcn.00402c75
push str.C:Documents_and_SettingsAll_Users
push eax
call fcn.0040e002
test eax, eax
pop ecx
pop ecx
je 0x401952
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x270]
mov ecx, dword [ebp - 0x26c]
push dword [ebp - 0x264]
call fcn.00401713
jmp 0x401952
cmp dword [ebp - 0x240], 0x1c00
jbe 0x401952
mov edx, dword [ebp - 0x270]
lea ecx, [ebp - 0x260]
call fcn.0040153f
test eax, eax
je 0x401952
push ebx
call fcn.0040339f
mov esi, eax
cmp esi, edi
pop ecx
mov dword [ebp - 0x278], esi
je 0x401979
push ebx
lea eax, [ebp - 0x260]
push eax
push esi
call fcn.0040e040
mov eax, dword [ebp - 0x264]
mov edi, dword [eax - 0xc]
add esp, 0xc
push 0
lea ecx, [ebp - 0x264]
call fcn.00402c75
push edi
push eax
push 0x104
add esi, 0x2c
push esi
call fcn.0040e3a5
mov edi, dword [ebp - 0x26c]
add esp, 0x10
lea eax, [ebp - 0x278]
push eax
call fcn.00401d93
xor edi, edi
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401798
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00402a3d
call fcn.0040f7ff
ret 8
Function at 0x40198f
Capabilities:
Check if file exists
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x442b44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x428], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x424], eax
mov eax, dword [0x43c560]
push esi
push edi
mov dword [ebp - 0x218], eax
mov eax, dword [0x43c564]
push 0x200
mov dword [ebp - 0x214], eax
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0040dc70
add esp, 0xc
push 0x206
lea eax, [ebp - 0x41e]
push ebx
push eax
mov word [ebp - 0x420], bx
call fcn.0040dc70
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov word [ebp - 0x10], bx
xor eax, eax
lea edi, [ebp - 0xe]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov edi, str.C:Users
push edi
call esi
test eax, eax
je 0x401a26
push dword [ebp - 0x424]
push edi
jmp 0x401a79
mov edi, str.C:Documents_and_Settings
push edi
call esi
test eax, eax
jne 0x401a1d
push ebx
push ebx
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
lea eax, [ebp - 0x218]
push eax
call fcn.00401713
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 5
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x428]
call fcn.00401713
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
cmp word [ebp - 0x420], bx
lea esi, [ebp - 0x420]
je 0x401af3
mov ax, word [esi]
cmp ax, word [ebp - 0x218]
je 0x401ae3
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x401ae3
mov ax, word [esi]
push dword [ebp - 0x424]
mov ecx, dword [ebp - 0x428]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x10]
push eax
mov word [ebp - 0xe], 0x3a
mov word [ebp - 0xc], bx
call fcn.00401713
push esi
call fcn.0040e949
lea esi, [esi + eax*2 + 2]
cmp word [esi], bx
pop ecx
jne 0x401aa5
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e93a
leave
ret 8

Function at 0x401b04
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x442b44]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and word [ebp - 0x7c], 0
push esi
push edi
push 0x206
lea eax, [ebp - 0x7a]
push 0
push eax
mov esi, ecx
call fcn.0040dc70
and dword [ebp - 0x80], 0
lea edi, [ebp - 0x7c]
add esp, 0xc
sub edi, esi
movzx eax, word [esi]
test ax, ax
je 0x401b84
cmp ax, 0x5c
jne 0x401b6f
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401b6f
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401b9e
mov ax, word [esi]
inc dword [ebp - 0x80]
mov word [edi + esi], ax
inc esi
inc esi
cmp dword [ebp - 0x80], 0x104
jne 0x401b44
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x18c]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e93a
add ebp, 0x190
leave
ret
xor eax, eax
jmp 0x401b87
Function at 0x403255
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
push ebp
lea ebp, [esp - 0x5d8]
sub esp, 0x658
mov eax, dword [0x442b44]
xor eax, ebp
mov dword [ebp + 0x5d4], eax
push esi
push edi
mov esi, 0x104
push esi
lea eax, [ebp + 0x3cc]
push eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40336f
push esi
lea eax, [ebp + 0x3cc]
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x40336f
push esi
lea eax, [ebp - 0x44]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40336f
push str._c_del
lea eax, [ebp + 0x1c4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x1c4]
push eax
call esi
push str.___nul
lea eax, [ebp + 0x1c4]
push eax
call esi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x70], eax
lea eax, [ebp + 0x1c4]
push 0x40
mov dword [ebp - 0x6c], eax
pop esi
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x3c
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], str.Open
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x7c], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40336f
push esi
push dword [ebp - 0x48]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
call esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
lea eax, [ebp + 0x3cc]
push eax
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
xor eax, eax
inc eax
jmp 0x403371
xor eax, eax
mov ecx, dword [ebp + 0x5d4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040e93a
add ebp, 0x5d8
leave
ret

Function at 0x40e93a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x442b44]
jne 0x40e944
repz ret
jmp fcn.00415952
Function at 0x411d2f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x442cd0]
je 0x411d4a
inc edi
cmp edi, 0x17
jb 0x411d3b
cmp edi, 0x17
jae 0x411eca
push ebp
push 3
call fcn.0041a912
cmp eax, 1
pop ecx
je 0x411e96
push 3
call fcn.0041a912
test eax, eax
pop ecx
jne 0x411d7e
cmp dword [0x442b00], 1
je 0x411e96
cmp ebx, 0xfc
je 0x411ec9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x446690
push ebp
call fcn.0041336f
add esp, 0xc
test eax, eax
je 0x411db4
push esi
push esi
push esi
push esi
push esi
call fcn.0040e478
add esp, 0x14
push 0x104
mov esi, 0x4466a9
push esi
push 0
mov byte [0x4467ad], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411df8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041336f
add esp, 0xc
test eax, eax
je 0x411df8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040e478
add esp, 0x14
push esi
call fcn.0040ebe0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411e3d
push esi
call fcn.0040ebe0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4469a4
push 0x436d1c
sub ecx, eax
push ecx
push eax
call fcn.0041a85f
add esp, 0x14
test eax, eax
je 0x411e3d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040e478
add esp, 0x14
jmp 0x411e3f
xor esi, esi
push 0x436d18
push ebx
push ebp
call fcn.0041a7ee
add esp, 0xc
test eax, eax
je 0x411e5f
push esi
push esi
push esi
push esi
push esi
call fcn.0040e478
add esp, 0x14
push dword [edi*8 + 0x442cd4]
push ebx
push ebp
call fcn.0041a7ee
add esp, 0xc
test eax, eax
je 0x411e81
push esi
push esi
push esi
push esi
push esi
call fcn.0040e478
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041a631
add esp, 0xc
jmp 0x411ec9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x411ec9
cmp ebp, 0xffffffff
je 0x411ec9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x442cd4]
push dword [esi]
call fcn.0040ebe0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret