joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102879f8
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov eax, dword [0x102a0af4]
add eax, 0xfffff426
mov dword [0x102a0af4], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102a0af8], 0xb46
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x10287a6b
mov eax, dword [ebp - 0x14]
mov ecx, dword [0x102a0af4]
mov edx, ecx
add edx, 0xfffffe97
mov dword [0x102a0af8], edx
mov edx, dword [ebp - 0xc]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
je 0x10287a9a
jmp 0x10287b09
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], edx
je 0x10287a3d
mov eax, dword [ebp - 0x20]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
jl 0x10287a6b
jmp 0x10287a3d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10287b09
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10287b09
mov eax, dword [ebp - 0x1c]
add eax, 0x25fa
mov dword [0x102a0af4], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x10287b09
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x10287b09
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10287b09
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
je 0x10287b10
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x10287b10
mov eax, dword [ebp - 0x24]
add esp, 0x24
pop ebp
ret
Function at 0x10287b86
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x102a0b00], 0
mov byte [0x102a0b04], 0
mov dword [0x102a0af4], 0xb4
mov dword [0x102a0afc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10287c8d
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102a0b08], 0
mov edx, dword [0x102a0b00]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x102a0b08], edi
mov eax, edi
cdq
idiv ecx
mov dword [0x102a0b00], edx
mov dword [0x102a0af8], 0x1128
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x102a0b04], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x102a0b04]
mov edx, dword [0x102a0b00]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov dword [0x102a0af8], 0x1c9
mov edx, dword [0x102a0afc]
add edx, 1
mov dword [0x102a0afc], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x10287bd0
jmp 0x10287cbf
mov dword [0x102a0afc], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x10287bd0
mov eax, dword [ebp - 0x1c]
mov dword [0x102a0af4], 0x14fa
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x102a0afc]
add eax, 1
mov dword [0x102a0afc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10287c8d
jmp 0x10287c79
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10287d68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x168
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x102a0af8]
add edx, 0x26f7
mov dword [0x102a0af8], edx
mov dword [0x102a0af4], 0xb6d
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x10287dc9
xor eax, eax
mov dword [0x102a0af8], 0x2139
mov dword [0x102a0af4], 0x2700
mov dword [ebp - 0x13c], eax
jmp 0x10287e24
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, str.8a_zV
imul esi, eax, 0xc8
mov edi, edx
add edi, esi
add edi, 0xc4
mov esi, dword [edi]
imul edi, eax, 0xc8
add edx, edi
add edx, 0x84
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x1bc
mov ecx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
je 0x10287dab
jmp 0x10287dc9
mov eax, dword [ebp - 0x13c]
mov cl, byte [eax + 0x1028a528]
mov dl, byte [eax + 0x1028a4f9]
sub dl, cl
mov byte [ebp + eax - 0x12c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x13c], eax
jne 0x10287e24
lea eax, [ebp - 0x12c]
mov dword [0x102a0af4], 0xfffffb72
mov dword [ebp - 0x144], eax
call fcn.10287162
mov dword [esp], eax
mov eax, dword [ebp - 0x144]
mov dword [esp + 4], eax
call fcn.10286cfd
mov ecx, eax
mov dword [0x102a0b14], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x150], ecx
mov eax, dword [ebp - 0x150]
mov ecx, dword [ebp - 0x14c]
lea edx, str.8a_zV
imul esi, eax, 0xc8
mov edi, edx
add edi, esi
add edi, 0xc4
mov esi, dword [edi]
imul edi, eax, 0xc8
mov ebx, edx
add ebx, edi
add ebx, 0x3c
mov edi, dword [ebx]
imul ebx, eax, 0xc8
add edx, ebx
add edx, 0x84
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x148]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x154], eax
mov dword [ebp - 0x158], ecx
mov dword [ebp - 0x15c], edx
call fcn.102876bb
mov eax, dword [ebp - 0x15c]
mov ecx, dword [ebp - 0x158]
add eax, ecx
mov edx, dword [ebp - 0x154]
add edx, 1
cmp edx, 0x1bc
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], edx
jne 0x10287ec1
lea eax, [0x1028a507]
mov ecx, 0x20
lea edx, [ebp - 0x10c]
mov dword [0x102a0af4], 0x280
mov dword [0x102a0af8], 0x50
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], ecx
call fcn.10287b86
mov dword [0x102a0af8], 0x1716
mov eax, dword [ebp - 0x160]
mov dword [esp], eax
mov ecx, dword [ebp - 0x148]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.10287760
xor eax, eax
mov ecx, dword [ebp - 0x148]
add ecx, 0xf5cdc
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x134200
mov ecx, dword [ebp - 0x148]
add ecx, 0xe873f
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x1f50
mov dword [0x102a0af8], 0x65a
add esp, 0x168
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4010c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x4010cf
lea eax, [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4010e4
test al, 0x10
jne 0x4010e4
mov bl, 1
jmp 0x4010e6
xor bl, bl
cmp dword [ebp + 0x1c], 8
jb 0x4010f8
mov eax, dword [ebp + 8]
push eax
call fcn.004049bc
add esp, 4
mov al, bl
pop ebx
pop ebp
ret 0x1c

Function at 0x401100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ac22
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x220], esi
mov word [esi], ax
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x216]
mov dword [ebp - 4], eax
push edx
mov dword [ebp - 0x21c], 1
mov word [ebp - 0x218], cx
call fcn.00407f30
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x4011bb
lea eax, [ebp - 0x218]
lea edx, [eax + 2]
jmp 0x4011a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4011a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
call fcn.00403ac0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret

Function at 0x4011e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40ada8
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x40f01c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x401214
mov eax, dword [esi]
jmp 0x401216
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x401273
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
mov dword [ecx + 0x10], eax
push eax
mov dword [ecx + 0x14], 7
lea edx, [ebp + 8]
mov word [ecx], ax
push edx
or eax, 0xffffffff
call fcn.00403810
mov ecx, esi
call fcn.004012a0
test al, al
jne 0x401273
cmp dword [ebp + 0x1c], 8
jb 0x401260
mov eax, dword [ebp + 8]
push eax
call fcn.004049bc
add esp, 4
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c
cmp dword [ebp + 0x1c], 8
jb 0x401285
mov ecx, dword [ebp + 8]
push ecx
call fcn.004049bc
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4017d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00407f30
mov ecx, dword [ebp + 0x24]
xor eax, eax
mov edi, 8
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
cmp dword [ebp + 0x38], edi
jae 0x40180e
lea ecx, [ebp + 0x24]
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], edi
jae 0x401819
lea eax, [ebp + 8]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
mov eax, dword [ebp - 0x10]
setne bl
test eax, eax
je 0x40184a
push eax
call esi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x401854
push eax
call esi
cmp dword [ebp + 0x1c], edi
jb 0x401865
mov eax, dword [ebp + 8]
push eax
call fcn.004049bc
add esp, 4
xor ecx, ecx
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], 0
mov word [ebp + 8], cx
cmp dword [ebp + 0x38], edi
jb 0x40188a
mov edx, dword [ebp + 0x24]
push edx
call fcn.004049bc
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0x38

Function at 0x4018a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0
push 2
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x4018eb
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401900
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret
mov eax, edi
call fcn.00403790
push eax
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00404fdd
add esp, 8
test eax, eax
je 0x40193f
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401900
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov bl, 1
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00404872
mov esp, ebp
pop ebp
ret
Function at 0x401960
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x18], 0
jne 0x40199d
cmp dword [ebp + 0x1c], 8
jb 0x40198b
mov eax, dword [ebp + 8]
push eax
call fcn.004049bc
add esp, 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push edi
push 0
push 2
mov bl, 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x234], edi
cmp edi, 0xffffffff
je 0x401ab5
push 0x228
lea ecx, [ebp - 0x22c]
push 0
push ecx
call fcn.00407f30
add esp, 0xc
lea edx, [ebp - 0x230]
push edx
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x401a14
cmp dword [ebp + 0x1c], 8
jb 0x401a00
mov eax, dword [ebp + 8]
push eax
call fcn.004049bc
add esp, 4
pop edi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret 0x1c
push esi
cmp dword [ebp + 0x1c], 8
mov eax, dword [ebp + 8]
jae 0x401a21
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x401a9e
mov edx, dword [ebp - 0x228]
push edx
push eax
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x401a9e
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push 0x64
setne bl
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401a91
lea esp, [esp]
inc edi
cmp edi, 0xa
jg 0x401a91
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x64
test eax, eax
push esi
setne bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x401a70
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401a15
pop esi
cmp dword [ebp + 0x1c], 8
jb 0x401ac7
mov ecx, dword [ebp + 8]
push ecx
call fcn.004049bc
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00404872
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x4031a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40abcb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x206
xor edi, edi
lea ecx, [ebp - 0x216]
xor eax, eax
push edi
push ecx
mov word [ebp - 0x218], ax
call fcn.00407f30
add esp, 0xc
push edi
push 0x1a
lea edx, [ebp - 0x218]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edx, 0x104
lea eax, [ebp - 0x218]
lea ebx, [ebx]
cmp word [eax], di
je 0x40321d
add eax, 2
dec edx
jne 0x403210
jmp 0x403240
cmp edx, edi
je 0x403240
mov ecx, 0x104
sub ecx, edx
mov eax, 0x104
sub eax, ecx
lea ecx, [ebp + ecx*2 - 0x218]
mov edx, 0x40d110
call fcn.00401060
xor eax, eax
mov word [ebp - 0x234], ax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403262
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x218]
lea esi, [ebp - 0x234]
call fcn.00403ac0
mov dword [ebp - 4], edi
lea edi, [ebp - 0x250]
call fcn.00403460
mov ecx, dword [ebp - 0x234]
mov esi, 8
cmp dword [ebp - 0x220], esi
jae 0x4032aa
lea ecx, [ebp - 0x234]
mov edx, dword [ebp - 0x224]
push edx
push ecx
push eax
call fcn.00403910
cmp eax, 0xffffffff
sete bl
cmp dword [ebp - 0x23c], esi
jb 0x4032d5
mov eax, dword [ebp - 0x250]
push eax
call fcn.004049bc
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], 0
mov word [ebp - 0x250], cx
cmp dword [ebp - 0x220], esi
jb 0x403309
mov edx, dword [ebp - 0x234]
push edx
call fcn.004049bc
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret
Function at 0x403330
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40337b
cmp dword [ebp + 0x1c], 8
jb 0x403367
mov eax, dword [ebp + 8]
push eax
call fcn.004049bc
add esp, 4
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret 0x1c
lea ecx, [ebp - 0x230]
push ecx
push esi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x4033c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 8
jb 0x403367
mov edx, dword [ebp + 8]
push edx
call fcn.004049bc
add esp, 4
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret 0x1c
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
mov ebx, 8
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], ebx
jae 0x4033dc
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00404fdd
add esp, 8
test eax, eax
je 0x40342c
lea ecx, [ebp - 0x230]
push ecx
push esi
call edi
test eax, eax
jne 0x4033d1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], ebx
jb 0x403416
mov eax, dword [ebp + 8]
push eax
call fcn.004049bc
add esp, 4
pop edi
pop ebx
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [ebp - 0x228]
cmp dword [ebp + 0x1c], ebx
jb 0x403443
mov edx, dword [ebp + 8]
push edx
call fcn.004049bc
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop ebx
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00404872
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x403460
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
sub esp, 0x1c
mov esi, esp
xor ebx, ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x418], ebx
mov dword [ebp - 0x418], esp
mov word [esi], ax
push 0xc
mov eax, str.Funshion.exe
call fcn.00403ac0
call fcn.00403330
push 0x206
lea edx, [ebp - 0x412]
xor ecx, ecx
push ebx
push edx
mov esi, eax
mov word [ebp - 0x414], cx
call fcn.00407f30
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x20c], ax
call fcn.00407f30
add esp, 0x18
push esi
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
jne 0x403524
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push ebx
mov eax, 0x40d0f0
mov esi, edi
mov word [edi], dx
call fcn.00403ac0
mov eax, edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
test eax, eax
jne 0x403570
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
push ebx
mov eax, 0x40d0f0
mov esi, edi
mov word [edi], cx
call fcn.00403ac0
mov eax, edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x20c]
push edx
lea ecx, [ebp - 0x414]
call fcn.004035c0
push esi
cmp al, bl
jne 0x403594
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x40d0f0
jmp 0x4035a0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x414]
mov ecx, edi
call fcn.00403720
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
mov eax, edi
pop ebx
call fcn.00404872
mov esp, ebp
pop ebp
ret
Function at 0x4035c0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c4
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4c0], esi
test esi, esi
jne 0x4035fc
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
lea ecx, [ebp - 0x4bc]
push ecx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4036cc
xor ebx, ebx
cmp word [ebp - 0x4bc], bx
je 0x4036cc
lea esi, [ebp - 0x4bc]
xor edi, edi
nop
push 0x40d364
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4036aa
push 0x40d36c
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4036aa
mov dx, word [esi]
mov ax, word [ebp + edi - 0x4ba]
mov word [ebp - 0xc], dx
push 0x64
lea edx, [ebp - 0xd4]
mov word [ebp - 0xa], ax
push edx
lea eax, [ebp - 0xc]
xor ecx, ecx
push eax
mov word [ebp - 8], cx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x4036da
lea ecx, [ebp - 0xd4]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [ebp - 0x4c4]
mov esi, eax
push esi
lea edx, [ebp - 0xd4]
push edx
push edi
call fcn.0040514d
add esp, 0xc
test eax, eax
je 0x4036ef
add ebx, 4
lea edi, [ebx + ebx]
cmp word [ebp + edi - 0x4bc], 0
lea esi, [ebp + edi - 0x4bc]
jne 0x403630
mov esi, dword [ebp - 0x4c0]
mov edx, dword [ebp - 0x4c4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop ebx
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404872
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp - 0x4c0]
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [edi + esi*2]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
mov al, 1
pop esi
call fcn.00404872
mov esp, ebp
pop ebp
ret 4
Function at 0x404872
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40f01c]
jne 0x40487c
repz ret
jmp fcn.0040538b

Function at 0x4090bc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x40f01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004064b5
and dword [ebp - 0x14], 0
cmp dword [0x4109b0], 0
mov dword [ebp - 0x18], eax
jne 0x40916f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409217
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409217
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4109b0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4109b4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4109b8], eax
call edi
push eax
call esi
mov dword [0x4109c0], eax
test eax, eax
je 0x40916f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4109bc], eax
mov eax, dword [0x4109bc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4091c8
cmp dword [0x4109c0], ecx
je 0x4091c8
push eax
call esi
push dword [0x4109c0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4091c8
test ebx, ebx
je 0x4091c8
call edi
test eax, eax
je 0x4091bf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4091bf
test byte [ebp - 8], 1
jne 0x4091c8
or dword [ebp + 0x10], 0x200000
jmp 0x4091fb
mov eax, dword [0x4109b4]
cmp eax, dword [ebp - 0x18]
je 0x4091fb
push eax
call esi
test eax, eax
je 0x4091fb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4091fb
mov eax, dword [0x4109b8]
cmp eax, dword [ebp - 0x18]
je 0x4091fb
push eax
call esi
test eax, eax
je 0x4091fb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4109b0]
call esi
test eax, eax
je 0x409217
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409219
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404872
leave
ret