joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416b10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call esi
test eax, eax
jne 0x416c4a
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push eax
mov eax, dword [esp + 0x1c]
push edx
push eax
call esi
test eax, eax
jne 0x416c3d
mov esi, dword [esp + 0x18]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
lea ecx, [esp + 0xc]
push ecx
lea edi, [esi + 0x208]
push edi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x24]
push str.ServiceName
push eax
mov dword [esp + 0x24], 0x104
call ebx
test eax, eax
jne 0x416b96
cmp dword [esp + 0x10], 1
je 0x416ba7
mov ecx, dword [str.Unknown]
mov dword [edi], ecx
mov edx, dword [0x44d9a0]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 0
push str.Description
push edx
mov dword [esp + 0x24], 0x104
call ebx
test eax, eax
jne 0x416bd3
cmp dword [esp + 0x10], 1
je 0x416be3
mov eax, dword [str.Unknown]
mov dword [esi], eax
mov ecx, dword [0x44d9a0]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
lea edi, [esi + 0x104]
push edi
lea eax, [esp + 0x18]
push eax
push 0
push str.Title
push ecx
mov dword [esp + 0x24], 0x104
call ebx
test eax, eax
jne 0x416c15
cmp dword [esp + 0x10], 1
je 0x416c30
mov edx, dword [esp + 0x24]
push edx
call fcn.00425c41
push esi
push eax
push str.__d___s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
add esp, 0x10
ret

Function at 0x416ce0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x18
mov dword [esp + 4], 0x10
call fcn.004169f0
test al, al
je 0x416cfb
mov eax, str.SystemCurrentControlSetServicesClassNet
jmp 0x416d27
call fcn.00416990
test al, al
je 0x416d14
cmp dword [0x45f9ac], 5
jne 0x416d14
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
jmp 0x416d27
call fcn.00416990
test al, al
mov eax, str.SoftwareMicrosoftWindows_NTCurrentVersionNetworkCards
jne 0x416d27
mov eax, str.Unknown
lea ecx, [esp]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x416d8c
mov ecx, dword [esp + 0x20]
push esi
push eax
push eax
push eax
push eax
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x416d89
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xc]
push ecx
push edx
call fcn.00416c50
add esp, 8
pop esi
add esp, 0x18
ret
mov eax, esi
pop esi
add esp, 0x18
ret
Function at 0x416d90
Capabilities:
Check if file exists
Get disk information

Disassembly:
sub esp, 0x404
mov eax, dword [esp + 0x418]
push ebx
push ebp
mov ebp, dword [esp + 0x410]
push esi
push edi
push 0x200
lea ecx, [esp + 0x18]
push ecx
xor ebx, ebx
push ebp
mov byte [esp + 0x1f], 0
mov dword [eax], ebx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
jne 0x416e3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x416e34
mov eax, dword [0x44dad4]
mov edx, dword [str.Device_]
mov cl, byte [0x44dad8]
mov dword [esp + 0x18], eax
mov eax, ebp
mov dword [esp + 0x14], edx
mov byte [esp + 0x1c], cl
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416df2
lea edi, [esp + 0x14]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x416e00
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
lea edx, [esp + 0x14]
push edx
mov ecx, eax
push ebp
and ecx, 3
push 1
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x416f0d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jne 0x416f17
mov eax, dword [str.._]
mov cl, byte [0x44dacc]
mov dword [esp + 0x214], eax
mov eax, ebp
mov byte [esp + 0x218], cl
mov esi, eax
jmp 0x416e60
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x416e60
lea edi, [esp + 0x214]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x416e71
mov ecx, eax
shr ecx, 2
push 0xffffffffffffffff
rep movsd dword es:[edi], dword [esi]
push 0
push 3
push 0
push 1
mov ecx, eax
push 0
lea edx, [esp + 0x22c]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x416eda
mov ecx, dword [esp + 0x428]
mov edx, dword [esp + 0x424]
push 0
push ecx
mov ecx, dword [esp + 0x428]
push edx
push ecx
push 4
lea edx, [esp + 0x430]
push edx
push 0x170002
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x416ee2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov al, byte [esp + 0x13]
test al, al
je 0x416f17
lea eax, [esp + 0x14]
push eax
push ebp
push 7
call dword [sym.imp.KERNEL32.dll_DefineDosDeviceA]
test eax, eax
jne 0x416f17
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
mov byte [esp + 0x13], 1
jmp 0x416e3e
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x404
ret
Function at 0x417670
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x104
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov byte [ebx], 0
call fcn.004173b0
test al, al
je 0x41775f
mov esi, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
push 0xa
push 0
stosw word es:[edi], ax
push 0
push 0
stosb byte es:[edi], al
lea eax, [esp + 0x1c]
push eax
push 0xc
push 0
push 0x44db8c
call esi
test eax, eax
je 0x41775f
mov ecx, dword [esp + 0xc]
push ecx
push str._08lx
push ebx
call fcn.00425430
push ebx
call fcn.00417360
add esp, 0x10
test eax, eax
je 0x41775c
push 0xa
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
push 0xc
push 0
push 0x44db8c
call esi
test eax, eax
je 0x41775f
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push str._08lx
push ecx
call fcn.00425430
add esp, 0xc
lea esi, [esp + 0x10]
mov eax, ebx
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x417747
test cl, cl
je 0x417743
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x417747
add eax, 2
add esi, 2
test cl, cl
jne 0x417723
xor eax, eax
jmp 0x41774c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x41775c
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [ebx], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419788
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4197db
call fcn.0043fc15
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4197db
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4197d1
xor eax, eax
jmp 0x4198f4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x41980b
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x41980b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4198f1
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x419838
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0041b79a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4198f1
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x419881
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x419881
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x41987b
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0041b79a
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4198e1
and dword [ebp + 0xc], 0
jmp 0x4198e1
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4198e1
push 0xc
call fcn.00434c92
mov esi, eax
test esi, esi
pop ecx
je 0x4198c3
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4198c5
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4198dc
push dword [ebp - 8]
call fcn.0043447c
jmp 0x4198e1
call fcn.004345d6
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x419846
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x425fea
Capabilities:
Terminate process

Disassembly:
push 8
push 0x451d88
call fcn.00426ddc
push 8
call fcn.00427bca
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x461b04], esi
jne 0x42601e
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x461b00], esi
mov al, byte [ebp + 0x10]
mov byte [0x461afc], al
cmp dword [ebp + 0xc], edi
jne 0x426068
cmp dword [0x4633ac], edi
je 0x426058
mov eax, dword [0x4633a8]
sub eax, 4
mov dword [0x4633a8], eax
cmp eax, dword [0x4633ac]
jb 0x426058
mov eax, dword [eax]
cmp eax, edi
je 0x426039
call eax
jmp 0x426039
push 0x45d0bc
mov eax, 0x45d0b4
call fcn.00425f68
pop ecx
push 0x45d0c8
mov eax, 0x45d0c0
call fcn.00425f68
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x426099
cmp dword [ebp + 0x10], edi
jne 0x4260a7
mov dword [0x461b04], esi
push dword [ebp + 8]
call fcn.00425f26
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x4260a6
push 8
call fcn.00427b15
pop ecx
ret
call fcn.00426e17
ret

Function at 0x4262bd
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.00426280
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x426358
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 [0x461ac4]
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 0x426358
cmp eax, 1
je 0x426379
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 0x426358
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x426325
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x426354
xor eax, eax
inc eax
jmp 0x426398
cmp edi, eax
jae 0x42635c
xor eax, eax
jmp 0x426398
cmp eax, esi
jae 0x426363
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 [0x461ac4]
jmp 0x42637c
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 0x426405
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x451dd8
call fcn.00426ddc
mov edi, 0x94
mov eax, edi
call fcn.00426280
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 [0x461ac4], ecx
mov eax, dword [esi + 4]
mov dword [0x461ad0], eax
mov edx, dword [esi + 8]
mov dword [0x461ad4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x461ac8], esi
cmp ecx, 2
je 0x426465
or esi, 0x8000
mov dword [0x461ac8], esi
shl eax, 8
add eax, edx
mov dword [0x461acc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x4264a0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4264a0
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4264b8
cmp eax, 0x20b
je 0x4264a5
mov dword [ebp - 0x1c], esi
jmp 0x4264cc
cmp dword [ecx + 0x84], 0xe
jbe 0x4264a0
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4264c6
cmp dword [ecx + 0x74], 0xe
jbe 0x4264a0
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00427a26
pop ecx
test eax, eax
jne 0x4264e0
push 0x1c
call fcn.004263e1
pop ecx
call fcn.0042a274
test eax, eax
jne 0x4264f1
push 0x10
call fcn.004263e1
pop ecx
call fcn.0042da5e
mov dword [ebp - 4], esi
call fcn.00429245
test eax, eax
jge 0x42650a
push 0x1b
call fcn.004263bc
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4633a0], eax
call fcn.0042e12c
mov dword [0x461b08], eax
call fcn.0042e08a
test eax, eax
jge 0x426530
push 8
call fcn.004263bc
pop ecx
call fcn.0042de57
test eax, eax
jge 0x426541
push 9
call fcn.004263bc
pop ecx
push 1
call fcn.00425f80
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x426557
push eax
call fcn.004263bc
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042ddfa
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x426578
movzx eax, word [ebp - 0x40]
jmp 0x42657b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004327b1
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x426599
push edi
call fcn.004260ad
call fcn.004260cf
jmp 0x4265cb
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00426e17
ret
Function at 0x428837
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x45e7d8]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x428868
xor eax, eax
jmp 0x4289f1
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x462020]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4288a4
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.0042f01a
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42897f
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4289bd
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x428908
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4288f9
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x4288d9
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x428948
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x428951
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4288ca
jmp 0x428953
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4289ec
cmp dword [ebp - 0x6c], edi
je 0x4289bd
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4289b2
call fcn.004278cc
mov dword [eax], 9
call fcn.004278d5
mov dword [eax], esi
jmp 0x4289e7
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4289a7
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x428953
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x428953
push dword [ebp - 0x6c]
call fcn.004278de
pop ecx
jmp 0x4289e7
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4289d5
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x4289d5
xor eax, eax
jmp 0x4289ef
call fcn.004278cc
mov dword [eax], 0x1c
call fcn.004278d5
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4289ef
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00426662
add ebp, 0x3a0
leave
ret
Function at 0x428e5b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x42902f
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x462020]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x42902f
test cl, 0x48
je 0x428ec6
cmp byte [eax + 5], 0xa
je 0x428ec6
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x428f18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x428f00
call fcn.004278cc
mov dword [eax], 9
call fcn.004278d5
mov dword [eax], esi
jmp 0x428f10
cmp eax, 0x6d
je 0x42902f
push eax
call fcn.004278de
pop ecx
or eax, 0xffffffff
jmp 0x429031
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x42902a
test eax, eax
je 0x428f3f
cmp byte [ebx], 0xa
jne 0x428f3f
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x428f48
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x429024
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x429014
cmp al, 0xd
je 0x428f7a
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x429006
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x428f94
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x428f8f
add dword [ebp + 0x10], 2
jmp 0x428fe8
mov dword [ebp + 0x10], eax
jmp 0x429002
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
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 0x428fbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x429002
cmp dword [ebp - 0xc], 0
je 0x429002
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x428fdd
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x428fe8
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x429005
cmp ebx, dword [ebp + 0xc]
jne 0x428fed
cmp byte [ebp - 1], 0xa
jne 0x428fed
mov byte [ebx], 0xa
jmp 0x429005
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00429443
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x429006
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x428f5e
jmp 0x429024
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x429024
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x429031
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a91a
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 0x42a948
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 0x42a94f
cmp ebx, dword [eax + 4]
jae 0x42a94f
xor eax, eax
jmp 0x42ab3f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42a960
xor eax, eax
inc eax
jmp 0x42ab3e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42a976
cmp ecx, edx
jae 0x42aabb
cmp dword [eax + 4], 0
je 0x42a97f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42a967
cmp dword [ebp + 8], 0
je 0x42a9a1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42aabb
cmp eax, esi
jae 0x42aabb
mov eax, dword [0x461c98]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42a9c6
cmp dword [esi*4 + 0x461ca0], edi
je 0x42aabf
inc esi
cmp esi, eax
jl 0x42a9b4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42ab3b
cmp dword [ebp - 8], 0x1000000
jne 0x42ab3b
test byte [ebp - 0xc], 0xcc
je 0x42aa44
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42ab3b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42ab3b
cmp word [eax + 0x18], 0x10b
jne 0x42ab3b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42ab3b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42aa44
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42aa44
test byte [ecx + 0x27], 0x80
jne 0x42aabb
push 1
push 0x461ce0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42a958
mov ecx, dword [0x461c98]
test ecx, ecx
mov edx, ecx
jle 0x42aa78
lea eax, [ecx*4 + 0x461c9c]
cmp dword [eax], edi
je 0x42aa78
dec edx
sub eax, 4
test edx, edx
jg 0x42aa6c
test edx, edx
jne 0x42aaa9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42aa85
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42aa9d
lea eax, [edx*4 + 0x461ca0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42aa8b
cmp ecx, 0x10
jge 0x42aaa9
inc ecx
mov dword [0x461c98], ecx
push 0
push 0x461ce0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42a958
xor eax, eax
jmp 0x42ab3e
test esi, esi
jle 0x42a958
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x461ce0
call ebx
test eax, eax
jne 0x42a958
cmp dword [esi*4 + 0x461ca0], edi
je 0x42ab15
mov eax, dword [0x461c98]
lea esi, [eax - 1]
test esi, esi
jl 0x42ab03
cmp dword [esi*4 + 0x461ca0], edi
je 0x42aaff
dec esi
jns 0x42aaf3
test esi, esi
jge 0x42ab13
cmp eax, 0x10
jge 0x42ab0e
inc eax
mov dword [0x461c98], eax
lea esi, [eax - 1]
jmp 0x42ab15
je 0x42ab2d
xor ecx, ecx
test esi, esi
jl 0x42ab2d
lea eax, [ecx*4 + 0x461ca0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42ab1b
push 0
push 0x461ce0
call ebx
jmp 0x42a958
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret