joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c770
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 0x40c80e
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.0040aa80
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.0040a9f0
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x40c798
cmp byte [esp], 0
je 0x40c7df
mov eax, edi
call fcn.0040a9f0
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40c81a
mov eax, edi
call fcn.0040a9f0
push eax
mov eax, edi
call fcn.0040a9f0
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.004095ec
mov edx, ebx
mov eax, edi
call fcn.0040aa80
jmp 0x40c81a
mov eax, edi
mov edx, 0x40c828
call fcn.0040a55c
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40ce60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.0040a55c
mov eax, ebx
call fcn.0040a9e8
mov eax, dword [ebx]
call fcn.0040a798
test eax, eax
jle 0x40ce91
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40ce86
pop esi
pop ebx
ret

Function at 0x40d660
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 0x40d6a8
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 0x40d69e
cmp word [edi], 0x5a4d
jne 0x40d69e
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40d69e
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40d6b4
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40d844
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x40d88a
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 0x40d8bb
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 0x40d918
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x40d8e6
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x40d8f8
push 0
push 0
push 0
push 2
push 0
push esi
call sub.KERNEL32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x40d912
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 0x410bfc
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffedc
mov ebp, ecx
mov esi, edx
mov edi, eax
xor ebx, ebx
push 0x1c
lea eax, [esp + 4]
push eax
push edi
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
jne 0x410c78
cmp dword [esp + 0x10], 0x1000
jne 0x410c78
cmp dword [esp + 4], 0
je 0x410c78
push 0x104
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
test eax, eax
je 0x410c78
mov eax, dword [esp + 4]
mov dword [esi], eax
mov eax, dword [esi]
cmp word [eax], 0x5a4d
jne 0x410c78
mov eax, dword [esi]
mov edx, dword [esi]
add edx, 0x3c
add eax, dword [edx]
cmp dword [eax], 0x4550
jne 0x410c78
mov edx, dword [esi]
add edx, dword [eax + 0x78]
mov dword [ebp], edx
cmp dword [ebp], 0
setne bl
mov eax, ebx
add esp, 0x124
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x41495c
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
cmp dword [0x429e84], 0xffffffff
jne 0x4149ab
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x4149a4
mov eax, esp
mov edx, 0x114
call fcn.0040bda4
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 [0x429e84], eax
jmp 0x4149ab
xor eax, eax
mov dword [0x429e84], eax
cmp dword [0x429e84], 1
sete al
add esp, 0x114
ret

Function at 0x41536c
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 0x415423
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0xc]
mov eax, dword [0x429d98]
call fcn.0040ce60
push dword [ebp - 0xc]
push 0x41543c
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 [0x429d9c]
call fcn.0041525c
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 3
call fcn.0040a858
push 0xffffffffffffffff
mov eax, dword [ebp - 8]
call fcn.0040a998
push eax
call fcn.00415070
mov esi, eax
test esi, esi
je 0x415408
push 0
push 0
push 0
push 4
push esi
call sub.KERNEL32.dll_MapViewOfFile
test eax, eax
je 0x415402
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 0x41542a
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040a52c
ret

