joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401334
Capabilities:
Encode data using xor

Disassembly:
jmp 0x408120
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov ecx, 9
mov esi, 0x4309c0
lea edi, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x3c]
test esi, 0x8000
mov dword [esp + 0x10], 0
je 0x408153
mov dword [esp + 0x10], 1
and esi, 0xff
mov eax, dword [0x431224]
push eax
call fcn.00416e58
push 0x74
mov dword [0x42c884], eax
call fcn.004011bd
mov di, word [0x4309c6]
mov edx, dword [0x42c884]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4081b4
cmp di, 7
jb 0x40820a
mov ecx, dword [0x4309c4]
xor eax, eax
mov ax, di
add eax, edx
test ch, 0x80
mov dword [0x42ec28], eax
je 0x4081ae
add eax, dword [0x4309c8]
mov dword [0x42ec28], eax
cmp eax, edx
jle 0x40820a
jmp 0x4081b9
mov eax, dword [0x42ec28]
test ebp, ebp
jle 0x4081ca
cmp esi, 0x77
je 0x4081c8
mov dword [0x42b44c], esi
test ebp, ebp
mov cl, byte [0x4309c2]
je 0x408214
test esi, esi
je 0x408214
xor ebx, ebx
mov bl, cl
cmp ebx, esi
je 0x408214
cmp cl, 0x77
jne 0x4081f3
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4081f3
cmp dword [0x42b44c], esi
je 0x408214
mov ecx, dword [0x431224]
push 0
push eax
push ecx
call fcn.00416fb0
add esp, 0xc
jmp 0x408159
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret
mov ax, word [0x4309c0]
mov word [0x430a20], ax
mov ax, word [0x4309c4]
mov word [0x430a24], ax
mov eax, dword [0x4309c8]
mov dword [0x430a28], eax
xor eax, eax
mov al, cl
mov byte [0x430a22], cl
mov word [0x430a26], di
cmp esi, eax
jne 0x408340
cmp esi, 0x74
jne 0x408340
test ebp, ebp
jle 0x408340
mov ax, word [0x4309de]
cmp ax, 0x103
jb 0x408270
mov ax, 0x103
mov ecx, dword [0x431224]
xor edx, edx
mov dx, ax
push ecx
mov word [0x4309de], ax
push edx
push 1
push 0x430fe0
call fcn.00416d70
mov ecx, dword [0x42c880]
xor eax, eax
mov ax, word [0x4309de]
add esp, 0x10
xor esi, esi
test eax, eax
mov byte [eax + 0x430fe0], 0
jbe 0x4082d0
xor edx, edx
mov dl, byte [esi + 0x430fe0]
mov edi, ecx
and edi, 0xff
shr ecx, 8
xor edx, edi
mov edx, dword [edx*4 + 0x42f180]
xor ecx, edx
inc esi
cmp esi, eax
jb 0x4082ad
not ecx
cmp word [0x4309c0], cx
je 0x40832c
mov eax, dword [0x42b458]
test eax, eax
je 0x40832c
push 0x4281ec
push 0x42c8a0
call fcn.00416d0b
mov esi, eax
add esp, 8
test esi, esi
je 0x40832c
push str.File_Header_Broken.
push str.C:_WORK___FINAL_STAGE_DEMOS1_AssCancer__VC6_fileurarlib.c
push 0x2be
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x42c9d4]
push eax
push str.__8u_ms__Line:__u_In_File:__s_:_n_________________s_n
push esi
call fcn.0041706b
push esi
call fcn.00416b8b
add esp, 0x1c
xor eax, eax
mov ax, word [0x4309de]
pop edi
pop esi
add ebp, eax
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret
mov ecx, 9
lea esi, [esp + 0x14]
mov edi, 0x4309c0
push 0
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x431224]
push edx
push ecx
call fcn.00416fb0
add esp, 0xc
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x28
ret
Function at 0x41dce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
jne 0x41dcfa
push dword [ebp + 0x14]
call fcn.0041d3fe
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
test dword [ecx + edi*8 - 0x7a380001], ecx
jl 0x41dcff
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
movsd dword es:[edi], dword [esi]
aas
cld
invalid
inc dword [eax]
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0041d449
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041d3fe
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0041d449
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041d3fe
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0041d439
fst dword [eax - 0x5a7f6eba]
int3
invalid
Function at 0x41e32b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [edx + 0x40], ch
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.0041d417
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
mov byte [ebp - 0x358], 0x27
mov byte [ebp - 0x357], 0x2c
mov byte [ebp - 0x356], 0x14
mov byte [ebp - 0x355], 0x55
lea eax, [ebp - 0x36c]
push eax
call fcn.0041d449
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0041d3fe
add esp, 0xc
mov dword [ebp - 0x3d4], eax
call fcn.0041d439
add byte [ecx + 0x4687df8], cl
add dword [eax], eax
add byte [ebp - 0x12b7b], cl
call dword [eax - 1]
xchg ebp, eax
sub al, 0xfc
invalid
Function at 0x416910
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x427b30]
sub esp, 0x14
push ebx
mov ebx, dword [0x2bccfbc]
push edi
mov edi, dword [0x2bcf43c]
call fcn.00416880
cmp dword [0x2bcf43c], 0x2f
jne 0x416972
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.004168b0
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x416c70
Capabilities:
Get disk information
Manipulate console buffer
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x427004]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
jmp 0x416c95
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x1519a5
jge 0x416cde
mov dword [0x2bcf0a4], 0x8e46a6f0
cmp dword [0x2bcf43c], 0x3dc
jne 0x416cdc
xor ecx, ecx
mov word [ebp - 8], cx
xor edx, edx
mov word [ebp - 6], dx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterW]
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
jmp 0x416c8c
mov dword [ebp - 0x10], 0
jmp 0x416cf0
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x12cad2a
jge 0x416d8b
cmp dword [0x2bcf43c], 0xa5f
jne 0x416d42
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
lea ecx, [ebp - 0x820]
push ecx
push str.xonatoyuhejigoriramadiguyo
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
cmp dword [ebp - 0x10], 0x84620b
jne 0x416d66
mov edx, dword [0x428950]
mov dword [0x2bcf43c], edx
mov eax, dword [0x2bcf43c]
add eax, 0xa231
mov dword [0x2bcf43c], eax
cmp dword [0x2bcf43c], 0x141
jne 0x416d86
mov dword [0x429f28], 0xec58acac
mov dword [0x429f2c], 0xffffffff
jmp 0x416ce7
call fcn.00416980
jmp dword [0x2bccfbc]
Function at 0x10020978
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x10020987
pop dword [ebp - 0x48]
mov eax, 0x2a6db66a
add eax, 0xe594531d
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3ba7b
push 0
mov eax, 0x7515022
add eax, 0x8b140ea
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x4b03
mov esi, eax
mov edx, 0x10046c00
add edx, dword [ebp - 0x48]
mov edi, 0xbf03f3ee
sub edi, 0x1e982386
mov ebx, dword [edx]
add dword [ebp - 0x44], 0x20bbed32
xor ebx, edi
add dword [ebp - 0x38], 0x1d479c04
mov dword [esi], ebx
add dword [ebp - 0x40], ebx
add esi, 0xfe30c7e
add esi, 0xf01cf386
add edx, 0x1a66c6b6
sub edx, 0x1a66c6b2
loop 0x100209da
add eax, 0x11edf
mov ebx, eax
add eax, 0x72c29604
add eax, 0x8d3d6a01
mov ecx, 0x10000000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x10015217
Capabilities:
Enumerate processes

Disassembly:
push 0x238
mov eax, 0x1002d711
call fcn.10017005
mov ebx, dword [ebp + 8]
test ebx, ebx
jne 0x10015234
xor eax, eax
jmp 0x10015311
xor edi, edi
push edi
push 2
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
test esi, esi
je 0x1001530f
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.kernel32.dll_Process32FirstW
jmp 0x100152e5
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x244]
call fcn.1000128b
push ebx
lea ecx, [ebp - 0x240]
mov dword [ebp - 4], edi
call fcn.1000128b
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 1
call fcn.10001cc6
lea ecx, [ebp - 0x240]
call fcn.10001cc6
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
call fcn.10028f64
pop ecx
pop ecx
mov ecx, dword [ebp - 0x240]
lea ecx, [ecx - 0x10]
test al, al
jne 0x100152ef
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
or dword [ebp - 4], 0xffffffff
lea ecx, [ecx - 0x10]
call fcn.10001eb4
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.kernel32.dll_Process32NextW
test eax, eax
jne 0x10015264
jmp 0x10015308
mov edi, dword [ebp - 0x234]
call fcn.10001eb4
mov ecx, dword [ebp - 0x244]
add ecx, 0xfffffff0
call fcn.10001eb4
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, edi
call fcn.10016faf
ret

Function at 0x10028f64
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x10028f73
pop dword [ebp - 0x18]
mov eax, 0x4d612aa8
sub eax, 0x3d5e9b35
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x42584
push 0
mov eax, 0x5c47e2fb
sub eax, 0x4c44f19f
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0x5070
xor ebx, ebx
add ebx, eax
mov edi, 0xbaa8a7ab
add edi, 0x555c0455
add edi, dword [ebp - 0x18]
mov edx, 0xb0d32146
sub edx, 0x1fb7b42a
sub dword [ebp - 0x14], eax
mov esi, dword [edi]
mov dword [ebp - 0xc], 0x5046bb99
xor esi, edx
add dword [ebp - 8], 0xb0bb4516
mov dword [ebx], esi
add ebx, 4
add edi, 0x8eaca3ad
add edi, 0x71535c57
loop 0x10028fce
add eax, 0x9523f7eb
sub eax, 0x9522c358
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x500ab9e7
add ecx, 0xbff54619
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x402750
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
lea ecx, [ebp - 0x18]
call fcn.004012a0
lea ecx, [ebp - 0x24]
call fcn.004012a0
push 0x3c
push 0
lea eax, [ebp - 0x60]
push eax
call fcn.0041e660
add esp, 0xc
mov dword [ebp - 0x60], 0x3c
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x5c], 0x740
mov dword [ebp - 0x44], 0xa
mov edx, dword [ebp + 0xc]
and edx, 1
je 0x4027ab
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x5c]
or eax, 0x8000
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp + 0xc]
and ecx, 2
je 0x4027ba
mov dword [ebp - 0x54], str.runas
mov edx, dword [ebp + 0xc]
and edx, 0x10000
jne 0x4027d0
mov eax, dword [ebp - 0x5c]
or eax, 0x100
mov dword [ebp - 0x5c], eax
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00405e40
add esp, 8
push eax
lea ecx, [ebp - 0x24]
call fcn.00402100
lea ecx, [ebp - 0x18]
call fcn.004026f0
test eax, eax
jne 0x402811
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.004017d0
lea ecx, [ebp - 0x18]
call fcn.004017d0
mov eax, dword [ebp - 4]
jmp 0x40288c
lea ecx, [ebp - 0x18]
call fcn.00401330
mov dword [ebp - 0x50], eax
lea ecx, [ebp - 0x24]
call fcn.00401330
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x402872
mov ecx, dword [ebp + 0xc]
and ecx, 0x10000
jne 0x40284c
push 0xffffffffffffffff
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x24]
call fcn.004017d0
lea ecx, [ebp - 0x18]
call fcn.004017d0
mov eax, dword [ebp - 8]
jmp 0x40288c
mov dword [ebp - 0xc], 0
lea ecx, [ebp - 0x24]
call fcn.004017d0
lea ecx, [ebp - 0x18]
call fcn.004017d0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x402d10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00403970
mov ecx, dword [ebp - 0xc]
mov dword [0x4294a8], ecx
mov dword [0x4294b0], 0
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0xc]
push eax
push 0x402fd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4294ac], eax
cmp dword [0x4294ac], 0
je 0x402d7c
cmp dword [0x4294d8], 2
je 0x402d6d
call fcn.00409bf0
push 0xffffffffffffffff
mov ecx, dword [0x4294ac]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [0x429594], 0
cmp dword [0x4294b0], 0
je 0x402e00
mov edx, dword [0x4294b0]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x69
ja case.0x402db1.3
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + 0x402ebc]
jmp dword [edx*4 + 0x402ea8]
push 0x11
push 0
call fcn.0040b610
add esp, 8
jmp 0x402df6
push 0x12
push 0
call fcn.0040b610
add esp, 8
jmp 0x402df6
push 0x13
push 0
call fcn.0040b610
add esp, 8
jmp 0x402df6
jmp 0x402df6
mov eax, dword [0x4294b0]
push eax
push 0x14
push 0
call fcn.0040b610
add esp, 0xc
mov eax, 0x80004005
jmp 0x402ea1
mov dword [ebp - 4], 0
cmp dword [0x429598], 0
jne 0x402e98
cmp dword [0x4294ac], 0
je 0x402e38
lea ecx, [ebp - 4]
push ecx
mov edx, dword [0x4294ac]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x402e38
cmp dword [ebp - 4], 0
je 0x402e96
mov eax, dword [ebp - 4]
and eax, 0x80070000
cmp eax, 0x80070000
je 0x402e59
mov ecx, dword [ebp - 4]
push ecx
push 0x21
push 0
call fcn.0040b610
add esp, 0xc
jmp 0x402e8f
mov edx, dword [ebp - 4]
and edx, 0xffff
cmp edx, 0xe
jne 0x402e70
cmp dword [0x4294dc], 0xffffffff
je 0x402e8f
mov eax, dword [ebp - 4]
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
push ecx
push 0x22
push 1
call fcn.0040b610
add esp, 0xc
mov eax, 0x80004005
jmp 0x402ea1
jmp 0x402e9f
mov eax, 0x80004005
jmp 0x402ea1
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x403a60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x424854
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004012a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403aaa
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00404ee0
push eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00406350
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x403b90
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x424854
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00405c10
movzx ecx, al
test ecx, ecx
jne 0x403bc4
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.004017d0
mov esp, ebp
pop ebp
ret
Function at 0x4047a0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea ecx, [ebp - 0x1c]
call fcn.004012a0
push 2
lea ecx, [ebp - 0x1c]
call fcn.00404ee0
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 8], eax
push 0
lea ecx, [ebp - 0x1c]
call fcn.00402020
cmp dword [ebp - 8], 0
jbe 0x4047f9
mov eax, dword [ebp - 8]
add eax, 1
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404ee0
push eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x1c]
call fcn.00406350
lea ecx, [ebp - 0x1c]
call fcn.004026f0
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
jmp 0x404816
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0xfff
jge 0x40486c
mov eax, dword [ebp - 0xc]
add eax, 0xf
push eax
lea ecx, [ebp - 0x1c]
call fcn.00404ee0
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax*2]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.00406350
lea ecx, [ebp - 0x1c]
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40486a
jmp 0x40486c
jmp 0x40480d
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00402a60
lea ecx, [ebp - 0x1c]
call fcn.004017d0
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x404910
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.00401780
push 0x4248b4
lea ecx, [ebp - 0xc]
call fcn.00418ee0
lea ecx, [ebp - 0x270]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x404a3e
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0xc]
call fcn.00402100
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004017f0
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0xc]
call fcn.00418ee0
mov ecx, dword [ebp - 0x270]
and ecx, 0x10
je 0x4049df
push 0x4248bc
lea edx, [ebp - 0x244]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4049dd
push 0x4248c0
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4049dd
lea ecx, [ebp - 0xc]
call fcn.00401330
push eax
call fcn.00404910
add esp, 4
test eax, eax
jne 0x4049dd
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0xc]
call fcn.004017d0
mov eax, dword [ebp - 0x14]
jmp 0x404a93
jmp 0x404a1b
push 0
lea ecx, [ebp - 0xc]
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404a07
lea ecx, [ebp - 0xc]
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x404a1b
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0xc]
call fcn.004017d0
mov eax, dword [ebp - 0x18]
jmp 0x404a93
lea ecx, [ebp - 0x270]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404955
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x4294fc
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404a6d
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x404a81
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0xc]
call fcn.004017d0
mov eax, dword [ebp - 0x1c]
jmp 0x404a93
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0xc]
call fcn.004017d0
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret

Function at 0x404aa0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
lea eax, [ebp - 0x254]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x404aca
mov eax, 1
jmp 0x404b0b
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x254]
and eax, 0x10
jne 0x404aff
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x404afb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404b0b
xor eax, eax
jmp 0x404b0b
mov eax, dword [ebp + 8]
push eax
call fcn.00404910
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x404c00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 0x10]
call fcn.004012a0
push 1
push 1
lea ecx, [ebp - 0x10]
call fcn.00404ee0
push eax
mov ecx, dword [ebp + 8]
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x404c3d
lea ecx, [ebp - 0x10]
call fcn.004017d0
jmp 0x404c7f
mov eax, dword [ebp - 4]
add eax, 1
push eax
mov ecx, dword [ebp - 4]
add ecx, 1
push ecx
lea ecx, [ebp - 0x10]
call fcn.00404ee0
push eax
mov ecx, dword [ebp + 8]
call fcn.00401330
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea ecx, [ebp - 0x10]
call fcn.00406350
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp + 8]
call fcn.004020e0
lea ecx, [ebp - 0x10]
call fcn.004017d0
mov esp, ebp
pop ebp
ret