joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422aa9
Capabilities:
Get disk size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x44de90]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
mov al, byte [esi]
xor ebx, ebx
push ebx
mov byte [ebp - 0xc], al
push ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0x5c
mov byte [ebp - 9], bl
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
mov edi, dword [ebp - 0x30]
imul edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push edi
push esi
mov byte [ebp - 0xa], bl
call fcn.0042299a
add esp, 0x10
cmp eax, ebx
mov dword [ebp - 0x20], eax
je 0x422bf9
mov al, byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 3
mov byte [ebp - 8], al
push 0x80000000
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], 0x5c
mov byte [ebp - 0xb], 0x5c
mov byte [ebp - 0xa], 0x2e
mov byte [ebp - 9], 0x5c
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], bl
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x422bf0
push ebx
push ebx
push 1
push ebx
push ebx
push 0xc0000000
push dword [ebp + 0xc]
call esi
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x422be7
push edi
call fcn.00425520
xor esi, esi
cmp dword [ebp - 0x24], ebx
pop ecx
mov dword [ebp - 0x18], eax
jbe 0x422bde
xor eax, eax
push eax
mov eax, dword [ebp - 0x20]
push edi
push dword [eax + esi*8 + 4]
push dword [eax + esi*8]
call fcn.00428240
push ebx
lea ecx, [ebp - 0x34]
push ecx
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x1c]
cmp eax, edi
mov dword [ebp + 8], eax
jb 0x422bbe
mov dword [ebp + 8], edi
push ebx
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
sub dword [ebp - 0x1c], eax
inc esi
cmp esi, dword [ebp - 0x24]
jb 0x422b77
push dword [ebp - 0x18]
call fcn.00425476
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x20]
call fcn.00425476
pop ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
inc eax
neg eax
pop edi
sbb eax, eax
and eax, dword [ebp - 0x14]
pop esi
pop ebx
call fcn.00425221
leave
ret
Function at 0x422c11
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x44de90]
push edi
mov edi, dword [ebp + 0xc]
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00401520
pop ecx
pop ecx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x422c45
inc eax
jmp 0x422d37
push ebx
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor ebx, ebx
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x422ca3
cmp eax, 2
jne 0x422c86
cmp byte [ebp + 0x10], bl
je 0x422c7e
push str.Key_not_found._n
push 0x45e5a0
call fcn.0040ac94
pop ecx
pop ecx
xor eax, eax
inc eax
jmp 0x422d36
cmp byte [ebp + 0x10], bl
je 0x422c9c
push str.Error_opening_key._n
push 0x45e5a0
call fcn.0040ac94
pop ecx
pop ecx
xor eax, eax
jmp 0x422d36
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
add esi, edi
cmp byte [esi - 1], 0x5c
je 0x422cbb
mov byte [esi], 0x5c
inc esi
mov byte [esi], bl
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x422ce6
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00422c11
add esp, 0xc
test eax, eax
je 0x422d15
lea eax, [ebp - 0x118]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call edi
test eax, eax
je 0x422cc3
mov byte [esi - 1], bl
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.00425221
leave
ret
Function at 0x4233ae
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x394]
sub esp, 0x414
mov eax, dword [0x44de90]
push edi
mov dword [ebp + 0x390], eax
push 0x7f
pop ecx
xor eax, eax
mov byte [ebp + 0x8c], 0
lea edi, [ebp + 0x8d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp + 0x8c]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x4234b3
push ebx
push esi
mov esi, 0x44100c
lea edi, [ebp - 0x7c]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edi, [ebp + 0x8c]
xor bl, bl
mov dword [ebp - 0x80], edi
mov al, byte [edi]
mov byte [ebp - 0x7c], al
push 0x200
lea eax, [ebp + 0x28c]
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x42349b
lea eax, [ebp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
cmp edi, 0x104
jge 0x423498
push edi
lea eax, [ebp + 0x28c]
push eax
push dword [ebp + 0x39c]
call fcn.00425540
add esp, 0xc
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x423498
mov eax, dword [ebp + 0x39c]
add edi, eax
push edi
lea eax, [ebp - 0x78]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
push dword [ebp + 0x39c]
call esi
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 0x39c]
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [ebp - 0x80]
mov al, byte [edi]
inc edi
test al, al
jne 0x42349b
test bl, bl
mov dword [ebp - 0x80], edi
jne 0x4234b1
cmp byte [edi], bl
jne 0x423417
pop esi
pop ebx
mov ecx, dword [ebp + 0x390]
mov al, 1
pop edi
call fcn.00425221
add ebp, 0x394
leave
ret
Function at 0x42387a
Capabilities:
Enumerate processes

Disassembly:
mov eax, 0x4335f9
call fcn.004269c8
sub esp, 0x130
mov eax, dword [0x44de90]
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0
push 2
mov dword [ebp - 0x14], eax
xor bl, bl
mov dword [ebp - 0x13c], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4238d1
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.00425221
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x13c]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4238b8
push dword [ebp + 8]
push dword [ebp - 0x134]
call fcn.004234c9
test al, al
pop ecx
pop ecx
je 0x4238f8
mov bl, 1
lea eax, [ebp - 0x13c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4238e2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x4238ba

Function at 0x4279f0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x427a1d
test byte [esp + 8], 0x80
je 0x427a0b
and eax, 0xfffffffe
jmp 0x427a0e
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x427a2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ca8e
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x428299
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x4415a8
call fcn.00425230
mov edi, 0x94
mov eax, edi
call fcn.00425e20
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 [0x45e26c], ecx
mov eax, dword [esi + 4]
mov dword [0x45e278], eax
mov edx, dword [esi + 8]
mov dword [0x45e27c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x45e270], esi
cmp ecx, 2
je 0x4282f9
or esi, 0x8000
mov dword [0x45e270], esi
shl eax, 8
add eax, edx
mov dword [0x45e274], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x428332
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x428332
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42834a
cmp eax, 0x20b
je 0x428337
mov dword [ebp - 0x1c], edi
jmp 0x42835e
cmp dword [ecx + 0x84], 0xe
jbe 0x428332
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x428358
cmp dword [ecx + 0x74], 0xe
jbe 0x428332
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push edi
call fcn.00429ef9
pop ecx
test eax, eax
jne 0x42838a
cmp dword [0x45e254], 2
je 0x428377
call fcn.0042d482
push 0x1c
call fcn.0042d30b
push 0xff
call fcn.0042962a
pop ecx
pop ecx
call fcn.0042da23
mov dword [ebp - 4], edi
call fcn.004293ac
test eax, eax
jge 0x4283a3
push 0x1b
call fcn.00428274
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x45eb60], eax
call fcn.0042d901
mov dword [0x45e24c], eax
call fcn.0042d85f
test eax, eax
jge 0x4283c9
push 8
call fcn.00428274
pop ecx
call fcn.0042d62c
test eax, eax
jge 0x4283da
push 9
call fcn.00428274
pop ecx
push 1
call fcn.0042965a
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x4283f0
push eax
call fcn.00428274
pop ecx
mov eax, dword [0x45e28c]
mov dword [0x45e290], eax
push eax
push dword [0x45e284]
push dword [0x45e280]
call fcn.0041e4c6
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x42841f
push esi
call fcn.00429785
call fcn.004297a7
jmp 0x428451
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.0042526b
ret
Function at 0x428513
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 [0x45ea54]
push edi
jae 0x4286e8
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x45ea60]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x4286e8
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x4285be
test dl, 2
jne 0x4285be
test dl, 0x48
je 0x428588
cmp byte [eax + 5], 0xa
je 0x428588
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 0x4285d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x4285b9
mov dword [0x45e264], ecx
jmp 0x4286ef
cmp eax, 0x6d
jne 0x4285c5
xor eax, eax
jmp 0x4286fc
push eax
call fcn.0042ca8e
pop ecx
jmp 0x4286f9
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x4286e3
test eax, eax
je 0x4285f8
cmp byte [ebx], 0xa
jne 0x4285f8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x428601
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 0x4286dd
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x4286cd
cmp al, 0xd
je 0x428633
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x4286bf
dec ecx
cmp dword [ebp - 8], ecx
jae 0x42864d
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x428648
add dword [ebp - 8], 2
jmp 0x4286a1
mov dword [ebp - 8], eax
jmp 0x4286bb
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 0x428675
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4286bb
cmp dword [ebp - 0x10], 0
je 0x4286bb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x428696
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4286a1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4286be
cmp ebx, dword [ebp + 0xc]
jne 0x4286a6
cmp byte [ebp - 1], 0xa
jne 0x4286a6
mov byte [ebx], 0xa
jmp 0x4286be
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0042c65b
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4286bf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x428617
jmp 0x4286dd
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4286dd
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 0x4286fc
and dword [0x45e264], 0
mov dword [0x45e260], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4296c4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x45e2ac], esi
push edi
jne 0x4296e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x45e2a8], esi
mov byte [0x45e2a4], al
jne 0x42974a
mov ecx, dword [0x45ea4c]
test ecx, ecx
je 0x42972b
mov eax, dword [0x45ea48]
sub eax, 4
cmp eax, ecx
jmp 0x429724
mov eax, dword [eax]
test eax, eax
je 0x429716
call eax
mov eax, dword [0x45ea48]
sub eax, 4
cmp eax, dword [0x45ea4c]
mov dword [0x45ea48], eax
jae 0x42970e
mov eax, 0x447050
mov esi, 0x44705c
cmp eax, esi
mov edi, eax
jae 0x42974a
mov eax, dword [edi]
test eax, eax
je 0x429743
call eax
add edi, 4
cmp edi, esi
jb 0x42973b
mov eax, 0x447060
mov esi, 0x447068
cmp eax, esi
mov edi, eax
jae 0x429769
mov eax, dword [edi]
test eax, eax
je 0x429762
call eax
add edi, 4
cmp edi, esi
jb 0x42975a
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x429783
push dword [ebp + 8]
mov dword [0x45e2ac], 1
call fcn.0042962a
pop ebp
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x429ae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0042ca8e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x429b05
test byte [esp + 8], 2
je 0x429b05
mov dword [0x45e260], 0xd
mov dword [0x45e264], 5
jmp 0x429ae0
xor eax, eax
ret
Function at 0x429cb6
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 0x429ce4
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 0x429ceb
cmp ebx, dword [eax + 4]
jae 0x429ceb
xor eax, eax
jmp 0x429edb
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x429cfc
xor eax, eax
inc eax
jmp 0x429eda
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x429d12
cmp ecx, edx
jae 0x429e57
cmp dword [eax + 4], 0
je 0x429d1b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x429d03
cmp dword [ebp + 8], 0
je 0x429d3d
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x429e57
cmp eax, esi
jae 0x429e57
mov eax, dword [0x45e2b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x429d62
cmp dword [esi*4 + 0x45e2c0], edi
je 0x429e5b
inc esi
cmp esi, eax
jl 0x429d50
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x429ed7
cmp dword [ebp - 8], 0x1000000
jne 0x429ed7
test byte [ebp - 0xc], 0xcc
je 0x429de0
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x429ed7
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x429ed7
cmp word [eax + 0x18], 0x10b
jne 0x429ed7
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x429ed7
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x429de0
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x429de0
test byte [ecx + 0x27], 0x80
jne 0x429e57
push 1
push 0x45e300
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x429cf4
mov ecx, dword [0x45e2b8]
test ecx, ecx
mov edx, ecx
jle 0x429e14
lea eax, [ecx*4 + 0x45e2bc]
cmp dword [eax], edi
je 0x429e14
dec edx
sub eax, 4
test edx, edx
jg 0x429e08
test edx, edx
jne 0x429e45
push 0xf
pop ebx
cmp ecx, ebx
jg 0x429e21
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x429e39
lea eax, [edx*4 + 0x45e2c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x429e27
cmp ecx, 0x10
jge 0x429e45
inc ecx
mov dword [0x45e2b8], ecx
push 0
push 0x45e300
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x429cf4
xor eax, eax
jmp 0x429eda
test esi, esi
jle 0x429cf4
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x45e300
call ebx
test eax, eax
jne 0x429cf4
cmp dword [esi*4 + 0x45e2c0], edi
je 0x429eb1
mov eax, dword [0x45e2b8]
lea esi, [eax - 1]
test esi, esi
jl 0x429e9f
cmp dword [esi*4 + 0x45e2c0], edi
je 0x429e9b
dec esi
jns 0x429e8f
test esi, esi
jge 0x429eaf
cmp eax, 0x10
jge 0x429eaa
inc eax
mov dword [0x45e2b8], eax
lea esi, [eax - 1]
jmp 0x429eb1
je 0x429ec9
xor ecx, ecx
test esi, esi
jl 0x429ec9
lea eax, [ecx*4 + 0x45e2c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x429eb7
push 0
push 0x45e300
call ebx
jmp 0x429cf4
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42adef
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x45ea54]
mov eax, dword [0x44de90]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x42afb5
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x45ea60]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x42afb5
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x42ae59
xor eax, eax
jmp 0x42afc9
test al, 0x20
je 0x42ae6a
push 2
push edi
push edi
push ecx
call fcn.0042e4fe
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42af3f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x42af86
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x42aecc
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42aebd
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x42ae9f
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42af0c
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x42af18
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x42ae93
jmp 0x42af1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x42afb0
cmp dword [ebp + 0x3a4], edi
je 0x42af86
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x42af78
mov dword [0x45e264], eax
jmp 0x42afbc
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42af6a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x42af1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x42af1a
push dword [ebp + 0x3a4]
call fcn.0042ca8e
pop ecx
jmp 0x42afc6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42af9e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x42ae52
mov dword [0x45e260], 0x1c
mov dword [0x45e264], edi
jmp 0x42afc6
sub eax, dword [ebp - 0x7c]
jmp 0x42afc9
and dword [0x45e264], 0
mov dword [0x45e260], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00425221
add ebp, 0x39c
leave
ret
Function at 0x42b082
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.00425e20
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42b11d
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 [0x45e26c]
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 0x42b11d
cmp eax, 1
je 0x42b13e
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 0x42b11d
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42b0ea
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42b119
xor eax, eax
inc eax
jmp 0x42b15d
cmp edi, eax
jae 0x42b121
xor eax, eax
jmp 0x42b15d
cmp eax, esi
jae 0x42b128
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 [0x45e26c]
jmp 0x42b141
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 0x42d30b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44de90]
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 + 0x44e230]
je 0x42d340
inc eax
cmp eax, 0x13
jb 0x42d331
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44e230]
jne 0x42d466
mov eax, dword [0x45e254]
cmp eax, 1
je 0x42d43e
cmp eax, edx
jne 0x42d370
cmp dword [0x44df44], 1
je 0x42d43e
cmp ecx, 0xfc
je 0x42d466
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 0x42d3a6
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00425600
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00425700
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42d3da
mov eax, edi
push eax
call fcn.00425700
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x43e70c
push edi
call fcn.004264a0
add esp, 0x10
push edi
call fcn.00425700
push dword [esi + 0x44e234]
mov ebx, eax
call fcn.00425700
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00425e20
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00425600
push edi
push ebx
call fcn.00425610
push 0x441680
push ebx
call fcn.00425610
push dword [esi + 0x44e234]
push ebx
call fcn.00425610
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042e405
add esp, 0x2c
jmp 0x42d466
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44e234]
push dword [esi]
call fcn.00425700
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.00425221
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret