joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033f9
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x42f1e4]
sub esi, dword [0x4331f0]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x472e20], eax
jle 0x403557
push dword [0x4331ec]
call fcn.004033e2
push ebx
push ebx
push dword [0x4331f0]
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x42f1e0], esi
mov dword [0x41f154], ebx
mov ebp, 0x4271e0
mov eax, dword [0x4331e8]
sub eax, dword [0x4331ec]
mov edi, 0x4000
cmp eax, edi
jg 0x40346e
mov edi, eax
push edi
mov esi, 0x42f1e8
push esi
call fcn.004033b0
test eax, eax
je 0x403569
add dword [0x4331ec], edi
mov dword [0x427170], esi
mov dword [0x427174], edi
cmp dword [0x472ddc], ebx
je 0x4034c5
cmp dword [0x472ea0], ebx
jne 0x4034c5
mov eax, dword [0x42f1e0]
sub eax, dword [0x42f1e4]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x4331f0]
mov dword [0x41f154], eax
call fcn.0040330e
pop ecx
mov ecx, 0x427158
mov dword [0x427178], ebp
mov dword [0x42717c], 0x8000
call fcn.004073a4
test eax, eax
jl 0x40356e
mov esi, dword [0x427178]
sub esi, ebp
je 0x403523
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403573
cmp esi, dword [esp + 0x10]
jne 0x403573
add dword [0x4331f0], esi
cmp dword [0x427174], ebx
jne 0x403494
jmp 0x40352f
cmp dword [0x427174], ebx
jne 0x40356e
cmp edi, ebx
je 0x40356e
mov eax, dword [0x42f1e4]
mov ecx, eax
sub ecx, dword [0x4331f0]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403458
push ebx
push ebx
push eax
push dword [0x40b014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.0040330e
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x403561
push 0xfffffffffffffffd
pop eax
jmp 0x403561
push 0xfffffffffffffffe
jmp 0x403570
Function at 0x403577
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4035a3
mov ecx, dword [0x472e18]
push edi
add eax, ecx
push edi
push eax
push dword [0x40b014]
mov dword [0x42f1e4], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033f9
cmp eax, edi
jl 0x40369c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40b014]
call ebx
test eax, eax
je 0x403698
cmp dword [ebp - 4], esi
jne 0x403698
push dword [ebp + 8]
add dword [0x42f1e4], esi
call fcn.004033f9
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40369b
cmp dword [ebp + 0x10], edi
jne 0x403667
cmp dword [ebp + 8], edi
jle 0x403693
mov esi, 0x42f1e8
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403617
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40b014]
call ebx
test eax, eax
je 0x403698
cmp edi, dword [ebp - 4]
jne 0x403698
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403663
cmp dword [ebp + 0x14], edi
jne 0x403663
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x42f1e4], eax
cmp dword [ebp + 8], 0
jg 0x40360a
jmp 0x403693
push 0xfffffffffffffffe
jmp 0x40369a
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403672
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b014]
call ebx
test eax, eax
je 0x403698
mov eax, dword [ebp - 4]
add dword [0x42f1e4], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40369b
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x405da1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x457288
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x457288], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405ddc
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405f91
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405fae
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405fb1
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40968c]
mov dword [ebp - 8], eax
mov eax, dword [0x409690]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406030
test edi, edi
jne 0x405fed
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x40602a

Function at 0x406034
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor edi, edi
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4060a8
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push edi
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406095
cmp dword [ebp + 0x14], 1
je 0x406098
cmp dword [ebp + 0x14], 2
je 0x406098
mov word [esi], di
push dword [ebp + 0x18]
mov word [esi + 0x4006], di
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
ret 0x14
Function at 0x406245
Capabilities:
Check if file exists
Get file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x40626e
mov eax, dword [0x40b058]
cmp eax, 0xffffffff
je 0x406262
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b058], 0xffffffff
jmp 0x406319
cmp dword [0x461530], ebx
je 0x406319
cmp word [0x46a560], bx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x4062e5
cmp dword [0x40b058], 0xffffffff
jne 0x4062ee
mov esi, 0x46a560
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 4
push 0x40000000
push esi
mov dword [ebp + 8], eax
call fcn.00405fb1
cmp eax, 0xffffffff
mov dword [0x40b058], eax
je 0x406317
cmp dword [ebp + 8], 0xffffffff
jne 0x4062da
push ebx
lea ecx, [ebp - 4]
push ecx
push 2
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], 0xfeff
call edi
mov eax, dword [0x40b058]
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b058], 0xffffffff
je 0x406317
push 0x4096a8
mov esi, 0x461540
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp + 8]
push ecx
add eax, eax
push eax
push esi
push dword [0x40b058]
call edi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4068d2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4572d0
push esi
call fcn.00406167
push esi
call fcn.00405eba
mov edi, eax
test edi, edi
jne 0x4068f3
xor eax, eax
jmp 0x406951
push edi
call fcn.00406196
test byte [0x472e28], 0x80
je 0x406910
movzx eax, word [edi]
test ax, ax
je 0x4068ef
cmp ax, 0x5c
je 0x4068ef
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406932
push esi
call fcn.00406433
test eax, eax
je 0x40692c
test byte [eax], 0x10
je 0x406956
push esi
call fcn.004068a6
push esi
call ebx
cmp eax, edi
jg 0x40691d
push esi
call fcn.00406877
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406950
Function at 0x406beb
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4098b8
mov ebx, 0x45b2d8
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
cmp edi, ebp
mov esi, 0x400
je 0x406c39
push 1
push ebp
push edi
call fcn.00405fb1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406db0
cmp eax, esi
jg 0x406db0
push esi
mov edi, 0x460930
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406db0
cmp eax, esi
jg 0x406db0
push ebp
push ebp
push esi
push 0x45bad8
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406db0
push ebp
push ebp
push esi
mov esi, 0x45c128
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406db0
push esi
push 0x45bad8
push str._s_s_r_n
push 0x45c528
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x472ddc]
push dword [eax + 0x128]
push edi
call fcn.0040695a
push 4
push 0xc0000000
push edi
call fcn.00405fb1
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x406db0
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406da6
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406da6
cmp edi, dword [esp + 0x10]
jne 0x406da6
push str._Rename__r_n
push esi
call fcn.00405f17
cmp eax, ebp
jne 0x406d3d
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406d6e
push 0x4098ac
add eax, 0xa
push eax
call fcn.00405f17
mov ebp, eax
test ebp, ebp
je 0x406d6c
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406d5f
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406d59
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406d70
xor ebp, ebp
mov eax, edi
push ebx
push 0x45c528
add eax, esi
push eax
call fcn.00405f6d
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x407316
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407351
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40732a
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x407325
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40737e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40735f
not eax
pop ebp
ret 0xc
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
call 0x43000c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
popal
nop
nop
nop
nop
jmp loc.00401219
Function at 0x1011b2f
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1048628]
push ebx
push esi
push edi
xor esi, esi
push esi
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push esi
push 2
push esi
push esi
push esi
mov edi, 0x1001750
push edi
push 0x80000001
mov dword [ebp - 0x210], esi
call fcn.0101bbbd
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x1011b96
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1001c5c
push dword [ebp - 0x210]
call fcn.0101c11a
push dword [ebp - 0x210]
call ebx
push esi
lea eax, [ebp - 0x210]
push eax
push esi
push 2
push esi
push esi
push esi
push edi
mov edi, 0x80000002
push edi
call fcn.0101bbbd
test eax, eax
jne 0x1011bd5
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1001c5c
push dword [ebp - 0x210]
call fcn.0101c11a
push dword [ebp - 0x210]
call ebx
cmp dword [ebp + 8], 0xd2af9
je 0x1011bf4
cmp dword [ebp + 8], 0xc00d2afb
je 0x1011bf4
cmp dword [ebp + 8], 0xd2af8
jne 0x1011c94
lea eax, [ebp - 0x210]
push eax
push 3
push esi
push 0x1001bf8
push edi
mov dword [ebp - 0x214], esi
call fcn.0101c02d
test eax, eax
jne 0x1011c88
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0101d3e2
test eax, eax
je 0x1011c78
push 0x1001bc4
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100f5a7
test eax, eax
jl 0x1011c78
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x1001ba4
push dword [ebp - 0x210]
call fcn.0101c11a
test eax, eax
jne 0x1011c78
mov dword [ebp - 0x214], edi
push dword [ebp - 0x210]
call ebx
cmp dword [ebp - 0x214], esi
jne 0x1011c94
push 0x1001b68
push 2
call fcn.0102ae4b
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01018732
leave
ret 4
Function at 0x1016617
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1048628]
push esi
mov esi, 0x104
push esi
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 0x20c]
push eax
call fcn.0102858f
test eax, eax
je 0x101678d
lea eax, [ebp - 0x20c]
push eax
call fcn.0102534f
push 0x1001f18
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0100f5a7
test eax, eax
jl 0x101678d
lea eax, [ebp - 0x20c]
push eax
call fcn.010257cb
test eax, eax
je 0x101678d
push esi
lea eax, [ebp - 0x20c]
push eax
push eax
call fcn.01027336
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
cmp eax, ecx
mov dword [ebp - 0x214], eax
je 0x101677b
push ebx
push edi
mov edi, dword [sym.imp.msvcrt.dll_wcslen]
push eax
mov ebx, eax
call edi
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x210], eax
je 0x1016763
push ebx
push esi
push eax
call fcn.0100f51f
test eax, eax
jl 0x1016757
push dword [ebp - 0x210]
call dword [sym.imp.msvcrt.dll__wcslwr]
mov ebx, dword [sym.imp.msvcrt.dll_wcsstr]
mov esi, 0x1002be4
push esi
push dword [ebp - 0x210]
call ebx
add esp, 0xc
test eax, eax
mov dword [ebp - 0x218], eax
je 0x101672f
push esi
call edi
pop ecx
mov ecx, dword [ebp - 0x218]
lea eax, [ecx + eax*2]
cmp word [eax], 0x22
jne 0x101671c
inc eax
inc eax
sub eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
sar eax, 1
lea ebx, [ecx + eax*2]
jmp 0x1016757
mov esi, 0x1002bd0
push esi
push dword [ebp - 0x210]
call ebx
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x1016755
push esi
call edi
shl eax, 1
sub eax, dword [ebp - 0x210]
pop ecx
add eax, ebx
jmp 0x1016722
xor ebx, ebx
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
push 0xa
xor eax, eax
push eax
push ebx
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
call fcn.0101dd78
pop edi
pop ebx
jmp 0x101678d
push 0xa
push ecx
push ecx
lea eax, [ebp - 0x20c]
push eax
push ecx
push ecx
call fcn.0101dd78
mov ecx, dword [ebp - 4]
pop esi
call fcn.01018732
leave
ret
Function at 0x10184f0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call fcn.0101a5ff
cmp eax, edi
mov dword [esi + 0x38], eax
je 0x1018550
lea eax, [esi + 0x3c]
push eax
push edi
push esi
push 0x10184d4
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 4], eax
je 0x101853f
cmp dword [ebp + 8], edi
jne 0x101853f
push 0x32
push dword [esi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x101852d
mov eax, dword [esi + 0x38]
cmp eax, edi
je 0x1018550
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x38], edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x101a591
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101a5af
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x101a5f1
cmp dword [ebp + 8], 0
jne 0x101a5b9
xor eax, eax
jmp 0x101a5f1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01018b35
neg eax
sbb eax, eax
and eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 8

Function at 0x101a89d
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101a8b8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x101a8f5
xor eax, eax
cmp dword [ebp + 8], eax
je 0x101a8ee
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01018b35
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4
Function at 0x101aa07
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101aa2c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x101aabd
cmp dword [ebp + 8], 0
jne 0x101aa39
xor eax, eax
jmp 0x101aabd
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01018b35
mov ebx, dword [ebp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
and esi, edi
lea edi, [ebx + ebx]
mov eax, edi
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov dword [ebp + 8], esp
push edi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov esi, eax
test esi, esi
je 0x101aaac
cmp esi, edi
jae 0x101aa97
mov edi, esi
push edi
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.01018b5b
cmp esi, eax
jae 0x101aabb
mov esi, eax
jmp 0x101aabb
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101aabb
test ebx, ebx
jbe 0x101aabb
and word [eax], 0
mov eax, esi
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x101adb2
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101add1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
jmp 0x101ae15
mov edi, dword [ebp + 8]
lea esi, [edi + edi]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov ebx, esp
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x101ae04
cmp edi, eax
jb 0x101ae15
push 0xffffffffffffffff
push edi
push ebx
push dword [ebp + 0xc]
call fcn.01018b5b
jmp 0x101ae15
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101ae13
test edi, edi
jbe 0x101ae13
and word [eax], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x101ae24
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
call fcn.0101a42a
test al, al
je 0x101ae3f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x101ae80
cmp dword [ebp + 8], 0
jne 0x101ae4a
or eax, 0xffffffff
jmp 0x101ae80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
lea eax, [esi + 2]
add eax, 3
and eax, 0xfffffffc
call fcn.01044e40
mov edi, esp
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
push edi
call fcn.01018b35
neg eax
sbb eax, eax
and eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret 4