joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4839c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x37000]
push edi
jmp 0x4839da
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4839e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4839d0
mov eax, 1
add ebx, ebx
jne 0x4839f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x483a04
jne 0x483a23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x483a23
dec eax
add ebx, ebx
jne 0x483a10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4839e8
add ebx, ebx
jne 0x483a1f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x483a75
xor ecx, ecx
sub eax, 3
jb 0x483a3b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x483aaa
sar eax, 1
mov ebp, eax
jmp 0x483a46
add ebx, ebx
jne 0x483a46
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x483a14
inc ecx
add ebx, ebx
jne 0x483a54
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x483a14
add ebx, ebx
jne 0x483a61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x483a56
jne 0x483a72
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x483a56
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x483a94
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x483a86
jmp 0x4839d6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x483a94
add edi, ecx
jmp 0x4839d6
pop esi
mov edi, esi
mov ecx, 0xf41
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x483ab2
cmp byte [edi], 0x11
jne 0x483ab2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x483ab7
lea edi, [esi + 0x80000]
mov eax, dword [edi]
or eax, eax
je 0x483b2f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8b208]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8b420]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x483ae4
mov ecx, edi
jns 0x483b13
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8b428]
or eax, eax
je 0x483b29
mov dword [ebx], eax
add ebx, 4
jmp 0x483b01
call dword [esi + 0x8b424]
mov ebp, dword [esi + 0x8b42c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x483b63
sub esp, 0xffffff80
jmp 0x428304
Function at 0x4012a0
Capabilities:
Send data
Send data on socket

Disassembly:
xor eax, eax
sub esp, 0x100
mov dword [0x40db20], eax
mov word [0x40db20], 2
mov dword [0x40db24], eax
push str.255.255.255.255
mov dword [0x40db28], eax
mov dword [0x40db2c], eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x232a
mov dword [0x40db24], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x108]
mov edx, dword [esp + 0x104]
push 0x10
push 0x40db20
mov word [0x40db22], ax
mov eax, dword [0x40db18]
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x40133b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 4]
push 0x40d0a0
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp]
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
or eax, 0xffffffff
add esp, 0x100
ret

Function at 0x401350
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x210
mov eax, dword [esp + 0x21c]
push esi
mov esi, dword [0x40db18]
mov dword [esp + 0x110], 1
test eax, eax
mov dword [esp + 0x114], esi
je 0x4013b8
mov ecx, dword [eax]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [esp + 8], edx
mov eax, ecx
xor edx, edx
mov ecx, 0x3e8
div ecx
lea ecx, [esp + 0x110]
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esp + 8]
push eax
push 0
shl edx, 3
push 0
mov dword [esp + 0x18], edx
push ecx
jmp 0x4013c6
push 0
push 0
lea edx, [esp + 0x118]
push 0
push edx
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
pop esi
jne 0x401405
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea eax, [esp + 0x10]
push 0x40d0e0
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0xc]
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox
or eax, 0xffffffff
add esp, 0x210
ret
test eax, eax
jne 0x401410
add esp, 0x210
ret
xor edx, edx
mov ecx, dword [esp + 0x218]
mov dword [0x40db20], edx
lea eax, [esp]
mov dword [0x40db24], edx
push eax
mov eax, dword [0x40db18]
mov dword [0x40db28], edx
push 0x40db20
mov dword [0x40db2c], edx
push edx
mov edx, dword [esp + 0x220]
push ecx
push edx
push eax
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jne 0x401464
add esp, 0x210
ret
cmp eax, 0xffffffff
jne 0x401494
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [esp + 0x10]
push 0x40d0c8
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea edx, [esp + 0xc]
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox
or eax, 0xffffffff
add esp, 0x210
ret
Function at 0x401e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x401e92
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x4020a0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x402192
lea ecx, [esp + 0x10]
push ecx
push str..htm
push closesocket
mov ecx, edi
call fcn.00401e30
test eax, eax
jne 0x402192
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push str._shellopencommand
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push closesocket
mov ecx, edi
call fcn.00401e30
test eax, eax
jne 0x402192
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x402163
lea eax, [esp + 0x10]
push 0x40d518
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x402163
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x402166
mov byte [esi], 0
push 0x40d514
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x403de0
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x214]
push esi
push edi
push ebp
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x403ecd
lea ecx, [esp + 0xc]
push ecx
push str..htm
push closesocket
call fcn.00403ee0
add esp, 0xc
test eax, eax
jne 0x403ecd
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
push str._shellopencommand
push edx
call edi
lea eax, [esp + 0xc]
lea ecx, [esp + 0xc]
push eax
push ecx
push closesocket
call fcn.00403ee0
add esp, 0xc
test eax, eax
jne 0x403ecd
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push str.__1_
push edx
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x403ea0
lea eax, [esp + 0x10]
push 0x40d518
push eax
call ebx
mov esi, eax
add esp, 8
test esi, esi
jne 0x403ea0
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x403ea3
mov byte [esi], 0
push 0x40d514
push esi
call edi
mov edx, dword [esp + 0x21c]
push edx
push esi
call edi
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x208
ret
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x208
ret

