joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4080b0
Capabilities:
Accept command line arguments
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
mov eax, dword [esp + 0x10]
call fcn.00401600
mov eax, dword [0x4ff620]
test eax, eax
jne 0x408103
push 8
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x4080fc
mov dword [eax], 0
mov byte [eax + 4], 0
jmp 0x4080fe
xor eax, eax
mov dword [0x4ff620], eax
mov eax, dword [eax]
cmp eax, 3
jne 0x408112
push 0
call dword [sym.imp.MSVCR100.dll_exit]
cmp eax, 4
jne 0x408124
call fcn.00401db0
push 0
call dword [sym.imp.MSVCR100.dll_exit]
push 0x4ed4d4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40814a
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10
call fcn.00404350
call fcn.00403190
mov ecx, eax
call fcn.004076a0
mov esi, dword [sym.imp.MSVCR100.dll__beginthread]
push 0
push 0
push 0x407f90
call esi
add esp, 0xc
push 0
push 0
push 0x401740
call esi
add esp, 0xc
call fcn.00401060
mov byte [esp + 0xf], al
call fcn.00403210
mov cl, byte [esp + 0xf]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [eax + 4], cl
jmp 0x4081a0
mov eax, dword [0x4ff620]
test eax, eax
jne 0x4081cb
push 8
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_]
add esp, 4
test eax, eax
je 0x4081c4
mov dword [eax], 0
mov byte [eax + 4], 0
jmp 0x4081c6
xor eax, eax
mov dword [0x4ff620], eax
cmp byte [eax + 4], 0
jne 0x4081e4
mov esi, eax
call fcn.00401060
push 0x2bf20
mov byte [esi + 4], al
call edi
jmp 0x4081a0
call fcn.004018e0
push 0
push 0
push 0x407f00
call dword [sym.imp.MSVCR100.dll__beginthread]
add esp, 0xc
call fcn.00403210
mov ecx, dword [eax]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
call fcn.004043c0
nop
push 0x1388
call edi
jmp 0x408210
Function at 0x408680
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3f
lea eax, [ebp - 0x7b]
push 0
push eax
mov byte [ebp - 0x7c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
jmp 0x4086b0
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + str.Sta_Enctypt]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x7d], dl
cmp eax, 0x40
jb 0x4086b0
push 0x37
lea eax, [ebp - 0x3b]
push 0
push eax
mov byte [ebp - 0x3c], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
lea esp, [esp]
movsx ecx, byte [eax + 0x4ee698]
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x4ee699]
mov byte [ebp + eax - 0x3c], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x4ee69a]
mov byte [ebp + eax - 0x3b], dl
movzx edx, byte [ebp + ecx - 0x7d]
movsx ecx, byte [eax + 0x4ee69b]
mov byte [ebp + eax - 0x3a], dl
movzx edx, byte [ebp + ecx - 0x7d]
mov byte [ebp + eax - 0x39], dl
add eax, 4
cmp eax, 0x38
jl 0x4086f0
lea edx, [ebp - 0x3c]
mov ecx, esi
call fcn.00408750
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7299
mov esp, ebp
pop ebp
ret
Function at 0x408750
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
push esi
push edi
lea ebx, [ecx + 1]
mov ecx, 7
mov esi, edx
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
lea esi, [edx + 0x1c]
mov ecx, 7
lea edi, [ebp - 0xac]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov byte [ebp - 0x3c], 0
mov dword [ebp - 0x3b], eax
mov dword [ebp - 0x37], eax
mov dword [ebp - 0x33], eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov word [ebp - 0x23], ax
mov byte [ebp - 0x21], al
mov byte [ebp - 0x20], al
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
mov dword [ebp - 0xb0], edi
jmp 0x4087d6
mov edi, dword [ebp - 0xb0]
movsx esi, byte [edi + 0x4ee700]
mov eax, 0x1c
sub eax, esi
push eax
lea ecx, [ebp + esi - 0x90]
push ecx
lea edx, [ebp - 0x3c]
push edx
call sub.MSVCR100.dll_memcpy
push esi
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x20]
push eax
sub ecx, esi
push ecx
call sub.MSVCR100.dll_memcpy
movsx esi, byte [edi + 0x4ee700]
mov edx, 0x1c
sub edx, esi
push edx
lea eax, [ebp + esi - 0xac]
push eax
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCR100.dll_memcpy
push esi
lea edx, [ebp - 0xac]
lea eax, [ebp - 4]
push edx
sub eax, esi
push eax
call sub.MSVCR100.dll_memcpy
push 0x37
lea ecx, [ebp - 0x73]
push 0
push ecx
call sub.MSVCR100.dll_memset
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0x58]
add esp, 0x3c
rep movsd dword es:[edi], dword [esi]
xor eax, eax
jmp 0x408870
movsx edx, byte [eax + 0x4ee6d0]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax - 1], cl
movsx edx, byte [eax + 0x4ee6d1]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax], cl
movsx edx, byte [eax + 0x4ee6d2]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 1], cl
movsx edx, byte [eax + 0x4ee6d3]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 2], cl
movsx edx, byte [eax + 0x4ee6d4]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 3], cl
movsx edx, byte [eax + 0x4ee6d5]
movzx ecx, byte [ebp + edx - 0x75]
mov byte [ebx + eax + 4], cl
add eax, 6
cmp eax, 0x30
jl 0x408870
mov eax, dword [ebp - 0xb0]
mov ecx, 7
lea esi, [ebp - 0x3c]
lea edi, [ebp - 0x90]
rep movsd dword es:[edi], dword [esi]
inc eax
mov ecx, 7
lea esi, [ebp - 0x20]
lea edi, [ebp - 0xac]
add ebx, 0x30
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 0xb0], eax
cmp eax, 0x10
jl 0x4087d0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7299
mov esp, ebp
pop ebp
ret
Function at 0x408930
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
push 0x3f
mov esi, ecx
lea ecx, [ebp - 0x43]
push ebx
push ecx
mov dword [ebp - 0xe8], eax
mov byte [ebp - 0x44], bl
call sub.MSVCR100.dll_memset
push 0x3f
lea edx, [ebp - 0xe3]
push ebx
push edx
mov byte [ebp - 0xe4], bl
call sub.MSVCR100.dll_memset
push 0x3f
lea eax, [ebp - 0x83]
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x24
xor eax, eax
jmp 0x408990
mov ecx, eax
shr ecx, 3
movsx edx, byte [ecx + esi]
mov ecx, eax
and ecx, 7
shl edx, cl
inc eax
sar edx, 7
and dl, 1
mov byte [ebp + eax - 0x45], dl
cmp eax, 0x40
jb 0x408990
lea eax, [ebp - 0xe4]
lea ecx, [ebp - 0x44]
call fcn.00408d10
mov ecx, 8
lea esi, [ebp - 0xe4]
lea edi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
lea esi, [ebp - 0xc4]
lea edi, [ebp - 0xa4]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edx, dword [ebp - 0xe8]
lea eax, [ebp - 0xa4]
push eax
mov ecx, esi
lea ebx, [ebp - 0x24]
call fcn.00408ab0
inc esi
cmp esi, 0x10
jl 0x4089e3
mov ecx, 8
lea esi, [ebp - 0xa4]
lea edi, [ebp - 0x84]
rep movsd dword es:[edi], dword [esi]
mov ecx, 8
mov esi, ebx
lea edi, [ebp - 0x64]
rep movsd dword es:[edi], dword [esi]
xor eax, eax
movsx ecx, byte [eax + 0x4ee9a0]
movzx edx, byte [ebp + ecx - 0x85]
mov ecx, dword [ebp - 0xe8]
mov byte [ecx + eax + 0x600], dl
movsx edx, byte [eax + 0x4ee9a1]
movzx edx, byte [ebp + edx - 0x85]
mov byte [ecx + eax + 0x601], dl
movsx edx, byte [eax + 0x4ee9a2]
movzx edx, byte [ebp + edx - 0x85]
mov byte [ecx + eax + 0x602], dl
movsx edx, byte [eax + 0x4ee9a3]
movzx edx, byte [ebp + edx - 0x85]
mov byte [ecx + eax + 0x603], dl
add eax, 4
cmp eax, 0x40
jl 0x408a21
mov eax, ecx
lea edi, [eax + 0x600]
lea esi, [eax + 0x680]
call fcn.00408f90
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b7299
mov esp, ebp
pop ebp
ret 4
Function at 0x408d10
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, str.:2_
mov edi, 0x4ee711
mov edx, 0x4ee712
mov ebx, 0x4ee713
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 0x10
nop
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
add eax, 4
dec dword [ebp - 4]
jne 0x408d40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408d90
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, 0x4ee753
sub ebx, eax
mov dword [ebp - 8], ebx
push esi
mov ebx, 0x4ee754
sub ebx, eax
push edi
mov dword [ebp - 0xc], ebx
mov esi, 0x4ee750
mov edi, 0x4ee751
mov edx, 0x4ee752
mov ebx, 0x4ee755
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 8
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
mov ebx, dword [ebp - 0xc]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 4], bl
mov ebx, dword [ebp - 0x10]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 5], bl
add eax, 6
dec dword [ebp - 4]
jne 0x408dd3
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408f10
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, 0x4ee980
mov edi, 0x4ee981
mov edx, 0x4ee982
mov ebx, 0x4ee983
sub esi, eax
sub edi, eax
sub edx, eax
sub ebx, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], 8
nop
movsx ebx, byte [esi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax], bl
movsx ebx, byte [edi + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 1], bl
movsx ebx, byte [edx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 2], bl
mov ebx, dword [ebp - 8]
movsx ebx, byte [ebx + eax]
movzx ebx, byte [ebx + ecx - 1]
mov byte [eax + 3], bl
add eax, 4
dec dword [ebp - 4]
jne 0x408f40
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4097d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7086
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x254], ebx
mov edi, ecx
mov dword [ebp - 0x23c], 0xf
mov dword [ebp - 0x240], ebx
mov byte [ebp - 0x250], bl
mov dword [ebp - 4], ebx
xor eax, eax
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x234], ax
lea ecx, [ebp - 0x260]
push ecx
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x258], eax
cmp eax, ebx
jle 0x40996a
push eax
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
mov edx, dword [ebp - 0x258]
add esp, 4
push eax
mov dword [ebp - 0x25c], eax
mov eax, dword [ebp - 0x260]
push edx
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov edi, dword [ebp - 0x25c]
test eax, eax
je 0x409960
lea ecx, [ebp - 0x258]
push ecx
lea edx, [ebp - 0x254]
push edx
push 0x4eea48
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x409960
push 0x206
lea ecx, [ebp - 0x216]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x218], ax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp - 0x254]
movzx edx, word [eax + 0xc]
movzx ecx, word [eax + 0xe]
push edx
movzx edx, word [eax + 8]
movzx eax, word [eax + 0xa]
push ecx
push edx
push eax
push 0x4eea4c
lea edx, [ebp - 0x218]
call fcn.0040c1b0
push edi
mov edi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
call edi
lea eax, [ebp - 0x218]
add esp, 0x24
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409910
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x234]
call fcn.0040b420
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov word [esi], dx
call fcn.00403660
cmp dword [ebp - 0x220], 8
jb 0x4099a0
mov eax, dword [ebp - 0x234]
push eax
call edi
jmp 0x40999d
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
lea edx, [ebp - 0x234]
mov word [esi], cx
push edx
mov ecx, esi
call fcn.004035e0
cmp dword [ebp - 0x220], 8
jb 0x4099a0
mov eax, dword [ebp - 0x234]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7299
mov esp, ebp
pop ebp
ret
Function at 0x409bd0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c700b
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, edx
lea edx, [ebp - 0x218]
push 0x104
push edx
mov dword [ebp - 0x244], eax
mov dword [ebp - 0x240], ecx
call dword [sym.imp.MSVCR100.dll__wgetcwd]
add esp, 8
lea eax, [ebp - 0x238]
push eax
push 0x4eca94
push 1
push 0
push 0x4ecaa4
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x409c52
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x409dd7
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
lea edx, [ebp - 0x23c]
push edx
push 0x4ecab4
push eax
mov eax, dword [ecx]
call eax
test eax, eax
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
jns 0x409c84
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
jmp 0x409dd7
test esi, esi
jne 0x409c99
mov edx, dword [sym.imp.MSVCR100.dll__wpgmptr]
mov edx, dword [edx]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
jmp 0x409ca0
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
xor esi, esi
cmp ebx, esi
je 0x409cb7
mov edx, dword [ecx + 0x24]
push ebx
push eax
call edx
jmp 0x409cc4
lea edx, [ebp - 0x218]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov ecx, dword [ebp - 0x240]
cmp ecx, esi
je 0x409cdd
mov eax, dword [ebp - 0x238]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x1c]
call eax
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
xor eax, eax
mov word [ebp - 0x234], ax
mov eax, edi
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], esi
lea edx, [eax + 2]
jmp 0x409d10
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x409d10
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.00403c20
push 1
push 0x4eea48
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], esi
call fcn.0040b420
mov edi, dword [ebp - 0x244]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x409d50
sub eax, edx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x234]
call fcn.0040b420
mov ecx, dword [ebp - 0x234]
mov edi, 8
cmp dword [ebp - 0x220], edi
jae 0x409d85
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax]
push 1
push ecx
push eax
mov eax, dword [edx + 0x18]
call eax
mov esi, eax
mov eax, dword [ebp - 0x23c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x238]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
test esi, esi
setns al
mov esi, eax
cmp dword [ebp - 0x220], edi
jb 0x409dd5
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7299
mov esp, ebp
pop ebp
ret 8
Function at 0x40a0f0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push 0
push 2
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a13b
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7299
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a1b4
lea edx, [ebp - 0x230]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
je 0x40a1b4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ecx]
mov eax, dword [ebp - 0x234]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40a1a0
mov edx, dword [ebp - 0x228]
push edx
push eax
push 1
call edi
test eax, eax
je 0x40a1a0
push 0
push eax
call ebx
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40a170
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop esi
call fcn.004b7299
mov esp, ebp
pop ebp
ret 4

Function at 0x40a1d0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x430
mov eax, dword [0x4fbf50]
xor eax, esp
mov dword [esp + 0x42c], eax
push esi
push edi
push 0
push 2
mov dword [esp + 0x10], 0x428
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a250
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x40a249
mov edi, dword [sym.imp.KERNEL32.dll_Module32NextW]
lea ecx, [esp + 8]
push ecx
push esi
call edi
test eax, eax
je 0x40a249
lea edx, [esp + 0x228]
push ebx
push edx
call dword [sym.imp.MSVCR100.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x40a266
lea eax, [esp + 8]
push eax
push esi
call edi
test eax, eax
jne 0x40a227
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.004b7299
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x434]
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.004b7299
mov esp, ebp
pop ebp
ret
Function at 0x40a280
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x40a2cb
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7299
mov esp, ebp
pop ebp
ret
mov ecx, 0x4edae0
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a2fc
test dx, dx
je 0x40a2f8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a2fc
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a2d6
xor eax, eax
jmp 0x40a301
sbb eax, eax
sbb eax, 0xffffffff
push esi
test eax, eax
je 0x40a35f
mov esi, dword [sym.imp.KERNEL32.dll_Process32NextW]
lea esp, [esp]
lea ecx, [ebp - 0x230]
push ecx
push edi
call esi
test eax, eax
je 0x40a374
mov ecx, 0x4edae0
lea eax, [ebp - 0x20c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a356
test dx, dx
je 0x40a352
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a356
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a330
xor eax, eax
jmp 0x40a35b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40a310
pop esi
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b7299
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004b7299
mov esp, ebp
pop ebp
ret

Function at 0x40a390
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [ebp - 4], esp
mov edi, eax
xor eax, eax
push 0xffffffffffffffff
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push esi
mov word [ecx], ax
call fcn.00403660
call fcn.00409af0
test al, al
je 0x40a3ed
mov eax, 8
cmp dword [edi + 0x14], eax
jb 0x40a3d3
mov edi, dword [edi]
cmp dword [esi + 0x14], eax
jb 0x40a3da
mov esi, dword [esi]
push 5
push 0
push edi
push esi
push 0x4eea70
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c6ee8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x40ba76
cmp byte [edi + 0x49], 0
je 0x40ba76
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x40ba6a
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x40b9c5
lea eax, [ebp - 0x2c]
mov byte [eax + 8], 0
mov dword [ebp - 4], 0
lea ebx, [edi + 0x4c]
mov eax, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x18]
mov ecx, eax
cmp edx, 0x10
jae 0x40b9e5
lea ecx, [ebp - 0x2c]
mov eax, ecx
add ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x30]
push edx
push ecx
mov ecx, dword [edi + 0x44]
push eax
push ebx
call dword [sym.imp.MSVCP100.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x40ba0a
dec eax
je 0x40ba0e
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x40ba65
jmp 0x40ba71
mov byte [edi + 0x49], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp edx, 0x10
jae 0x40ba1e
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x40ba48
cmp edx, 0x10
jae 0x40ba2d
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call dword [sym.imp.MSVCR100.dll_fwrite]
add esp, 0x10
cmp esi, eax
jne 0x40ba62
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x40ba6e
test esi, esi
jne 0x40b9d9
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040b260
jmp 0x40b9d3
lea ecx, [ebp - 0x2c]
call fcn.004030e0
xor al, al
jmp 0x40ba78
lea ecx, [ebp - 0x2c]
call fcn.004030e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b7299
mov esp, ebp
pop ebp
ret

Function at 0x40e690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea edx, [ebp - 4]
push edx
push 0x20006
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40e713
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40e6d0
mov ecx, dword [ebp + 8]
sub eax, edx
mov edx, dword [ebp - 4]
sar eax, 1
add eax, eax
push eax
push ebx
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e709
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret