joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c330
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_UnmapViewOfFile
test eax, 0x80000000
je 0x40c41e
xor eax, eax
push ebp
push 0x40c377
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_LoadLibraryExA
mov ebx, eax
call fcn.0040a28c
xor ebx, eax
mov ebx, dword [ebx + 0x44]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c383
test ebx, ebx
je 0x40c4ba
call fcn.0040a354
test al, al
je 0x40c399
mov esi, dword [ebp + 8]
jmp 0x40c39f
mov esi, dword [ebp + 8]
shr esi, 2
mov eax, esi
xor edx, edx
push edx
push eax
mov eax, dword [ebx]
cdq
cmp edx, dword [esp + 4]
jne 0x40c3b7
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x40c412
jmp 0x40c3bb
pop edx
pop eax
jle 0x40c412
xor eax, eax
push ebp
push 0x40c3fe
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, dword [ebx + esi*8 + 8]
test edi, edi
je 0x40c3f1
call sub.KERNEL32.DLL_LoadLibraryExA
push eax
call fcn.0040a28c
pop edx
xor edx, eax
mov al, byte [edx]
cmp al, byte [edi]
jne 0x40c3f1
call fcn.0040a28c
xor eax, dword [ebx + esi*8 + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c4ba
push 0x57
call sub.KERNEL32.DLL_RtlUnwind
jmp 0x40c4ba
push 0
push 0
push 0x400
lea eax, [ebp - 8]
push eax
call sub.KERNEL32.DLL_LoadLibraryW
push eax
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_LoadLibraryW
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryW
test eax, eax
jne 0x40c44a
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x20]
mov edx, 0x18
call fcn.00404fc4
cmp dword [0x418a0c], 0
jne 0x40c46f
mov eax, 0x40c4d0
call fcn.0040a0e4
mov dword [0x418a0c], eax
cmp dword [0x418a0c], 0
je 0x40c4a2
push 0
push 0x18
lea eax, [ebp - 0x20]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [0x418a0c]
mov esi, eax
test esi, esi
jne 0x40c49a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x40c4a9
push esi
call sub.KERNEL32.DLL_RtlUnwind
jmp 0x40c4a9
push 0x78
call sub.KERNEL32.DLL_RtlUnwind
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
je 0x40c4ba
mov eax, dword [ebp - 8]
push eax
call sub.KERNEL32.DLL_FormatMessageA
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40d460
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 [0x418a6c]
cmp eax, 0x1c
jne 0x40d4db
cmp dword [ebp - 0xc], 0x1000
jne 0x40d4d6
cmp dword [ebp - 0x18], 0
je 0x40d4d6
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x20], eax
je 0x40d4d6
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
cmp eax, 0
jne 0x40d4b5
mov eax, dword [ebp - 0x18]
cmp eax, 0x80000000
jae 0x40d4db
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [0x418a3c]
cmp eax, 0
je 0x40d4d6
push edi
push esi
mov eax, dword [ebp - 0x18]
push eax
call dword [0x418a84]
add ebx, dword [ebp - 0x10]
jmp 0x40d477
popfd
popal
add esp, 0x20
pop ebp
ret 0xc
Function at 0x40ec94
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40ee0f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x18]
mov eax, 0x40ee28
call fcn.004070f0
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x1c]
mov eax, 0x40ee3c
call fcn.004070f0
mov edx, dword [ebp - 0x1c]
pop eax
call fcn.00403cfc
mov eax, dword [ebp - 0x18]
call fcn.00403eec
push eax
call fcn.0040cab0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40edf4
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetCurrentThreadId
xor eax, eax
push ebp
push 0x40ede4
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea edx, [ebp - 0x20]
mov eax, 0x40ee28
call fcn.004070f0
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x24]
mov eax, 0x40ee4c
call fcn.004070f0
mov edx, dword [ebp - 0x24]
pop eax
call fcn.00403cfc
mov eax, dword [ebp - 0x20]
call fcn.00403eec
push eax
call fcn.0040cc94
mov edi, eax
test edi, edi
je 0x40edcd
call sub.KERNEL32.DLL_OpenMutexW
cmp eax, 0xb7
setne bl
push 0
push 0
push 0
push 0xf001f
push edi
call sub.KERNEL32.DLL_lstrcpyW
mov esi, eax
test esi, esi
je 0x40edc7
test bl, bl
je 0x40edab
push 0
push 8
call fcn.0040aed8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, edi
call fcn.0040adc8
jmp 0x40edb0
mov eax, dword [esi]
mov dword [ebp - 4], eax
push ebp
mov eax, dword [ebp - 0x14]
call fcn.0040e6f0
pop ecx
push ebp
call fcn.0040e5dc
pop ecx
push esi
call sub.KERNEL32.DLL_ExitProcess
push edi
call sub.KERNEL32.DLL_FormatMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40edeb
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_GetFileSize
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ee16
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403b94
ret
Function at 0x411618
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
call sub.KERNEL32.DLL_OpenMutexW
mov dword [ebp - 0xc], eax
cmp byte [0x418b30], 0
je 0x4116c2
xor eax, eax
mov dword [ebp - 8], eax
push 0x41989c
call sub.KERNEL32.DLL_GetTempFileNameW
xor ecx, ecx
push ebp
push 0x4116ad
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, dword [0x4198b4]
call fcn.00404670
cmp eax, 0
jl 0x411695
lea edx, [eax + eax*4]
mov ecx, dword [0x4198b4]
mov ecx, dword [ecx + edx*8 + 0x1c]
cmp ecx, ebx
jne 0x41168f
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [0x4198b4]
mov edx, dword [ecx + edx*8 + 0x18]
mov dword [ebp - 8], edx
jmp 0x411695
dec eax
cmp eax, 0xffffffff
jne 0x411668
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4116b4
push 0x41989c
call sub.KERNEL32.DLL_WaitForMultipleObjects
ret
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_RtlUnwind
mov eax, dword [ebp - 4]
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4116d8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov byte [ebp - 6], cl
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov byte [ebp - 7], 0
cmp byte [0x418b30], 0
je 0x411870
push 0x41989c
call sub.KERNEL32.DLL_GetTempFileNameW
xor edx, edx
push ebp
push 0x4117f5
push dword fs:[edx]
mov dword fs:[edx], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4198b4]
call fcn.00404670
mov ebx, eax
cmp ebx, 0
jl 0x411798
lea edi, [ebx + ebx*4]
mov eax, dword [0x4198b4]
mov eax, dword [eax + edi*8 + 0x1c]
mov edx, dword [ebp - 4]
cmp eax, edx
jne 0x411792
mov byte [ebp - 7], 1
mov eax, dword [0x4198b4]
mov eax, dword [eax + edi*8 + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4198b4]
call fcn.00404670
mov esi, eax
mov eax, dword [0x4198b4]
lea eax, [eax + edi*8]
lea edx, [esi + esi*4]
mov ecx, dword [0x4198b4]
lea edx, [ecx + edx*8]
mov ecx, dword [0x410fd8]
call fcn.00404300
push esi
mov eax, 0x4198b4
mov ecx, 1
mov edx, dword [0x411008]
call fcn.00404824
add esp, 4
jmp 0x411798
dec ebx
cmp ebx, 0xffffffff
jne 0x411729
cmp byte [ebp - 7], 0
je 0x4117a4
cmp byte [ebp - 5], 0
je 0x4117a8
xor eax, eax
jmp 0x4117aa
mov al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x4117dd
mov eax, dword [0x4198b4]
call fcn.00404670
test eax, eax
jl 0x4117dd
inc eax
xor ebx, ebx
lea edx, [ebx + ebx*4]
mov ecx, dword [0x4198b4]
cmp dword [ecx + edx*8], 0
je 0x4117d9
mov byte [ebp - 0xd], 0
jmp 0x4117dd
inc ebx
dec eax
jne 0x4117c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4117fc
push 0x41989c
call sub.KERNEL32.DLL_WaitForMultipleObjects
ret
mov al, byte [ebp - 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4118a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x411a97
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x411a69
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_OpenMutexW
mov dword [ebp - 0x14], eax
test ebx, ebx
je 0x411a56
cmp byte [0x418b30], 0
je 0x411a56
push 0x41989c
call sub.KERNEL32.DLL_GetTempFileNameW
xor eax, eax
push ebp
push 0x41198f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4198b4]
call fcn.00404668
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x41187c]
call fcn.00404824
add esp, 4
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4198b4]
call fcn.00404670
mov esi, eax
test esi, esi
jl 0x411977
inc esi
xor edi, edi
lea ebx, [edi + edi*4]
mov eax, dword [0x4198b4]
cmp dword [eax + ebx*8 + 8], 0
je 0x411973
mov eax, dword [ebp - 4]
lea eax, [eax + eax*4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*8]
mov edx, dword [0x4198b4]
lea edx, [edx + ebx*8]
mov ecx, dword [0x410fd8]
call fcn.00404300
inc dword [ebp - 4]
inc edi
dec esi
jne 0x411941
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411996
push 0x41989c
call sub.KERNEL32.DLL_WaitForMultipleObjects
ret
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_RtlUnwind
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x411a73
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411a9e
lea eax, [ebp - 0x18]
call fcn.00403b70
lea eax, [ebp - 8]
mov edx, dword [0x41187c]
call fcn.00404830
ret
Function at 0x411aa8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
mov dword [ebp - 4], ebp
xor eax, eax
mov dword [ebp - 8], eax
call sub.KERNEL32.DLL_OpenMutexW
mov dword [ebp - 0x14], eax
push 0
lea edx, [ebp - 4]
mov ecx, 4
mov eax, dword [ebp - 4]
call fcn.0040a42c
test al, al
je 0x411c19
push 0
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 4
call fcn.0040a42c
test al, al
je 0x411c19
push 0x1c
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
cmp eax, 0x1c
jne 0x411b2c
push 0
lea edx, [ebp - 0xe]
mov ecx, 2
mov eax, dword [ebp - 0x2c]
call fcn.0040a42c
test al, al
je 0x411b2c
cmp word [ebp - 0xe], 0x5a4d
je 0x411c13
cmp byte [0x418b30], 0
je 0x411c19
push 0x41989c
call sub.KERNEL32.DLL_GetTempFileNameW
xor edx, edx
push ebp
push 0x411c0c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x4198b4]
call fcn.00404670
mov ebx, eax
cmp ebx, 0
jl 0x411bf4
lea eax, [ebx + ebx*4]
mov edx, dword [0x4198b4]
mov eax, dword [edx + eax*8 + 0x18]
test eax, eax
je 0x411bea
lea edx, [ebx + ebx*4]
mov ecx, dword [0x4198b4]
cmp dword [eax + 0x28], 0
je 0x411bea
lea edx, [ebx + ebx*4]
mov ecx, dword [0x4198b4]
mov edx, dword [eax + 0x28]
cmp edx, dword [ebp - 0xc]
ja 0x411bea
lea edx, [ebx + ebx*4]
mov ecx, dword [0x4198b4]
mov eax, dword [eax + 0x28]
add eax, 0x1c0
cmp eax, dword [ebp - 0xc]
jbe 0x411bea
push 0x1c
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0xc]
inc eax
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_GetModuleFileNameA
cmp eax, 0x1c
jne 0x411bf4
push 0
lea edx, [ebp - 0xe]
mov ecx, 2
mov eax, dword [ebp - 0x2c]
call fcn.0040a42c
test al, al
je 0x411bf4
cmp word [ebp - 0xe], 0x5a4d
jne 0x411bf4
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
jmp 0x411bf4
dec ebx
cmp ebx, 0xffffffff
jne 0x411b66
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411c19
push 0x41989c
call sub.KERNEL32.DLL_WaitForMultipleObjects
ret
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_RtlUnwind
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411e94
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.00403edc
xor eax, eax
push ebp
push 0x411f1a
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.0040401c
add ebx, 4
mov esi, dword [edi]
mov al, byte [ebx]
cmp al, byte [ebp - 5]
jne 0x411ef1
inc ebx
mov eax, ebx
inc eax
movzx eax, byte [eax]
test eax, eax
jle 0x411eec
mov dl, byte [ebx]
xor dl, 0x55
mov byte [esi], dl
inc esi
dec eax
jne 0x411ee1
add ebx, 2
jmp 0x411ef7
xor al, 0x55
mov byte [esi], al
inc esi
inc ebx
mov eax, dword [edi]
call fcn.00403cf4
add eax, dword [edi]
cmp eax, esi
ja 0x411ecf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411f21
lea eax, [ebp - 4]
call fcn.00403b70
ret
Function at 0x411f28
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41207d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x212]
push eax
push 0x104
call sub.KERNEL32.DLL_TerminateProcess
test eax, eax
jne 0x411f75
mov word [ebp - 0x212], 0x2e
mov word [ebp - 0x210], 0
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.DLL_DeleteCriticalSection
cmp word [ebp + eax*2 - 0x214], 0x5c
je 0x411f9d
push 0x41208c
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.DLL_VirtualFree
lea eax, [ebp - 0x226]
push eax
lea edx, [ebp - 0x22c]
mov eax, 0x412098
call fcn.004070f0
mov eax, dword [ebp - 0x22c]
call fcn.00403eec
push eax
call fcn.0040c524
push ebx
push 0
lea eax, [ebp - 0x226]
push eax
lea eax, [ebp - 0x212]
push eax
call sub.KERNEL32.DLL_Sleep
test eax, eax
jne 0x411ff9
lea eax, [ebp - 0x212]
push eax
push ebx
call sub.KERNEL32.DLL_EnterCriticalSection
lea eax, [ebp - 0x226]
push eax
push ebx
call sub.KERNEL32.DLL_VirtualFree
push 0
push 0
push 2
push 0
push 0
push 0xc0000000
push ebx
call sub.KERNEL32.DLL_GetCurrentProcessId
mov esi, eax
cmp esi, 0xffffffff
je 0x41205a
lea edx, [ebp - 4]
mov eax, 0x4120ac
call fcn.00411e94
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00403cf4
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_LocalFree
test eax, eax
je 0x41204c
mov eax, dword [ebp - 4]
call fcn.00403cf4
cmp eax, dword [ebp - 8]
je 0x412050
xor ebx, ebx
jmp 0x412052
mov bl, 1
push esi
call sub.KERNEL32.DLL_FormatMessageA
jmp 0x41205c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412084
lea eax, [ebp - 0x22c]
call fcn.00403b70
lea eax, [ebp - 4]
call fcn.00403b70
ret
Function at 0x412d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov edi, eax
xor eax, eax
push ebp
push 0x412ec2
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x412ea6
cmp byte [0x418b30], 0
je 0x412ea6
push 0x41989c
call sub.KERNEL32.DLL_GetTempFileNameW
xor edx, edx
push ebp
push 0x412e80
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [0x418b40], 0
je 0x412dd9
mov eax, dword [0x418b40]
push eax
call sub.KERNEL32.DLL_FormatMessageA
xor eax, eax
mov dword [0x418b40], eax
mov eax, dword [0x4198b4]
call fcn.00404668
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x412d48]
call fcn.00404824
add esp, 4
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [0x4198b4]
call fcn.00404670
mov esi, eax
test esi, esi
jl 0x412e68
inc esi
xor ebx, ebx
cmp edi, 0xffffffff
jne 0x412e1d
cmp byte [ebp - 1], 0
je 0x412e2b
lea edx, [ebx + ebx*4]
mov ecx, dword [0x4198b4]
cmp edi, dword [ecx + edx*8]
jne 0x412e64
lea eax, [ebx + ebx*4]
mov edx, dword [0x4198b4]
mov eax, dword [edx + eax*8 + 0x18]
test eax, eax
je 0x412e4b
lea edx, [ebx + ebx*4]
mov ecx, dword [0x4198b4]
cmp byte [eax + 0x24], 0
jne 0x412e64
lea eax, [ebx + ebx*4]
mov edx, dword [0x4198b4]
mov eax, dword [edx + eax*8 + 0x1c]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov dword [edx + ecx*4], eax
inc dword [ebp - 0xc]
inc ebx
dec esi
jne 0x412e12
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412e87
push 0x41989c
call sub.KERNEL32.DLL_WaitForMultipleObjects
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412ec9
lea eax, [ebp - 8]
mov edx, dword [0x412d48]
call fcn.00404830
ret
Function at 0x413d8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413f56
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, 0x413f70
call fcn.004070f0
call sub.KERNEL32.DLL_UnmapViewOfFile
test eax, 0x80000000
jne 0x413e0d
test edi, edi
je 0x413e09
push 0x10
lea eax, [ebp - 0x20]
push eax
mov cl, 0x30
mov edx, 1
mov eax, edi
call fcn.00406dfc
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
call fcn.00403d40
mov eax, dword [ebp - 0x1c]
call fcn.00403eec
push eax
call fcn.0040cc94
mov esi, eax
jmp 0x413e38
xor esi, esi
jmp 0x413e38
mov edx, 0x418a7c
mov eax, 0x418a78
call fcn.0040ae18
mov eax, dword [ebp - 0x10]
call fcn.00403eec
push eax
push 0x10
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_GetCurrentThread
mov esi, eax
xor edi, edi
test esi, esi
je 0x413f33
call sub.KERNEL32.DLL_OpenMutexW
cmp eax, 0xb7
setne byte [ebp - 9]
push 0
push 0
push 0
push 0xf001f
push esi
call sub.KERNEL32.DLL_lstrcpyW
mov ebx, eax
test ebx, ebx
je 0x413f2d
mov dword [ebp - 0x14], 0x32
cmp byte [ebp - 9], 0
jne 0x413ea3
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x413e8e
cmp eax, dword [esp]
pop edx
pop eax
jne 0x413e97
cmp edi, dword [ebx + 8]
je 0x413ea3
push 0x32
call sub.KERNEL32.DLL_SetFilePointer
dec dword [ebp - 0x14]
jne 0x413e70
cmp byte [ebp - 9], 0
jne 0x413eca
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
push edx
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
cmp edx, dword [esp + 4]
jne 0x413ec1
cmp eax, dword [esp]
pop edx
pop eax
je 0x413f21
cmp edi, dword [ebx + 8]
jne 0x413f21
push 0
push 0
mov eax, 0x413afc
mov cl, 1
mov edx, dword [ebp - 4]
call fcn.0040b2c0
mov dword [ebx + 0xc], eax
mov dword [ebx + 8], edi
mov edx, ebx
mov ecx, 8
mov eax, dword [ebp - 0x10]
call fcn.0040ca50
call sub.KERNEL32.DLL_UnmapViewOfFile
test eax, 0x80000000
je 0x413f07
mov eax, esi
call fcn.0040adc8
jmp 0x413f21
push 2
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call sub.KERNEL32.DLL_LoadLibraryW
push eax
call sub.KERNEL32.DLL_GetSystemDirectoryW
mov eax, dword [ebx + 0xc]
mov dword [ebp - 8], eax
push ebx
call sub.KERNEL32.DLL_ExitProcess
push esi
call sub.KERNEL32.DLL_FormatMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413f5d
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00403b94
lea eax, [ebp - 0x10]
call fcn.00403b70
ret
Function at 0x414038
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
cmp esi, 0xffffffff
jne 0x41404b
xor ebx, ebx
jmp 0x414054
call sub.KERNEL32.DLL_TerminateThread
sub eax, ebx
mov ebx, eax
cmp ebx, esi
jae 0x414078
sub esi, ebx
push esi
push edi
call sub.KERNEL32.DLL_GetCurrentThreadId
test eax, eax
jne 0x41406e
push esp
push edi
call sub.KERNEL32.DLL_OpenFileMappingA
jmp 0x41408a
call sub.KERNEL32.DLL_OpenMutexW
mov dword [esp], eax
jmp 0x41408a
test esi, esi
jne 0x414083
xor eax, eax
mov dword [esp], eax
jmp 0x41408a
mov dword [esp], 0x5b4
push edi
call sub.KERNEL32.DLL_FormatMessageA
cmp dword [esp], 0
sete bl
test bl, bl
jne 0x4140a4
mov eax, dword [esp]
push eax
call sub.KERNEL32.DLL_RtlUnwind
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x414314
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 0x4143ab
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.00414134
test al, al
je 0x4143ab
cmp word [ebp - 2], 0x5a4d
jne 0x4143ab
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.00414134
test al, al
je 0x4143ab
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.00414134
test al, al
je 0x4143ab
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
cmp dword [eax], 0x4550
jne 0x4143ab
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test byte [eax + 0x17], 0x20
je 0x4143af
xor eax, eax
jmp 0x4143b1
mov al, 1
test al, al
je 0x4143ce
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
Function at 0x415fa4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov esi, ecx
mov ebx, eax
mov byte [ebp - 1], 0
push ebx
mov eax, dword [esi]
push eax
call fcn.0040aed8
mov edi, eax
lea eax, [ebp - 8]
push eax
push 0x149
push esi
push edi
push ebx
call sub.KERNEL32.DLL_VirtualAlloc
test eax, eax
je 0x4160f1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
push eax
push ebx
call sub.KERNEL32.DLL_VirtualAlloc
test eax, eax
je 0x4160f1
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
push eax
mov eax, edi
add eax, 0x149
mov edx, dword [ebp + 0xc]
add eax, dword [edx + 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_VirtualAlloc
test eax, eax
je 0x4160f1
cmp dword [esi + 0x20], 0
je 0x41606d
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x20]
push eax
push ebx
call sub.KERNEL32.DLL_GetFileType
test eax, eax
je 0x4160f1
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
lea eax, [edi + 0x24]
push eax
push ebx
call sub.KERNEL32.DLL_VirtualAlloc
test eax, eax
je 0x4160f1
mov byte [ebp - 1], 1
cmp dword [esi + 0x145], 0
je 0x4160f1
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x16]
push eax
mov eax, dword [esi + 0x145]
dec eax
push eax
push ebx
call sub.KERNEL32.DLL_GetFileType
test eax, eax
je 0x4160f1
cmp byte [ebp - 0x16], 0xe8
jne 0x4160f1
lea eax, [edi + 0x3c]
sub eax, dword [esi + 0x145]
sub eax, 4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push pe_nt_image_headers32
push 4
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.KERNEL32.DLL_GetLastError
test eax, eax
je 0x4160f1
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x145]
push eax
push ebx
call sub.KERNEL32.DLL_VirtualAlloc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 4
mov eax, dword [esi + 0x145]
push eax
call sub.KERNEL32.DLL_GetCommandLineA
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8