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

Disassembly:
sub esp, 4
cmp dword [0x409940], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x404efc
call esi
mov edi, eax
test edi, edi
je 0x404eda
mov dword [0x409940], 1
jmp 0x404f00
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x404ef2
mov dword [0x409940], 2
jmp 0x404f04
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x409940], 1
jne 0x404fb3
test edi, edi
jne 0x404f27
call esi
mov edi, eax
test edi, edi
jne 0x404f27
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x404f41
add esi, 2
cmp word [esi], 0
jne 0x404f2f
add esi, 2
cmp word [esi], 0
jne 0x404f2f
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x404fa2
push ebp
call fcn.00405ed0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x404fa2
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x404f91
push ebx
call fcn.00404320
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x409940], 2
jne 0x405037
test ebx, ebx
jne 0x404fd6
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x404fd6
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x404feb
inc ebp
cmp byte [ebp], 0
jne 0x404fdd
inc ebp
cmp byte [ebp], 0
jne 0x404fdd
sub ebp, ebx
inc ebp
push ebp
call fcn.00405ed0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x405010
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x405620
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x409b68
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x405647
add eax, 8
inc ecx
cmp eax, 0x409bf0
jb 0x405638
cmp dword [ecx*8 + 0x409b68], edx
lea ebx, [ecx*8]
jne 0x405802
cmp dword [0x4096dc], 1
je 0x4057c7
cmp dword [0x4096dc], 0
jne 0x40567e
cmp dword [0x4096e0], 1
je 0x4057c7
cmp edx, 0xfc
je 0x405802
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x4056bb
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x4056ff
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x4082b4
push ebp
call fcn.00406010
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x408294
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x409b6c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.00405f70
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x40a950]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x4057de
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x409b6c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x402054
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.00408e81]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push 0x104
lea eax, [ebp - 0x78]
push eax
push 0x40c2d0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x402138
lea ecx, [ebp - 0x80]
call fcn.0040102d
push ecx
push ecx
mov ecx, esp
push 0x40c2bc
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
lea eax, [ebp + 0x19c]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [ebp - 0x80]
call fcn.004014d9
push ecx
push ecx
mov ecx, esp
push 0x40c2a8
call fcn.0040140d
lea ecx, [ebp - 0x80]
call fcn.004014d9
xor eax, eax
mov esi, 0x40c29c
cmp byte [ebp + 0x1a4], al
jne 0x4020ed
mov esi, 0x40c290
push eax
push eax
lea ecx, [ebp - 0x80]
call fcn.00401062
push eax
lea eax, [ebp - 0x78]
push eax
push esi
call dword [0x40e0f4]
push eax
call dword [0x40e060]
lea ecx, [ebp - 0x80]
call fcn.00401471
mov bl, 1
lea ecx, [ebp + 0x19c]
call fcn.00401471
mov ecx, dword [ebp + 0x190]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00408e81
add ebp, 0x194
leave
ret
xor bl, bl
jmp 0x402114

Function at 0x4026eb
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x4027a2
mov eax, dword [esi + 0xcc]
mov edi, dword [eax]
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [esi + 0xcc]
push ebx
call dword [edi + 0x14]
cmp ebx, 2
jl 0x402752
push ecx
push ecx
lea eax, [ebp + 0x14]
mov ecx, esp
push eax
call fcn.00401037
push dword [ebp + 0x10]
mov ecx, esi
push ebx
call fcn.00401db1
cmp ebx, 2
jne 0x402752
cmp byte [esi + 0x1cc], 0
jne 0x4027a2
push 3
pop ebx
cmp ebx, 3
jne 0x4027a2
lea eax, [esi + 0x18c]
push eax
lea ecx, [ebp - 8]
call fcn.00401037
mov eax, dword [esi + 0xcc]
mov edi, dword [eax]
push ecx
push ecx
mov ecx, esp
push 0x40c50c
call fcn.0040140d
push 0x5c
lea ecx, [ebp - 8]
call fcn.00401510
push ecx
push ecx
mov ecx, esp
push eax
call fcn.00401037
mov ecx, dword [esi + 0xcc]
call dword [edi + 0x1c]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea ecx, [ebp + 0x14]
call fcn.00401471
cmp byte [ebp + 8], 0
pop edi
pop esi
sete al
pop ebx
leave
ret 0x14
Function at 0x402882
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa4
mov eax, dword [fcn.00408e81]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x402919
cmp dword [ebp - 0x1c], 6
jae 0x4028f3
call dword [0x40e05c]
test eax, eax
jne 0x402919
mov dword [ebp - 0x2c], 0x220
mov dword [ebp - 0x28], 0x223
mov dword [ebp - 0x24], 0x225
xor esi, esi
push dword [ebp + esi*4 - 0x2c]
mov ecx, edi
call fcn.00401fd2
test al, al
jne 0x402919
inc esi
cmp esi, 3
jl 0x4028d9
xor eax, eax
inc eax
jmp 0x40291b
mov ecx, edi
call fcn.0040213c
mov ecx, dword [eax + 0xc]
mov eax, dword [ecx]
call dword [eax + 0x14]
test al, al
jne 0x402919
mov ecx, edi
call fcn.004027d7
cmp eax, 0x3000
jae 0x402919
push 2
pop eax
jmp 0x40291b
xor eax, eax
mov ecx, dword [ebp + 0x74]
pop edi
xor ecx, ebp
pop esi
call fcn.00408e81
add ebp, 0x78
leave
ret
Function at 0x404eb6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 8]
push 0xffffffffffffffff
mov ecx, edi
call fcn.0040499d
test byte [esi + 4], 0x19
mov ecx, edi
setne byte [ebp - 1]
call fcn.0040498e
xor ebx, ebx
cmp byte [ebp - 1], bl
jne 0x404ef2
lea ecx, [ebp + 8]
call fcn.00401471
xor al, al
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [esi], ebx
jne 0x404f3c
push 0x20
call fcn.004048b9
mov edi, eax
pop ecx
cmp edi, ebx
je 0x404f0f
mov ecx, edi
call fcn.004070b5
mov ecx, edi
jmp 0x404f11
xor ecx, ecx
mov dword [esi], ecx
call fcn.00404d74
test al, al
jne 0x404f3c
mov esi, dword [esi]
cmp esi, ebx
je 0x404f30
mov ecx, esi
call fcn.004070bb
push esi
call fcn.004048cd
pop ecx
lea ecx, [ebp + 8]
call fcn.00401471
mov al, bl
jmp 0x404eeb
push ecx
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00401037
lea ecx, [esi + 0x10]
call fcn.00401479
push ebx
push ebx
push esi
push 0x404ace
push ebx
push ebx
mov dword [esi + 4], 4
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0xc], eax
setne bl
jmp 0x404f30

Function at 0x405a1d
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
lea ecx, [ebp + 8]
mov byte [ebp - 1], 0
call fcn.00401062
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
jne 0x405a62
xor bl, bl
lea ecx, [ebp + 8]
call fcn.00401471
pop esi
mov al, bl
pop ebx
leave
ret
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, esi
je 0x405ac4
push edi
call fcn.004048b9
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x405aad
test edi, edi
jbe 0x405aa9
and dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405aa9
add esi, dword [ebp - 8]
cmp esi, edi
jb 0x405a82
cmp esi, edi
je 0x405ab6
push ebx
call fcn.004048cd
pop ecx
jmp 0x405ac4
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov byte [ebp - 1], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, byte [ebp - 1]
pop edi
jmp 0x405a54

Function at 0x405c6d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x405c7b
xor al, al
leave
ret
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
test edi, edi
jbe 0x405caf
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, edi
sub eax, esi
push eax
mov eax, dword [ebp + 0xc]
add eax, esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405caf
add esi, dword [ebp - 4]
cmp esi, edi
jb 0x405c86
xor eax, eax
cmp esi, edi
pop edi
sete al
pop esi
leave
ret
Function at 0x405cd1
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, 0x208
push edi
call fcn.004048b9
push edi
mov esi, eax
call fcn.004048b9
pop ecx
pop ecx
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ecx, dword [esp + 0xc]
push edi
call fcn.0040140d
push edi
call fcn.004048cd
push esi
call fcn.004048cd
mov eax, dword [esp + 0x14]
pop ecx
pop ecx
pop edi
pop esi
ret 4
Function at 0x4066d2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
push ecx
mov esi, ecx
mov ecx, esp
push ebx
call fcn.00401037
mov ecx, dword [esi]
push 0x14
xor edi, edi
push edi
push edi
call fcn.004026eb
test dword [ebp + 8], 0x200
je 0x406732
push ecx
push ecx
mov ecx, esp
push ebx
call fcn.00401037
mov ecx, esi
call fcn.00405f57
test al, al
je 0x406732
push edi
push 3
push ecx
push ecx
mov ecx, esp
push ebx
call fcn.00401037
call fcn.0040632f
add esp, 0x10
cmp eax, edi
je 0x40673b
push eax
call fcn.00405cba
pop ecx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8
push edi
push 4
push ecx
push ecx
mov ecx, esp
push ebx
call fcn.00401037
call fcn.0040632f
add esp, 0x10
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x406732
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
je 0x406773
xor esi, esi
inc esi
push dword [ebp + 0xc]
call fcn.00405cba
pop ecx
mov eax, esi
jmp 0x406734
push ecx
push ecx
mov ecx, esp
push ebx
call fcn.00401037
mov ecx, dword [esi]
push 0x416
push 1
push edi
call fcn.004026eb
push 2
pop esi
jmp 0x406766

Function at 0x4073ad
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [fcn.00408e81]
xor eax, ebp
mov dword [ebp + 0x190], eax
mov eax, dword [0x40e108]
push esi
mov esi, dword [ebp + 0x19c]
mov dword [ebp - 0x7c], esi
test eax, eax
je 0x4073ea
push eax
mov ecx, esi
call fcn.00401037
mov eax, esi
jmp 0x40747e
and dword [ebp - 0x80], 0
push edi
push 0x40d0c0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x407423
push ebx
push 0x40d0b0
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x407422
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
pop ebx
cmp dword [ebp - 0x80], 0
je 0x407459
push 0x40d094
push edi
call esi
test eax, eax
je 0x407459
push 0x104
lea ecx, [ebp - 0x78]
push ecx
call eax
push 8
call fcn.004048b9
pop ecx
test eax, eax
je 0x40746a
lea ecx, [ebp - 0x78]
push ecx
mov ecx, eax
call fcn.0040140d
jmp 0x40746c
push 0x104
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
jmp 0x407440
xor eax, eax
mov ecx, dword [ebp - 0x7c]
push eax
mov dword [0x40e108], eax
call fcn.00401037
mov eax, dword [ebp - 0x7c]
pop edi
mov ecx, dword [ebp + 0x190]
xor ecx, ebp
pop esi
call fcn.00408e81
add ebp, 0x194
leave
ret
Function at 0x401021
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
leave
ret
Function at 0x40137b
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x4111b4]
push ebx
push esi
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push str.APP_PACK
push eax
push dword [0x411d20]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0x401458
push edi
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x40d24c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push dword [0x411d20]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push dword [0x411d20]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call fcn.00401350
pop ecx
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.004053c5
leave
ret
Function at 0x401467
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x4111b4]
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x401597
push ebx
push dword [ebp + 8]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
call ebx
test eax, eax
je 0x401596
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x664]
push 0x40d274
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x664]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ebp - 0x254]
push ecx
mov dword [ebp - 0x668], eax
push eax
jmp 0x40156f
push 0x40d270
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401562
push 0x40d268
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x401562
lea eax, [ebp - 0x228]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x45c]
push str._s_s
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x45c]
push eax
call ebx
test eax, eax
je 0x401555
cmp dword [ebp + 0x10], 0
je 0x401555
push 1
lea eax, [ebp - 0x45c]
push 1
push eax
call fcn.00401467
add esp, 0xc
jmp 0x401562
lea eax, [ebp - 0x45c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x668]
call edi
test eax, eax
jne 0x4014e6
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 0xc], 0
pop edi
pop esi
je 0x401596
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop ebx
mov ecx, dword [ebp - 4]
call fcn.004053c5
leave
ret
Function at 0x402c30
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x402c3b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x402d33
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x40d530]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40d530]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40d530]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40d530]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40d530]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40d530]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40d530]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x40d530]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x402c56
test edi, edi
je 0x402d52
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x40d530]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x402d37
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x4059a4
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40de48
call fcn.00406948
mov edi, 0x94
mov eax, edi
call fcn.00405440
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4126a4], ecx
mov eax, dword [esi + 4]
mov dword [0x4126b0], eax
mov edx, dword [esi + 8]
mov dword [0x4126b4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4126a8], esi
cmp ecx, 2
je 0x405a04
or esi, 0x8000
mov dword [0x4126a8], esi
shl eax, 8
add eax, edx
mov dword [0x4126ac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x405a3f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405a3f
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x405a57
cmp eax, 0x20b
je 0x405a44
mov dword [ebp - 0x1c], esi
jmp 0x405a6b
cmp dword [ecx + 0x84], 0xe
jbe 0x405a3f
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x405a65
cmp dword [ecx + 0x74], 0xe
jbe 0x405a3f
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00405c4e
pop ecx
test eax, eax
jne 0x405a7f
push 0x1c
call fcn.00405980
pop ecx
call fcn.004095b4
test eax, eax
jne 0x405a90
push 0x10
call fcn.00405980
pop ecx
call fcn.0040934e
mov dword [ebp - 4], esi
call fcn.00408702
test eax, eax
jge 0x405aa9
push 0x1b
call fcn.0040595b
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x413d88], eax
call fcn.0040922c
mov dword [0x41252c], eax
call fcn.0040918a
test eax, eax
jge 0x405acf
push 8
call fcn.0040595b
pop ecx
call fcn.00408f57
test eax, eax
jge 0x405ae0
push 9
call fcn.0040595b
pop ecx
push 1
call fcn.00408a79
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x405af6
push eax
call fcn.0040595b
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00408efa
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x405b17
movzx eax, word [ebp - 0x40]
jmp 0x405b1a
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00401686
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x405b38
push edi
call fcn.00408ba6
call fcn.00408bc8
jmp 0x405b6a
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00406983
ret