joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x454
push ebp
push esi
push edi
mov esi, ecx
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x1c], ebp
mov ecx, 0x10
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], eax
push 0x400
push ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], eax
xor edi, edi
call fcn.00403560
add esp, 8
cmp eax, 1
jne 0x403f04
cmp dword [esi + 8], 0x4000000
jge 0x403d8e
cmp dword [esi + 0x478], 1
je 0x403d8e
lea edi, [esp + 0x60]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403d62
mov edx, dword [str.MoviePlayer.exe]
mov eax, dword [0x435968]
mov ecx, dword [0x43596c]
mov dword [edi], edx
mov edx, dword [0x435970]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
jmp 0x403dc5
lea edi, [esp + 0x60]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403d93
mov eax, dword [str.QuickTimePlayer.exe]
mov ecx, dword [0x435954]
mov edx, dword [0x435958]
mov dword [edi], eax
mov eax, dword [0x43595c]
mov dword [edi + 4], ecx
mov ecx, dword [0x435960]
mov dword [edi + 8], edx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ecx
push ebx
mov ebx, dword [esp + 0x468]
cmp ebx, ebp
je 0x403ec3
mov ebp, dword [esp + 0x46c]
test ebp, ebp
mov eax, 0x43594c
jne 0x403dea
mov eax, 0x435948
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403df0
lea edi, [esp + 0x64]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403e00
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x64]
rep movsb byte es:[edi], byte [esi]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e20
sub eax, edx
mov edx, eax
mov eax, ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e30
sub eax, esi
mov ecx, ebp
neg ecx
sbb ecx, ecx
and ecx, 2
add ecx, eax
lea edx, [ecx + edx + 1]
cmp edx, 0x400
jbe 0x403e5f
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x454
ret 8
test ebp, ebp
mov bp, word [0x435944]
je 0x403e7b
lea edi, [esp + 0x64]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403e70
mov word [edi], bp
mov eax, ebx
mov edx, ebx
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403e80
lea edi, [esp + 0x64]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403e90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x46c]
and ecx, 3
test eax, eax
rep movsb byte es:[edi], byte [esi]
je 0x403ec3
lea edi, [esp + 0x64]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403eb8
mov word [edi], bp
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x84]
push edx
push 0
mov dword [esp + 0x48], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebx
neg eax
pop edi
sbb eax, eax
pop esi
neg eax
pop ebp
add esp, 0x454
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x454
ret 8
Function at 0x4041e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push ebp
lea eax, [esp + 8]
push eax
push 0x20019
xor ebp, ebp
push ebp
push str.SoftwareApple_Computer__Inc.QuickTimeQuickTimeUpdateInProgress
push 0x80000002
mov dword [esp + 0x1c], ebp
call fcn.004051f0
add esp, 0x14
test eax, eax
jne 0x40427b
mov eax, dword [esp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push ebp
push ebp
push ebp
push eax
mov dword [esp + 0x28], 2
call esi
test eax, eax
jne 0x404239
cmp byte [esp + 8], 0x31
je 0x404266
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push 0
push str.QuickTimeUpdateCompletion
push eax
mov dword [esp + 0x28], 2
call esi
test eax, eax
jne 0x40426b
cmp byte [esp + 8], 0x31
jne 0x40426b
mov ebp, 1
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebp, ebp
pop esi
jne 0x404285
call fcn.004033f0
pop ebp
add esp, 0xc
ret
mov eax, ebp
pop ebp
add esp, 0xc
ret
Function at 0x4042d0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp eax, 0x66767274
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
je 0x404307
cmp eax, 0x72636e74
jne 0x40430c
mov esi, str.SoftwareApple_Computer__Inc.QuickTimeRecent_Movies
jmp 0x40430c
mov esi, str.SoftwareApple_Computer__Inc.QuickTimeFavorite_Movies
lea eax, [ebp - 0x18]
push eax
push 0x20019
push ebx
push str.SoftwareApple_Computer__Inc.QuickTimeRecent_Movies
push 0x80000002
mov dword [ebp - 0x18], ebx
call fcn.004051f0
add esp, 0x14
test eax, eax
jne 0x404339
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0xc]
push edx
push 0x20019
push ebx
push esi
push 0x80000002
call fcn.004051f0
add esp, 0x14
test eax, eax
jne 0x40449c
mov edx, dword [ebp - 0xc]
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x404492
mov esi, dword [ebp - 0x10]
cmp esi, ebx
mov dword [ebp - 0x18], ebx
jbe 0x404492
mov edi, dword [ebp - 0x14]
cmp edi, ebx
jbe 0x404492
inc esi
mov eax, esi
add eax, 3
inc edi
and eax, 0xfffffffc
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], edi
call fcn.004254d0
mov eax, edi
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0x1c], esp
call fcn.004254d0
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0x1c]
test esi, esi
mov ebx, esp
mov dword [ebp - 4], edi
je 0x404492
test ebx, ebx
je 0x404492
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x404492
mov edi, dword [ebp + 8]
lea ebx, [ebx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 8]
inc ecx
test eax, eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
jbe 0x404462
mov eax, dword [ebp - 4]
test eax, eax
jbe 0x404462
lea eax, [ebp - 0x1c]
push eax
push 0x4359cc
push ebx
call fcn.00425dfe
mov eax, dword [ebp - 0x1c]
add esp, 0xc
dec eax
je 0x40443e
dec eax
jne 0x404443
mov edi, 0x616c6973
jmp 0x404443
mov edi, 0x75726c20
push 0x2c
push ebx
call fcn.00425d40
add esp, 8
test eax, eax
je 0x404462
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x20]
inc eax
push eax
push esi
push edi
call fcn.00403c80
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0xc]
push ebx
push 0
push 0
mov dword [ebp - 8], edx
lea edx, [ebp - 8]
push edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x404400
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0x2c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405290
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x118]
push esi
xor esi, esi
test ebx, ebx
mov dword [esp + 8], 0
je 0x40534b
push ebp
mov ebp, dword [esp + 0x124]
lea eax, [esp + 0xc]
push eax
push 0x2001f
push esi
push ebp
push ebx
call fcn.004051f0
add esp, 0x14
test eax, eax
jne 0x405356
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x2c]
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40532e
mov esi, dword [esp + 0x10]
dec esi
js 0x40532e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, dword [esp + 0x10]
push 0x105
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
call edi
test eax, eax
jne 0x40532a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00405290
add esp, 8
dec esi
jns 0x405302
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop ebp
pop esi
pop ebx
add esp, 0x110
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x110
ret
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x110
ret

Function at 0x4054f0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x118]
push esi
xor esi, esi
test ebx, ebx
mov dword [esp + 8], 0
je 0x4055ab
push ebp
mov ebp, dword [esp + 0x124]
lea eax, [esp + 0xc]
push eax
push 0x2001f
push esi
push ebp
push ebx
call fcn.00405450
add esp, 0x14
test eax, eax
jne 0x4055b6
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea ecx, [esp + 0x2c]
push ecx
push eax
push eax
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40558e
mov esi, dword [esp + 0x10]
dec esi
js 0x40558e
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov ecx, dword [esp + 0x10]
push 0x105
lea eax, [esp + 0x1c]
push eax
push esi
push ecx
call edi
test eax, eax
jne 0x40558a
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.004054f0
add esp, 8
dec esi
jns 0x405562
pop edi
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop ebp
pop esi
pop ebx
add esp, 0x110
ret
mov eax, esi
pop esi
pop ebx
add esp, 0x110
ret
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 0x110
ret

Function at 0x407e30
Capabilities:
Encode data using xor

Disassembly:
add byte [eax + 0x75ba3e], bl
cmp eax, 0x8323f031
adc dword [edx - 0x24], edi
bound esi, qword [0x30ae1d7b]
invalid
Function at 0x425357
Capabilities:
Terminate process

Disassembly:
push 8
push 0x435ab0
call fcn.00427d04
push 8
call fcn.00428539
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x43a078], esi
jne 0x42538b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43a074], esi
mov al, byte [ebp + 0x10]
mov byte [0x43a070], al
cmp dword [ebp + 0xc], edi
jne 0x4253d5
cmp dword [0x43a874], edi
je 0x4253c5
mov eax, dword [0x43a870]
sub eax, 4
mov dword [0x43a870], eax
cmp eax, dword [0x43a874]
jb 0x4253c5
mov eax, dword [eax]
cmp eax, edi
je 0x4253a6
call eax
jmp 0x4253a6
push 0x43902c
mov eax, 0x439024
call fcn.004252b7
pop ecx
push 0x439038
mov eax, 0x439030
call fcn.004252b7
pop ecx
or dword [ebp - 4], 0xffffffff
call fcn.00425406
cmp dword [ebp + 0x10], edi
jne 0x425414
mov dword [0x43a078], esi
push dword [ebp + 8]
call fcn.00425275
xor edi, edi
xor esi, esi
inc esi
call fcn.00427d3f
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4256d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00428a56
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4256fb
test byte [esp + 8], 2
je 0x4256fb
call fcn.00428a44
mov dword [eax], 0xd
call fcn.00428a4d
mov dword [eax], 5
jmp 0x4256d4
xor eax, eax
ret
Function at 0x425ed1
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x435ad0
call fcn.00427d04
mov edi, 0x94
mov eax, edi
call fcn.004254d0
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 [0x43a038], ecx
mov eax, dword [esi + 4]
mov dword [0x43a044], eax
mov edx, dword [esi + 8]
mov dword [0x43a048], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x43a03c], esi
cmp ecx, 2
je 0x425f31
or esi, 0x8000
mov dword [0x43a03c], esi
shl eax, 8
add eax, edx
mov dword [0x43a040], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x425f6c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425f6c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x425f84
cmp eax, 0x20b
je 0x425f71
mov dword [ebp - 0x1c], esi
jmp 0x425f98
cmp dword [ecx + 0x84], 0xe
jbe 0x425f6c
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x425f92
cmp dword [ecx + 0x74], 0xe
jbe 0x425f6c
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0042ae8f
pop ecx
test eax, eax
jne 0x425fac
push 0x1c
call fcn.00425e57
pop ecx
call fcn.004272f7
test eax, eax
jne 0x425fbd
push 0x10
call fcn.00425e57
pop ecx
call fcn.0042865c
mov dword [ebp - 4], esi
call fcn.00427e59
test eax, eax
jge 0x425fd6
push 0x1b
call fcn.00425e32
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x43a868], eax
call fcn.0042ad53
mov dword [0x43a07c], eax
call fcn.0042acb1
test eax, eax
jge 0x425ffc
push 8
call fcn.00425e32
pop ecx
call fcn.0042aa7e
test eax, eax
jge 0x42600d
push 9
call fcn.00425e32
pop ecx
push 1
call fcn.004252ed
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x426023
push eax
call fcn.00425e32
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0042aa21
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x426044
movzx eax, word [ebp - 0x40]
jmp 0x426047
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call fcn.00401cb2
ret
Function at 0x428961
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.004254d0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4289fc
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 [0x43a038]
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 0x4289fc
cmp eax, 1
je 0x428a1d
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 0x4289fc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4289c9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4289f8
xor eax, eax
inc eax
jmp 0x428a3c
cmp edi, eax
jae 0x428a00
xor eax, eax
jmp 0x428a3c
cmp eax, esi
jae 0x428a07
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 [0x43a038]
jmp 0x428a20
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 0x42a69b
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4397ac]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4397c0]
je 0x42a6d2
inc eax
cmp eax, 0x13
jb 0x42a6c3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4397c0]
jne 0x42a7f5
mov eax, dword [0x43a084]
cmp eax, 1
je 0x42a7d0
cmp eax, edx
jne 0x42a702
cmp dword [0x4392f4], 1
je 0x42a7d0
cmp ecx, 0xfc
je 0x42a7f5
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42a738
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.004287b0
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.0042a610
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42a76c
mov eax, edi
push eax
call fcn.0042a610
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4362f0
push edi
call fcn.00425700
add esp, 0x10
push edi
call fcn.0042a610
push dword [esi + 0x4397c4]
mov ebx, eax
call fcn.0042a610
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004254d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004287b0
push edi
push ebx
call fcn.004287c0
push 0x4362d0
push ebx
call fcn.004287c0
push dword [esi + 0x4397c4]
push ebx
call fcn.004287c0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004307c4
add esp, 0x2c
jmp 0x42a7f5
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4397c4]
push dword [esi]
call fcn.0042a610
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0042def6
add ebp, 0x90
leave
ret
Function at 0x42e875
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 0x42e8a3
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 0x42e8aa
cmp ebx, dword [eax + 4]
jae 0x42e8aa
xor eax, eax
jmp 0x42ea9a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42e8bb
xor eax, eax
inc eax
jmp 0x42ea99
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42e8d1
cmp ecx, edx
jae 0x42ea16
cmp dword [eax + 4], 0
je 0x42e8da
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42e8c2
cmp dword [ebp + 8], 0
je 0x42e8fc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42ea16
cmp eax, esi
jae 0x42ea16
mov eax, dword [0x43a398]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42e921
cmp dword [esi*4 + 0x43a3a0], edi
je 0x42ea1a
inc esi
cmp esi, eax
jl 0x42e90f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42ea96
cmp dword [ebp - 8], 0x1000000
jne 0x42ea96
test byte [ebp - 0xc], 0xcc
je 0x42e99f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42ea96
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42ea96
cmp word [eax + 0x18], 0x10b
jne 0x42ea96
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42ea96
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42e99f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42e99f
test byte [ecx + 0x27], 0x80
jne 0x42ea16
push 1
push 0x43a3e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42e8b3
mov ecx, dword [0x43a398]
test ecx, ecx
mov edx, ecx
jle 0x42e9d3
lea eax, [ecx*4 + 0x43a39c]
cmp dword [eax], edi
je 0x42e9d3
dec edx
sub eax, 4
test edx, edx
jg 0x42e9c7
test edx, edx
jne 0x42ea04
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42e9e0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42e9f8
lea eax, [edx*4 + 0x43a3a0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42e9e6
cmp ecx, 0x10
jge 0x42ea04
inc ecx
mov dword [0x43a398], ecx
push 0
push 0x43a3e0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42e8b3
xor eax, eax
jmp 0x42ea99
test esi, esi
jle 0x42e8b3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43a3e0
call ebx
test eax, eax
jne 0x42e8b3
cmp dword [esi*4 + 0x43a3a0], edi
je 0x42ea70
mov eax, dword [0x43a398]
lea esi, [eax - 1]
test esi, esi
jl 0x42ea5e
cmp dword [esi*4 + 0x43a3a0], edi
je 0x42ea5a
dec esi
jns 0x42ea4e
test esi, esi
jge 0x42ea6e
cmp eax, 0x10
jge 0x42ea69
inc eax
mov dword [0x43a398], eax
lea esi, [eax - 1]
jmp 0x42ea70
je 0x42ea88
xor ecx, ecx
test esi, esi
jl 0x42ea88
lea eax, [ecx*4 + 0x43a3a0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42ea76
push 0
push 0x43a3e0
call ebx
jmp 0x42e8b3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42fb98
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4397ac]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x42fbd4
xor eax, eax
jmp 0x42fd3e
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x43a760]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x42fc12
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0043215c
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x42fcac
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x42fd0f
jmp 0x42fc36
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x42fc71
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x42fc62
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x42fc42
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42fcd0
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x42fcd9
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x42fc34
jmp 0x42fcd9
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42fcd0
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x42fcd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x42fd39
cmp dword [ebp - 0x68], eax
je 0x42fd0c
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x42fd01
call fcn.00428a44
mov dword [eax], 9
call fcn.00428a4d
mov dword [eax], esi
jmp 0x42fd34
push dword [ebp - 0x68]
call fcn.00428a56
pop ecx
jmp 0x42fd34
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x42fd21
cmp byte [edi], 0x1a
jne 0x42fd21
xor eax, eax
jmp 0x42fd3c
call fcn.00428a44
mov dword [eax], 0x1c
call fcn.00428a4d
and dword [eax], 0
or eax, 0xffffffff
jmp 0x42fd3c
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0042def6
add ebp, 0x3a4
leave
ret