Function at 0x415674
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 0x4156d5
mov ebx, 0x71af0000
jmp 0x4156c3
cmp dword [esp + 0x10], 0x10000
jne 0x4156b1
push 0x40
push 0x2000
push edi
mov eax, dword [esp + 0xc]
push eax
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
jmp 0x4156d5
mov eax, dword [esp + 4]
cmp ebx, eax
jne 0x4156c1
sub ebx, 0x10000
jmp 0x4156c3
mov ebx, eax
push 0x1c
lea eax, [esp + 4]
push eax
push ebx
call sub.KERNEL32.dll_VirtualQuery
cmp eax, 0x1c
je 0x415691
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 0x4159a0
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 [0x429e70]
cmp eax, 0x1c
jne 0x415a1b
cmp dword [ebp - 0xc], 0x1000
jne 0x415a16
cmp dword [ebp - 0x18], 0
je 0x415a16
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x415a16
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x4159f5
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x415a1b
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x429e40]
cmp eax, 0
je 0x415a16
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x429e9c]
add ebx, dword [ebp - 0x10]
jmp 0x4159b7
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x419430
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 0x419617
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor edx, edx
mov eax, dword [0x429d08]
call fcn.00410a4c
mov dword [0x42b8e8], eax
xor edx, edx
mov eax, dword [0x429d0c]
call fcn.00410a4c
mov dword [0x42b8ec], eax
lea eax, [ebp - 8]
mov edx, 5
call fcn.0040aa80
lea eax, [ebp - 8]
call fcn.0040a9f0
mov byte [eax], 0x72
lea eax, [ebp - 8]
call fcn.0040a9f0
mov byte [eax + 1], 0x64
lea eax, [ebp - 8]
call fcn.0040a9f0
mov byte [eax + 2], 0x65
lea eax, [ebp - 8]
call fcn.0040a9f0
mov byte [eax + 3], 0x63
lea eax, [ebp - 8]
call fcn.0040a9f0
mov byte [eax + 4], 0x20
lea edx, [ebp - 0xc]
mov eax, dword [0x429d80]
call fcn.0040ce60
push dword [ebp - 0xc]
push 0x419630
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
call sub.KERNEL32.dll_GetCurrentProcessId
mov cl, 0x30
mov edx, 1
call fcn.0040cb08
push dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040a858
mov eax, dword [ebp - 8]
call fcn.0040a998
push eax
push 0
push 0
call fcn.0040ba64
mov edx, dword [ebp + 8]
mov dword [edx - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x4195fc
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.KERNEL32.dll_WaitForSingleObject
mov dword [0x42b8dc], esi
mov dword [0x42b8e0], edi
cmp dword [0x42b8e8], 0
je 0x41954c
cmp dword [0x42b8ec], 0
jne 0x4195ce
mov dl, 1
mov eax, dword [0x429c84]
call fcn.00410b60
mov esi, eax
cmp dword [esi], 0x4244c8b
jne 0x4195e0
lea eax, [esi + 4]
mov eax, dword [eax]
and eax, 0xffffff
cmp eax, 0x241c8b
jne 0x4195e0
lea eax, [esi + 7]
cmp byte [eax], 0x51
jne 0x4195e0
lea eax, [esi + 8]
cmp byte [eax], 0x53
jne 0x4195e0
lea eax, [esi + 9]
cmp byte [eax], 0xe8
jne 0x4195e0
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 0x4195e0
lea edx, [esi + 0xe]
lea eax, [esi + 0xa]
add edx, dword [eax]
mov dword [0x42b8e4], edx
mov edx, 0x4193e0
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 0x4195e0
push 0x41938c
push 1
call dword [0x42b8e8]
test eax, eax
setne bl
test bl, bl
jne 0x4195fc
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 0x41961e
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040a52c
ret
Function at 0x419634
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 [0x42b8e8], 0
je 0x41964c
cmp dword [0x42b8ec], 0
jne 0x4196a5
mov dl, 1
mov eax, dword [0x429c84]
call fcn.00410b60
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 0x41968b
mov eax, dword [0x42b8e4]
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 0x4196b0
push 0x41938c
call dword [0x42b8ec]
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x41c394
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
xor ebp, ebp
push 0
push 0
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call sub.KERNEL32.dll_CreateFileW
mov esi, eax
cmp esi, 0xffffffff
je 0x41c43d
push 0
push esi
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
push ebx
push 0x40
call sub.KERNEL32.dll_LocalAlloc
mov edi, eax
test edi, edi
je 0x41c437
push 0
lea eax, [esp + 4]
push eax
push ebx
push edi
push esi
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x41c431
cmp ebx, dword [esp]
jne 0x41c431
xor ebx, ebx
mov eax, dword [esp]
dec eax
shr eax, 1
test eax, eax
jl 0x41c41b
inc eax
xor edx, edx
movzx ecx, word [edi + edx*2]
add ebx, ecx
test ebx, 0xffff0000
je 0x41c417
mov ecx, ebx
and ecx, 0xffff
shr ebx, 0x10
add ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x41c3fa
mov eax, ebx
and ax, 0xffff
shr ebx, 0x10
add ax, bx
movzx eax, ax
mov ebx, eax
mov ebp, dword [esp]
add ebp, ebx
push edi
call sub.KERNEL32.dll_LocalFree
push esi
call sub.KERNEL32.dll_CloseHandle
mov eax, ebp
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41c448
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41c557
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [0x42b6b8], 0
jne 0x41c529
cmp byte [0x429f98], 0
je 0x41c491
push ebx
push 0x104
call sub.KERNEL32.dll_GetTempPathW
jmp 0x41c49c
push 0x104
push ebx
call sub.KERNEL32.dll_GetSystemDirectoryW
test eax, eax
jne 0x41c4ab
mov word [ebx], 0x2e
mov word [ebx + 2], 0
push ebx
call sub.KERNEL32.dll_lstrlenW
cmp word [ebx + eax*2 - 2], 0x5c
je 0x41c4c4
push 0x41c564
push ebx
call sub.KERNEL32.dll_lstrcatW
lea edx, [ebp - 0x44]
mov eax, dword [0x429dd8]
call fcn.0040ce60
push dword [ebp - 0x44]
push 0x41c570
lea edx, [ebp - 0x48]
mov eax, dword [0x429dd0]
call fcn.0040ce60
push dword [ebp - 0x48]
push 0x41c57c
lea edx, [ebp - 0x4c]
mov eax, dword [0x429ddc]
call fcn.0040ce60
push dword [ebp - 0x4c]
lea eax, [ebp - 4]
mov edx, 5
call fcn.0040a858
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a998
push eax
call fcn.0041456c
lea eax, [ebp - 0x40]
push eax
push ebx
call sub.KERNEL32.dll_lstrcatW
jmp 0x41c534
push 0x42b6b8
push ebx
call sub.KERNEL32.dll_lstrcpyW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c55e
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.0040a52c
lea eax, [ebp - 4]
call fcn.0040a508
ret
Function at 0x41c580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a988
xor eax, eax
push ebp
push 0x41c606
push dword fs:[eax]
mov dword fs:[eax], esp
mov ebx, dword [ebp - 4]
mov al, byte [ebx]
mov byte [ebp - 5], al
inc ebx
mov edx, dword [ebx]
mov eax, edi
call fcn.0040aa80
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x41c5dd
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x41c5d8
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x41c5cd
add ebx, 2
jmp 0x41c5e3
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.0040a798
add eax, dword [edi]
cmp eax, esi
ja 0x41c5bb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41c60d
lea eax, [ebp - 4]
call fcn.0040a508
ret
Function at 0x41cea8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x41d0d5
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
lea edx, [ebp - 0x224]
mov eax, dword [0x429e00]
call fcn.0040ce60
mov edx, dword [ebp - 0x224]
lea eax, [ebp - 0x220]
call fcn.0040ac80
push dword [ebp - 0x220]
push 0x41d0ec
lea eax, [ebp - 0x228]
mov edx, esi
call fcn.0040ac2c
push dword [ebp - 0x228]
lea eax, [ebp - 0x21c]
mov edx, 3
call fcn.0040acac
mov eax, dword [ebp - 0x21c]
call fcn.0040ac90
push eax
push SysFreeString
call fcn.0040b9ec
test eax, eax
jne 0x41cff1
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
lea edx, [ebp - 0x22c]
mov eax, dword [0x429de8]
call fcn.0040ce60
mov eax, dword [ebp - 0x22c]
call fcn.0040a998
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040b9f4
test eax, eax
jne 0x41cfa7
cmp dword [ebp - 8], 4
je 0x41cfae
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x41cfb7
cmp dword [ebp - 4], 0
jbe 0x41cfb7
dec dword [ebp - 4]
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea edx, [ebp - 0x230]
mov eax, dword [0x429de8]
call fcn.0040ce60
mov eax, dword [ebp - 0x230]
call fcn.0040a998
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040b9fc
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040b9c4
jmp 0x41cff6
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41d08e
call fcn.0041c8b8
test al, al
je 0x41d091
push 0xf003f
push 0
push 0
call dword [0x42b91c]
mov edi, eax
test edi, edi
je 0x41d091
push 0x101ff
push esi
push edi
call dword [0x42b920]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41d074
mov eax, dword [ebp - 4]
push eax
call dword [0x42b918]
mov ebx, eax
test ebx, ebx
je 0x41d068
mov word [ebp - 0x216], 0
lea eax, [ebp - 0x216]
call fcn.0041c448
lea eax, [ebp - 0x216]
push eax
call sub.KERNEL32.dll_DeleteFileW
mov eax, dword [ebp - 4]
push eax
call dword [0x42b90c]
jmp 0x41d085
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x424
sete al
neg al
sbb ebx, ebx
push edi
call dword [0x42b90c]
jmp 0x41d091
or ebx, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41d0dc
lea eax, [ebp - 0x230]
mov edx, 2
call fcn.0040a52c
lea eax, [ebp - 0x228]
call fcn.0040ab14
lea eax, [ebp - 0x224]
call fcn.0040a508
lea eax, [ebp - 0x220]
mov edx, 2
call fcn.0040ab2c
ret
Function at 0x41db0c
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff8f8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x704], edx
mov dword [ebp - 0x708], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41dce1
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov edi, 1
mov bl, 1
lea edx, [ebp - 0x704]
mov eax, dword [0x429dcc]
call fcn.0040ce60
mov eax, dword [ebp - 0x704]
push eax
lea eax, [ebp - 0x708]
mov edx, edi
add dl, 0x30
call fcn.0040a6f0
mov ecx, dword [ebp - 0x708]
lea eax, [ebp - 0x14]
pop edx
call fcn.0040a7e4
mov eax, dword [ebp - 0x14]
call fcn.0040a998
push eax
push 0
push 4
call sub.KERNEL32.dll_OpenFileMappingA
mov esi, eax
test esi, esi
je 0x41dc9c
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 0x41dc96
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 0x41dbcd
cmp eax, dword [esp]
pop edx
pop eax
jne 0x41dc8d
xor ebx, ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x41dc8d
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetVersion
test eax, 0x80000000
jne 0x41dc41
imul eax, dword [ebp - 8], 0x8f
mov edx, dword [ebp - 0x10]
push esi
push edi
lea esi, [edx + eax*8 + 0xc]
lea edi, [ebp - 0x700]
mov ecx, 0x11e
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
cmp word [ebp - 0x700], 0
jne 0x41dc2a
mov bl, 1
jmp 0x41dc8d
lea eax, [ebp - 0x700]
push eax
call sub.KERNEL32.dll_GetModuleHandleW
cmp eax, dword [ebp - 4]
jne 0x41dc81
mov byte [ebp - 9], 1
jmp 0x41dc8d
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 0x41dc6a
mov bl, 1
jmp 0x41dc8d
lea eax, [ebp - 0x288]
push eax
call sub.KERNEL32.dll_GetModuleHandleA
cmp eax, dword [ebp - 4]
jne 0x41dc81
mov byte [ebp - 9], 1
jmp 0x41dc8d
inc dword [ebp - 8]
dec dword [ebp - 0x18]
jne 0x41dbf1
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 0x41dcab
inc edi
cmp edi, 0xa
jne 0x41db43
cmp byte [ebp - 9], 0
jne 0x41dcbb
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0041d9d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41dce8
lea eax, [ebp - 0x708]
mov edx, 2
call fcn.0040a52c
lea eax, [ebp - 0x14]
call fcn.0040a508
ret
Function at 0x41ec08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffce4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov bl, 1
push ebp
xor ecx, ecx
xor edx, edx
xor eax, eax
call fcn.0041e94c
pop ecx
test al, al
jne 0x41ed30
push 0x104
lea eax, [ebp - 0x111]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
push 0
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.0041e94c
pop ecx
test al, al
jne 0x41ed30
push 0x104
lea eax, [ebp - 0x111]
push eax
mov eax, dword [0x42b658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameA
push 0x104
lea eax, [ebp - 0x31c]
push eax
mov eax, dword [0x42b658]
push eax
call sub.KERNEL32.dll_GetModuleFileNameW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
mov cl, 1
call fcn.0041e94c
pop ecx
test al, al
jne 0x41ed30
lea eax, [ebp - 0x111]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x31c]
push eax
push 0x104
call sub.KERNEL32.dll_GetCurrentDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.0041e94c
pop ecx
test al, al
jne 0x41ed30
push 0x104
lea eax, [ebp - 0x111]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryA
push 0x104
lea eax, [ebp - 0x31c]
push eax
call sub.KERNEL32.dll_GetSystemDirectoryW
push ebp
lea edx, [ebp - 0x31c]
lea eax, [ebp - 0x111]
xor ecx, ecx
call fcn.0041e94c
pop ecx
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41f3c8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 0xc]
cmp byte [ebp + 8], 0
je 0x41f3f3
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
push ebx
call sub.KERNEL32.dll_VirtualProtectEx
test eax, eax
je 0x41f407
lea eax, [ebp - 8]
push eax
push edi
mov eax, dword [ebp - 4]
push eax
push esi
push ebx
call sub.KERNEL32.dll_WriteProcessMemory
test eax, eax
jne 0x41f40b
xor eax, eax
jmp 0x41f40d
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x41f57c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax], 0
je 0x41f613
push 2
lea ecx, [ebp - 2]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0041f39c
test al, al
je 0x41f613
cmp word [ebp - 2], 0x5a4d
jne 0x41f613
push 4
lea ecx, [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, 0x3c
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0041f39c
test al, al
je 0x41f613
push 0xf8
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [eax - 4]
mov edx, dword [edx]
add edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.0041f39c
test al, al
je 0x41f613
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x41f613
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x41f617
xor eax, eax
jmp 0x41f619
mov al, 1
test al, al
je 0x41f636
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx]
movzx ecx, word [ebp - 2]
add edx, ecx
add edx, 0x78
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov dword [ecx], edx
pop ecx
pop ecx
pop ebp
ret