joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402a2d
Capabilities:
Delete file
Get file size
Move file
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
xor ebx, ebx
push 0x41
xor eax, eax
pop ecx
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
rep stosd dword es:[edi], eax
mov edi, dword [ebp + 0xc]
cmp edi, ebx
mov esi, 0x105
je 0x402a95
cmp byte [edi], bl
je 0x402a95
push 0x5c
push edi
call fcn.004168b0
test eax, eax
pop ecx
pop ecx
jne 0x402abf
push esi
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10c]
push 0x5c
push eax
call fcn.0041615d
cmp eax, ebx
pop ecx
pop ecx
je 0x402a92
mov byte [eax + 1], bl
push edi
jmp 0x402aa9
push esi
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4285d4
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0040232e
lea eax, [ebp - 0x10c]
mov dword [ebp + 0xc], eax
push ebx
push 0x20
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x402bc7
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 0x10]
shl ecx, 0xa
cmp eax, ecx
jbe 0x402b99
cmp eax, 0xffffffff
je 0x402b99
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x41
pop ecx
xor eax, eax
push esi
push dword [ebp + 0xc]
mov byte [ebp - 0x214], bl
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x214]
push 0x2e
push eax
call fcn.0041615d
cmp eax, ebx
pop ecx
pop ecx
je 0x402b40
mov byte [eax], bl
push 0x428674
push esi
lea eax, [ebp - 0x214]
push eax
call fcn.0040232e
push 0x80
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ebx
push 0x20
push 4
push ebx
push 3
push 0xc0000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00415a50
pop ecx
push eax
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402cff
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 0x4286e8
mov eax, 0x104
mov edi, 0x4286e0
call fcn.004027d5
test eax, eax
mov edi, dword [ebp + 8]
pop ecx
pop ecx
je 0x402d64
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
push edi
push 0x428670
push 0x4286d8
push 0x4286d0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [edi], 0
jne 0x402df9
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.0041615d
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x402de8
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.00415e20
push 9
push str.logfiles
push ebx
call fcn.00415ae0
add esp, 0x18
push edi
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov byte [esi], 0x5c
je 0x402dd3
test al, 0x10
je 0x402dd3
mov eax, dword [ebp + 8]
mov byte [eax + edi + 9], 0
jmp 0x402de7
push dword [ebp - 4]
push esi
push ebx
call fcn.00415e20
mov eax, dword [ebp + 8]
add esp, 0xc
mov byte [eax + edi], 0
pop esi
push 0x4285d4
push 0x104
push edi
call fcn.0040232e
pop ebx
pop edi
leave
ret
Function at 0x402dfc
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x426bb2
call fcn.004167ec
sub esp, 0x14
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push esi
push 0x10000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, esi
jne 0x402e3a
push str.CreateFile_failed._n
call fcn.00417490
pop ecx
jmp 0x402ef2
push edi
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x402e73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x4286ec
call fcn.00417490
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402ef1
push dword [ebp - 0x20]
call fcn.0041748b
push dword [ebp - 0x20]
mov dword [ebp - 0x10], eax
push esi
push eax
call fcn.00416850
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
add esp, 0x10
push esi
push esi
push esi
push ebx
mov dword [ebp - 0x14], esi
call edi
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x42f2c4]
push dword [ebp - 0x20]
push dword [ebp - 0x10]
call fcn.00401f60
add esp, 0xc
push esi
push esi
push esi
push ebx
call edi
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call fcn.00417486
xor esi, esi
pop ecx
inc esi
pop edi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401b94
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4033ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x42f2b8]
cmp eax, 0xffffffff
jne 0x4033cd
call fcn.00401e6c
cmp dword [0x42f2b8], 0
jmp 0x4033cf
test eax, eax
je 0x4034fd
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 0x428754
push dword [ebp + 8]
stosb byte es:[edi], al
call fcn.004169fb
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.004022ec
lea eax, [ebp - 0x30c]
push str._RsInstall_
push eax
call fcn.004161d0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.004161e0
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 0x4034b0
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.0041615d
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
je 0x4034cf
cmp byte [eax + 1], 0
jne 0x4034cf
mov byte [eax], 0
lea eax, [ebp - 0x104]
push str.Rs7zSfx.log
push eax
call fcn.004161e0
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0x80
call fcn.00403327
add esp, 0x18
leave
ret
Function at 0x403e16
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ecx
push str.WinMain
push str._s_Start
call fcn.004033ac
mov eax, dword [esp + 0x10]
mov dword [0x53182c], eax
mov eax, 0x428670
push eax
push eax
push str.installbegin
push eax
push str.true
push 0x428944
push str.res_watch_install
call fcn.0041f460
add esp, 0x24
push str.E5C53971_D80E_4500_BE0D_761BF3CD8457
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x531844], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403e96
push dword [0x531844]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [0x531844]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0x2711
jmp 0x403fc4
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, 0x428918
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.00401f1f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x403f99
lea eax, [edi - 1]
mov dword [0x531830], eax
mov ebp, 0x428914
mov ebx, 0x531728
mov esi, str.SILENT
push esi
call fcn.00416bf3
push eax
push esi
push edi
call fcn.00416aad
add esp, 0x10
test eax, eax
je 0x403f78
mov esi, str.SILENCE
push esi
call fcn.00416bf3
push eax
push esi
push edi
call fcn.00416aad
add esp, 0x10
test eax, eax
je 0x403f78
push ebp
call fcn.00416bf3
push eax
push ebp
push edi
call fcn.00416aad
add esp, 0x10
test eax, eax
jne 0x403f82
push ebp
call fcn.00416bf3
mov esi, eax
add esi, edi
mov al, byte [esi]
cmp al, 0x27
pop ecx
je 0x403f4f
cmp al, 0x22
je 0x403f4f
push 0x20
push esi
call fcn.004168b0
test eax, eax
pop ecx
pop ecx
jne 0x403f60
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x403f6c
movsx eax, al
push eax
inc esi
push esi
call fcn.004168b0
test eax, eax
pop ecx
pop ecx
je 0x403fc8
sub eax, esi
inc eax
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov dword [0x53183c], 1
jmp 0x403f82
mov dword [0x531838], 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.00401f1f
mov edi, eax
test edi, edi
pop ecx
pop ecx
jne 0x403ed5
push 0
mov dword [0x531838], 1
call fcn.0040379d
push str.WinMain
push str._s_End
call fcn.004033ac
mov eax, dword [0x531848]
pop ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10
mov eax, 0x271a
jmp 0x403fc0
Function at 0x40400b
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.0041615d
cmp eax, ebx
pop ecx
pop ecx
je 0x4040b8
mov byte [eax], bl
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.004161d0
lea eax, [ebp - 0x208]
push str._rsdebug.ini
push eax
call fcn.004161e0
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 [0x42f348], eax
setne al
jmp 0x4040ba
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x4050a6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
mov eax, dword [0x42f348]
cmp eax, 0xffffffff
jne 0x4050c7
call fcn.0040400b
cmp dword [0x42f348], 0
jmp 0x4050c9
test eax, eax
je 0x4051f7
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 0x428754
push dword [ebp + 8]
stosb byte es:[edi], al
call fcn.004169fb
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.004022ec
lea eax, [ebp - 0x30c]
push str._RsInstall_
push eax
call fcn.004161d0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x30c]
push eax
call fcn.004161e0
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 0x4051aa
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.0041615d
test eax, eax
pop ecx
pop ecx
pop edi
pop esi
je 0x4051c9
cmp byte [eax + 1], 0
jne 0x4051c9
mov byte [eax], 0
lea eax, [ebp - 0x104]
push str.Rs7zSfx.log
push eax
call fcn.004161e0
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x104]
push eax
push 1
push 0x80
call fcn.00403327
add esp, 0x18
leave
ret
Function at 0x4071cc
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 0x4071e5
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 0x407208
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x40720d
inc esi
cmp esi, dword [ebp - 4]
jb 0x4071ff
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x407301
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x407243
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x407270
cmp cl, 0xff
je 0x407270
and edx, 3
shl edx, 1
or edx, 1
inc eax
jmp 0x4071fa
dec ecx
shl edx, cl
and edx, 7
je 0x407229
movzx ecx, byte [edx + 0x428d40]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x428d38], 0
mov cl, byte [ebx + 4]
je 0x40726b
test cl, cl
je 0x40726b
cmp cl, 0xff
jne 0x407229
mov dword [ebp + 0xc], eax
jmp 0x407238
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 0x407299
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4072a0
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4072d4
movzx edi, byte [edx + 0x428d40]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4072bf
cmp al, 0xff
jne 0x4072d1
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 0x40728b
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 0x4071fa
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 0x40ae84
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x531a40], 0
jne 0x40aebe
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a966
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.00406f29
pop ecx
test esi, esi
pop esi
jmp 0x40aecc
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40aed2
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40aed6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x531a40], 0
jne 0x40af0f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040a966
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.00406f29
pop ecx
test esi, esi
pop esi
jmp 0x40af1c
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40af22
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40b4bc
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 0x40b4e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40b4e2
xor al, al
jmp 0x40b502
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00417830
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 0x416ed7
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.00417120
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x416f72
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 [0x531d0c]
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 0x416f72
cmp eax, 1
je 0x416f93
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 0x416f72
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x416f3f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x416f6e
xor eax, eax
inc eax
jmp 0x416fb2
cmp edi, eax
jae 0x416f76
xor eax, eax
jmp 0x416fb2
cmp eax, esi
jae 0x416f7d
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 [0x531d0c]
jmp 0x416f96
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 0x417b82
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 0x417b9f
call fcn.0041c61c
mov dword [eax], 0x16
xor eax, eax
jmp 0x417c09
push esi
push 0x8c
push 1
call fcn.0041c6a1
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x417bf4
push esi
call fcn.0041843a
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 0x417bd2
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x417aed
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x417c08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00416e66
test ebx, ebx
pop ecx
je 0x417c06
push ebx
call fcn.0041c62e
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x417cee
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x429510
call fcn.00416fbc
mov edi, 0x94
mov eax, edi
call fcn.00417120
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 [0x531d0c], ecx
mov eax, dword [esi + 4]
mov dword [0x531d18], eax
mov edx, dword [esi + 8]
mov dword [0x531d1c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x531d10], esi
cmp ecx, 2
je 0x417d4e
or esi, 0x8000
mov dword [0x531d10], esi
shl eax, 8
add eax, edx
mov dword [0x531d14], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x417d89
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x417d89
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x417da1
cmp eax, 0x20b
je 0x417d8e
mov dword [ebp - 0x1c], esi
jmp 0x417db5
cmp dword [ecx + 0x84], 0xe
jbe 0x417d89
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x417daf
cmp dword [ecx + 0x74], 0xe
jbe 0x417d89
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00419eb3
pop ecx
test eax, eax
jne 0x417dc9
push 0x1c
call fcn.00417cca
pop ecx
call fcn.00418634
test eax, eax
jne 0x417dda
push 0x10
call fcn.00417cca
pop ecx
call fcn.0041cf5e
mov dword [ebp - 4], esi
call fcn.0041cd60
test eax, eax
jge 0x417df3
push 0x1b
call fcn.00417ca5
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5355a0], eax
call fcn.0041cc3e
mov dword [0x531b88], eax
call fcn.0041cb9c
test eax, eax
jge 0x417e19
push 8
call fcn.00417ca5
pop ecx
call fcn.0041c969
test eax, eax
jge 0x417e2a
push 9
call fcn.00417ca5
pop ecx
push 1
call fcn.0041aa9c
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x417e40
push eax
call fcn.00417ca5
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041c90c
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x417e61
movzx eax, word [ebp - 0x40]
jmp 0x417e64
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00403e16
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x417e82
push edi
call fcn.0041abc9
call fcn.0041abeb
jmp 0x417eb4
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00416ff7
ret
Function at 0x41ab06
Capabilities:
Terminate process

Disassembly:
push 8
push 0x429698
call fcn.00416fbc
push 8
call fcn.00419e68
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x531d4c], esi
jne 0x41ab3a
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x531d48], esi
mov al, byte [ebp + 0x10]
mov byte [0x531d44], al
cmp dword [ebp + 0xc], edi
jne 0x41ab84
cmp dword [0x53532c], edi
je 0x41ab74
mov eax, dword [0x535328]
sub eax, 4
mov dword [0x535328], eax
cmp eax, dword [0x53532c]
jb 0x41ab74
mov eax, dword [eax]
cmp eax, edi
je 0x41ab55
call eax
jmp 0x41ab55
push 0x42f088
mov eax, 0x42f080
call fcn.0041aa84
pop ecx
push 0x42f094
mov eax, 0x42f08c
call fcn.0041aa84
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41abb5
cmp dword [ebp + 0x10], edi
jne 0x41abc3
mov dword [0x531d4c], esi
push dword [ebp + 8]
call fcn.0041aa42
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41abc2
push 8
call fcn.00419db3
pop ecx
ret
call fcn.00416ff7
ret