joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419a13
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00420160
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
je 0x419b39
cmp word [esi], 0
je 0x419b39
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 0x3d
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrChrW]
call esi
mov edi, eax
test edi, edi
je 0x419b39
and word [edi], 0
inc edi
push 0x2c
inc edi
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x419b39
and word [ebx], 0
and dword [ebp - 4], 0
inc ebx
push 0x2c
inc ebx
push ebx
call esi
mov esi, eax
test esi, esi
je 0x419ae1
inc esi
push ebx
inc esi
call fcn.0040ac04
push eax
call fcn.00403b00
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 8], eax
jge 0x419a9a
and dword [ebp - 8], 0
push esi
call fcn.0040ac04
pop ecx
push eax
call dword [sym.imp.USER32.dll_CharUpperW]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
mov esi, eax
test esi, esi
jle 0x419ae1
movzx eax, word [edi]
push eax
call fcn.00403ab0
pop ecx
mov word [edi], ax
xor edx, edx
lea ecx, [esi - 1]
jmp 0x419b32
cmp word [ebx + ecx*2], ax
jne 0x419b31
inc edx
cmp dword [ebp - 8], 0
jle 0x419b2b
cmp edx, dword [ebp - 8]
jne 0x419b31
inc ecx
mov dword [ebp - 4], ecx
and word [ebp - 0x1008], 0
push 0xffe
lea eax, [ebp - 0x1006]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp - 4]
lea eax, [ebp - 0x1008]
push 0x4025ac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x1008]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x419b3c
lea esi, [ecx + 1]
mov dword [ebp - 4], esi
dec ecx
cmp ecx, 0xffffffff
jg 0x419acb
jmp 0x419ae1
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419b41
Capabilities:
Set environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
push edi
je 0x419bc4
cmp word [ebx], 0
je 0x419bc4
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov edi, dword [sym.imp.SHLWAPI.dll_StrChrW]
push 0x3d
push ebx
call edi
mov esi, eax
test esi, esi
je 0x419bc4
and word [esi], 0
inc esi
push 0x2c
inc esi
push esi
call edi
test eax, eax
je 0x419bc0
and word [eax], 0
add eax, 2
push eax
call fcn.0040ac04
push esi
mov edi, eax
call fcn.0040ac04
push eax
call fcn.00403b00
add esp, 0xc
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp esi, 1
jge 0x419ba8
mov esi, eax
sub eax, esi
jns 0x419bae
xor eax, eax
lea eax, [edi + eax*2]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
jmp 0x419bc7
push 0
jmp 0x419bb2
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
ret
Function at 0x419bcb
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xa0
push edi
mov edi, dword [ebp + 0x7c]
test edi, edi
je 0x419c4c
cmp word [edi], 0
je 0x419c4c
push 0x57
call dword [sym.imp.KERNEL32.DLL_SetLastError]
push 0x3d
push edi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x419c4c
and word [eax], 0
add eax, 2
push ebx
push eax
call fcn.0040ac04
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
and word [ebp - 0x2c], 0
push 0x9e
mov ebx, eax
lea eax, [ebp - 0x2a]
push 0
push eax
call sub.MSVCRT.dll_memset
push ebx
lea eax, [ebp - 0x2c]
push 0x4025ac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
neg eax
sbb eax, eax
inc eax
pop ebx
jmp 0x419c4f
xor eax, eax
inc eax
pop edi
add ebp, 0x74
leave
ret

Function at 0x419c6b
Capabilities:
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
mov edi, 0x206
xor ebx, ebx
push edi
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp word [ebp - 0x208], bx
je 0x419cfa
push edi
lea eax, [ebp - 0x40e]
push ebx
push eax
mov word [ebp - 0x410], bx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00409bc8
add esp, 0xc
jmp 0x419d0a
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x419d1f
Capabilities:
Get common file path
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov dword [0x423438], eax
call fcn.00419c55
push 0x206
mov dword [0x422754], eax
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call sub.MSVCRT.dll_memset
push 1
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.0040ba39
add esp, 0x18
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edi, 0x104
push edi
mov esi, 0x423660
push esi
push ebx
mov dword [0x423448], eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push esi
push 0x4035f8
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov esi, 0x423450
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push esi
call fcn.0040acda
mov dword [esp], 0x402620
push 0x403460
call fcn.00419c6b
push esi
push 0x403450
call fcn.00419c6b
add esp, 0x10
push esi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x208]
push eax
push 0x403440
mov word [ebp - 0x204], bx
call fcn.00419c6b
push 0xc
push 0x401ce0
push 0x423868
call fcn.0040b099
add esp, 0x14
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b15b
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push edi
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp dword [esi + 0x1c], edi
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], ecx
je 0x41b1b6
cmp dword [esi + 0x14], 1
jbe 0x41b1b6
cmp dword [esi + 4], edi
jne 0x41b1b6
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x40a47c
push edi
push edi
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x41b1af
xor eax, eax
inc eax
jmp 0x41b1b8
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x41b3bf
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x1cc
push ebx
push esi
push edi
push 0x2c
push 3
push dword [ebp + 0x7c]
lea eax, [ebp - 0x158]
xor ebx, ebx
push eax
inc ebx
call fcn.0040ad20
add esp, 0x10
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x28]
test edi, edi
je 0x41b56d
movzx eax, word [edi]
test ax, ax
je 0x41b56d
xor ecx, ecx
cmp ax, 0x24
sete cl
test ecx, ecx
mov dword [ebp + 0x68], ecx
je 0x41b419
inc edi
inc edi
mov esi, dword [ebp + 0x30]
test esi, esi
mov byte [ebp + 0x73], bl
je 0x41b44e
cmp word [esi], 0
je 0x41b44e
xor bl, bl
movzx eax, bl
shl eax, 4
add eax, 0x4020e0
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x41b44b
inc bl
cmp bl, 4
jb 0x41b42b
jmp 0x41b44e
mov byte [ebp + 0x73], bl
movzx esi, byte [ebp + 0x73]
xor ecx, ecx
cmp dword [ebp + 0x68], ecx
mov dword [ebp + 0x6c], ecx
mov eax, esi
je 0x41b48b
sub eax, ecx
je 0x41b483
dec eax
je 0x41b47b
dec eax
je 0x41b473
dec eax
jne 0x41b4ba
push edi
call fcn.00412fab
jmp 0x41b4b6
push edi
call fcn.00412d14
jmp 0x41b4b6
push edi
call fcn.0041b31c
jmp 0x41b4b6
push edi
call fcn.00412beb
jmp 0x41b4b6
sub eax, ecx
je 0x41b4b0
dec eax
je 0x41b4a8
dec eax
je 0x41b4a0
dec eax
jne 0x41b4ba
push edi
call fcn.00412eb1
jmp 0x41b4b6
push edi
call fcn.00412dcd
jmp 0x41b4b6
push edi
call fcn.0041b269
jmp 0x41b4b6
push edi
call fcn.00412c7e
mov dword [ebp + 0x6c], eax
pop ecx
mov eax, dword [ebp + 0x2c]
test eax, eax
je 0x41b4d8
cmp word [eax], 0
je 0x41b4d8
push dword [ebp + 0x6c]
push eax
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x41b56d
and word [ebp - 0x78], 0
mov edi, 0x9e
push edi
lea eax, [ebp - 0x76]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
shl esi, 4
add esi, 0x4020e0
push esi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push dword [ebp + 0x6c]
call fcn.0040ab36
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
je 0x41b559
push edi
lea eax, [ebp - 0x116]
push esi
push eax
mov word [ebp - 0x118], si
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x50
lea eax, [ebp - 0x118]
push eax
push 0x2721
push dword [0x423438]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcatW]
push esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x6c]
push dword [0x423434]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
test ebx, ebx
pop esi
sete al
pop ebx
add ebp, 0x74
leave
ret
Function at 0x41b696
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc4
mov eax, dword [ebp + 0x7c]
push ebx
xor ebx, ebx
cmp word [eax], 0x23
push esi
sete bl
movzx ecx, bl
lea esi, [eax + ecx*2]
test esi, esi
push edi
mov dword [ebp + 0x70], 1
je 0x41b7de
cmp word [esi], 0
je 0x41b7de
push 0x3d
push esi
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov edi, eax
test edi, edi
je 0x41b7de
and word [edi], 0
inc edi
push esi
inc edi
call fcn.0040ac04
xor esi, esi
cmp ebx, esi
pop ecx
mov dword [ebp + 0x7c], eax
jne 0x41b721
push 0x23
push esi
push edi
call dword [sym.imp.SHLWAPI.dll_StrRChrW]
test eax, eax
je 0x41b71e
and word [eax], si
add eax, 2
push eax
call fcn.00403b00
mov esi, eax
cmp esi, 0x10
pop ecx
jbe 0x41b721
push 0x10
jmp 0x41b720
push 6
pop esi
push edi
call fcn.0040ac04
pop ecx
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x41b7de
cmp word [ecx], 0
je 0x41b7de
test eax, eax
je 0x41b7de
cmp word [eax], 0
je 0x41b7de
fldz
xor ebx, ebx
mov edi, 0x402314
fstp qword [ebp + 0x60]
push eax
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x50], edi
mov dword [ebp + 0x58], 6
mov dword [ebp + 0x68], ebx
mov dword [ebp + 0x6c], ebx
call fcn.0041b089
test eax, eax
je 0x41b7cc
push 0x9e
lea eax, [ebp - 0x4e]
push ebx
push eax
mov word [ebp - 0x50], bx
call sub.MSVCRT.dll_memset
fld qword [ebp + 0x60]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push esi
push ecx
push ecx
fstp qword [esp]
call fcn.004069de
lea eax, [ebp - 0x50]
push eax
call fcn.0040ac04
add esp, 0x14
push eax
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
mov esi, eax
neg esi
sbb esi, esi
lea ecx, [ebp + 0x50]
inc esi
mov dword [ebp + 0x50], edi
call fcn.00406fa4
mov eax, esi
jmp 0x41b7ea
lea ecx, [ebp + 0x50]
mov dword [ebp + 0x70], 0x57
mov dword [ebp + 0x50], edi
call fcn.00406fa4
push dword [ebp + 0x70]
call dword [sym.imp.KERNEL32.DLL_SetLastError]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x41b96a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x10]
xor edi, edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov ebx, eax
cmp ebx, edi
je 0x41b9ee
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
cmp eax, 3
mov esi, dword [ebp + 0x14]
mov dword [esi], eax
jbe 0x41b9ed
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
mov eax, dword [esi]
add eax, 0x10
push eax
call fcn.00403a40
pop ecx
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push dword [esi]
push ebx
push edi
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi]
add esp, 0xc
push ebx
mov byte [edi + eax], 0
call dword [sym.imp.KERNEL32.DLL_FreeResource]
test edi, edi
je 0x41b9ed
cmp dword [esi], 0xc
jbe 0x41b9ed
push 1
push dword [ebp + 0x18]
push esi
push edi
call fcn.0041b8e7
add esp, 0x10
mov edi, eax
pop esi
mov eax, edi
pop edi
pop ebx
pop ebp
ret
Function at 0x41be8e
Capabilities:
Set environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x130
push ebx
push esi
push edi
push 0x2c
push 4
push dword [ebp + 0x7c]
lea eax, [ebp - 0xbc]
push eax
mov dword [ebp + 0x70], 1
call fcn.0040ad20
add esp, 0x10
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 0x24]
xor ebx, ebx
cmp esi, ebx
je 0x41bfb7
cmp word [esi], bx
je 0x41bfb7
push esi
call fcn.00403cd5
test eax, eax
pop ecx
je 0x41bfb7
mov eax, dword [ebp + 0x2c]
cmp eax, ebx
je 0x41bfb7
cmp word [eax], bx
je 0x41bfb7
push ebx
push ebx
push ebx
push esi
call fcn.0041bae7
mov edi, eax
add esp, 0x10
cmp edi, ebx
je 0x41bfb7
push edi
call fcn.0040bd6b
movzx eax, al
add esp, 4
lea ecx, [ebp + 0x64]
lea esi, [edi + eax*2]
call fcn.0040a882
push 1
push esi
lea ecx, [ebp + 0x64]
call fcn.0040aa7c
mov eax, dword [ebp + 0x28]
xor esi, esi
cmp eax, ebx
je 0x41bf4b
cmp word [eax], bx
je 0x41bf4b
push eax
call fcn.00403b00
pop ecx
mov esi, eax
and word [ebp - 0x7c], bx
push 0x9e
lea eax, [ebp - 0x7a]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
test esi, esi
jge 0x41bf82
mov eax, dword [ebp + 0x68]
inc eax
push eax
lea eax, [ebp - 0x7c]
push 0x4025ac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ebx, [ebp - 0x7c]
jmp 0x41bf9a
jne 0x41bf89
push dword [ebp + 0x68]
jmp 0x41bf90
dec esi
cmp esi, dword [ebp + 0x68]
jg 0x41bf9a
push esi
lea ecx, [ebp + 0x64]
call fcn.0040a89e
mov ebx, eax
push ebx
push dword [ebp + 0x2c]
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
push edi
call sub.MSVCRT.dll_free
and dword [ebp + 0x70], 0
pop ecx
lea ecx, [ebp + 0x64]
call fcn.0041b22b
mov eax, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret

Function at 0x41c09b
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x206]
push ebx
push eax
mov word [ebp - 0x208], bx
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [ebp - 0x208]
push 0x403658
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x458]
push eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov edi, eax
cmp edi, ebx
je 0x41c0fb
cmp edi, 0xffffffff
jne 0x41c0ff
xor eax, eax
jmp 0x41c14e
lea eax, [ebp - 0x42c]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push 0x4025f8
push eax
call esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
call fcn.0041c03f
add esp, 0x1c
test eax, eax
je 0x41c133
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x458]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41c0ff
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c52d
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x660
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp - 0x40e]
push edi
push eax
mov word [ebp - 0x410], di
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x206]
push edi
push eax
mov word [ebp - 0x208], di
call sub.MSVCRT.dll_memset
add esp, 0x18
push dword [ebp + 8]
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x410]
push eax
call fcn.00403cb6
pop ecx
lea eax, [ebp - 0x660]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, edi
je 0x41c63a
cmp esi, 0xffffffff
je 0x41c63a
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x208]
push 0x4025f8
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
test byte [ebp - 0x660], 0x10
je 0x41c600
lea eax, [ebp - 0x634]
push eax
call fcn.00409b9a
test eax, eax
pop ecx
jne 0x41c61d
push dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push eax
call fcn.0041c09b
add esp, 0xc
jmp 0x41c61b
push dword [ebp + 0x18]
lea eax, [ebp - 0x208]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.0041c3e2
add esp, 0x14
mov edi, eax
lea eax, [ebp - 0x660]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x41c5ac
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x41cc97
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x58]
push ebx
push eax
call sub.MSVCRT.dll_memset
xor eax, eax
mov dword [ebp - 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
inc edi
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x5c], 0x44
mov dword [ebp - 0x54], 0x403608
mov dword [ebp - 0x30], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
xor ecx, ecx
mov eax, dword [ebp + 8]
movzx eax, word [eax]
cmp ax, 0x21
jne 0x41cceb
mov dword [ebp - 4], ebx
jmp 0x41cd35
cmp ax, 0x40
jne 0x41ccfa
mov dword [ebp - 0x54], 0x40376c
jmp 0x41cd35
cmp ax, 0x3d
jne 0x41cd05
mov dword [ebp - 8], edi
jmp 0x41cd35
cmp ax, 0x5f
jne 0x41cd14
mov dword [ebp - 4], 6
jmp 0x41cd35
cmp ax, 0x26
jne 0x41cd23
mov dword [ebp - 4], 3
jmp 0x41cd35
cmp ax, 0x24
jne 0x41cd2d
mov edx, edi
jmp 0x41cd35
cmp ax, 0x23
jne 0x41cd3b
mov ecx, edi
add dword [ebp + 8], 2
jmp 0x41ccda
cmp ecx, ebx
je 0x41cd8e
push 0x20
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
mov esi, eax
cmp esi, ebx
je 0x41cd55
mov word [esi], bx
inc esi
inc esi
push dword [ebp + 8]
call fcn.00403b00
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], ebx
call fcn.0041cc74
add esp, 0xc
cmp eax, ebx
je 0x41cd87
push esi
push edi
push dword [ebp - 4]
push dword [ebp + 8]
push eax
call fcn.004129e2
add esp, 0x14
jmp 0x41ce39
mov eax, edi
jmp 0x41ce39
cmp edx, ebx
mov edi, dword [sym.imp.KERNEL32.DLL_SetProcessWorkingSetSize]
jne 0x41cdf7
mov ax, word [ebp - 4]
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, eax
cmp esi, ebx
je 0x41cdec
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x423448]
call edi
cmp dword [ebp - 8], ebx
je 0x41cdda
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp esi, ebx
sete al
cmp eax, ebx
je 0x41ce26
push ebx
push dword [ebp + 8]
call fcn.0040ac22
pop ecx
pop ecx
movzx ecx, word [ebp - 4]
push ecx
push ebx
push eax
push dword [ebp + 8]
push 0x403760
push dword [0x423434]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1f
pop ecx
cmp ecx, eax
sbb esi, esi
neg esi
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [0x423448]
call edi
xor eax, eax
cmp esi, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f27e
Capabilities:
Get common file path
Query environment variable
Set current directory
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa2c
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xa2c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
push 1
xor ebx, ebx
push ebx
lea eax, [ebp - 0xa2c]
push ebx
push eax
call fcn.0041bae7
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x41f2bc
xor eax, eax
inc eax
jmp 0x41f3dd
push esi
push edi
mov esi, 0x206
push esi
lea eax, [ebp - 0x61a]
push ebx
push eax
mov word [ebp - 0x61c], bx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x20a]
push ebx
push eax
mov word [ebp - 0x20c], bx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x822]
push ebx
push eax
mov word [ebp - 0x824], bx
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x412]
push ebx
push eax
mov word [ebp - 0x414], bx
call sub.MSVCRT.dll_memset
mov edi, dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
add esp, 0x30
mov esi, 0x104
push esi
lea eax, [ebp - 0x61c]
push eax
push 0x403440
call edi
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x403450
call edi
push esi
lea eax, [ebp - 0x414]
push eax
push 0x403460
call edi
lea eax, [ebp - 0x824]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
lea eax, [ebp - 0xa2c]
push eax
call fcn.00417b01
push dword [ebp - 4]
call fcn.00417a37
cmp word [ebp - 0x61c], bx
mov esi, dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableW]
pop ecx
pop ecx
mov edi, eax
je 0x41f395
lea eax, [ebp - 0x61c]
push eax
push 0x403440
call esi
cmp word [ebp - 0x20c], bx
je 0x41f3ac
lea eax, [ebp - 0x20c]
push eax
push 0x403450
call esi
cmp word [ebp - 0x414], bx
je 0x41f3c3
lea eax, [ebp - 0x414]
push eax
push 0x403460
call esi
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push dword [ebp - 4]
call sub.MSVCRT.dll_free
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41f3e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
and word [ebp - 0x804], 0
push ebx
mov ebx, dword [0x42344c]
push esi
push edi
push 0x7fe
xor esi, esi
lea eax, [ebp - 0x802]
push 0
inc esi
push eax
mov dword [ebp - 4], esi
call sub.MSVCRT.dll_memset
mov edi, dword [ebp + 8]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_lstrlenW]
cmp eax, esi
jle 0x41f47b
cmp word [edi], 0x5c
je 0x41f431
cmp word [edi + 2], 0x3a
jne 0x41f485
push edi
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
lea eax, [ebp - 0x804]
push eax
call fcn.004106d7
lea eax, [ebp - 0x804]
push eax
call fcn.00403cd5
test eax, eax
pop ecx
pop ecx
je 0x41f46d
lea eax, [ebp - 0x804]
push eax
call fcn.0041f27e
pop ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [0x42344c], ebx
pop ebx
leave
ret
test eax, eax
jle 0x41f485
cmp word [edi], 0x5c
je 0x41f431
lea eax, [ebp - 0x804]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatW]
push 0x402e4c
lea eax, [ebp - 0x804]
push eax
call esi
push edi
lea eax, [ebp - 0x804]
push eax
call esi
jmp 0x41f43f
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x4010d4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, str._ccav_
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.00401224
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401108
push ebx
call fcn.0040fae3
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [0x41bef1]
test ebx, ebx
je 0x40111f
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [0x41bef1], eax
push 0x41b216
push dword [0x41bef1]
call fcn.00401037
add esp, 8
cmp eax, 0
jne 0x401165
mov dword [ebp - 8], esp
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00401448
call fcn.00403124
call main
call fcn.004033f7
call fcn.0040d441
mov eax, str._25f4dfcfe4a5b36f_
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401194
push ebx
call fcn.0040fae3
add esp, 4
pop eax
mov dword [ebp - 4], eax
jmp 0x40119d
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4011ad
push ebx
call fcn.0040fae3
add esp, 4
mov esp, ebp
pop ebp
ret