joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d1e90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xf7c988]
xor edx, edx
cmp eax, edx
jne 0x5d1eb6
xor eax, eax
mov byte [eax + 0xf7c888], al
inc eax
cmp eax, 0x100
jl 0x5d1e9e
mov dword [0xf7c988], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xf7c888
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5d1f47
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5d1f1a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x5d1ee8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x5d1fc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5d2013
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x5d1ffa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5d8990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x60b63e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.005d92b0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0xefafd4
call fcn.005f93c3
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x5d8a23
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005f93c3
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x5d8a1c
push 0
mov ecx, eax
call fcn.005cfac0
mov dword [esi + 0xc], eax
jmp 0x5d8a25
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x5d8a25
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5fba62
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5fba9a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA_1]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.005f9add
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005f9ab5
jmp 0x5fbaa6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5fd25d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x5fd29f
call fcn.0060384e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA_1]
cmp eax, edi
je 0x5fd29f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource_1]
cmp eax, edi
jne 0x5fd296
xor eax, eax
jmp 0x5fd2a7
push eax
call dword [sym.imp.KERNEL32.dll_LockResource_1]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005fd2ad
pop edi
pop esi
pop ebx
ret 4

Function at 0x603d7e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection_1]
cmp dword [esp + 0x10], 0
jne 0x603dac
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue_1]
test eax, eax
je 0x603dca
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00603ce4
jmp 0x603dca
mov eax, dword [esi + 0x14]
test eax, eax
je 0x603dca
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00603ce4
test edi, edi
mov eax, edi
jne 0x603db4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection_1]
pop esi
pop ebx
ret 8
Function at 0x404417
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push dword [edi + 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x40445b
mov ecx, dword [edi + 4]
lea eax, [ebp - 8]
push ebx
push eax
push ebx
push 2
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
push esi
mov dword [ebp - 4], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4047fd
Capabilities:
Accept command line arguments
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x5f9090]
xor eax, esp
mov dword [esp + 0x9c], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
push edi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x40494e
sub esp, 0x18
mov ecx, esp
push str.WIN_Intercept
call fcn.00403cf4
push 1
push esi
call fcn.00401266
mov ecx, eax
call fcn.0040f6f9
push edi
push edi
call fcn.004049dc
mov ecx, eax
call fcn.0040d29c
push 1
call fcn.0041087e
pop ecx
lea eax, [esp + 0x38]
push eax
call fcn.004012e5
mov ecx, eax
call fcn.0040a231
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea ecx, [esp + 0x50]
call fcn.00410b51
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [esp + 0x54]
call fcn.00411072
xor eax, eax
mov dword [esp + 0x30], edi
push str._6244584173
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 7
mov word [esp + 0x24], ax
call fcn.00403ccd
cmp dword [esp + 0x34], 8
lea eax, [esp + 0x20]
lea ecx, [esp + 0x50]
cmovae eax, dword [esp + 0x20]
push eax
call fcn.0041112a
test al, al
je 0x40492d
call fcn.00404966
mov ecx, eax
call fcn.004062df
sub esp, 0x10
lea ecx, [esp + 0x80]
call fcn.00405c5a
lea eax, [esp + 0x70]
mov dword [esp + 0x10], 0x4040b4
mov dword [0x606b64], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherW]
lea ecx, [esp + 0x70]
call fcn.00405cfd
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x20]
call fcn.0040402b
lea ecx, [esp + 0x50]
call fcn.00410b7f
lea ecx, [esp + 0x38]
call fcn.0040402b
mov ecx, dword [esp + 0xa4]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004202b9
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40d4dc
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x57e7da
call fcn.00420c1b
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.0040d1e6
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40d50e
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x583774
call fcn.00401e1f
push 0x583778
mov ecx, esi
call fcn.00401e1f
push 0x5ed73c
mov ecx, esi
call fcn.00401e1f
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401dc1
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40d563
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40d5fb
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00437fe0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.0040d0ba
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40d5ba
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401e1f
push 0x5ed73c
mov ecx, esi
call fcn.00401e1f
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401dc1
cmp dword [esi + 0x14], 8
jb 0x40d603
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40d61b
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x583774
call fcn.00401e1f
push 0x583778
mov ecx, esi
call fcn.00401e1f
push 0x5ed73c
mov ecx, esi
call fcn.00401e1f
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.0040d245
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00404684
lea ecx, [ebp - 0x248]
call fcn.0040402b
lea ecx, [ebp - 0x230]
call fcn.0040402b
call fcn.00420bc5
ret
Function at 0x40ec0f
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x57e9dc
call fcn.00420c1b
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x40ec30
push dword [esi + 0x1c]
call fcn.0044c037
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040e029
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0044660f
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x40ecb4
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040e029
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040e029
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.0040402b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040402b
sub edi, 1
jns 0x40ec5e
mov ecx, esi
call fcn.0040eaee
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.0040402b
call fcn.00420bc5
ret

Function at 0x40eccd
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x57e9dc
call fcn.00420c1b
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x40ecee
push dword [esi + 0x1c]
call fcn.0044c037
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0040e029
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0044660f
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x40ed72
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.0040e029
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0040e029
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.0040402b
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040402b
sub edi, 1
jns 0x40ed1c
mov ecx, esi
call fcn.0040eb85
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.0040402b
call fcn.00420bc5
ret
Function at 0x40f4f8
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x40f609
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x40f608
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40f527
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x40f608
push 0x587842
push eax
call fcn.00421207
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x40f608
cmp dword [esi + 0x14], 0x10
jb 0x40f55c
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x40f5f6
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f5f6
mov eax, dword [ebp - 0x10]
push 0x587842
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.00421207
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40f5f6
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x40f5bf
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.0040791f
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x40f5f4
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.00403f35
mov bl, 1
push esi
call fcn.00420cc3
pop ecx
test edi, edi
je 0x40f608
push edi
call fcn.00420cc3
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x40fe26
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
mov byte [ebp - 1], dl
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x40fe3b
push dword [ebp + 8]
sub edi, ecx
sar edi, 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fe5d
mov al, 1
jmp 0x40feee
push esi
xor ecx, ecx
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00420e48
push esi
mov ebx, eax
push 0
push ebx
call fcn.004019b2
push dword [ebp + 8]
push esi
push ebx
call fcn.00444f4b
add esp, 0x1c
xor esi, esi
movzx eax, word [ebx + esi*2]
cmp eax, 0x5c
je 0x40fe9c
cmp eax, 0x2f
jne 0x40fed8
mov dword [ebp - 8], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40fed1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40fedf
mov eax, dword [ebp + 0xc]
mov byte [ebp - 1], 1
cmp dword [eax + 0x24], 0
je 0x40fed1
push ebx
mov ecx, eax
call fcn.0040fe09
mov eax, dword [ebp - 8]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jbe 0x40fe8e
jmp 0x40fee3
mov byte [ebp - 1], 0
push ebx
call fcn.00420cc3
mov al, byte [ebp - 1]
pop ecx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x40ff88
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5f9090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
push 0x208
xor edi, edi
mov dword [ebp - 0x210], esi
push edi
push eax
call fcn.00437fe0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov eax, dword [ebp + 0xc]
or eax, 0x8000
cmp byte [ebp + 0x10], 0
push edi
cmove eax, dword [ebp + 0xc]
push edi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x40fff3
xor eax, eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x410001
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403cf4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004202b9
leave
ret
Function at 0x4100d4
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x3c
mov eax, 0x57ec07
call fcn.00420c1b
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x4100f7
xor al, al
jmp 0x4101b7
lea edi, [ecx + 4]
cmp dword [edi + 0x10], 0
ja 0x41011a
lea eax, [ebp - 0x40]
push eax
call fcn.0041241e
pop ecx
push eax
mov ecx, edi
call fcn.00403f79
lea ecx, [ebp - 0x40]
call fcn.0040402b
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push edi
call fcn.00403d43
xor edi, edi
lea ecx, [ebp - 0x28]
push str.Software_
mov dword [ebp - 4], edi
call fcn.00401e1f
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.00401e1f
test ebx, ebx
je 0x410162
push 0x5ed73c
lea ecx, [ebp - 0x28]
call fcn.00401e1f
push ebx
lea ecx, [ebp - 0x28]
call fcn.00401e1f
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], edi
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4101ad
test esi, esi
je 0x41019a
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x4101a4
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.0040402b
mov al, 1
call fcn.00420bc5
ret 0xc
Function at 0x410493
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5f9090]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], ebx
ja 0x4104eb
lea eax, [ebp - 0x1c]
push eax
call fcn.0041241e
pop ecx
lea ecx, [esi + 4]
push eax
call fcn.00403f79
lea ecx, [ebp - 0x1c]
call fcn.0040402b
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x4104f6
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x410519
xor al, al
jmp 0x4105d2
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push 0x583cc0
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x41053c
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x410512
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x41056e
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x410512
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4105c1
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x410593
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call esi
mov bl, 1
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004202b9
leave
ret 0x10
Function at 0x411498
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.00420e60
mov eax, dword [0x5f9090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.00437fe0
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00437fe0
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push 0x583d38
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040791f
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41152e
mov al, 1
jmp 0x411637
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00437fe0
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00437fe0
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00437fe0
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x4115b0
mov bl, 2
jmp 0x41162e
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00411646
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00411646
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4115f1
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.004123f7
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x411612
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.004123f7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004202b9
leave
ret
Function at 0x411844
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5f9090]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.00437fe0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004117f9
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x4118c3
cmp dword [ebp - 0x118], ebx
jbe 0x411909
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x411909
cmp eax, 6
jne 0x4118ee
cmp byte [ebp - 6], 1
jne 0x4118e9
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x4118e5
sub eax, 1
je 0x4118e1
push 7
jmp 0x4118eb
push 5
jmp 0x4118eb
push 3
jmp 0x4118eb
push 4
pop ebx
jmp 0x411909
push 0xa
pop ecx
cmp eax, ecx
jne 0x411906
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x411909
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004202b9
leave
ret

Function at 0x411c24
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx], 0x67452301
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret

Function at 0x4125e7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5f9090]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x41266d
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
call fcn.00437fe0
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x41266d
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x412662
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0044d16d
pop ecx
pop ecx
test eax, eax
je 0x41267d
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x412642
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004202b9
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
jmp 0x41266f