joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d2ce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x813df8], esi
jne 0x40d3c1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d34e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4a1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4a1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4a1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x813df8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x813dfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x813e00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813e08], eax
test eax, eax
je 0x40d3be
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x813e04], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3e6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3d9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push 4
pop eax
jmp 0x40d4a3
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push dword [0x813df8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3e0
mov eax, dword [0x813e04]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d459
cmp dword [0x813e08], edi
je 0x40d459
push eax
call ebx
push dword [0x813e08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d459
test eax, eax
je 0x40d459
call ecx
test eax, eax
je 0x40d44e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40d44e
test byte [ebp - 8], 1
jne 0x40d459
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d489
mov eax, dword [0x813dfc]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
call eax
mov esi, eax
test esi, esi
je 0x40d486
mov eax, dword [0x813e00]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x813df8]
call ebx
test eax, eax
je 0x40d4a1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x401340
Capabilities:
Get disk information

Disassembly:
sub esp, 0x110
mov eax, dword [0x43eee4]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push esi
push edi
push 0
push 0
mov dword [esp + 0x124], eax
mov dword [esp + 0x18], 0
call ebp
mov ebx, eax
push ebx
call fcn.0041c8f9
mov esi, eax
mov ecx, ebx
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
push esi
and ecx, 3
push ebx
rep stosb byte es:[edi], al
call ebp
cmp byte [esi], 0
mov edi, esi
je 0x401407
mov ebx, dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
lea esp, [esp]
push edi
call ebx
cmp eax, 3
je 0x4013bd
push 0
push edi
call fcn.0040ee56
add esp, 8
inc eax
mov edi, eax
cmp byte [edi], 0
jne 0x4013a0
jmp 0x401407
push 0x32
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x24]
push eax
push 0xc8
lea ecx, [esp + 0x6c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x401407
mov eax, dword [esp + 0x124]
xor edx, edx
mov ecx, eax
mov dword [ecx], edx
mov word [ecx + 4], dx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
mov dword [eax], edx
push esi
call fcn.0041c8fe
mov ecx, dword [esp + 0x120]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
call fcn.0040ef5a
add esp, 0x110
ret 4

Function at 0x4014a0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov edx, ecx
push ebx
push esi
mov si, word [esp + 0x10]
xor eax, eax
test si, si
setne al
push edi
lea ebx, [edx + 4]
mov dword [edx], 0x42b5fc
mov edi, ebx
mov ecx, 0xe
mov dword [edx + 0x108c], eax
xor eax, eax
rep stosd dword es:[edi], eax
movsx ecx, si
mov eax, ecx
mov word [edx + 0x3c], si
mov esi, dword [esp + 0x10]
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x40]
mov dword [edx + 0x1088], edi
mov ecx, 0x400
mov esi, 0x436178
rep movsd dword es:[edi], dword [esi]
mov edi, dword [edx + 0x1088]
add edi, 0x1000
mov ecx, 0x12
mov esi, 0x436130
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, edx
pop ebx
ret 8
Function at 0x401530
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
mov esi, dword [edi + 0x1088]
mov ebp, dword [ecx]
lea ecx, [esi + 0x1000]
mov dword [esp + 0x10], 0x10
xor edx, dword [ecx]
mov eax, edx
shr eax, 8
movzx eax, al
mov eax, dword [esi + eax*4 + 0x400]
and eax, 1
movzx ebx, dl
add eax, dword [esi + ebx*4]
mov ebx, edx
shr ebx, 0x18
mov ebx, dword [esi + ebx*4 + 0xc00]
xor eax, 0x20
and ebx, 1
add eax, ebx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
add eax, dword [esi + ebx*4 + 0x800]
mov dword [edi + 0x1090], edx
xor eax, ebp
mov ebp, dword [edi + 0x1090]
xor eax, 0x20
mov edx, eax
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x401557
mov dword [edi + 0x1090], edx
mov ecx, dword [esi + 0x1040]
xor ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov eax, dword [edi + 0x1088]
mov ecx, dword [eax + 0x1044]
mov edx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebp
mov dword [edx], ecx
pop ebx
pop ecx
ret 8

