joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f61
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push edi
push 0x40
xor eax, eax
mov byte [ebp - 0x108], 0
pop ecx
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x108]
push eax
push 0x421610
mov eax, 0x104
mov edi, 0x421608
call fcn.00402a6e
test eax, eax
mov edi, dword [ebp + 8]
pop ecx
pop ecx
je 0x402fc6
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push edi
push 0x421598
push 0x421600
push 0x4215f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0
jne 0x40305b
push ebx
push dword [ebp + 0xc]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push edi
mov dword [ebp + 8], eax
call fcn.00416798
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x40304a
mov eax, dword [ebp + 8]
push esi
sub eax, ebx
add eax, edi
push eax
lea esi, [ebx + 9]
push ebx
push esi
mov dword [ebp - 4], eax
call fcn.00416c00
push 9
push str.logfiles
push ebx
call fcn.004168c0
add esp, 0x18
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov byte [esi], 0x5c
je 0x403035
test al, 0x10
je 0x403035
mov eax, dword [ebp + 8]
mov byte [eax + edi + 9], 0
jmp 0x403049
push dword [ebp - 4]
push esi
push ebx
call fcn.00416c00
mov eax, dword [ebp + 8]
add esp, 0xc
mov byte [eax + edi], 0
pop esi
push 0x4214d0
push 0x104
push edi
call fcn.004025ff
pop ebx
pop edi
leave
ret
Function at 0x4033a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x427230]
cmp eax, 0xffffffff
jne 0x4033c6
call fcn.004021ec
cmp dword [0x427230], 0
jmp 0x4033c8
test eax, eax
je 0x4034f6
push esi
push edi
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x208], 0
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
mov byte [ebp - 0x30c], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x421648
push dword [ebp + 8]
stosb byte es:[edi], al
call fcn.0041758b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp + eax - 0x208]
push eax
call fcn.004025bd
lea eax, [ebp - 0x30c]
push str._RsInstall_
push eax
call fcn.004166a0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.004166b0
add esp, 0x10
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x104], 0
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x4034a9
push esi
push str.C:Temp
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00416798
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
je 0x4034c8
cmp byte [eax + 1], 0
jne 0x4034c8
mov byte [eax], 0
lea eax, [ebp - 0x104]
push str.Rs7zSfx.log
push eax
call fcn.004166b0
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0x80
call fcn.00403320
add esp, 0x18
leave
ret
Function at 0x403673
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, 0x41fd5d
call fcn.00417a5c
sub esp, 0x390
push ebx
push esi
push edi
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x298], bl
lea edi, [ebp - 0x297]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x528ea0
stosb byte es:[edi], al
lea eax, [ebp - 0x298]
push str._sCompsVer.inf
push eax
call fcn.00416803
add esp, 0xc
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x194], bl
lea edi, [ebp - 0x193]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x298]
push eax
push 0x104
lea eax, [ebp - 0x194]
push eax
push 0x4216f8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x74]
call fcn.004017d0
push 1
push ebx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], 0x3d
call fcn.004028e4
cmp eax, 0xffffffff
je 0x403879
mov byte [ebp + eax - 0x194], bl
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x74]
call fcn.004035c6
mov eax, dword [ebp - 0x60]
dec eax
push eax
push 1
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x74]
call fcn.004035e3
cmp dword [ebp - 0x20], 0x10
mov esi, dword [ebp - 0x34]
mov byte [ebp - 4], 1
mov edi, esi
jae 0x403756
lea edi, [ebp - 0x34]
mov esi, edi
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x38]
call fcn.00402c22
push 0x417b90
push edi
push dword [eax]
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.00402c61
add esp, 0x14
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x39c], bl
lea edi, [ebp - 0x39b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x14]
push eax
push 0x20019
push ebx
push 0x4216c8
push SysReAllocString
mov dword [ebp - 0x1c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40386e
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x39c]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
push str.ForbidInstall
push dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40386e
lea eax, [ebp - 0x39c]
push eax
lea ecx, [ebp - 0x90]
call fcn.004017d0
push ebx
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x40], 0xf
call fcn.0040258a
lea eax, [ebp - 0x58]
push eax
lea esi, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.00403601
pop ecx
push ebx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x58]
call fcn.00402c3e
test eax, eax
jl 0x403855
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x58]
call fcn.00401820
push ebx
push esi
lea ecx, [ebp - 0x90]
call fcn.00401820
push ebx
push esi
lea ecx, [ebp - 0x38]
call fcn.00401820
jmp 0x40387b
push ebx
push 1
lea ecx, [ebp - 0x58]
call fcn.00401820
push ebx
push 1
lea ecx, [ebp - 0x90]
call fcn.00401820
push ebx
lea ecx, [ebp - 0x38]
push 1
call fcn.00401820
xor esi, esi
push ebx
push 1
lea ecx, [ebp - 0x74]
call fcn.00401820
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403e9e
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ecx
push str.WinMain
push str._s_Start
call fcn.004033a5
mov eax, dword [esp + 0x10]
pop ecx
pop ecx
push str.E5C53971_D80E_4500_BE0D_761BF3CD8457
push 1
push 0
mov dword [0x5290ac], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x5290c4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403efc
push dword [0x5290c4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x5290c4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x2711
jmp 0x40403b
call fcn.004022e0
test eax, eax
je 0x403f0d
or eax, 0xffffffff
jmp 0x40403b
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x421808
lea edi, [esp + 0x10]
movsw word es:[edi], word [esi]
lea ecx, [esp + 0x10]
push ecx
push eax
movsb byte es:[edi], byte [esi]
call fcn.0040229f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x404010
lea eax, [edi - 1]
mov dword [0x5290b0], eax
mov ebp, 0x421804
mov ebx, 0x528fa8
mov esi, str.SILENT
push esi
call fcn.00417783
push eax
push esi
push edi
call fcn.0041763d
add esp, 0x10
test eax, eax
je 0x403fef
mov esi, str.SILENCE
push esi
call fcn.00417783
push eax
push esi
push edi
call fcn.0041763d
add esp, 0x10
test eax, eax
je 0x403fef
push ebp
call fcn.00417783
push eax
push ebp
push edi
call fcn.0041763d
add esp, 0x10
test eax, eax
jne 0x403ff9
push ebp
call fcn.00417783
mov esi, eax
add esi, edi
mov al, byte [esi]
cmp al, 0x27
pop ecx
je 0x403fc6
cmp al, 0x22
je 0x403fc6
push 0x20
push esi
call fcn.00417440
test eax, eax
pop ecx
pop ecx
jne 0x403fd7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403fe3
movsx eax, al
push eax
inc esi
push esi
call fcn.00417440
test eax, eax
pop ecx
pop ecx
je 0x40403f
sub eax, esi
inc eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [0x5290bc], 1
jmp 0x403ff9
mov dword [0x5290b8], 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040229f
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x403f4c
push 0
mov dword [0x5290b8], 1
call fcn.00403897
push str.WinMain
push str._s_End
call fcn.004033a5
mov eax, dword [0x5290c8]
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, 0x271a
jmp 0x404037
Function at 0x404082
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push edi
push 0x40
pop ecx
xor eax, eax
xor ebx, ebx
mov byte [ebp - 0x104], bl
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x208], bl
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x104]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00416798
cmp eax, ebx
pop ecx
pop ecx
je 0x40412f
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004166a0
lea eax, [ebp - 0x208]
push str._rsdebug.ini
push eax
call fcn.004166b0
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push ebx
push str.IsDebug
push str.Debug
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [0x427240], eax
setne al
jmp 0x404131
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x405116
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x427240]
cmp eax, 0xffffffff
jne 0x405137
call fcn.00404082
cmp dword [0x427240], 0
jmp 0x405139
test eax, eax
je 0x405267
push esi
push edi
push 0x40
xor eax, eax
pop ecx
mov byte [ebp - 0x208], 0
lea edi, [ebp - 0x207]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x40
mov byte [ebp - 0x30c], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x30b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x421648
push dword [ebp + 8]
stosb byte es:[edi], al
call fcn.0041758b
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
pop ecx
pop ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call esi
mov ecx, 0x103
sub ecx, eax
push ecx
lea eax, [ebp - 0x208]
push eax
call esi
lea eax, [ebp + eax - 0x208]
push eax
call fcn.004025bd
lea eax, [ebp - 0x30c]
push str._RsInstall_
push eax
call fcn.004166a0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.004166b0
add esp, 0x10
push 0x40
pop ecx
xor eax, eax
mov byte [ebp - 0x104], 0
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x104]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x40521a
push esi
push str.C:Temp
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.00416798
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
je 0x405239
cmp byte [eax + 1], 0
jne 0x405239
mov byte [eax], 0
lea eax, [ebp - 0x104]
push str.Rs7zSfx.log
push eax
call fcn.004166b0
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0x80
call fcn.00403320
add esp, 0x18
leave
ret
Function at 0x4071d1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4071ea
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x40720d
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x407212
inc esi
cmp esi, dword [ebp - 4]
jb 0x407204
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x407306
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x407248
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x407275
cmp cl, 0xff
je 0x407275
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x4071ff
dec ecx
shl edx, cl
and edx, 7
je 0x40722e
movzx ecx, byte [edx + 0x421c20]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x421c18], 0
mov cl, byte [ebx + 4]
je 0x407270
test cl, cl
je 0x407270
cmp cl, 0xff
jne 0x40722e
mov dword [ebp + 0xc], eax
jmp 0x40723d
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x40729e
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4072a5
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4072d9
movzx edi, byte [edx + 0x421c20]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4072c4
cmp al, 0xff
jne 0x4072d6
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x407290
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4071ff
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret

Function at 0x40ae41
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5292b0], 0
jne 0x40ae7b
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a94a
mov eax, dword [eax]
pop ecx
pop ecx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00406f2e
pop ecx
test esi, esi
pop esi
jmp 0x40ae89
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40ae8f
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40ae93
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x5292b0], 0
jne 0x40aecc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a94a
mov eax, dword [eax]
pop ecx
pop ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00406f2e
pop ecx
test esi, esi
pop esi
jmp 0x40aed9
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40aedf
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40b456
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40b47c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b47c
xor al, al
jmp 0x40b49c
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00417da0
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x418221
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41823e
call fcn.0041cab9
mov dword [eax], 0x16
xor eax, eax
jmp 0x4182a8
push esi
push 0x8c
push 1
call fcn.0041cb3e
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x418293
push esi
call fcn.00418c87
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x418271
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41818c
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4182a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00417e7f
test ebx, ebx
pop ecx
je 0x4182a5
push ebx
call fcn.0041cacb
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4184ee
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4223c0
call fcn.004182ac
mov edi, 0x94
mov eax, edi
call fcn.00417a80
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 [0x529430], ecx
mov eax, dword [esi + 4]
mov dword [0x52943c], eax
mov edx, dword [esi + 8]
mov dword [0x529440], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x529434], esi
cmp ecx, 2
je 0x41854e
or esi, 0x8000
mov dword [0x529434], esi
shl eax, 8
add eax, edx
mov dword [0x529438], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x418589
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418589
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4185a1
cmp eax, 0x20b
je 0x41858e
mov dword [ebp - 0x1c], esi
jmp 0x4185b5
cmp dword [ecx + 0x84], 0xe
jbe 0x418589
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4185af
cmp dword [ecx + 0x74], 0xe
jbe 0x418589
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041bdc6
pop ecx
test eax, eax
jne 0x4185c9
push 0x1c
call fcn.004184ca
pop ecx
call fcn.00418e81
test eax, eax
jne 0x4185da
push 0x10
call fcn.004184ca
pop ecx
call fcn.0041d641
mov dword [ebp - 4], esi
call fcn.0041d443
test eax, eax
jge 0x4185f3
push 0x1b
call fcn.004184a5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x52cc80], eax
call fcn.0041d321
mov dword [0x5293f8], eax
call fcn.0041d27f
test eax, eax
jge 0x418619
push 8
call fcn.004184a5
pop ecx
call fcn.0041d04c
test eax, eax
jge 0x41862a
push 9
call fcn.004184a5
pop ecx
push 1
call fcn.0041b9d9
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x418640
push eax
call fcn.004184a5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041cfef
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x418661
movzx eax, word [ebp - 0x40]
jmp 0x418664
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00403e9e
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x418682
push edi
call fcn.0041bb06
call fcn.0041bb28
jmp 0x4186b4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004182e7
ret
Function at 0x41ba43
Capabilities:
Terminate process

Disassembly:
push 8
push 0x422700
call fcn.004182ac
push 8
call fcn.0041bd7b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x529470], esi
jne 0x41ba77
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x52946c], esi
mov al, byte [ebp + 0x10]
mov byte [0x529468], al
cmp dword [ebp + 0xc], edi
jne 0x41bac1
cmp dword [0x52ca2c], edi
je 0x41bab1
mov eax, dword [0x52ca28]
sub eax, 4
mov dword [0x52ca28], eax
cmp eax, dword [0x52ca2c]
jb 0x41bab1
mov eax, dword [eax]
cmp eax, edi
je 0x41ba92
call eax
jmp 0x41ba92
push 0x427064
mov eax, 0x42705c
call fcn.0041b9c1
pop ecx
push 0x427070
mov eax, 0x427068
call fcn.0041b9c1
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41baf2
cmp dword [ebp + 0x10], edi
jne 0x41bb00
mov dword [0x529470], esi
push dword [ebp + 8]
call fcn.0041b97f
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41baff
push 8
call fcn.0041bcc6
pop ecx
ret
call fcn.004182e7
ret
Function at 0x41cc15
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 0x41cc43
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 0x41cc4a
cmp ebx, dword [eax + 4]
jae 0x41cc4a
xor eax, eax
jmp 0x41ce3a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41cc5b
xor eax, eax
inc eax
jmp 0x41ce39
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41cc71
cmp ecx, edx
jae 0x41cdb6
cmp dword [eax + 4], 0
je 0x41cc7a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41cc62
cmp dword [ebp + 8], 0
je 0x41cc9c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41cdb6
cmp eax, esi
jae 0x41cdb6
mov eax, dword [0x5295d0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41ccc1
cmp dword [esi*4 + 0x5295d8], edi
je 0x41cdba
inc esi
cmp esi, eax
jl 0x41ccaf
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41ce36
cmp dword [ebp - 8], 0x1000000
jne 0x41ce36
test byte [ebp - 0xc], 0xcc
je 0x41cd3f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41ce36
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41ce36
cmp word [eax + 0x18], 0x10b
jne 0x41ce36
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41ce36
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41cd3f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41cd3f
test byte [ecx + 0x27], 0x80
jne 0x41cdb6
push 1
push 0x529618
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41cc53
mov ecx, dword [0x5295d0]
test ecx, ecx
mov edx, ecx
jle 0x41cd73
lea eax, [ecx*4 + 0x5295d4]
cmp dword [eax], edi
je 0x41cd73
dec edx
sub eax, 4
test edx, edx
jg 0x41cd67
test edx, edx
jne 0x41cda4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41cd80
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41cd98
lea eax, [edx*4 + 0x5295d8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41cd86
cmp ecx, 0x10
jge 0x41cda4
inc ecx
mov dword [0x5295d0], ecx
push 0
push 0x529618
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41cc53
xor eax, eax
jmp 0x41ce39
test esi, esi
jle 0x41cc53
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x529618
call ebx
test eax, eax
jne 0x41cc53
cmp dword [esi*4 + 0x5295d8], edi
je 0x41ce10
mov eax, dword [0x5295d0]
lea esi, [eax - 1]
test esi, esi
jl 0x41cdfe
cmp dword [esi*4 + 0x5295d8], edi
je 0x41cdfa
dec esi
jns 0x41cdee
test esi, esi
jge 0x41ce0e
cmp eax, 0x10
jge 0x41ce09
inc eax
mov dword [0x5295d0], eax
lea esi, [eax - 1]
jmp 0x41ce10
je 0x41ce28
xor ecx, ecx
test esi, esi
jl 0x41ce28
lea eax, [ecx*4 + 0x5295d8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41ce16
push 0
push 0x529618
call ebx
jmp 0x41cc53
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret