joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53db90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xce000]
push edi
jmp 0x53dbaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x53dbb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53dba0
mov eax, 1
add ebx, ebx
jne 0x53dbc3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x53dbd4
jne 0x53dbf3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53dbf3
dec eax
add ebx, ebx
jne 0x53dbe0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x53dbb8
add ebx, ebx
jne 0x53dbef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x53dc45
xor ecx, ecx
sub eax, 3
jb 0x53dc0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53dc7a
sar eax, 1
mov ebp, eax
jmp 0x53dc16
add ebx, ebx
jne 0x53dc16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53dbe4
inc ecx
add ebx, ebx
jne 0x53dc24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x53dbe4
add ebx, ebx
jne 0x53dc31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x53dc26
jne 0x53dc42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x53dc26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x53dc64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x53dc56
jmp 0x53dba6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x53dc64
add edi, ecx
jmp 0x53dba6
pop esi
mov edi, esi
mov ecx, 0x983b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x53dc82
cmp byte [edi], 0x2f
jne 0x53dc82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x53dc87
lea edi, [esi + 0x139000]
mov eax, dword [edi]
or eax, eax
je 0x53dcff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x14a84c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x14a9b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x53dcb4
mov ecx, edi
jns 0x53dce3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x14a9b8]
or eax, eax
je 0x53dcf9
mov dword [ebx], eax
add ebx, 4
jmp 0x53dcd1
call dword [esi + 0x14a9c8]
mov ebp, dword [esi + 0x14a9bc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x53dd33
sub esp, 0xffffff80
jmp 0x4af406
Function at 0x401670
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
lea eax, [esp + 8]
push eax
xor ebp, ebp
push str.SystemCurrentControlSetControlProductOptions
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x20], ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401746
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
push ebp
lea edx, [esp + 0x1c]
push edx
push ebp
push str.szProductSuite
push eax
call esi
test eax, eax
jne 0x401745
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x401745
push edi
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, ebp
je 0x401744
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edi
lea edx, [esp + 0x20]
push edx
push ebp
push str.szProductSuite
push eax
call esi
test eax, eax
jne 0x401737
cmp dword [esp + 0x18], 7
jne 0x401737
cmp byte [edi], 0
mov esi, edi
je 0x401737
mov ebp, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push ebp
push esi
call ebx
test eax, eax
je 0x40172f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x401715
jmp 0x401737
mov dword [esp + 0x1c], 1
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ebx, dword [esp + 0x1c]
xor ebp, ebp
pop edi
pop esi
mov eax, dword [esp + 8]
cmp eax, ebp
je 0x401755
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
mov eax, ebx
pop ebx
add esp, 0x10
ret

Function at 0x401760
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x426144]
test eax, eax
push ebx
push ebp
push esi
push edi
jne 0x401867
xor eax, eax
mov ecx, 0x26
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x20], 2
jne 0x40185d
mov eax, dword [esp + 0x14]
cmp eax, 4
jbe 0x40184b
cmp eax, 5
ja 0x40183f
cmp dword [esp + 0x18], 1
jae 0x40183f
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ntdll.dll
call edi
test eax, eax
je 0x40185d
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VerSetConditionMask
push eax
call ebp
test eax, eax
je 0x40185d
push 6
push 0x40
push 0
push 0
call eax
push str.KERNEL32.DLL
mov esi, eax
mov ebx, edx
call edi
test eax, eax
je 0x40185d
push str.VerifyVersionInfoA
push eax
call ebp
mov edx, eax
test edx, edx
je 0x40185d
push ebx
xor eax, eax
push esi
mov ecx, 0x27
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x40
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0x9c
mov word [esp + 0xb8], 0x10
call edx
jmp 0x401858
mov dword [0x426140], 1
jmp 0x40185d
push str.Terminal_Server
call fcn.00401670
add esp, 4
mov dword [0x426140], eax
mov dword [0x426144], 1
mov eax, dword [0x426140]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403970
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 4]
push esi
push eax
mov esi, ecx
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 4]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
test eax, eax
sete cl
mov dword [esi + 8], eax
pop esi
mov eax, ecx
ret 0xc

Function at 0x405ae0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x405b1c
push ebp
push str.Missing_File_in_Intelligent_Updater._ID:_0x_x_n
push 0x426158
call fcn.00406450
add esp, 0xc
pop edi
pop esi
mov eax, 0x8001ffff
pop ebp
pop ecx
ret
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x405b5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
push str.Failed_to_extract_File_ID:0x_x._Error:_0x_x_n
push 0x426158
call fcn.00406450
add esp, 0x10
pop ebx
pop edi
pop esi
mov eax, 0x8001ffff
pop ebp
pop ecx
ret
mov esi, dword [esp + 0x24]
push esi
push str.Extracting:__s...
push 0x426158
call fcn.00406450
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x405bb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed._Error:_0x_x_n
push 0x426158
call fcn.00406450
add esp, 0xc
pop ebx
pop edi
pop esi
mov eax, 0x8001ffff
pop ebp
pop ecx
ret
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405bed
push str.Success_n
push 0x426158
call fcn.00406450
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, 0x10000
pop ebp
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed._Error:_0x_x_n
push 0x426158
call fcn.00406450
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov eax, 0x10000
pop ebp
pop ecx
ret
Function at 0x406310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebx + 0x110], eax
call fcn.0040ef1e
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x406354
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x104
jbe 0x406362
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, ebx
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406358
mov eax, dword [ebp + 8]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406367
mov edi, ebx
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x406373
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x41ede4
push ebx
rep movsb byte es:[edi], byte [esi]
call fcn.0040e8d8
add esp, 8
test eax, eax
mov dword [ebx + 0x114], eax
je 0x406349
xor eax, eax
mov ecx, 0x64
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push ecx
stosb byte es:[edi], al
call fcn.0040e5c2
lea edx, [esp + 0x10]
push edx
call fcn.0040e442
push eax
call fcn.0040e337
mov esi, eax
mov ecx, esi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4063d5
push esi
sub ecx, edx
push str.Log_File_Started_on__s_n
mov byte [ecx + esi - 1], al
lea eax, [esp + 0x18]
push 0x190
push eax
call fcn.0040e825
mov ecx, dword [ebx + 0x114]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.0040e7b4
mov eax, dword [ebx + 0x114]
push eax
call fcn.0040e75b
mov eax, dword [ebx + 0x110]
add esp, 0x1c
test eax, eax
je 0x40643a
mov ecx, dword [ebx + 0x114]
push ecx
call fcn.0040e2d0
add esp, 4
mov dword [ebx + 0x114], 0
pop edi
mov eax, 1
pop esi
mov dword [ebx + 0x108], eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406dd0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x118
push ebx
push esi
lea ecx, [esp + 0xc]
call fcn.00403870
push 0
push 0x20019
push str.SoftwareSymantecInstalledApps
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
call fcn.00403be0
test eax, eax
mov esi, dword [esp + 0x124]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
je 0x406e59
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x1c]
push ecx
push str.SymNetDrv
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0x105
call fcn.00403970
test eax, eax
je 0x406e59
mov eax, dword [esp + 8]
test eax, eax
je 0x406e59
push str.SymNeti.dll
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [esp + 0x18]
push eax
call ebx
test eax, eax
mov dword [esi], eax
jne 0x406edf
push 0x105
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x406e84
lea ecx, [esp + 0xc]
call fcn.00403bb0
pop esi
mov eax, 0x8001ffff
pop ebx
add esp, 0x118
ret
push edi
lea edi, [esp + 0x1c]
dec edi
lea ebx, [ebx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x406e90
mov edx, dword [str.SymNeti.DLL]
mov eax, dword [0x41f0c0]
mov ecx, dword [0x41f0c4]
mov dword [edi], edx
mov dl, byte [0x41f0c8]
mov dword [edi + 4], eax
lea eax, [esp + 0x1c]
mov dword [edi + 8], ecx
push eax
mov byte [edi + 0xc], dl
call ebx
test eax, eax
mov dword [esi], eax
pop edi
jne 0x406edf
lea ecx, [esp + 0xc]
call fcn.00403bb0
pop esi
mov eax, 0x8001021a
pop ebx
add esp, 0x118
ret
lea ecx, [esp + 0xc]
call fcn.00403bb0
pop esi
mov eax, 0x10000
pop ebx
add esp, 0x118
ret

Function at 0x407880
Capabilities:
Access peb ldr_data
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41dd48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00404d50
lea ecx, [esp + 0x18]
mov dword [esp + 0x38], 0
call fcn.00404d50
mov esi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.00404870
push esi
lea ecx, [esp + 0x1c]
call fcn.00404870
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
push 0
lea ecx, [esp + 0x1c]
call fcn.00404150
push eax
call ebp
test eax, eax
jne 0x407948
call edi
mov esi, eax
cmp esi, 3
je 0x407900
cmp esi, 2
jne 0x407948
push 0x5c
lea ecx, [esp + 0x10]
call fcn.00404460
cmp eax, 0xffffffff
je 0x407948
push eax
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x14]
call fcn.00404e40
mov ecx, eax
mov byte [esp + 0x38], 2
call fcn.00404150
push eax
call fcn.00407880
add esp, 4
lea ecx, [esp + 0x24]
mov esi, eax
mov byte [esp + 0x38], 1
call fcn.00404310
test esi, esi
je 0x4078e0
cmp esi, 0xb7
jne 0x407952
xor esi, esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call fcn.00404310
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call fcn.00404310
mov ecx, dword [esp + 0x30]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x407990
Capabilities:
Timestomp file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x28
push esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x1c]
push ecx
mov esi, eax
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0xc]
push ecx
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x18]
push edx
mov eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x28
ret

Function at 0x408270
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41ddf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov eax, dword [esi + 0xc]
test eax, eax
mov dword [esp + 0x10], 0
je 0x4082c1
push eax
call fcn.00409730
mov eax, dword [esi + 0x1c]
add esp, 4
test eax, eax
mov dword [esi + 0xc], 0
je 0x4082c1
mov ecx, esi
call fcn.00404150
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4082d1
push eax
call fcn.0040da36
add esp, 4
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00404310
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4082f0
Capabilities:
Delete file

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40831f
push eax
call fcn.00409730
mov eax, dword [esi + 0x1c]
add esp, 4
test eax, eax
mov dword [esi + 0xc], 0
je 0x40831f
mov ecx, esi
call fcn.00404150
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 8]
test eax, eax
mov ecx, esi
jne 0x40833f
call fcn.00403d70
test eax, eax
je 0x408345
xor eax, eax
pop esi
ret 0x10
push eax
call fcn.004048d0
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x40836d
mov ecx, esi
call fcn.00404150
push eax
call fcn.004095a0
xor ecx, ecx
add esp, 4
test eax, eax
setne cl
mov dword [esi + 0xc], eax
pop esi
mov eax, ecx
ret 0x10
mov ecx, dword [esi + 0x10]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret 0x10
Function at 0x409ff0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x409ffb
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x40a0f3
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x41f320]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41f320]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41f320]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41f320]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41f320]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41f320]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41f320]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x41f320]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x40a016
test edi, edi
je 0x40a112
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x41f320]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x40a0f7
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x40f0a7
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.0040f2a0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40f142
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 [0x42652c]
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 0x40f142
cmp eax, 1
je 0x40f163
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 0x40f142
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40f10f
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40f13e
xor eax, eax
inc eax
jmp 0x40f182
cmp edi, eax
jae 0x40f146
xor eax, eax
jmp 0x40f182
cmp eax, esi
jae 0x40f14d
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 [0x42652c]
jmp 0x40f166
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 0x40f3fc
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x41ff18
call fcn.00410f30
mov edi, 0x94
mov eax, edi
call fcn.0040f2a0
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 [0x42652c], ecx
mov eax, dword [esi + 4]
mov dword [0x426538], eax
mov edx, dword [esi + 8]
mov dword [0x42653c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x426530], esi
cmp ecx, 2
je 0x40f45c
or esi, 0x8000
mov dword [0x426530], esi
shl eax, 8
add eax, edx
mov dword [0x426534], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x40f497
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f497
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x40f4af
cmp eax, 0x20b
je 0x40f49c
mov dword [ebp - 0x1c], esi
jmp 0x40f4c3
cmp dword [ecx + 0x84], 0xe
jbe 0x40f497
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x40f4bd
cmp dword [ecx + 0x74], 0xe
jbe 0x40f497
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040fd3e
pop ecx
test eax, eax
jne 0x40f4d7
push 0x1c
call fcn.0040f382
pop ecx
call fcn.00412810
test eax, eax
jne 0x40f4e8
push 0x10
call fcn.0040f382
pop ecx
call fcn.00414d98
mov dword [ebp - 4], esi
call fcn.00414b4e
test eax, eax
jge 0x40f501
push 0x1b
call fcn.0040f35d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x427bdc], eax
call fcn.00414a2c
mov dword [0x4263a8], eax
call fcn.0041498a
test eax, eax
jge 0x40f527
push 8
call fcn.0040f35d
pop ecx
call fcn.00414757
test eax, eax
jge 0x40f538
push 9
call fcn.0040f35d
pop ecx
push 1
call fcn.00412ad0
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40f54e
push eax
call fcn.0040f35d
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004146fa
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40f56f
movzx eax, word [ebp - 0x40]
jmp 0x40f572
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00405e10
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x40f590
push edi
call fcn.00412bfd
call fcn.00412c1f
jmp 0x40f5c2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00410f6b
ret
Function at 0x412b3a
Capabilities:
Terminate process

Disassembly:
push 8
push 0x420100
call fcn.00410f30
push 8
call fcn.0040ff7f
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x42656c], esi
jne 0x412b6e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x426568], esi
mov al, byte [ebp + 0x10]
mov byte [0x426564], al
cmp dword [ebp + 0xc], edi
jne 0x412bb8
cmp dword [0x427bac], edi
je 0x412ba8
mov eax, dword [0x427ba8]
sub eax, 4
mov dword [0x427ba8], eax
cmp eax, dword [0x427bac]
jb 0x412ba8
mov eax, dword [eax]
cmp eax, edi
je 0x412b89
call eax
jmp 0x412b89
push 0x42403c
mov eax, 0x424034
call fcn.00412a9a
pop ecx
push 0x424048
mov eax, 0x424040
call fcn.00412a9a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x412be9
cmp dword [ebp + 0x10], edi
jne 0x412bf7
mov dword [0x42656c], esi
push dword [ebp + 8]
call fcn.00412a58
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x412bf6
push 8
call fcn.0040feb2
pop ecx
ret
call fcn.00410f6b
ret

Function at 0x413026
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x42529c]
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 + 0x4253f0]
je 0x41305b
inc eax
cmp eax, 0x13
jb 0x41304c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4253f0]
jne 0x413181
mov eax, dword [0x4263b0]
cmp eax, 1
je 0x413159
cmp eax, edx
jne 0x41308b
cmp dword [0x425298], 1
je 0x413159
cmp ecx, 0xfc
je 0x413181
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 0x4130c1
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00414100
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00413c30
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4130f5
mov eax, edi
push eax
call fcn.00413c30
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x420528
push edi
call fcn.0040f610
add esp, 0x10
push edi
call fcn.00413c30
push dword [esi + 0x4253f4]
mov ebx, eax
call fcn.00413c30
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040f2a0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00414100
push edi
push ebx
call fcn.00414110
push 0x420508
push ebx
call fcn.00414110
push dword [esi + 0x4253f4]
push ebx
call fcn.00414110
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004172b2
add esp, 0x2c
jmp 0x413181
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4253f4]
push dword [esi]
call fcn.00413c30
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.0040f602
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret