joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42caa7
Capabilities:
Enumerate gui resources
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp byte [0x468398], bl
je 0x42cb0c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42cb08
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
je 0x42cb0c
xor al, al
jmp 0x42cb39
cmp byte [0x468399], bl
je 0x42cb2a
test byte [ebp + 8], 4
je 0x42cb2a
xor dword [ebp + 8], 4
push ebx
push 0x42cb3c
call dword [sym.imp.USER32.dll_EnumWindows]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
setne al
pop ebx
leave
ret

Function at 0x42cb5b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x1f4
push 2
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x42cbb4
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, esi
je 0x42cb9e
push eax
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov edi, eax
jmp 0x42cba0
xor edi, edi
cmp edi, esi
je 0x42cbb3
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x439511
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x43953a
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
xor eax, eax
jmp 0x4395a1
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x18]
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xc], ebx
jne 0x43959b
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x43959b
dec eax
mov dword [ebp - 4], eax
cmp byte [eax + esi], bl
jne 0x43958b
cmp eax, ebx
je 0x43959f
cmp byte [esi + eax - 1], bl
jne 0x43959f
dec eax
mov dword [ebp - 4], eax
jne 0x43957d
jmp 0x43959f
inc eax
cmp eax, edi
mov dword [ebp - 4], eax
jae 0x43959b
mov byte [eax + esi], bl
mov eax, dword [ebp - 4]
jmp 0x43959f
mov byte [esi], bl
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4395a4
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8000
call fcn.00458250
push esi
push 0x7fff
lea eax, [ebp - 0x8000]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x4395e5
lea eax, [esi + 1]
push eax
lea eax, [ebp - 0x8000]
push eax
push dword [ebp + 0xc]
call fcn.004576b0
add esp, 0xc
jmp 0x4395eb
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
mov eax, esi
pop esi
leave
ret

Function at 0x439fdc
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x43a065
cmp byte [esi], 0
je 0x43a065
push 4
push 0x460688
push esi
call fcn.00458470
add esp, 0xc
test eax, eax
mov eax, esi
jne 0x43a00b
lea eax, [esi + 4]
push 0x45f510
push eax
call fcn.00439b0d
test eax, eax
pop ecx
pop ecx
je 0x43a049
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
je 0x43a065
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43a045
mov ecx, dword [ebp - 0x140]
mov dword [eax], ecx
mov al, 1
jmp 0x43a067
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x43a059
mov dword [ecx], eax
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x43a067
xor al, al
pop esi
leave
ret
Function at 0x43c571
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x801c
call fcn.00458250
mov ecx, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
push edi
je 0x43c59c
push 1
push ebx
push 0xffffffffffffffff
push ebx
call fcn.0040184e
mov eax, 0x45bf4c
jmp 0x43c5a1
mov eax, 0x45bbc4
mov ecx, dword [0x467b78]
xor esi, esi
inc esi
push esi
push ebx
push 0xffffffffffffffff
push eax
call fcn.0040184e
cmp dword [ebp + 0x18], ebx
jne 0x43c5c0
mov dword [ebp + 0x18], 0x1f4
cmp dword [ebp + 0x1c], esi
jge 0x43c5cc
mov dword [ebp + 0x1c], 0x32
cmp dword [ebp + 0x10], esi
jge 0x43c5d4
mov dword [ebp + 0x10], esi
cmp dword [ebp + 0xc], ebx
je 0x43c756
mov esi, dword [sym.imp.USER32.dll_SendMessageTimeoutA]
lea eax, [ebp - 0x18]
push eax
mov edi, 0x7d0
push edi
push 2
push ebx
push ebx
push 0x406
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x43c756
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x18]
jg 0x43c756
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
push 0x8000
push eax
call fcn.00438569
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x43c756
mov al, byte [0x468399]
mov byte [ebp - 1], al
cmp al, bl
mov eax, dword [ebp - 0xc]
jne 0x43c643
lea eax, [ebp - 0x801c]
dec dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov byte [eax], bl
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
push eax
push edi
push 2
push ebx
push dword [ebp + 0x10]
push 0x403
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x43c6c4
cmp word [ebp - 0x10], 0x7fff
ja 0x43c729
lea eax, [ebp - 0x10]
push eax
push edi
push 2
push dword [ebp - 0xc]
push dword [ebp + 0x10]
push 0x402
push dword [ebp + 0xc]
call esi
test eax, eax
je 0x43c6c4
cmp byte [ebp - 1], bl
jne 0x43c6b3
movzx eax, word [ebp - 0x10]
push ebx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x43c701
push dword [ebp + 0x14]
push dword [ebp - 8]
call fcn.0043bdaf
test al, al
pop ecx
pop ecx
jne 0x43c708
cmp dword [ebp + 8], ebx
jne 0x43c72e
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x43c742
cmp dword [ebp + 0x18], ebx
jl 0x43c6f0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp + 0x18]
add ecx, edx
sub ecx, eax
cmp ecx, 5
jle 0x43c714
push 1
push dword [ebp + 0x1c]
call fcn.0040de6e
pop ecx
pop ecx
jmp 0x43c654
mov eax, dword [ebp - 8]
mov byte [eax], bl
jmp 0x43c729
push 1
push ebx
push 0xffffffffffffffff
push 0x45a734
jmp 0x43c71e
push 1
push ebx
push 0xffffffffffffffff
push 0x45bf4c
mov ecx, dword [0x467b78]
call fcn.0040184e
cmp dword [ebp + 8], ebx
je 0x43c742
mov ecx, dword [ebp + 8]
push 1
push ebx
push 0xffffffffffffffff
push dword [ebp - 8]
call fcn.0040184e
mov esi, eax
jmp 0x43c745
xor esi, esi
inc esi
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call fcn.00438a7b
pop ecx
pop ecx
mov eax, esi
jmp 0x43c759
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43ca00
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [ebp + 0x10], bl
je 0x43ca16
push dword [ebp + 8]
call fcn.0042cb5b
pop ecx
jmp 0x43ca23
push ebx
push ebx
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp dword [ebp + 0xc], ebx
jge 0x43ca2d
mov dword [ebp + 0xc], ebx
cmp ebx, ebx
je 0x43ca86
mov ebx, dword [sym.imp.KERNEL32.DLL_GetTickCount]
push esi
push edi
call ebx
push 1
mov edi, 0x8000012f
push edi
mov dword [ebp + 0x10], eax
call fcn.0040de6e
mov esi, dword [sym.imp.USER32.dll_IsWindow]
pop ecx
pop ecx
push dword [ebp + 8]
call esi
test eax, eax
je 0x43ca84
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
add eax, ecx
mov dword [ebp + 0x10], eax
call ebx
mov ecx, dword [ebp + 0x10]
sub ecx, eax
cmp ecx, 5
jle 0x43ca84
push 1
push edi
call fcn.0040de6e
pop ecx
pop ecx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x43ca65
pop edi
pop esi
mov eax, dword [ebp + 8]
pop ebx
pop ebp
ret
Function at 0x43db69
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00458250
mov eax, dword [0x466ae0]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x46b940]
mov dword [ebp - 4], eax
jae 0x43dcac
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x46b960]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x43dcac
push 1
push esi
push ebx
call fcn.0043f4ed
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x43dcb6
push 2
push esi
push ebx
call fcn.0043f4ed
add esp, 0xc
cmp eax, 0xffffffff
je 0x43dcb6
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x43dc56
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00457b80
push 0x8000
push ebx
call fcn.00441c35
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x43dc15
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00442e9c
add esp, 0xc
cmp eax, 0xffffffff
je 0x43dc33
sub edi, eax
test edi, edi
jg 0x43dc0a
jmp 0x43dc49
cmp dword [0x46b49c], 5
jne 0x43dc46
mov dword [0x46b498], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00441c35
pop ecx
pop ecx
jmp 0x43dc96
jge 0x43dc96
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0043f4ed
push ebx
call fcn.0043ffed
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x43dc96
mov dword [0x46b498], 0xd
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x46b49c], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0043f4ed
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43dcb9
mov dword [0x46b498], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00441a79
leave
ret
Function at 0x43e14f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x466ae0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x466990]
je 0x43e184
inc eax
cmp eax, 0x13
jb 0x43e175
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x466990]
jne 0x43e2aa
mov eax, dword [0x46b4f0]
cmp eax, 1
je 0x43e282
cmp eax, edx
jne 0x43e1b4
cmp dword [0x466824], 1
je 0x43e282
cmp ecx, 0xfc
je 0x43e2aa
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x43e1ea
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00457a80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00457cb0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43e21e
mov eax, edi
push eax
call fcn.00457cb0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x45c0e0
push edi
call fcn.004589b0
add esp, 0x10
push edi
call fcn.00457cb0
push dword [esi + 0x466994]
mov ebx, eax
call fcn.00457cb0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00458250
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00457a80
push edi
push ebx
call fcn.00457a90
push 0x462468
push ebx
call fcn.00457a90
push dword [esi + 0x466994]
push ebx
call fcn.00457a90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043e2c6
add esp, 0x2c
jmp 0x43e2aa
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x466994]
push dword [esi]
call fcn.00457cb0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00441a79
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x43e2c6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x46b6e8], ebx
push esi
push edi
jne 0x43e346
push str.user32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43e381
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x462524
push edi
call esi
test eax, eax
mov dword [0x46b6e8], eax
je 0x43e381
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x46b6ec], eax
call esi
cmp dword [0x46b4a4], 2
mov dword [0x46b6f0], eax
jne 0x43e346
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x46b6f8], eax
je 0x43e346
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46b6f4], eax
mov eax, dword [0x46b6f4]
test eax, eax
je 0x43e38b
call eax
test eax, eax
je 0x43e372
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x46b6f8]
test eax, eax
je 0x43e372
test byte [ebp - 8], 1
jne 0x43e38b
cmp dword [0x46b4b0], 4
jb 0x43e385
or byte [ebp + 0x12], 0x20
jmp 0x43e3aa
xor eax, eax
jmp 0x43e3ba
or byte [ebp + 0x12], 4
jmp 0x43e3aa
mov eax, dword [0x46b6ec]
test eax, eax
je 0x43e3aa
call eax
mov ebx, eax
test ebx, ebx
je 0x43e3aa
mov eax, dword [0x46b6f0]
test eax, eax
je 0x43e3aa
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x46b6e8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43e7e7
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 0x43e815
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 0x43e81c
cmp ebx, dword [eax + 4]
jae 0x43e81c
xor eax, eax
jmp 0x43ea0c
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x43e82d
xor eax, eax
inc eax
jmp 0x43ea0b
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x43e843
cmp ecx, edx
jae 0x43e988
cmp dword [eax + 4], 0
je 0x43e84c
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x43e834
cmp dword [ebp + 8], 0
je 0x43e86e
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x43e988
cmp eax, esi
jae 0x43e988
mov eax, dword [0x46b550]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x43e893
cmp dword [esi*4 + 0x46b558], edi
je 0x43e98c
inc esi
cmp esi, eax
jl 0x43e881
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x43ea08
cmp dword [ebp - 8], 0x1000000
jne 0x43ea08
test byte [ebp - 0xc], 0xcc
je 0x43e911
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x43ea08
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x43ea08
cmp word [eax + 0x18], 0x10b
jne 0x43ea08
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x43ea08
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43e911
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43e911
test byte [ecx + 0x27], 0x80
jne 0x43e988
push 1
push 0x46b598
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x43e825
mov ecx, dword [0x46b550]
test ecx, ecx
mov edx, ecx
jle 0x43e945
lea eax, [ecx*4 + 0x46b554]
cmp dword [eax], edi
je 0x43e945
dec edx
sub eax, 4
test edx, edx
jg 0x43e939
test edx, edx
jne 0x43e976
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43e952
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x43e96a
lea eax, [edx*4 + 0x46b558]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x43e958
cmp ecx, 0x10
jge 0x43e976
inc ecx
mov dword [0x46b550], ecx
push 0
push 0x46b598
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x43e825
xor eax, eax
jmp 0x43ea0b
test esi, esi
jle 0x43e825
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x46b598
call ebx
test eax, eax
jne 0x43e825
cmp dword [esi*4 + 0x46b558], edi
je 0x43e9e2
mov eax, dword [0x46b550]
lea esi, [eax - 1]
test esi, esi
jl 0x43e9d0
cmp dword [esi*4 + 0x46b558], edi
je 0x43e9cc
dec esi
jns 0x43e9c0
test esi, esi
jge 0x43e9e0
cmp eax, 0x10
jge 0x43e9db
inc eax
mov dword [0x46b550], eax
lea esi, [eax - 1]
jmp 0x43e9e2
je 0x43e9fa
xor ecx, ecx
test esi, esi
jl 0x43e9fa
lea eax, [ecx*4 + 0x46b558]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x43e9e8
push 0
push 0x46b598
call ebx
jmp 0x43e825
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x440b23
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x46b940]
push edi
jae 0x440cf8
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x46b960]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x440cf8
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x440bce
test dl, 2
jne 0x440bce
test dl, 0x48
je 0x440b98
cmp byte [eax + 5], 0xa
je 0x440b98
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x440be1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x440bc9
mov dword [0x46b49c], ecx
jmp 0x440cff
cmp eax, 0x6d
jne 0x440bd5
xor eax, eax
jmp 0x440d0c
push eax
call fcn.0043e788
pop ecx
jmp 0x440d09
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x440cf3
test eax, eax
je 0x440c08
cmp byte [ebx], 0xa
jne 0x440c08
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x440c11
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x440ced
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x440cdd
cmp al, 0xd
je 0x440c43
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x440ccf
dec ecx
cmp dword [ebp - 8], ecx
jae 0x440c5d
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x440c58
add dword [ebp - 8], 2
jmp 0x440cb1
mov dword [ebp - 8], eax
jmp 0x440ccb
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x440c85
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x440ccb
cmp dword [ebp - 0x10], 0
je 0x440ccb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x440ca6
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x440cb1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x440cce
cmp ebx, dword [ebp + 0xc]
jne 0x440cb6
cmp byte [ebp - 1], 0xa
jne 0x440cb6
mov byte [ebx], 0xa
jmp 0x440cce
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043f4ed
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x440ccf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x440c27
jmp 0x440ced
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x440ced
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x440d0c
and dword [0x46b49c], 0
mov dword [0x46b498], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x440e73
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.00458250
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x440f0e
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 [0x46b4a4]
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 0x440f0e
cmp eax, 1
je 0x440f2f
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 0x440f0e
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x440edb
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x440f0a
xor eax, eax
inc eax
jmp 0x440f4e
cmp edi, eax
jae 0x440f12
xor eax, eax
jmp 0x440f4e
cmp eax, esi
jae 0x440f19
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 [0x46b4a4]
jmp 0x440f32
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 0x442b4f
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x461a88
call fcn.00458808
mov edi, 0x94
mov eax, edi
call fcn.00458250
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 [0x46b4a4], ecx
mov eax, dword [esi + 4]
mov dword [0x46b4b0], eax
mov edx, dword [esi + 8]
mov dword [0x46b4b4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x46b4a8], esi
cmp ecx, 2
je 0x442baf
or esi, 0x8000
mov dword [0x46b4a8], esi
shl eax, 8
add eax, edx
mov dword [0x46b4ac], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x442bea
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x442bea
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x442c02
cmp eax, 0x20b
je 0x442bef
mov dword [ebp - 0x1c], esi
jmp 0x442c16
cmp dword [ecx + 0x84], 0xe
jbe 0x442bea
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x442c10
cmp dword [ecx + 0x74], 0xe
jbe 0x442bea
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.0043edbb
pop ecx
test eax, eax
jne 0x442c42
cmp dword [0x46b4f0], 1
jne 0x442c2f
call fcn.0043e116
push 0x1c
call fcn.0043e14f
push 0xff
call fcn.0043e033
pop ecx
pop ecx
call fcn.0043ee54
mov dword [ebp - 4], esi
call fcn.0043f27a
test eax, eax
jge 0x442c5b
push 0x1b
call fcn.00442b2a
pop ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x46ba84], eax
call fcn.0043d2d0
mov dword [0x46b4e8], eax
call fcn.00441dff
test eax, eax
jge 0x442c81
push 8
call fcn.00442b2a
pop ecx
call fcn.00441ea1
test eax, eax
jge 0x442c92
push 9
call fcn.00442b2a
pop ecx
push 1
call fcn.0043e081
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x442ca8
push eax
call fcn.00442b2a
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoA]
call fcn.00442acd
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x442cc9
movzx eax, word [ebp - 0x40]
jmp 0x442ccc
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0044770d
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x442cea
push edi
call fcn.0043e0fc
call fcn.0043e072
jmp 0x442d1c
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00458843
ret