Function at 0x4015f0
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov edx, dword [eax]
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
mov esi, dword [edi + 0x1088]
mov ebp, dword [ecx]
lea ecx, [esi + 0x1044]
mov dword [esp + 0x10], 0x10
xor edx, dword [ecx]
mov eax, edx
shr eax, 8
movzx eax, al
mov eax, dword [esi + eax*4 + 0x400]
and eax, 1
movzx ebx, dl
add eax, dword [esi + ebx*4]
mov ebx, edx
shr ebx, 0x18
mov ebx, dword [esi + ebx*4 + 0xc00]
xor eax, 0x20
and ebx, 1
add eax, ebx
mov ebx, edx
shr ebx, 0x10
movzx ebx, bl
add eax, dword [esi + ebx*4 + 0x800]
mov dword [edi + 0x1090], edx
xor eax, ebp
mov ebp, dword [edi + 0x1090]
xor eax, 0x20
mov edx, eax
mov eax, dword [esp + 0x10]
sub ecx, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x401617
mov dword [edi + 0x1090], edx
mov ecx, dword [esi + 0x1004]
xor ecx, edx
mov edx, dword [esp + 0x1c]
mov dword [edx], ecx
mov eax, dword [edi + 0x1088]
mov ecx, dword [eax + 0x1000]
mov edx, dword [esp + 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebp
mov dword [edx], ecx
pop ebx
pop ecx
ret 8
Function at 0x4016b0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
movsx ebp, word [esi + 0x3c]
mov ecx, 0x1000
push edi
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0x12
mov eax, dword [esi + 0x1088]
add ecx, eax
movsx edi, dx
lea eax, [edi + 1]
cdq
idiv ebp
xor ebx, ebx
lea eax, [edi + 2]
mov bl, byte [edx + esi + 4]
movsx edx, byte [edi + esi + 4]
shl edx, 8
and ebx, 0xff
or ebx, edx
cdq
idiv ebp
xor eax, eax
shl ebx, 8
mov al, byte [edx + esi + 4]
and eax, 0xff
or ebx, eax
lea eax, [edi + 3]
cdq
idiv ebp
mov ebp, dword [ecx]
shl ebx, 8
lea eax, [edi + 4]
movsx edx, byte [edx + esi + 4]
and edx, 0xff
or ebx, edx
xor ebp, ebx
mov dword [ecx], ebp
movsx ebp, word [esi + 0x3c]
mov ecx, dword [esp + 0x14]
cdq
idiv ebp
mov eax, dword [esp + 0x10]
add ecx, 4
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
jne 0x4016d0
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov edi, 0x1004
mov ebx, 9
lea ecx, [ecx]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00401530
mov edx, dword [esi + 0x1088]
mov eax, dword [esp + 0x10]
mov dword [edi + edx - 4], eax
mov ecx, dword [esi + 0x1088]
mov edx, dword [esp + 0x14]
mov dword [edi + ecx], edx
add edi, 8
dec ebx
jne 0x401760
xor edi, edi
mov ebp, 4
lea esp, [esp]
mov ebx, 0x80
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00401530
mov edx, dword [esi + 0x1088]
mov eax, dword [esp + 0x10]
mov dword [edi + edx], eax
mov ecx, dword [esi + 0x1088]
mov edx, dword [esp + 0x14]
mov dword [edi + ecx + 4], edx
add edi, 8
dec ebx
jne 0x4017a5
dec ebp
jne 0x4017a0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x401af0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401b09
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401b1d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401b3e
cmp esi, eax
jae 0x401b17
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401b30
cmp esi, eax
jae 0x401b17
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4027c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4296cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x42b764
lea edi, [esi + 0x34]
call fcn.0041c9eb
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
mov edx, dword [esp + 0x20]
xor ebx, ebx
or eax, 0xffffffff
cmp edx, ebx
mov dword [esi + 0x174], eax
mov dword [esi + 0x178], eax
mov dword [esp + 0x18], ebx
mov word [esi + 0x17c], bx
jne 0x402821
xor eax, eax
jmp 0x402831
mov eax, edx
push ebp
lea ebp, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402827
sub eax, ebp
pop ebp
push eax
push edx
mov ecx, edi
call fcn.004020a0
mov dword [esi + 0x30], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x18c], ebx
mov dword [esi + 0x180], ebx
xor eax, eax
lea ecx, [esi + 0x38]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov byte [ecx + 0x18], al
xor edx, edx
lea eax, [esi + 0x51]
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov byte [eax + 0x18], dl
xor eax, eax
lea edi, [esi + 0x6a]
mov ecx, 0x32
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esi + 0x132]
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov byte [edx + 0x18], cl
lea ecx, [esi + 0x14b]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov byte [ecx + 0x18], al
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x405f17
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x405f6a
call fcn.00426bd4
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x405f6a
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x405f60
xor eax, eax
jmp 0x406083
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x405f9a
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x405f9a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x406080
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x405fc7
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.00405b10
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x406080
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x406010
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x406010
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40600a
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.00405b10
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x406070
and dword [ebp + 0xc], 0
jmp 0x406070
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x406070
push 0xc
call fcn.0041c8ce
mov esi, eax
test esi, esi
pop ecx
je 0x406052
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x406054
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40606b
push dword [ebp - 8]
call fcn.0041c3a1
jmp 0x406070
call fcn.0041c378
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x405fd5
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40fd45
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40fd65
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041164c
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40fd88
test byte [esp + 8], 2
je 0x40fd88
call fcn.0041163a
mov dword [eax], 0xd
call fcn.00411643
mov dword [eax], 5
jmp 0x40fd61
xor eax, eax
ret
Function at 0x4101fe
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040f870
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410299
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x441e6c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x410299
cmp eax, 1
je 0x4102ba
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x410299
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x410266
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x410295
xor eax, eax
inc eax
jmp 0x4102d9
cmp edi, eax
jae 0x41029d
xor eax, eax
jmp 0x4102d9
cmp eax, esi
jae 0x4102a4
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x441e6c]
jmp 0x4102bd
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x410452
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42e880
call fcn.004114f8
mov edi, 0x94
mov eax, edi
call fcn.0040f870
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x441e6c], ecx
mov eax, dword [esi + 4]
mov dword [0x441e78], eax
mov edx, dword [esi + 8]
mov dword [0x441e7c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x441e70], esi
cmp ecx, 2
je 0x4104b2
or esi, 0x8000
mov dword [0x441e70], esi
shl eax, 8
add eax, edx
mov dword [0x441e74], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4104ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4104ed
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x410505
cmp eax, 0x20b
je 0x4104f2
mov dword [ebp - 0x1c], esi
jmp 0x410519
cmp dword [ecx + 0x84], 0xe
jbe 0x4104ed
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x410513
cmp dword [ecx + 0x74], 0xe
jbe 0x4104ed
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00415eaa
pop ecx
test eax, eax
jne 0x41052d
push 0x1c
call fcn.0041042e
pop ecx
call fcn.004123cc
test eax, eax
jne 0x41053e
push 0x10
call fcn.0041042e
pop ecx
call fcn.004175c8
mov dword [ebp - 4], esi
call fcn.004173ca
test eax, eax
jge 0x410557
push 0x1b
call fcn.00410409
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x443730], eax
call fcn.004172a8
mov dword [0x441e5c], eax
call fcn.00417206
test eax, eax
jge 0x41057d
push 8
call fcn.00410409
pop ecx
call fcn.00416fd3
test eax, eax
jge 0x41058e
push 9
call fcn.00410409
pop ecx
push 1
call fcn.00411201
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4105a4
push eax
call fcn.00410409
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00416f76
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4105c5
movzx eax, word [ebp - 0x40]
jmp 0x4105c8
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0041bf2e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x4105e6
push edi
call fcn.0041132e
call fcn.00411350
jmp 0x410618
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00411533
ret
Function at 0x41126b
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42e8f0
call fcn.004114f8
push 8
call fcn.00415e5f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x441eac], esi
jne 0x41129f
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x441ea8], esi
mov al, byte [ebp + 0x10]
mov byte [0x441ea4], al
cmp dword [ebp + 0xc], edi
jne 0x4112e9
cmp dword [0x443728], edi
je 0x4112d9
mov eax, dword [0x443724]
sub eax, 4
mov dword [0x443724], eax
cmp eax, dword [0x443728]
jb 0x4112d9
mov eax, dword [eax]
cmp eax, edi
je 0x4112ba
call eax
jmp 0x4112ba
push 0x436090
mov eax, 0x436088
call fcn.004111e9
pop ecx
push 0x43609c
mov eax, 0x436094
call fcn.004111e9
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41131a
cmp dword [ebp + 0x10], edi
jne 0x411328
mov dword [0x441eac], esi
push dword [ebp + 8]
call fcn.004111a7
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x411327
push 8
call fcn.00415daa
pop ecx
ret
call fcn.00411533
ret
Function at 0x416a39
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x416a67
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x416a6e
cmp ebx, dword [eax + 4]
jae 0x416a6e
xor eax, eax
jmp 0x416c5e
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x416a7f
xor eax, eax
inc eax
jmp 0x416c5d
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x416a95
cmp ecx, edx
jae 0x416bda
cmp dword [eax + 4], 0
je 0x416a9e
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x416a86
cmp dword [ebp + 8], 0
je 0x416ac0
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x416bda
cmp eax, esi
jae 0x416bda
mov eax, dword [0x442040]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x416ae5
cmp dword [esi*4 + 0x442048], edi
je 0x416bde
inc esi
cmp esi, eax
jl 0x416ad3
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416c5a
cmp dword [ebp - 8], 0x1000000
jne 0x416c5a
test byte [ebp - 0xc], 0xcc
je 0x416b63
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x416c5a
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x416c5a
cmp word [eax + 0x18], 0x10b
jne 0x416c5a
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x416c5a
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x416b63
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x416b63
test byte [ecx + 0x27], 0x80
jne 0x416bda
push 1
push 0x442088
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x416a77
mov ecx, dword [0x442040]
test ecx, ecx
mov edx, ecx
jle 0x416b97
lea eax, [ecx*4 + 0x442044]
cmp dword [eax], edi
je 0x416b97
dec edx
sub eax, 4
test edx, edx
jg 0x416b8b
test edx, edx
jne 0x416bc8
push 0xf
pop ebx
cmp ecx, ebx
jg 0x416ba4
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x416bbc
lea eax, [edx*4 + 0x442048]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x416baa
cmp ecx, 0x10
jge 0x416bc8
inc ecx
mov dword [0x442040], ecx
push 0
push 0x442088
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x416a77
xor eax, eax
jmp 0x416c5d
test esi, esi
jle 0x416a77
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x442088
call ebx
test eax, eax
jne 0x416a77
cmp dword [esi*4 + 0x442048], edi
je 0x416c34
mov eax, dword [0x442040]
lea esi, [eax - 1]
test esi, esi
jl 0x416c22
cmp dword [esi*4 + 0x442048], edi
je 0x416c1e
dec esi
jns 0x416c12
test esi, esi
jge 0x416c32
cmp eax, 0x10
jge 0x416c2d
inc eax
mov dword [0x442040], eax
lea esi, [eax - 1]
jmp 0x416c34
je 0x416c4c
xor ecx, ecx
test esi, esi
jl 0x416c4c
lea eax, [ecx*4 + 0x442048]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x416c3a
push 0
push 0x442088
call ebx
jmp 0x416a77
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret