joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409a89
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x43d06c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x228
mov dword [ebp - 0x234], eax
xor edi, edi
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.00412480
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x409ad2
xor eax, eax
jmp 0x409b51
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x409b11
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.00419d49
pop ecx
pop ecx
test eax, eax
je 0x409b17
lea eax, [ebp - 0x230]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409aec
jmp 0x409b48
push esi
push dword [ebp - 0x228]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x234]
mov esi, eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004108e9
leave
ret 8

Function at 0x409f01
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x409f13
push 0xd
pop eax
jmp 0x409f44
mov ecx, edx
push ebx
push edi
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x409f1c
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40b425
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x264
mov eax, 0x42a38b
call fcn.0041132d
mov esi, ecx
xor ebx, ebx
mov edi, ebx
call fcn.0040a6c1
push eax
lea ecx, [ebp - 0x264]
call fcn.0040a4ec
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.00409ee5
push eax
push esi
lea ecx, [ebp - 0x264]
call fcn.00409e2e
push 0x4371d4
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x268]
call fcn.00409ca9
pop ecx
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x268]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040a792
cmp esi, 0xffffffff
je 0x40b5a4
test byte [ebp - 0x260], 0x10
je 0x40b584
mov ecx, 0x436cc8
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b4df
test dx, dx
je 0x40b4db
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b4df
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b4b9
mov eax, ebx
jmp 0x40b4e4
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b585
mov ecx, 0x436cc0
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b51d
test dx, dx
je 0x40b519
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b51d
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b4f7
mov eax, ebx
jmp 0x40b522
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b585
push 0x436a34
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x270]
call fcn.00409ca9
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x26c]
call fcn.00409ca9
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, dword [eax]
call fcn.0040b425
mov ecx, dword [ebp - 0x26c]
add edi, eax
lea ecx, [ecx - 0x10]
call fcn.0040a792
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x270]
lea ecx, [ecx - 0x10]
call fcn.0040a792
jmp 0x40b585
inc edi
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b4a1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ebx, edi
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.0040a792
mov eax, ebx
call fcn.004112d7
ret
Function at 0x40b5ba
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x274
mov eax, 0x42a400
call fcn.0041132d
mov edi, edx
mov esi, ecx
mov ebx, dword [ebp + 0xc]
call fcn.0040a6c1
push eax
lea ecx, [ebp - 0x268]
call fcn.0040a4ec
and dword [ebp - 4], 0
call fcn.0040a6c1
push eax
lea ecx, [ebp - 0x264]
call fcn.0040a4ec
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00409ee5
push eax
push esi
lea ecx, [ebp - 0x264]
call fcn.00409e2e
push 0x4371d4
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x26c]
call fcn.00409ca9
pop ecx
lea ecx, [ebp - 0x260]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x26c]
mov esi, eax
add ecx, 0xfffffff0
call fcn.0040a792
cmp esi, 0xffffffff
je 0x40b80a
test byte [ebp - 0x260], 0x10
je 0x40b73d
mov ecx, 0x436cc8
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b68b
test dx, dx
je 0x40b687
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b68b
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b665
xor eax, eax
jmp 0x40b690
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b7ed
mov ecx, 0x436cc0
lea eax, [ebp - 0x234]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40b6c9
test dx, dx
je 0x40b6c5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40b6c9
add eax, 4
add ecx, 4
test dx, dx
jne 0x40b6a3
xor eax, eax
jmp 0x40b6ce
sbb eax, eax
or eax, 1
test eax, eax
je 0x40b7ed
push 0x436a34
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x274]
call fcn.00409ca9
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 2
push ecx
mov edx, eax
lea ecx, [ebp - 0x270]
call fcn.00409ca9
push ebx
push dword [ebp + 8]
mov byte [ebp - 4], 3
mov edx, edi
mov ecx, dword [eax]
call fcn.0040b5ba
mov ecx, dword [ebp - 0x270]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0040a792
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x274]
lea ecx, [ecx - 0x10]
call fcn.0040a792
jmp 0x40b7ed
push 0x436a34
lea edx, [ebp - 0x264]
lea ecx, [ebp - 0x280]
call fcn.00409ca9
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 4
push ecx
mov edx, eax
lea ecx, [ebp - 0x27c]
call fcn.00409ca9
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x278]
mov edx, dword [eax]
push edi
call fcn.0040b82c
add esp, 0xc
push eax
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 6
call fcn.00409d03
mov ecx, dword [ebp - 0x278]
lea ecx, [ecx - 0x10]
call fcn.0040a792
mov ecx, dword [ebp - 0x27c]
lea ecx, [ecx - 0x10]
call fcn.0040a792
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x280]
lea ecx, [ecx - 0x10]
call fcn.0040a792
mov edx, dword [edi]
mov ecx, dword [ebp - 0x268]
call fcn.0040ada6
inc dword [ebx]
imul eax, dword [ebx], 0x64
push 0x64
pop ecx
push 0
cdq
idiv dword [ebp + 8]
inc eax
cmp eax, ecx
cmovg eax, ecx
push eax
push 0x501
push dword [edi]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp - 0x260]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b64d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.0040a792
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.0040a792
call fcn.004112d7
ret
Function at 0x40bec4
Capabilities:
Check if file exists
Create thread

Disassembly:
push 0x14
mov eax, 0x42a4aa
call fcn.004112f9
mov edi, ecx
mov dword [ebp - 0x1c], edi
and dword [ebp - 4], 0
cmp dword [edi + 0x94], 0
jne 0x40c098
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
cmp esi, eax
je 0x40c098
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40bf43
mov eax, dword [ebp + 0xc]
lea ebx, [esi + 4]
cmp ebx, eax
je 0x40bf2d
mov dword [ebp - 0x14], esi
mov edi, eax
sub esi, ebx
push ebx
lea ecx, [esi + ebx]
call fcn.00409d03
add ebx, 4
cmp ebx, edi
jne 0x40bf14
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [eax - 4]
sub ecx, 0x10
call fcn.0040a792
mov eax, dword [ebp + 0xc]
sub eax, 4
mov dword [ebp + 0xc], eax
jmp 0x40bf92
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
lea ecx, [eax - 1]
test ecx, ecx
js 0x40c0a8
cmp ecx, eax
jg 0x40c0a8
cmp word [edx + ecx*2], 0x5c
jne 0x40bf89
push ecx
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
call fcn.0040d2d8
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00409d03
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040a792
mov eax, dword [ebp + 0xc]
add esi, 4
mov dword [ebp - 0x10], esi
cmp esi, eax
jne 0x40bef7
mov esi, dword [ebp + 8]
cmp esi, eax
je 0x40c098
push 0x24
call fcn.00410908
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor edx, edx
pop ecx
mov ebx, eax
push edx
push edx
push 0xf0
mov dword [ebx + 0x18], edx
mov dword [ebx + 0x1c], edx
mov dword [ebx + 0x20], edx
mov ecx, dword [edi + 4]
mov dword [ebx], ecx
push dword [edi + 0x4c]
call esi
dec eax
neg eax
push 0
sbb eax, eax
push 0
inc eax
push 0xf0
mov dword [ebx + 4], eax
push dword [edi + 0x50]
call esi
dec eax
neg eax
push 0
sbb eax, eax
push 0
inc eax
push 0xf0
mov dword [ebx + 8], eax
push dword [edi + 0x54]
call esi
dec eax
neg eax
push 0
sbb eax, eax
push 0
inc eax
push 0xf0
mov dword [ebx + 0xc], eax
push dword [edi + 0x58]
call esi
dec eax
neg eax
push 0
sbb eax, eax
push 0
inc eax
push 0xf0
mov dword [ebx + 0x10], eax
push dword [edi + 0x5c]
call esi
dec eax
lea ecx, [ebx + 0x18]
neg eax
sbb eax, eax
inc eax
mov dword [ebx + 0x14], eax
lea eax, [ebp + 8]
cmp ecx, eax
je 0x40c04e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040cb16
xor esi, esi
mov ecx, edi
push esi
call fcn.0040be1b
push esi
push esi
push ebx
push 0x40b1c7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x94], eax
test eax, eax
je 0x40c088
push esi
push 0xc8
push 0x3e8
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x40c091
push 1
mov ecx, edi
call fcn.0040be1b
mov ecx, edi
call fcn.0040ab82
lea ecx, [ebp + 8]
call fcn.0040c6c4
call fcn.004112c2
ret 0xc
push 0x80070057
call fcn.00407ae4
int3
Function at 0x40c0b3
Capabilities:
Terminate thread

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi + 0x94]
test eax, eax
je 0x40c102
push ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
mov dword [edi + 0x94], ebx
mov ebx, 0x402
push 0x64
push ebx
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x64
push ebx
push dword [edi + 0x60]
call dword [sym.imp.USER32.dll_SendMessageW]
push 1
mov ecx, edi
call fcn.0040be1b
mov ecx, edi
call fcn.0040ab82
pop ebx
xor eax, eax
pop edi
ret 0x10

Function at 0x40c1e9
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push 0x4a0
mov eax, 0x42a52f
call fcn.0041132d
mov esi, ecx
mov dword [ebp - 0x4a0], esi
xor ebx, ebx
mov dword [ebp - 0x4ac], ebx
mov dword [ebp - 0x4a8], ebx
mov dword [ebp - 4], ebx
call fcn.0040a6c1
push eax
lea ecx, [ebp - 0x498]
call fcn.0040a4ec
mov byte [ebp - 4], 1
call fcn.0040a6c1
mov ecx, eax
test ecx, ecx
je 0x40c3c3
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x49c], edi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x494]
push dword [esi + 4]
push 0x437348
sub esp, 0xc
push ebx
call fcn.0040d0b7
mov dword [ebp - 0x494], 0x437390
push 0x400
lea ecx, [ebp - 0x498]
mov byte [ebp - 4], 3
call fcn.0040a4a6
push dword [esi + 4]
lea ecx, [ebp - 0x494]
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], 0x400
call fcn.0040c603
push 0xffffffffffffffff
lea ecx, [ebp - 0x498]
mov esi, eax
call fcn.0040a303
cmp esi, 1
je 0x40c2b9
lea ecx, [ebp - 0x498]
call fcn.00409df9
mov esi, dword [ebp - 0x498]
cmp dword [esi - 0xc], ebx
je 0x40c38a
sub esp, 0xc
push 2
push ecx
push 0xc0000000
push esi
lea ecx, [ebp - 0x4ac]
call fcn.0040a7aa
cmp eax, 1
je 0x40c384
mov eax, dword [ebp - 0x4a0]
push dword [eax + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edx, [eax + 1]
mov dword [ebp - 0x4a4], edx
test edx, edx
jns 0x40c30e
push 0x80070057
jmp 0x40c3c8
mov eax, dword [edi - 8]
xor ecx, ecx
inc ecx
sub eax, edx
sub ecx, dword [edi - 4]
or ecx, eax
jge 0x40c335
push edx
lea ecx, [ebp - 0x49c]
call fcn.0040c788
mov edi, dword [ebp - 0x49c]
mov edx, dword [ebp - 0x4a4]
mov eax, dword [ebp - 0x4a0]
push edx
push edi
push dword [eax + 0x6c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push dword [edi - 8]
push edi
call fcn.0041a586
pop ecx
pop ecx
test eax, eax
js 0x40c304
cmp eax, dword [edi - 8]
jg 0x40c304
mov dword [edi - 0xc], eax
push ebx
mov byte [eax + edi], bl
lea eax, [ebp - 0x4a4]
mov ebx, dword [ebp - 0x4ac]
push eax
push dword [edi - 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40c38a
call fcn.0040da10
jmp 0x40c38a
mov ebx, dword [ebp - 0x4ac]
cmp dword [ebp - 0x480], 0
je 0x40c39e
push dword [ebp - 0x480]
call fcn.004100b6
lea ecx, [edi - 0x10]
call fcn.0040a792
lea ecx, [esi - 0x10]
call fcn.0040a792
test ebx, ebx
je 0x40c3b9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
call fcn.004112d7
ret 0x10
push 0x80004005
call fcn.00407ae4
int3
Function at 0x40d0b7
Capabilities:
Check os version

Disassembly:
push 0x120
mov eax, 0x42a5de
call fcn.0041132d
mov esi, ecx
mov dword [ebp - 0x128], esi
xor eax, eax
mov dword [ebp - 0x12c], esi
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
push 0x58
push eax
lea ebx, [esi + 0x20]
mov dword [ebp - 4], eax
push ebx
call fcn.00412480
xor eax, eax
mov dword [ebp - 0x124], 0x114
xor ecx, ecx
lea edi, [esi + 0x27c]
mov word [edi], ax
mov eax, dword [ebp + 8]
mov word [esi + 0x7c], cx
push 0x110
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x120]
push ecx
push eax
mov dword [ebx], 0x58
call fcn.00412480
add esp, 0x18
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d159
cmp dword [ebp - 0x120], 5
jae 0x40d15f
cmp dword [ebp - 0x120], 4
jne 0x40d159
cmp dword [ebp - 0x11c], 0x5a
jae 0x40d15f
mov dword [ebx], 0x4c
mov ecx, 0x4368c0
mov dword [esi + 0x3c], edi
lea eax, [esi + 0x7c]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x44], eax
mov edx, 0x104
mov eax, dword [ebp + 0x18]
push 0xffffffffffffffff
push ecx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x40], edx
mov dword [esi + 0x48], 0x100
mov dword [esi + 0x54], 0x880026
mov eax, dword [0x43db60]
push edx
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0x1c]
push edi
mov dword [esi + 0x64], 0x40d021
mov dword [esi + 0x24], eax
call fcn.0041a931
push eax
call fcn.0040d9d5
add esp, 0x14
mov eax, esi
call fcn.004112d7
ret 0x18

Function at 0x40d7c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d81c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d81c
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x40d80e
cmp esi, ecx
jae 0x40d81c
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x40d7fc
cmp esi, ecx
jae 0x40d81c
cmp word [esi], 0
je 0x40d81c
mov eax, esi
jmp 0x40d81e
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f9db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x42a7c2
call fcn.0041139b
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40fa58
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40fa58
call fcn.0040da10
mov esi, eax
jmp 0x40fb5e
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40fa7b
call fcn.0040da10
jmp 0x40fb51
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x40fa71
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x40faae
mov esi, 0x8007000e
jmp 0x40fb53
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x40fb81
jb 0x40fac9
cmp eax, 0xffffffff
ja 0x40fb81
cmp eax, 0x400
jbe 0x40fade
push eax
lea ecx, [ebp - 0x418]
call fcn.0040e629
jmp 0x40fb00
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40fb00
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40faa4
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40fa71
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040f886
mov esi, eax
test edi, edi
je 0x40fb5e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40fb77
lea ecx, [ebp - 0x418]
call fcn.0040e614
mov eax, esi
call fcn.004112e8
ret 0x10
push 0x80070216
call fcn.00407ae4
int3

Function at 0x424073
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00423d33
Function at 0x2e00e8fb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x40]
push 0
push eax
call fcn.2e02fe39
mov edi, dword [ebp + 8]
mov dword [ebp - 0x40], esi
add esp, 0xc
mov esi, 0x2e0494f0
push 0x2e001770
mov ecx, esi
mov dword [ebp - 0x3c], 0x100
mov dword [ebp - 0x34], 0x2e001768
mov dword [ebp - 0x30], edi
call fcn.2e025e3a
push edi
mov ecx, esi
call fcn.2e025e3a
push 0x2e001766
mov ecx, esi
call fcn.2e025e3a
push 0x2e0012a4
mov ecx, esi
call fcn.2e025e3a
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
test eax, eax
jne 0x2e00e98f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 4]
call fcn.2e00e813
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x2e041f6c
lea eax, [ebp + 8]
push eax
call fcn.2e02ee42
cmp dword [ebp - 8], 0
je 0x2e00e99e
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret 4

