joyce8/EMBER2024-capa huggingface dataset:
Function at 0x701a170d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
lea eax, [ebp - 0x208]
push 0x104
push eax
push dword [ebp + 8]
call fcn.701a15ab
lea eax, [ebp - 0x208]
mov esi, 0x80000000
push eax
push esi
call fcn.701a23c7
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 0x18
shl eax, 1
push eax
lea eax, [ebp - 0x208]
push dword [ebp + 0xc]
push 2
push 0x701a43c0
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret

Function at 0x701a17fa
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, 0x104
lea eax, [ebp - 0x410]
push esi
push eax
push dword [ebp + 8]
call fcn.701a15ab
lea eax, [ebp - 0x208]
push esi
push eax
call fcn.701a15dc
push dword [ebp + 8]
call fcn.701a176c
add esp, 0x18
test eax, eax
pop esi
jne 0x701a1838
leave
ret
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
push 0x80000000
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 1
pop eax
leave
ret

Function at 0x701a18c7
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
push edi
mov edi, 0x104
lea eax, [ebp - 0x410]
push edi
push eax
push dword [ebp + 8]
mov esi, ecx
call fcn.701a15f3
add esp, 0xc
test eax, eax
je 0x701a1930
lea eax, [ebp - 0x208]
push edi
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x208]
push eax
push 0x701a43c8
call dword [sym.imp.MSVCRT.dll__wcsicmp]
pop ecx
test eax, eax
pop ecx
je 0x701a1930
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
mov dword [esi], eax
jne 0x701a1934
xor eax, eax
jmp 0x701a194f
push str.DllGetClassObject
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor ecx, ecx
mov dword [esi + 0xc], eax
test eax, eax
setne cl
mov eax, ecx
mov dword [esi + 4], eax
pop edi
pop esi
leave
ret 4

Function at 0x701a198c
Capabilities:
Hash data with crc32

Disassembly:
xor edx, edx
push esi
add ecx, 4
push 8
mov eax, edx
pop esi
test al, 1
je 0x701a19a4
shr eax, 1
xor eax, 0xedb88320
jmp 0x701a19a6
shr eax, 1
dec esi
jne 0x701a1997
mov dword [ecx], eax
inc edx
add ecx, 4
cmp edx, 0x100
jl 0x701a1992
pop esi
ret

Function at 0x701a19b9
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x701a19ef
mov eax, dword [esp + 8]
test eax, eax
je 0x701a19ef
push ebx
push esi
push edi
lea esi, [eax]
mov eax, dword [ecx]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [ecx + edi*4 + 4]
xor edi, eax
inc edx
dec esi
mov dword [ecx], edi
jne 0x701a19ce
pop edi
pop esi
pop ebx
ret 8
Function at 0x701a1b05
Capabilities:
Read file via mapping

Disassembly:
push ebx
push edi
push dword [esp + 0xc]
xor edi, edi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov ebx, eax
cmp ebx, edi
je 0x701a1b52
push esi
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, edi
je 0x701a1b4a
push dword [esi]
lea eax, [esi + 4]
push eax
push dword [esp + 0x1c]
call fcn.701a1aca
add esp, 0xc
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
ret
Function at 0x701a1d7f
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x80
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x701a1e04
push ebx
push edi
push 3
push ebx
push 1
push 0x100
push dword [ebp + 0xc]
call esi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x701a1df6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x701a1df6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x701a1e0f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x701a1e0b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x701a1e20
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x701a2102
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
push ebx
push ebx
push dword [ebp + 0x10]
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x701a2151
push dword [ebp - 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
cmp edi, ebx
je 0x701a2151
lea eax, [ebp - 4]
push eax
push edi
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
je 0x701a2155
push edi
call fcn.701a2794
pop ecx
xor eax, eax
jmp 0x701a219a
cmp byte [ebp + 0x18], bl
je 0x701a2182
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x18]
push eax
push edi
call fcn.701a205f
add esp, 0xc
test al, al
je 0x701a217d
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp - 4]
mov ecx, dword [eax]
push dword [ebp + 0x18]
jmp 0x701a218c
mov dword [ebp - 4], ebx
jmp 0x701a2190
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp - 4]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x10]
push edi
call fcn.701a2794
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x701a23f3
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt data using rc4 via winapi
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], 0x6603
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
je 0x701a241c
cmp dword [ebp + 0x10], 0x6801
jne 0x701a2423
mov dword [ebp - 4], 0x80
jmp 0x701a2423
mov dword [ebp - 4], 0xc0
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push ebx
push 1
push ebx
push ebx
push esi
call edi
test eax, eax
jne 0x701a245f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
je 0x701a2449
cmp eax, 0x8009000b
jne 0x701a2452
push 0x10
push 1
push ebx
push ebx
push esi
call edi
push 8
push 1
push ebx
push ebx
push esi
call edi
test eax, eax
je 0x701a24a9
lea edi, [esi + 4]
push edi
push ebx
push ebx
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x701a24a9
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x701a24a9
lea eax, [esi + 8]
push eax
mov eax, dword [ebp - 4]
shl eax, 0x10
push eax
push dword [edi]
push dword [ebp + 0x10]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
neg eax
sbb eax, eax
neg eax
jmp 0x701a24ab
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x402820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x512014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4028b8
push SysReAllocStringLen
call sub.ADVAPI32.dll_RegOpenKeyExA
test eax, eax
jne 0x402898
xor eax, eax
push ebp
push 0x402891
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4028d4
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402898
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.dll_RegCloseKey
ret
mov ax, word [0x512014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x512014], ax
mov esp, ebp
pop ebp
ret

Function at 0x4033ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x51403c], 0
je 0x40340d
cmp word [0x514210], 0xd7b2
jne 0x4033d5
cmp dword [0x514218], 0
jbe 0x4033d5
mov eax, 0x51420c
call dword [0x514228]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x51205c
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403434
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
push eax
call sub.KERNEL32.dll_WriteFile
pop edx
ret
cmp byte [0x512020], 0
jne 0x403429
push 0
push 0x512054
push 0x51205c
push 0
call sub.USER32.dll_MessageBoxA
pop edx
ret

Function at 0x404740
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4047a6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040378c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402714
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404790
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047ad
lea eax, [ebp - 0x10]
call fcn.00403528
ret

Function at 0x405f04
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x405fa2
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00403aa4
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00403a10
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x405f2c
cmp byte [esp], 0
je 0x405f73
mov eax, edi
call fcn.00403a10
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x405fae
mov eax, edi
call fcn.00403a10
push eax
mov eax, edi
call fcn.00403a10
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004025ec
mov edx, ebx
mov eax, edi
call fcn.00403aa4
jmp 0x405fae
mov eax, edi
mov edx, 0x405fbc
call fcn.0040357c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x405fc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x406050
test ebp, ebp
setl bl
mov eax, edi
mov edx, 0xb
call fcn.00403f58
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, ebp
mov ebp, 0xa
cdq
idiv ebp
mov ebp, eax
add cx, 0x30
mov eax, dword [edi]
mov word [eax + esi*2 - 2], cx
dec esi
test ebp, ebp
jne 0x405fe6
test bl, bl
je 0x406023
mov eax, dword [edi]
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40605c
mov eax, dword [edi]
call fcn.00403cd0
mov edx, eax
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
mov eax, dword [edi]
lea eax, [eax + esi*2]
call fcn.004025ec
mov edx, ebx
mov eax, edi
call fcn.00403f58
jmp 0x40605c
mov eax, edi
mov edx, 0x406068
call fcn.00403b74
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x406714
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040357c
mov eax, ebx
call fcn.00403a08
mov eax, dword [ebx]
call fcn.004037b8
test eax, eax
jle 0x406745
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40673a
pop esi
pop ebx
ret

Function at 0x4070a4
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x4070ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 2
mov edi, esi
push edi
call sub.KERNEL32.dll_IsBadReadPtr
test eax, eax
jne 0x4070e2
cmp word [edi], 0x5a4d
jne 0x4070e2
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x4070e2
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4070f8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407288
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x51235c], 0
jne 0x407369
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4072db
push 0x10000
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
jmp 0x40730c
push 0x105
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov ebx, eax
push 0x104
push ebx
push esi
call sub.KERNEL32.dll_GetModuleFileNameA
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push ebx
call sub.KERNEL32.dll_CreateFileA
mov esi, eax
push ebx
call sub.KERNEL32.dll_LocalFree
cmp esi, 0xffffffff
je 0x407369
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x407337
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x407349
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x407363
push 0
push 0
push 0
push 4
push ebx
call sub.KERNEL32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40d234
Capabilities:
Hash data using sha1

Disassembly:
push 0xcc
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edx, eax
mov eax, edx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, edx
ret

Function at 0x410800
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
cmp dword [0x512f38], 0xffffffff
jne 0x41084f
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x410848
mov eax, esp
mov edx, 0x114
call fcn.00404ee8
mov dword [esp], 0x114
mov eax, esp
push eax
call sub.KERNEL32.dll_GetVersionExW
cmp dword [esp + 4], 6
setae al
and eax, 0x7f
mov dword [0x512f38], eax
jmp 0x41084f
xor eax, eax
mov dword [0x512f38], eax
cmp dword [0x512f38], 1
sete al
add esp, 0x114
ret

Function at 0x41144c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x411503
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x512e50]
call fcn.00406714
push dword [ebp - 0xc]
push 0x41151c
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov cl, byte [ebp - 1]
mov eax, dword [0x512e54]
call fcn.0041133c
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403878
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.004039b8
push eax
call fcn.00411150
mov esi, eax
test esi, esi
je 0x4114e8
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x4114e2
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov ecx, dword [eax]
mov dword [edx], ecx
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
mov bl, 1
push esi
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41150a
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040354c
ret

Function at 0x411754
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
mov edi, eax
xor esi, esi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4117b5
mov ebx, 0x71af0000
jmp 0x4117a3
cmp dword [esp + 0x10], 0x10000
jne 0x411791
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
jmp 0x4117b5
mov eax, dword [esp + 4]
cmp ebx, eax
jne 0x4117a1
sub ebx, 0x10000
jmp 0x4117a3
mov ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
je 0x411771
push 0x40
push 0x1000
push edi
push esi
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
mov eax, esi
add esp, 0x1c
pop edi
pop esi
pop ebx
ret
Function at 0x411a80
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
pushfd
xor ebx, ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], 0
push 0x1c
lea eax, [ebp - 0x1c]
push eax
push ebx
call dword [0x512f24]
cmp eax, 0x1c
jne 0x411afb
cmp dword [ebp - 0xc], 0x1000
jne 0x411af6
cmp dword [ebp - 0x18], 0
je 0x411af6
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x411af6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x411ad5
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x411afb
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x512ef8]
cmp eax, 0
je 0x411af6
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x512f54]
add ebx, dword [ebp - 0x10]
jmp 0x411a97
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x415580
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x415767
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x512db0]
call fcn.0040a5c8
mov dword [0x5146e8], eax
xor edx, edx
mov eax, dword [0x512db4]
call fcn.0040a5c8
mov dword [0x5146ec], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.00403aa4
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.00403a10
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x512e38]
call fcn.00406714
push dword [ebp - 0xc]
push 0x415780
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.004061ac
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.00403878
mov eax, dword [ebp - 8]
call fcn.004039b8
push eax
push 0
push 0
call fcn.00404bb8
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x41574c
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x5146dc], esi
mov dword [0x5146e0], edi
cmp dword [0x5146e8], 0
je 0x41569c
cmp dword [0x5146ec], 0
jne 0x41571e
mov dl, 1
mov eax, dword [0x512d20]
call fcn.0040a6d4
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x415730
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x415730
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x415730
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x415730
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x415730
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea eax, [esi + 0xa]
push eax
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x415730
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x5146e4], edx
mov edx, 0x415530
sub edx, esi
sub edx, 0xe
mov dword [eax], edx
lea edx, [ebp - 4]
push edx
mov edx, dword [ebp - 4]
push edx
push 4
push eax
call sub.KERNEL32.dll_VirtualProtect
mov bl, 1
jmp 0x415730
push 0x4154dc
push 1
call dword [0x5146e8]
test eax, eax
setne bl
test bl, bl
jne 0x41574c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41576e
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040354c
ret
Function at 0x415784
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
cmp dword [0x5146e8], 0
je 0x41579c
cmp dword [0x5146ec], 0
jne 0x4157f5
mov dl, 1
mov eax, dword [0x512d20]
call fcn.0040a6d4
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
lea esi, [ebx + 0xa]
push esi
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
je 0x4157db
mov eax, dword [0x5146e4]
sub eax, ebx
sub eax, 0xe
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
push eax
push 4
push esi
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_ReleaseMutex
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_CloseHandle
jmp 0x415800
push 0x4154dc
call dword [0x5146ec]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x419c58
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x28c], edx
mov dword [ebp - 0x290], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x419de1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
je 0x419dab
mov edi, 1
mov bl, 1
lea edx, [ebp - 0x28c]
mov eax, dword [0x512e84]
call fcn.00406714
mov eax, dword [ebp - 0x28c]
push eax
lea eax, [ebp - 0x290]
mov edx, edi
add dl, 0x30
call fcn.00403710
mov ecx, dword [ebp - 0x290]
lea eax, [ebp - 0x14]
pop edx
call fcn.00403804
mov eax, dword [ebp - 0x14]
call fcn.004039b8
push eax
push 0
push 4
call sub.KERNEL32.dll_OpenFileMappingA
mov esi, eax
test esi, esi
je 0x419d9c
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x419d96
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
push edx
push eax
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x419d29
cmp eax, dword [esp]
pop edx
pop eax
jne 0x419d8d
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x419d8d
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
imul eax, dword [ebp - 8], 0x4e
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x288]
mov ecx, 0x9c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp byte [ebp - 0x288], 0
jne 0x419d6e
mov bl, 1
jmp 0x419d8d
lea eax, [ebp - 0x288]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
cmp eax, dword [ebp - 4]
jne 0x419d85
mov byte [ebp - 9], 1
jmp 0x419d8d
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x419d45
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_UnmapViewOfFile
push esi
call sub.KERNEL32.dll_CloseHandle
or bl, byte [ebp - 9]
jne 0x419dab
inc edi
cmp edi, 0xa
jne 0x419c9f
cmp byte [ebp - 9], 0
jne 0x419dbb
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.00419b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419de8
lea eax, [ebp - 0x290]
mov edx, 2
call fcn.0040354c
lea eax, [ebp - 0x14]
call fcn.00403528
ret