joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10013d73
Capabilities:
Create directory
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x10023230]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
mov dword [ebp - 0x210], edi
cmp dword [0x10023688], edi
jne 0x10013da3
mov eax, 0x80004005
jmp 0x10013ed0
push esi
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.api_ms_win_core_file_l1_2_0.dll_GetTempPathW]
test eax, eax
je 0x10013dbf
cmp eax, esi
jbe 0x10013ddc
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x10013dd6
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x10013ec6
push ebx
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.100160e8
mov esi, eax
test esi, esi
js 0x10013ebf
mov edi, dword [ebp - 0x210]
push 0
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
mov ebx, 0xb7
test eax, eax
jne 0x10013e33
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, ebx
je 0x10013e33
test eax, eax
jg 0x10013e22
mov esi, eax
jmp 0x10013e2b
movzx esi, ax
or esi, 0x80070000
test esi, esi
js 0x10013ec5
push dword [0x10023680]
call sub.msvcrt.dll_free
pop ecx
mov dword [0x10023680], edi
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
mov dword [ebp - 0x210], edi
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x10013e8f
push 0x1000ae30
lea ecx, [ebp - 0x20c]
call fcn.10011f5c
test eax, eax
js 0x10013e8f
lea edx, [ebp - 0x210]
lea ecx, [ebp - 0x20c]
call fcn.100160e8
mov esi, eax
test esi, esi
js 0x10013ebf
mov edi, dword [ebp - 0x210]
push 0
push edi
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateDirectoryW]
test eax, eax
jne 0x10013ea9
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, ebx
je 0x10013ea9
xor esi, esi
inc esi
push dword [0x10023680]
call sub.msvcrt.dll_free
mov dword [0x10023680], edi
xor edi, edi
pop ecx
jmp 0x10013ec5
mov edi, dword [ebp - 0x210]
pop ebx
push edi
call sub.msvcrt.dll_free
pop ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1001f610
leave
ret
Function at 0x100164f0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, ecx
push esi
mov dword [ebp - 8], ebx
lea esi, [ebx - 0xc]
neg esi
lea eax, [ebx + 4]
sbb esi, esi
and esi, eax
je 0x1001651a
lea eax, [esi + 4]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
cmp dword [ebx + 0x8c], 0
je 0x100166a3
and dword [ebx + 0x8c], 0
push edi
push dword [ebx + 0x5c]
call sub.msvcrt.dll_free
pop ecx
mov ecx, dword [ebx + 0x6c]
test ecx, ecx
je 0x10016553
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100241f0]
call edi
and dword [ebx + 0x6c], 0
mov ecx, dword [ebx + 0x70]
test ecx, ecx
je 0x1001656e
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100241f0]
call edi
and dword [ebx + 0x70], 0
mov eax, dword [ebx + 0x74]
test eax, eax
je 0x100165c1
mov edi, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x1000ae58
push eax
mov ecx, dword [edi]
call dword [0x100241f0]
call dword [edi]
test eax, eax
js 0x100165c1
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x100241f0]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x100165be
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100241f0]
call edi
and dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
and dword [ebx + 0x74], 0
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x10016618
mov edi, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x1000ae58
push eax
mov ecx, dword [edi]
call dword [0x100241f0]
call dword [edi]
test eax, eax
js 0x10016618
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x100241f0]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10016615
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100241f0]
call edi
and dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
and dword [ebx + 0x7c], 0
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x1001666f
mov edi, dword [eax]
lea ecx, [ebp - 4]
push ecx
push 0x1000ae58
push eax
mov ecx, dword [edi]
call dword [0x100241f0]
call dword [edi]
test eax, eax
js 0x1001666f
mov ebx, dword [ebp - 4]
mov eax, dword [ebx]
mov edi, dword [eax + 0xc]
mov ecx, edi
call dword [0x100241f0]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x1001666c
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100241f0]
call edi
and dword [ebp - 4], 0
mov ebx, dword [ebp - 8]
mov ecx, dword [ebx + 0x78]
test ecx, ecx
je 0x1001668a
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100241f0]
call edi
and dword [ebx + 0x78], 0
cmp dword [ebx + 0x64], 0
pop edi
je 0x100166a3
push dword [ebx + 0x64]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
push dword [ebx + 0x64]
call sub.msvcrt.dll_free
pop ecx
test esi, esi
je 0x100166b1
add esi, 4
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10018d70
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebx
mov ebx, ecx
push esi
lea esi, [ebx - 4]
neg esi
lea eax, [ebx + 4]
sbb esi, esi
and esi, eax
je 0x10018d8e
lea eax, [esi + 4]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
cmp dword [ebx + 0x94], 0
je 0x10018e51
and dword [ebx + 0x94], 0
cmp dword [ebx + 0x9c], 0
je 0x10018db5
push 0
lea ecx, [ebx - 4]
call fcn.1001981f
mov ecx, dword [ebx + 0x8c]
push edi
test ecx, ecx
je 0x10018dd7
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100241f0]
call edi
and dword [ebx + 0x8c], 0
cmp dword [ebx + 0x98], 0
je 0x10018dec
push dword [ebx + 0x90]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_DeleteFileW]
push dword [ebx + 0x90]
call sub.msvcrt.dll_free
push dword [ebx + 0x6c]
call sub.msvcrt.dll_free
push dword [ebx + 0x74]
call sub.msvcrt.dll_free
mov ecx, dword [ebx + 0x84]
add esp, 0xc
test ecx, ecx
je 0x10018e2b
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100241f0]
call edi
and dword [ebx + 0x84], 0
mov ecx, dword [ebx + 0x88]
test ecx, ecx
je 0x10018e4c
mov eax, dword [ecx]
push ecx
mov edi, dword [eax + 8]
mov ecx, edi
call dword [0x100241f0]
call edi
and dword [ebx + 0x88], 0
and dword [ebx + 0x20], 0
pop edi
test esi, esi
je 0x10018e5f
add esi, 4
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
pop esi
xor eax, eax
pop ebx
ret
Function at 0x100190ad
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
or dword [ebp - 8], 0xffffffff
push ebx
push esi
mov ebx, ecx
xor ecx, ecx
mov esi, ebx
mov dword [ebp - 4], ecx
neg esi
mov dword [ebp - 0x10], ecx
push edi
lea eax, [ebx + 8]
mov dword [ebp - 0xc], ecx
sbb esi, esi
mov edi, ecx
and esi, eax
je 0x100190e4
lea eax, [esi + 4]
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_EnterCriticalSection]
xor ecx, ecx
cmp dword [ebx + 0x98], ecx
jne 0x100190f6
mov edi, 0x802a0035
jmp 0x1001927b
mov eax, dword [ebx + 0x94]
test eax, eax
jne 0x1001910a
mov edi, 0x80004005
jmp 0x10019284
cmp dword [ebx + 0x9c], ecx
jne 0x1001927b
push ecx
push 0x80
push 2
push ecx
push 1
push 0xc0000000
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x10019167
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
je 0x1001915d
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x1001927b
movzx edi, di
or edi, 0x80070000
jmp 0x1001927b
mov edi, 0x8000ffff
jmp 0x1001927b
mov eax, dword [ebx]
lea ecx, [ebp - 0xc]
push ecx
push ebx
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x100241f0]
call edi
push 1
mov ecx, ebx
call fcn.1001981f
mov edi, eax
test edi, edi
js 0x1001927b
jmp 0x100191dd
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
mov eax, dword [ebx + 0x78]
add eax, dword [ebx + 0x80]
push eax
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
test eax, eax
jne 0x100191cb
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x100191c5
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x1001927b
mov eax, dword [ebp - 4]
add dword [ebx + 0x84], eax
mov eax, dword [ebp - 0x10]
add dword [ebx + 0x80], eax
lea eax, [ebp - 4]
mov ecx, ebx
push eax
call fcn.1001972f
mov eax, dword [ebp - 4]
test eax, eax
jne 0x10019190
mov eax, dword [ebx + 0x84]
mov edi, eax
sub edi, dword [ebx + 0x30]
neg edi
sbb edi, edi
and edi, 0x802a0021
cmp eax, dword [ebx + 0x30]
jne 0x1001927b
push 0
mov ecx, ebx
call fcn.1001981f
mov edi, eax
test edi, edi
js 0x1001927b
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
lea edx, [ebx + 0x90]
mov ecx, dword [ebx + 0x94]
or dword [ebp - 8], 0xffffffff
mov dword [ebp - 0x14], eax
call fcn.1001546a
mov edi, eax
test edi, edi
js 0x1001927b
mov eax, dword [ebx + 0x90]
lea edx, [ebp - 0x14]
push edx
push eax
mov ecx, dword [eax]
mov edi, dword [ecx + 0x10]
mov ecx, edi
call dword [0x100241f0]
call edi
mov edi, eax
test edi, edi
js 0x1001927b
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x10019271
mov edi, 0x80004005
jmp 0x1001927b
mov dword [ebx + 0x9c], 1
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test esi, esi
je 0x10019292
add esi, 4
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001a34a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x1001a40b
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000aef8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000aef8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000aef8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000aef8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000aef8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000aef8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000aef8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000aef8]
sub edi, 1
jne 0x1001a364
pop edi
test esi, esi
je 0x1001a427
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x1000aef8]
inc edx
sub esi, 1
jne 0x1001a40f
not ecx
mov eax, ecx
pop esi
pop ebp
ret 4
Function at 0x1001b024
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov ebx, dword [edi + 0x24]
mov ecx, dword [edi + 0x6c]
mov esi, dword [edi + 0x34]
mov edx, dword [edi + 0x64]
sub esi, edx
sub esi, ecx
jne 0x1001b055
test edx, edx
jne 0x1001b062
test ecx, ecx
jne 0x1001b062
mov esi, ebx
jmp 0x1001b0e4
cmp esi, 0xffffffff
jne 0x1001b062
push 0xfffffffffffffffe
pop esi
jmp 0x1001b0e4
mov eax, dword [edi + 0x24]
add eax, 0xfffffefa
add eax, ebx
cmp edx, eax
jb 0x1001b0e4
mov ecx, dword [edi + 0x30]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call sub.msvcrt.dll_memcpy
mov ecx, dword [edi + 0x44]
add esp, 0xc
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
sub dword [edi + 0x54], ebx
mov edi, ecx
mov dword [ebp - 8], ecx
lea edx, [eax + ecx*2]
lea edx, [edx - 2]
movzx eax, bx
movzx ecx, word [edx]
mov dword [ebp - 8], eax
mov eax, ecx
sub ecx, dword [ebp - 8]
cmp eax, ebx
sbb eax, eax
not eax
and eax, ecx
mov word [edx], ax
sub edi, 1
jne 0x1001b098
mov edi, dword [ebp - 0xc]
mov eax, dword [edi + 0x38]
mov edi, ebx
lea edx, [eax + ebx*2]
lea edx, [edx - 2]
movzx ecx, word [edx]
mov eax, ecx
sub ecx, dword [ebp - 8]
cmp eax, ebx
sbb eax, eax
not eax
and eax, ecx
mov word [edx], ax
sub edi, 1
jne 0x1001b0c4
mov edi, dword [ebp - 0xc]
add esi, ebx
mov ecx, dword [edi]
mov dword [ebp - 8], ecx
mov edx, dword [ecx + 4]
test edx, edx
je 0x1001b1a3
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x30]
add ecx, eax
mov dword [ebp - 0x14], eax
mov eax, ecx
mov dword [ebp - 4], ecx
add eax, dword [edi + 0x64]
mov ecx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, edx
mov dword [ebp - 0x10], eax
cmp eax, esi
ja 0x1001b118
mov esi, edx
test esi, esi
jne 0x1001b121
mov eax, dword [ebp - 0x14]
jmp 0x1001b15f
mov eax, dword [ecx + 0x1c]
sub edx, esi
mov dword [ecx + 4], edx
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
cmp dword [eax + 0x18], 0
jne 0x1001b147
push esi
push edx
push dword [ecx + 0x30]
call fcn.1001c4d0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0x30], eax
push esi
push edx
push dword [ebp - 4]
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 8]
add esp, 0xc
add dword [eax], esi
add dword [eax + 8], esi
mov eax, dword [edi + 0x6c]
lea ecx, [eax + esi]
mov dword [ebp - 0x14], ecx
mov dword [edi + 0x6c], ecx
cmp ecx, 3
jb 0x1001b18f
mov edx, dword [edi + 0x30]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x50]
movzx esi, byte [edx + eax]
mov dword [edi + 0x40], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
mov ecx, dword [ebp - 0x14]
xor esi, eax
and esi, dword [edi + 0x4c]
mov dword [edi + 0x40], esi
cmp ecx, 0x106
jae 0x1001b1a3
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1001b03a
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001fa40
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x1001fa7e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x1001fa76
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x1001fa80
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x1001fa66
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x1001fb50
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x1001fb81
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001fb81
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x1001fb81
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406c25
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x25c
push ebx
mov ebx, dword [esp + 0x268]
push esi
mov esi, dword [esp + 0x268]
push edi
mov edi, ebx
push esi
and edi, 4
call fcn.00406a74
mov dword [esp + 0x14], eax
test bl, 8
je 0x406c67
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47e2e8], eax
jmp 0x406e42
push ebp
mov ebp, ebx
and ebp, 1
mov dword [esp + 0x14], ebp
je 0x406c84
test eax, eax
je 0x406dcd
test bl, 2
je 0x406dc9
push esi
push 0x461dc0
call fcn.0040708c
test ebp, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406ca7
push str..
push 0x461dc0
call ebp
jmp 0x406cad
push esi
call fcn.00407225
xor eax, eax
cmp word [esi], ax
jne 0x406cbe
cmp word [0x461dc0], 0x5c
jne 0x406cc6
push 0x409aac
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x1c]
push eax
push 0x461dc0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x406db0
push 0x2e
pop eax
cmp word [esp + 0x48], ax
jne 0x406d14
cmp word [esp + 0x4a], 0
je 0x406d92
cmp word [esp + 0x4a], ax
jne 0x406d14
cmp word [esp + 0x4c], 0
je 0x406d92
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x14]
call fcn.0040708c
test byte [esp + 0x1c], 0x10
je 0x406d3b
mov eax, ebx
and eax, 3
cmp al, 3
jne 0x406d92
push ebx
push esi
call fcn.00406c25
jmp 0x406d92
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406af2
pop ecx
pop ecx
push edi
push esi
call fcn.004069cb
push esi
test eax, eax
jne 0x406d8b
test edi, edi
je 0x406d77
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406af2
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405f97
xor eax, eax
push eax
push esi
call fcn.004064e0
jmp 0x406d92
push str.Delete:_DeleteFile_failed___s__
call fcn.00406af2
inc dword [0x47e2e8]
pop ecx
pop ecx
jmp 0x406d92
push 0xfffffffffffffff2
call fcn.00405f97
lea eax, [esp + 0x1c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x406cf2
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x14], 0
je 0x406e41
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov word [eax - 2], cx
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x406dd5
push esi
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x406e2b
push esi
call fcn.00406a15
test eax, eax
je 0x406e41
push esi
call fcn.0040699c
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406af2
pop ecx
pop ecx
mov eax, edi
or eax, 1
push eax
push esi
call fcn.004069cb
push esi
test eax, eax
jne 0x406e3a
test edi, edi
je 0x406e26
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406af2
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405f97
xor eax, eax
push eax
push esi
call fcn.004064e0
jmp 0x406e41
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406af2
inc dword [0x47e2e8]
pop ecx
pop ecx
jmp 0x406e41
push 0xffffffffffffffe5
call fcn.00405f97
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x25c
ret 8
Function at 0x40e145
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40e154
pop dword [ebp - 0x14]
mov eax, 0x9d7d0818
add eax, 0x62c3d93c
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x3bf05
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0x9884624a
sub ecx, 0x988421eb
mov ebx, eax
mov esi, 0xe233c888
add esi, 0x1e0f8b78
add esi, dword [ebp - 0x14]
mov edx, 0xc25243f1
sub edx, 0xaa0ef854
add dword [ebp - 4], 0x720218db
mov edi, dword [esi]
xor dword [ebp - 0xc], 0x7c3e252c
add edi, edx
add dword [ebp - 4], 0x30e18804
mov dword [ebx], edi
sub dword [ebp - 4], 0x219b2259
add ebx, 0x1b8c7bd1
sub ebx, 0x1b8c7bcd
add esi, 0xe6645120
sub esi, 0xe664511c
loop 0x40e1ae
add eax, 0xa4a1ef5c
sub eax, 0xa4a0fb0d
mov ebx, eax
add eax, 0x275553c5
sub eax, 0x275553c0
mov ecx, 0x6b2a3b09
add ecx, 0x9515c4f7
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4021e9
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
mov dword [ebp - 4], ecx
mov ebx, eax
cmp dword [ebp + 8], 0
je 0x402209
mov eax, dword [ebp + 8]
mov byte [eax], 0
test ebx, ebx
je 0x402212
cmp byte [ebx], 0
jne 0x402219
xor eax, eax
jmp 0x402299
xor esi, esi
jmp 0x40225c
mov al, byte [ebx]
xor ecx, ecx
mov cl, al
inc ebx
cmp ecx, 0x3d
jne 0x402243
cmp dword [ebp - 4], 0
je 0x402243
test esi, esi
jne 0x402243
cmp dword [ebp + 8], 0
je 0x40223f
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov esi, edx
jmp 0x40225c
xor ecx, ecx
mov cl, al
cmp ecx, 0xd
je 0x402251
cmp ecx, 0xa
jne 0x402259
cmp ecx, 0xd
jne 0x402261
inc ebx
jmp 0x402261
mov byte [edx], al
inc edx
cmp byte [ebx], 0
jne 0x40221d
mov byte [edx], 0
cmp dword [ebp - 4], 0
je 0x402297
mov eax, dword [ebp - 4]
test esi, esi
mov byte [eax], 0
je 0x402297
push 0x1000
lea edx, [ebp - 0x1004]
push edx
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
lea edx, [ebp - 0x1004]
mov eax, dword [ebp - 4]
call fcn.0040daf8
mov byte [esi], 0
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402629
Capabilities:
Set registry value

Disassembly:
push ebx
add esp, 0xfffffbf8
mov ebx, eax
cmp byte [0x41205c], 0
je 0x4026a0
cmp byte [0x413914], 0
je 0x4026a0
lea edx, [esp + 8]
mov eax, 0x413914
call fcn.004025f8
lea ecx, [esp + 4]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareWinRAR_SFX
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
jne 0x4026a0
mov eax, ebx
call fcn.0040da78
inc eax
push eax
push ebx
push 1
push 0
lea edx, [esp + 0x18]
push edx
push dword [esp + 0x14]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [esp]
call sub.ADVAPI32.DLL_RegCloseKey
add esp, 0x408
pop ebx
ret

Function at 0x402814
Capabilities:
Get geographical location

Disassembly:
add esp, 0xffffff9c
push 0x64
lea eax, [esp + 4]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [esp]
add esp, 0x64
ret
Function at 0x40297c
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff9ec
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
push 0
call sub.OLE32.DLL_OleInitialize
lea eax, [ebp - 8]
push eax
push 0x4127ac
push 1
push 0
push 0x4127bc
call sub.OLE32.DLL_CoCreateInstance
test eax, eax
jl 0x402a7b
push esi
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x50]
push edi
mov eax, dword [ebp - 8]
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x4029df
push 0
push dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
cmp dword [ebp + 8], 0
je 0x4029f1
push dword [ebp + 8]
mov edx, dword [ebp - 8]
push edx
mov ecx, dword [edx]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x40c]
mov edx, esi
call fcn.0040daf8
lea eax, [ebp - 0x40c]
call fcn.00405ab4
cmp byte [ebp - 0x40c], 0
je 0x402a22
lea edx, [ebp - 0x40c]
push edx
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x24]
lea edx, [ebp - 0xc]
push edx
push 0x4127dc
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax]
test eax, eax
jl 0x402a72
push 0x104
lea edx, [ebp - 0x614]
push edx
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0
call sub.KERNEL32.DLL_MultiByteToWideChar
push 1
lea ecx, [ebp - 0x614]
push ecx
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 0x18]
test eax, eax
jl 0x402a69
mov bl, 1
mov eax, dword [ebp - 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov ecx, dword [ebp - 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
call sub.OLE32.DLL_OleUninitialize
mov eax, ebx
pop edi
pop esi
jmp 0x42aa48

Function at 0x402bf0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffc4
mov edi, edx
mov ebx, eax
push 0x67
push dword [0x41285c]
call sub.USER32.DLL_GetDlgItem
mov esi, eax
cmp byte [0x412021], 0
jne 0x402c4c
mov eax, dword [0x413d14]
call fcn.0040409c
push 5
push esi
call sub.USER32.DLL_ShowWindow
push 0xffffffffffffffff
push 0
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x412099
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
mov byte [0x412021], 1
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
mov dword [esp], 0x3c
mov edx, esp
push edx
push 0
push 0x43a
push esi
call sub.USER32.DLL_SendMessageA
and dword [esp + 8], 0xbfffffff
mov byte [esp + 0x19], 0
test bl, bl
je 0x402c98
or dword [esp + 8], 1
mov dword [esp + 0x14], 0xa0
jmp 0x402ca3
and dword [esp + 8], 0xfffffffe
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0x40000001
mov eax, esp
push eax
push 1
push 0x444
push esi
call sub.USER32.DLL_SendMessageA
push edi
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
push 0x5f5e100
push 0x5f5e100
push 0xb1
push esi
call sub.USER32.DLL_SendMessageA
push 0x4120c0
push 0
push 0xc2
push esi
call sub.USER32.DLL_SendMessageA
add esp, 0x3c
pop edi
pop esi
pop ebx
ret