Function at 0x403ee0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x403f42
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret
Function at 0x401000
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
call fcn.004039ea
mov ecx, eax
call fcn.00403a5c
test eax, eax
je 0x40106a
lea ecx, [ebp - 0x18]
mov word [ebp - 0x11], 0x4374
push ecx
push eax
mov dword [ebp - 0xe], 0x4865736f
mov dword [ebp - 9], 0x656c646e
mov byte [ebp - 0xf], 0x6c
mov word [ebp - 0x18], 0x6e49
mov dword [ebp - 0x15], 0x656e7265
mov byte [ebp - 5], bl
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0xa], 0x61
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40106a
push esi
call eax
mov ebx, eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.00404966
leave
ret

Function at 0x40107a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x1c], eax
mov esi, ecx
xor ebx, ebx
call fcn.004039ea
mov ecx, eax
call fcn.00403a5c
test eax, eax
je 0x4010f7
lea ecx, [ebp - 0x18]
mov word [ebp - 0xf], 0x6165
push ecx
push eax
mov word [ebp - 0x15], 0x7265
mov word [ebp - 0x12], 0x7465
mov dword [ebp - 0xb], 0x656c69
mov word [ebp - 0x17], 0x746e
mov byte [ebp - 0x18], 0x49
mov word [ebp - 0xd], 0x4664
mov byte [ebp - 0x13], 0x6e
mov byte [ebp - 0x10], 0x52
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4010f7
push dword [ebp - 0x1c]
push 0x400
push edi
push esi
call eax
mov ebx, eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404966
leave
ret

Function at 0x40117b
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
push 0
push eax
mov ebx, edx
mov edi, ecx
call fcn.00405e70
push esi
push ebx
push edi
push str._s_s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00403ba2
add esp, 0x28
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4011f5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.GDI32.dll_RemoveFontResourceW]
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404966
leave
ret

Function at 0x401245
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x416d67
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4224b4], eax
ret
Function at 0x4015e1
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x6f
pop esi
push 0x77
mov edi, ecx
mov word [ebp - 0x1a], si
pop ecx
push 0x6c
pop eax
push 0x67
pop edx
push 0x2e
mov word [ebp - 0x24], cx
xor ebx, ebx
mov word [ebp - 0x20], cx
mov word [ebp - 0x22], cx
pop ecx
push 0x6d
mov word [ebp - 0x14], ax
pop eax
mov word [ebp - 0xa], ax
push 0x65
pop eax
mov word [ebp - 0x12], ax
push 0x63
pop eax
mov word [ebp - 0xe], ax
xor eax, eax
mov word [ebp - 8], ax
inc eax
mov word [ebp - 0x10], cx
mov word [ebp - 0x1e], cx
mov ecx, eax
push eax
mov word [ebp - 0x1c], dx
mov word [ebp - 0x18], si
mov word [ebp - 0x16], dx
mov word [ebp - 0xc], si
call fcn.004028f4
push eax
sub esp, 0x18
lea eax, [ebp - 0x24]
mov ecx, esp
push eax
call fcn.00403c0b
mov ecx, edi
call fcn.0040125d
cmp byte [edi + 0x18], bl
je 0x401722
lea ecx, [ebp - 0x20]
call fcn.00417330
push ebx
push 0x4883000
push ebx
push ebx
push str.HTTP_1.0
push 0x41e090
mov ecx, eax
call fcn.004033a4
push eax
push dword [edi + 0x20]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.004033b1
test esi, esi
je 0x40171b
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 4
push eax
lea eax, [ebp - 0x28]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x28], 0x180
lea eax, [ebp - 0x28]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push ebx
push ebx
push ebx
xor edx, edx
mov ecx, esi
call fcn.00416408
add esp, 0xc
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 4
push ebx
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 0x2c], 0xc8
push 1
movzx ebx, bl
pop ecx
cmove ebx, ecx
mov ecx, esi
call fcn.00401000
mov ecx, edi
call fcn.004012b4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404966
leave
ret