Function at 0x2e00f48a
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x2e00f4c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.2e00e813
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x2e041f6c
lea eax, [ebp + 0xc]
push eax
call fcn.2e02ee42
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x8003
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x2e00f4f5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push edi
jmp 0x2e00f4ad
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 0x2e00f51c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x2e00f4e8
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x2e00f509
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
leave
ret 0xc
Function at 0x2e00f552
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push 0x8000000
push 3
push edi
push edi
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x2e00f59a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 0xc]
call fcn.2e00e813
mov eax, dword [eax]
mov dword [ebp + 8], eax
push 0x2e041f6c
lea eax, [ebp + 8]
push eax
call fcn.2e02ee42
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x2e00f5be
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
jmp 0x2e00f57f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret 8

Function at 0x2e00f6af
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x2e049994]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x10c]
push 0x104
push eax
call fcn.2e02ffb2
lea eax, [ebp - 0x10c]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x2e00f6e5
push edi
sub eax, edx
mov byte [ebp + eax - 0x10b], cl
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x134]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x12c], eax
mov eax, 0x414
mov word [ebp - 0x124], ax
lea eax, [ebp - 0x134]
push eax
mov dword [ebp - 0x130], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop edi
test eax, eax
je 0x2e00f762
push 0x3e3
lea ecx, [ebp - 0x114]
call fcn.2e00e813
mov eax, dword [eax]
mov dword [ebp - 0x110], eax
push 0x2e041f6c
lea eax, [ebp - 0x110]
push eax
call fcn.2e02ee42
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.2e02f7a3
leave
ret 4

Function at 0x2e00f8ae
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ecx + 0x50], 0
je 0x2e00f8e5
cmp dword [ecx + 0x54], 0x10
jb 0x2e00f8c3
mov ecx, dword [ecx + 0x40]
jmp 0x2e00f8c6
add ecx, 0x40
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x2e00f8e5
mov al, byte [ebp - 1]
mov byte [ebp - 1], al
push 0x2e04212c
lea eax, [ebp - 1]
push eax
call fcn.2e02ee42
leave
ret
Function at 0x2e01944d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
push edi
mov dword [ebp - 4], ecx
cmp dword [ebx], ecx
jne 0x2e01947a
lea ecx, [ebp + 0x13]
call fcn.2e019399
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x2e043500
lea eax, [ebp + 0xf]
push eax
call fcn.2e02ee42
mov eax, dword [ebp + 0x10]
sub eax, ecx
je 0x2e0194c6
dec eax
je 0x2e0194af
dec eax
je 0x2e01949b
lea ecx, [ebp + 0x13]
call fcn.2e00f342
mov al, byte [eax]
mov byte [ebp + 0xf], al
push 0x2e0423a8
jmp 0x2e019471
mov esi, dword [ebp + 0xc]
push 2
mov eax, esi
pop edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x2e0194a6
jmp 0x2e0194c1
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, esi
inc edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x2e0194ba
sub eax, ecx
inc eax
jmp 0x2e0194da
push dword [ebp + 0xc]
call fcn.2e0305a3
pop ecx
push 4
mov dword [ebp - 4], eax
pop eax
lea esi, [ebp - 4]
mov edi, eax
push eax
push esi
push edi
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
test eax, eax
je 0x2e01950c
push eax
lea ecx, [ebp + 0x10]
call fcn.2e00e813
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push 0x2e041f6c
lea eax, [ebp + 0xc]
jmp 0x2e019474
leave
ret 0xc