joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dc2a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x4dc2bd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov al, byte [edi]
mov esi, edi
test al, al
je 0x4dc368
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x4dc2e7
cmp al, 0x5c
je 0x4dc2e7
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4dc2db
mov eax, esi
sub eax, edi
add eax, 2
cmp eax, 0x105
jb 0x4dc2fa
mov eax, 0x105
push eax
lea eax, [esp + 0x14]
push edi
push eax
call sub.Storm.dll_Ordinal_501
cmp eax, 0x104
jae 0x4dc35b
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4dc325
cmp byte [esi], 0
je 0x4dc368
jmp 0x4dc343
call ebx
cmp eax, 0xb7
je 0x4dc333
cmp eax, 5
jne 0x4dc35b
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x4dc35b
test al, 0x10
je 0x4dc35b
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4dc2d5
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret

Function at 0x4dc770
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
cmp ebp, 0xa
push edi
jbe 0x4dc780
mov ebp, 0xa
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
call esi
test ebp, ebp
mov edi, eax
jne 0x4dc797
mov ebx, 1
mov ebp, ebx
mov edx, ebp
mov ecx, ebx
call fcn.004dc7d0
inc ebx
cmp ebx, ebp
ja 0x4dc7c5
call esi
sub eax, edi
cmp eax, 0xa
jae 0x4dc7b7
call esi
sub eax, edi
cmp eax, 0xa
jb 0x4dc7ae
mov edx, ebp
mov ecx, ebx
call fcn.004dc7d0
inc ebx
cmp ebx, ebp
jbe 0x4dc7a5
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4dc7d0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push edi
mov edi, edx
test edi, edi
je 0x4dc86f
push esi
push ebx
xor esi, esi
mov bl, byte [esi + 0x6be450]
xor eax, eax
mov al, byte [esi + 0x6bdbd0]
mov edx, ebx
and edx, 0xff
add esi, 4
sub eax, edx
imul eax, ecx
cdq
idiv edi
add al, bl
mov bl, byte [esi + 0x6be44d]
mov byte [esi + 0x6be04c], al
xor eax, eax
mov al, byte [esi + 0x6bdbcd]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, ecx
cdq
idiv edi
add al, bl
mov bl, byte [esi + 0x6be44e]
mov byte [esi + 0x6be04d], al
xor eax, eax
mov al, byte [esi + 0x6bdbce]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, ecx
cdq
idiv edi
add al, bl
cmp esi, 0x400
mov byte [esi + 0x6be04e], al
jl 0x4dc7df
push 0x100
xor edx, edx
mov ecx, 0x6be050
call fcn.004df050
pop ebx
pop esi
pop edi
ret
Function at 0x4de820
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
xor ax, ax
push esi
mov al, dl
mov byte [esp + 4], dl
cmp ax, word [ecx]
jb 0x4de835
mov byte [esp + 4], 0
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x10]
and edx, 0xff
lea eax, [ecx + edx*8 + 6]
movzx dx, byte [ecx + edx*8 + 6]
mov word [esi], dx
mov esi, dword [esp + 0x14]
movzx dx, byte [eax + 1]
mov word [esi], dx
mov esi, dword [esp + 0x18]
mov dx, word [ecx + 2]
mov word [esi], dx
mov esi, dword [esp + 0x1c]
mov dx, word [ecx + 4]
mov word [esi], dx
mov edx, dword [esp + 0xc]
movzx si, byte [eax + 3]
mov word [edx + 2], si
movzx si, byte [eax + 2]
mov eax, dword [eax + 4]
test eax, 0x80000000
je 0x4de899
and eax, 0x7fffffff
add esi, 0x100
add eax, ecx
mov word [edx], si
mov dword [edx + 4], eax
pop esi
pop ecx
ret 0x14

Function at 0x4e71d0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
call fcn.004e0580
lea esi, [edi + 4]
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.004e0520
test eax, eax
jne 0x4e71fd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov cx, word [esi]
mov dx, word [edi + 8]
mov ax, word [edi + 6]
mov word [esp + 0x24], cx
mov cx, word [edi + 0xa]
mov word [esp + 0x28], dx
mov word [esp + 0x2a], cx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
mov word [esp + 0x26], ax
call fcn.004e0520
test eax, eax
jne 0x4e723e
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp word [edi + 0x22], 6
jne 0x4e7292
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [edi + 0x18]
mov ebp, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x18], ebp
inc eax
and ecx, 0x2000000
je 0x4e7267
xor ebx, ebx
jmp 0x4e7270
xor ebx, ebx
mov bx, word [0x6be9e4]
add ebx, 2
test ecx, ecx
mov dword [esp + 0x14], ebx
je 0x4e7289
mov dx, word [0x6be9bc]
mov word [esp + 0x10], dx
jmp 0x4e72e2
mov cx, word [0x6bea30]
jmp 0x4e72dd
mov eax, dword [esp + 0x2a]
mov esi, dword [esp + 0x26]
mov ecx, dword [edi + 0x18]
mov ebp, dword [esp + 0x1e]
sub eax, esi
mov dword [esp + 0x18], ebp
inc eax
and ecx, 0x2000000
je 0x4e72b4
xor edx, edx
jmp 0x4e72bd
xor edx, edx
mov dx, word [0x6bea00]
lea ebx, [edx + 2]
test ecx, ecx
mov dword [esp + 0x14], ebx
je 0x4e72d6
mov dx, word [0x6be9bc]
mov word [esp + 0x10], dx
jmp 0x4e72e2
mov cx, word [0x6be9f8]
mov word [esp + 0x10], cx
movsx edx, si
mov ecx, ebx
and ecx, 0xffff
movsx ebx, bp
lea ebp, [ecx + edx]
cmp ebx, ebp
jg 0x4e7304
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
movsx eax, ax
add eax, edx
sub eax, ecx
cmp ebx, eax
jl 0x4e731c
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, edi
call fcn.004e6d90
add eax, dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x18]
cmp ax, si
jge 0x4e733f
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
add si, word [esp + 0x10]
xor ecx, ecx
pop edi
cmp ax, si
pop esi
setge cl
dec ecx
pop ebp
and ecx, 0xfffffffe
pop ebx
add ecx, 5
mov eax, ecx
add esp, 0x20
ret
Function at 0x104f6
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dl, byte [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ecx + 0x18], esi
mov dword [ecx + 0x1c], eax
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
pop esi
pop ebp
ret 0x10
Function at 0x176d2
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
mov dword [ebx + 8], eax
push esi
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea edi, [ebx + 4]
push edi
push dword [ebp + 0x18]
neg esi
push dword [ebp + 0x14]
sbb esi, esi
push dword [ebp + 0x10]
lea eax, [ebp - 8]
and esi, eax
push esi
push 0xc
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jne 0x1773d
mov ecx, dword [edi]
mov edi, dword [ecx + 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax + 0x28]
or dword [eax + 4], 0xffffffff
mov dword [eax], 0x5465616e
add eax, 8
push eax
mov ecx, ebx
call fcn.000176b6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x407189
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x670
mov eax, dword [0x4163c0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x670], eax
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
mov edi, ecx
call fcn.0040f1a0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.0040f1a0
add esp, 0xc
mov edx, edi
lea ecx, [ebp - 0x41c]
call fcn.0040666e
lea ebx, [ebp - 0x41c]
call fcn.0040658d
push 0x403e7c
mov eax, ebx
call fcn.00405f7c
lea eax, [ebp - 0x66c]
push eax
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40727b
mov edx, edi
lea ecx, [ebp - 0x214]
call fcn.0040666e
lea ebx, [ebp - 0x214]
call fcn.0040658d
lea eax, [ebp - 0x640]
push eax
mov eax, ebx
call fcn.00405f7c
lea eax, [ebp - 0x66c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test edi, edi
jne 0x40727b
push dword [ebp - 0x670]
mov ecx, ebx
call fcn.00407293
test eax, eax
je 0x40727b
mov ecx, ebx
call fcn.00406c1b
jmp 0x40727d
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bb7c
leave
ret 4
Function at 0x40768a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor esi, esi
lea edi, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.00407a86
push dword [ebp + 8]
mov ecx, edi
call fcn.00407a60
push 0x403eb0
mov ecx, edi
call fcn.00407a60
push dword [ebp + 0xc]
mov ecx, edi
call fcn.00407a60
push 0x403eac
mov ecx, edi
call fcn.00407a60
push 0x40
lea eax, [ebp - 0x5c]
push esi
push eax
mov dword [ebp - 0x60], esi
call fcn.0040f1a0
xor eax, eax
mov dword [ebp - 0x14], esi
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call edi
push eax
mov dword [ebp - 0x24], eax
call fcn.0040ab6b
mov ebx, eax
cmp ebx, esi
je 0x407723
or dword [ebp - 0x34], 0x100
push 0xfffffffffffffff4
call edi
push 0xfffffffffffffff6
mov dword [ebp - 0x20], eax
call edi
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push ebx
push esi
push esi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407763
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x14]
call edi
push dword [ebp - 4]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
cmp ebx, esi
je 0x407772
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor esi, esi
inc esi
jmp 0x407741

Function at 0x408c6e
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
jne 0x408c7e
push 0xd
pop eax
jmp 0x408cae
push esi
push edi
mov edi, dword [ebp + 0x10]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add edi, eax
add esi, eax
cmp eax, 1
jne 0x408c85
mov eax, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
push 7
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40939f
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4163c0]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 4]
push edi
push ecx
push dword [esi]
mov dword [ebp - 0x11c], ecx
xor edi, edi
or eax, 0x2001f
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x110], edi
call fcn.0040935a
mov ebx, eax
cmp ebx, edi
je 0x409407
cmp dword [ebp - 0x114], edi
je 0x409400
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x40949f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40942f
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x114]
call fcn.0040939f
mov dword [ebp - 0x120], eax
cmp eax, edi
jne 0x4094b0
lea eax, [ebp - 0x128]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
push dword [ebp - 0x114]
mov dword [ebp - 0x118], 0x100
call ebx
test eax, eax
je 0x40940f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x114], edi
je 0x40947a
push dword [ebp - 0x114]
call ebx
mov dword [ebp - 0x114], edi
push dword [ebp - 0x11c]
mov dword [ebp - 0x110], edi
call fcn.00409529
mov esi, eax
cmp dword [ebp - 0x114], edi
je 0x40949d
push dword [ebp - 0x114]
call ebx
mov eax, esi
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bb7c
leave
ret 4
cmp dword [ebp - 0x114], edi
je 0x4094c4
push dword [ebp - 0x114]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x120]
jmp 0x40949f
Function at 0x40a6d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4163c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x218], eax
cmp dword [esi], ecx
jne 0x40a6fe
mov eax, 0x8000ffff
jmp 0x40a801
cmp eax, ecx
jne 0x40a70c
mov eax, 0x80004003
jmp 0x40a801
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov dword [eax], ecx
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push ecx
push 0x405738
push dword [esi]
mov dword [ebp - 0x214], 0x208
mov dword [ebp - 0x210], ecx
call ebx
mov edi, eax
test edi, edi
je 0x40a757
cmp edi, 0xea
jne 0x40a7ed
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x40a7ed
cmp dword [ebp - 0x210], 1
je 0x40a787
cmp dword [ebp - 0x210], 7
je 0x40a787
cmp dword [ebp - 0x210], 2
je 0x40a787
mov edi, 0x3f4
jmp 0x40a7f1
xor ecx, ecx
mov word [ebp - 6], cx
test edi, edi
jne 0x40a7a8
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ecx, dword [ebp - 0x218]
mov dword [ecx], eax
jmp 0x40a7fd
shr eax, 1
dec eax
push eax
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x40a80f
lea ecx, [ebp - 0x214]
push ecx
push eax
push 0
push 0
push 0x405738
push dword [esi]
call ebx
mov edi, eax
test edi, edi
jne 0x40a7e1
mov eax, dword [ebp - 0x21c]
jmp 0x40a79e
push dword [ebp - 0x21c]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
test edi, edi
jle 0x40a7fd
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040bb7c
leave
ret 4
mov eax, 0x8007000e
jmp 0x40a7ff
Function at 0x40a89d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x31c
mov eax, dword [0x4163c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x104
xor ebx, ebx
lea eax, [ebp - 0x30c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
mov esi, ecx
push ebx
push esi
call fcn.0040c357
lea eax, [ebp - 0x30c]
push 0x403e70
push eax
call fcn.0040c2bf
add esp, 0x2c
test eax, eax
je 0x40a8f0
or eax, 0xffffffff
jmp 0x40aa59
push ebx
push 0x8000080
push 3
push ebx
push 1
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40a916
push 0x12
pop eax
jmp 0x40aa59
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x40a92b
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40a8e8
push edi
push ebx
lea eax, [ebp - 0x314]
push eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push esi
mov dword [ebp - 0x314], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x40aa55
mov dword [ebp - 0x310], ebx
mov esi, dword [ebp - 0x310]
shl esi, 2
mov ecx, dword [esi + 0x402e48]
mov dword [ebp - 0x318], ecx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x40a97c
sub ecx, edx
mov edx, dword [esi + 0x402df8]
mov edi, ecx
mov dword [ebp - 0x31c], edx
lea esi, [edx + 2]
mov ax, word [edx]
inc edx
inc edx
cmp ax, bx
jne 0x40a996
sub edx, esi
sar edx, 1
lea eax, [edx + edx + 6]
mov edx, dword [ebp - 0x318]
lea esi, [edx + 1]
mov cl, byte [edx]
inc edx
cmp cl, bl
jne 0x40a9b1
sub edx, esi
add edx, 5
cmp dword [ebp - 0x314], edi
jb 0x40a9dd
mov ecx, edi
mov edi, dword [ebp - 0x318]
lea esi, [ebp - 0x104]
xor ebx, ebx
repe cmpsb byte [esi], byte es:[edi]
je 0x40aa67
cmp dword [ebp - 0x314], eax
jb 0x40aa11
push 3
pop ecx
mov edi, 0x402df0
lea esi, [ebp - 0x104]
xor ebx, ebx
repe cmpsw word [esi], word es:[edi]
jne 0x40aa0f
mov edi, dword [ebp - 0x31c]
lea ecx, [eax - 6]
lea esi, [ebp - 0xfe]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40aa67
xor ebx, ebx
cmp dword [ebp - 0x314], edx
jb 0x40aa42
push 5
pop ecx
mov edi, 0x402de8
lea esi, [ebp - 0x104]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x40aa42
mov edi, dword [ebp - 0x318]
lea ecx, [edx - 5]
lea esi, [ebp - 0xff]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40aa67
inc dword [ebp - 0x310]
cmp dword [ebp - 0x310], 0x13
jl 0x40a964
push 0x12
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bb7c
leave
ret
mov eax, dword [ebp - 0x310]
jmp 0x40aa58

Function at 0x40ab6b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x40abaa
cmp dword [ebp + 8], 0xffffffff
je 0x40abaa
cmp dword [ebp + 8], 7
je 0x40abaa
push edi
xor eax, eax
mov byte [ebp + 8], 0
lea edi, [ebp + 9]
stosb byte es:[edi], al
push 2
lea eax, [ebp + 8]
push eax
push 0x405750
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
xor eax, eax
cmp byte [ebp + 8], 0x31
pop edi
sete al
jmp 0x40abac
xor eax, eax
pop ebp
ret 4
Function at 0x40abb5
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
mov esi, edi
test edi, edi
je 0x40ac0a
push 0x405760
push esi
call fcn.004133ee
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40ac0a
movzx eax, word [esi]
cmp ax, 0x22
jne 0x40abfa
push 0x22
add esi, 2
push esi
call fcn.004133c3
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x40ac0a
inc esi
inc esi
jmp 0x40ac00
cmp ax, 0x20
je 0x40ac06
test esi, esi
jne 0x40abc7
jmp 0x40ac0a
inc esi
inc esi
jne 0x40ac24
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x40ac0f
sub eax, edx
sar eax, 1
lea esi, [edi + eax*2]
jmp 0x40ac24
inc esi
inc esi
mov ax, word [esi]
call fcn.0040a81b
test eax, eax
jne 0x40ac22
pop edi
mov eax, esi
pop esi
ret

Function at 0x40ac3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
mov esi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40ac93
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40ac85
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x40ac81
cmp edi, eax
jae 0x40ac85
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x40ac73
cmp edi, eax
jb 0x40ac89
xor eax, eax
jmp 0x40ac92
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x40bb7c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4163c0]
jne 0x40bb86
repz ret
jmp fcn.0040eef5
Function at 0x410d69
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d989
and dword [ebp - 4], 0
cmp dword [0x417930], 0
mov ebx, eax
jne 0x410e1a
push 0x401aac
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x410ecb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401aa0
push edi
call esi
test eax, eax
je 0x410ecb
push eax
call fcn.0040d912
mov dword [esp], 0x401a90
push edi
mov dword [0x417930], eax
call esi
push eax
call fcn.0040d912
mov dword [esp], 0x401a7c
push edi
mov dword [0x417934], eax
call esi
push eax
call fcn.0040d912
mov dword [esp], 0x401a60
push edi
mov dword [0x417938], eax
call esi
push eax
call fcn.0040d912
pop ecx
mov dword [0x417940], eax
test eax, eax
je 0x410e1a
push 0x401a48
push edi
call esi
push eax
call fcn.0040d912
pop ecx
mov dword [0x41793c], eax
mov eax, dword [0x41793c]
cmp eax, ebx
je 0x410e72
cmp dword [0x417940], ebx
je 0x410e72
push eax
call fcn.0040d997
push dword [0x417940]
mov esi, eax
call fcn.0040d997
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x410e72
test edi, edi
je 0x410e72
call esi
test eax, eax
je 0x410e69
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x410e69
test byte [ebp - 0xc], 1
jne 0x410e72
or dword [ebp + 0x10], 0x200000
jmp 0x410eab
mov eax, dword [0x417934]
cmp eax, ebx
je 0x410eab
push eax
call fcn.0040d997
pop ecx
test eax, eax
je 0x410eab
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x410eab
mov eax, dword [0x417938]
cmp eax, ebx
je 0x410eab
push eax
call fcn.0040d997
pop ecx
test eax, eax
je 0x410eab
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417930]
call fcn.0040d997
pop ecx
test eax, eax
je 0x410ecb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x410ecd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x402eb7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x451334]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00423afa
mov esp, ebp
pop ebp
ret

Function at 0x402ef9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00426404
add esp, 0xc
mov dword [ebp - 0x3c], esi
mov esi, dword [ebp + 8]
mov edi, 0x451150
mov ecx, edi
mov dword [ebp - 0x38], 0x100
mov dword [ebp - 0x2c], esi
push str.OPatchInstall:_ShellExec_
mov dword [ebp - 0x20], 1
call fcn.0041b07a
push esi
mov ecx, edi
call fcn.0041b07a
push 0x43b304
mov ecx, edi
call fcn.0041b07a
push 0x43b300
mov ecx, edi
call fcn.0041b07a
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
pop edi
pop esi
test eax, eax
je 0x402f71
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp + 8]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp + 8]
push eax
call fcn.00425e44
int3

Function at 0x403f6b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x451334]
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.0042b5d7
lea ecx, [ebp - 0x10c]
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403fa1
sub ecx, edx
inc ecx
cmp ecx, 0x105
jae 0x404031
push edi
mov byte [ebp + ecx - 0x10c], al
lea edi, [ebp - 0x130]
push 7
xor eax, eax
pop ecx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x128], eax
mov eax, 0x414
mov word [ebp - 0x120], ax
lea eax, [ebp - 0x130]
push eax
mov dword [ebp - 0x12c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop edi
test eax, eax
je 0x404000
jmp 0x404010
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00423afa
mov esp, ebp
pop ebp
ret 4
push 0x3e3
lea ecx, [ebp - 0x110]
call fcn.00402c97
push 0x44b5a0
lea eax, [ebp - 0x110]
push eax
call fcn.00425e44
call fcn.00423d8d
int3