Function at 0x40173a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
call fcn.004039ea
mov ecx, eax
call fcn.00403ad8
test eax, eax
je 0x4017a1
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xf], 0x6f547373
push ecx
push eax
mov word [ebp - 0xa], 0x6e65
mov byte [ebp - 8], bl
mov dword [ebp - 0x13], 0x65636f72
mov dword [ebp - 0x18], 0x6e65704f
mov byte [ebp - 0xb], 0x6b
mov byte [ebp - 0x14], 0x50
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4017a1
push edi
push 0x20
push esi
call eax
mov ebx, eax
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404966
leave
ret
Function at 0x401836
Capabilities:
Copy file
Create process on windows
Delete file
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x894
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push 0x41dd40
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x401968
mov edi, 0x208
lea eax, [ebp - 0x61c]
push edi
xor esi, esi
push esi
push eax
call fcn.00405e70
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00405e70
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00405e70
add esp, 0x24
lea eax, [ebp - 0x61c]
mov edi, 0x104
push edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x41dd48
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov edx, str..exe
lea ecx, [ebp - 0x20c]
call fcn.00403b60
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x878]
push esi
push eax
call fcn.00405e70
add esp, 0xc
mov dword [ebp - 0x878], edi
mov edx, 0x41dd5c
lea ecx, [ebp - 0x20c]
call fcn.00403b60
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x878]
push eax
push esi
push esi
push 0x50
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor eax, eax
jmp 0x401a32
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push 0x64
push 0x422598
push 0x67
push edi
call esi
push 0x64
push 0x4224d0
push 0x6d
push edi
call esi
mov ecx, edi
call fcn.00416621
mov edx, dword [ebp + 0x14]
mov ecx, edi
call fcn.00401a42
test eax, eax
je 0x401961
push ebx
push 0x6d
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov ebx, eax
xor esi, esi
jmp 0x4019e3
lea eax, [ebp - 0x894]
push eax
push ebx
push dword [ebp - 0x894]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x4019e3
lea eax, [ebp - 0x894]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x894]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push esi
lea eax, [ebp - 0x894]
push eax
call edi
test eax, eax
jne 0x4019b1
push 0x208
lea eax, [ebp - 0x824]
push esi
push eax
call fcn.00405e70
add esp, 0xc
lea eax, [ebp - 0x824]
push 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 4
push esi
lea eax, [ebp - 0x824]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [ebp - 0x88c]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00404966
leave
ret 0x10
Function at 0x4021a2
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x464
mov eax, dword [0x421008]
xor eax, esp
mov dword [esp + 0x460], eax
push ebx
push esi
push edi
mov esi, ecx
lea eax, [esp + 0x260]
push esi
mov ebx, 0x208
push ebx
push eax
call fcn.00409f11
push 0x41df80
lea eax, [esp + 0x270]
push ebx
push eax
call fcn.00409f06
add esp, 0x18
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ebx, eax
mov ecx, 0x41df88
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402235
test dx, dx
je 0x402231
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402235
add eax, 4
add ecx, 4
test dx, dx
jne 0x40220f
xor eax, eax
jmp 0x40223a
sbb eax, eax
or eax, 1
test eax, eax
je 0x402331
mov ecx, 0x41df8c
lea eax, [esp + 0x3c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402271
test dx, dx
je 0x40226d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402271
add eax, 4
add ecx, 4
test dx, dx
jne 0x40224b
xor eax, eax
jmp 0x402276
sbb eax, eax
or eax, 1
test eax, eax
je 0x402331
push esi
lea eax, [esp + 0x264]
push 0x208
push eax
call fcn.00409f11
push 0x41df94
lea eax, [esp + 0x270]
push 0x208
push eax
call fcn.00409f06
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push 0x208
push eax
call fcn.00409f06
add esp, 0x24
test byte [esp + 0x10], 0x10
je 0x4022f7
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryEmptyW]
test eax, eax
jne 0x4022e7
lea ecx, [esp + 0x260]
call fcn.004021a2
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x402320
test byte [esp + 0x10], 1
je 0x402312
lea eax, [esp + 0x260]
push 0x80
push eax
call fcn.00409f75
pop ecx
pop ecx
lea eax, [esp + 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402331
push 4
push eax
lea eax, [esp + 0x268]
push eax
call edi
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402206
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40235d
push 4
push eax
push esi
call edi
mov ecx, dword [esp + 0x46c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00404966
mov esp, ebp
pop ebp
ret

Function at 0x402372
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x421008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 2
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4023ac
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00404966
leave
ret
Function at 0x402eb1
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x44
mov eax, 0x417707
call fcn.00415ee9
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 4], 2
mov dword [ebp - 0x24], ebx
call fcn.00403820
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], 1
push eax
push 0x20019
push ebx
lea ecx, [ebp + 8]
call fcn.004033a4
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402fbc
push ecx
lea ecx, [ebp - 0x20]
call fcn.00403d7e
call fcn.00403dfd
mov byte [ebp - 4], 3
call fcn.00403db3
mov dword [ebp - 0x14], eax
lea ecx, [ebp + 0x20]
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
call fcn.004033a4
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402fb4
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
shr eax, 1
push eax
call fcn.00403de4
lea eax, [ebp - 0x14]
push eax
push ecx
lea ecx, [ebp - 0x20]
call fcn.00403dae
push eax
push ebx
push ebx
lea ecx, [ebp + 0x20]
call fcn.004033a4
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402fb4
push ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x20]
call fcn.00403dbb
mov ecx, eax
call fcn.00403d8a
mov edx, eax
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x38]
push eax
call fcn.00403dd0
push ecx
push dword [edx]
lea ecx, [ebp - 0x50]
push dword [eax]
call fcn.004041f5
push eax
mov ecx, esi
call fcn.00403be3
lea ecx, [ebp - 0x50]
call fcn.004033b1
lea ecx, [ebp - 0x20]
call fcn.00403df8
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.004033b1
lea ecx, [ebp + 0x20]
call fcn.004033b1
mov eax, esi
call fcn.00415ea7
ret