joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d8d7
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
call dword [0x426060]
push 0xf003f
xor ebx, ebx
push 0x420bbc
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.00402e3d
test eax, eax
je 0x40d91c
mov esi, 0x80004005
jmp 0x40da0b
push ebx
push ebx
mov esi, 0x2001f
push esi
push ebx
push ebx
push 0x420bc8
push dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
call fcn.0040eb80
test eax, eax
jne 0x40d912
push ebx
push ebx
push esi
push ebx
push ebx
push 0x420bd4
push dword [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040eb80
test eax, eax
jne 0x40d912
push ebx
push ebx
push esi
push ebx
push ebx
push 0x420be0
push dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
call fcn.0040eb80
test eax, eax
jne 0x40d912
mov esi, dword [ebp + 8]
push 4
pop ecx
mov edi, 0x422118
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov dword [ebp - 8], 0x80004005
jne 0x40d99b
push 0x420be8
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x40da08
mov dword [ebp - 8], ebx
jmp 0x40da08
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_StringFromCLSID]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x40d9fa
mov edi, dword [ebp - 4]
cmp edi, ebx
jne 0x40d9bd
xor eax, eax
jmp 0x40d9e2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.004127e0
mov eax, esp
push dword [ebp - 0x1c]
push esi
push edi
push eax
call fcn.00406608
push 0xffffffffffffffff
push ebx
push str.TransferJobID
push eax
lea ecx, [ebp - 0xc]
call fcn.0040ec2c
test eax, eax
jne 0x40d9fa
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x40da08
push dword [ebp - 4]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esi, dword [ebp - 8]
lea ecx, [ebp - 0xc]
call fcn.00402e26
lea ecx, [ebp - 0x10]
call fcn.00402e26
lea ecx, [ebp - 0x14]
call fcn.00402e26
lea ecx, [ebp - 0x18]
call fcn.00402e26
mov eax, esi
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40dcba
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x8c
push esi
push 0x20019
push 0x420f60
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp + 0x6c]
mov dword [ebp + 0x6c], esi
mov dword [ebp + 0x70], esi
mov dword [ebp + 0x68], 0x80
call fcn.00402e3d
test eax, eax
jne 0x40dd86
push 0x2001f
push 0x420f6c
push dword [ebp + 0x6c]
lea ecx, [ebp + 0x70]
call fcn.00402e3d
test eax, eax
jne 0x40dd86
cmp dword [ebp + 0x7c], esi
jne 0x40dd22
push 0x420f78
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x40dd83
lea eax, [ebp + 0x68]
push eax
push 0x420f88
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 0x70]
call fcn.0040ebce
test eax, eax
jne 0x40dd70
cmp dword [ebp + 0x68], esi
je 0x40dd70
push dword [ebp + 0x7c]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push esi
push 0x420f98
push dword [ebp + 0x70]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x40dd83
push 0xffffffffffffffff
push esi
push 0x420fa8
push dword [ebp + 0x7c]
lea ecx, [ebp + 0x70]
call fcn.0040ec2c
xor esi, esi
inc esi
lea ecx, [ebp + 0x70]
call fcn.00402e26
lea ecx, [ebp + 0x6c]
call fcn.00402e26
mov eax, esi
pop esi
add ebp, 0x74
leave
ret
Function at 0x40e964
Capabilities:
Delete registry value
Get common file path
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x188
push edi
xor edi, edi
call fcn.0040e877
test eax, eax
je 0x40ea6a
push esi
push 0x420996
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x80
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x420998
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x118]
push str.__s_s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
add esp, 0x10
cmp dword [ebp + 0x78], 0
jne 0x40e9d9
push str.__delete
lea eax, [ebp - 0x118]
push eax
call esi
xor edi, edi
inc edi
lea eax, [ebp + 0x6c]
push eax
push 0x2001f
push 0
push 0x4209b8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40ea45
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ea01
sub eax, edx
inc eax
push eax
lea eax, [ebp - 0x118]
push eax
push 1
push 0
push str.SunJavaUpdateReg
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test edi, edi
jne 0x40ea3c
push 0x4209fc
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
call fcn.0040bdb9
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x7c], 0
je 0x40ea66
push str.__noruntask
lea eax, [ebp - 0x118]
push eax
call esi
lea eax, [ebp - 0x118]
push eax
call fcn.0040bd51
pop ecx
xor eax, eax
inc eax
pop esi
pop edi
add ebp, 0x70
leave
ret

Function at 0x40ebce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x40ec1d
cmp dword [ebp - 4], ebx
jbe 0x40ec1a
cmp dword [ebp - 4], 2
jbe 0x40ec24
cmp dword [ebp - 4], 7
jne 0x40ec1a
mov ecx, dword [edi]
cmp ecx, 2
jb 0x40ec1a
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x40ec1a
cmp byte [ecx - 2], bl
je 0x40ec1d
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x40ec18
Function at 0x40f0f8
Capabilities:
Delete registry value
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x218
push edi
lea eax, [ebp + 0x6c]
push 1
push eax
call fcn.0040c9d4
test eax, eax
pop ecx
pop ecx
je 0x40f2d6
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
push esi
push 4
pop ebx
push 0x4217c8
lea eax, [ebp + 0x64]
push eax
mov dword [ebp + 0x70], ebx
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x64]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x4217cc
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x4217d4
push dword [ebp + 0x6c]
mov byte [ebp - 0x1a4], 0
mov dword [ebp + 0x70], 0x100
call esi
push 0x4217e4
lea eax, [ebp - 0x24]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x68]
push eax
push 0
push 0x4217e8
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
push 0x4217fc
lea eax, [ebp - 0xa4]
push eax
call edi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x68]
push eax
xor edi, edi
push edi
push 0x421800
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], 0x80
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x421810
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
call esi
test eax, eax
jne 0x40f235
push edi
push edi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x421820
lea eax, [ebp - 0x1a4]
push 0x421824
push eax
call fcn.0040dd9e
add esp, 0x20
test eax, eax
je 0x40f235
push 0x421828
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x421838
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x60], edi
call esi
test eax, eax
jne 0x40f2c9
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x5c]
push eax
lea eax, [ebp + 0x68]
push eax
push edi
push 0x421848
push dword [ebp + 0x6c]
mov dword [ebp + 0x70], ebx
mov dword [ebp + 0x5c], edi
call esi
push dword [ebp + 0x5c]
lea eax, [ebp - 0x24]
push dword [ebp + 0x60]
push eax
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp + 0x64]
push eax
push 0x42185c
lea eax, [ebp - 0x1a4]
push 0x421860
push eax
call fcn.0040dd9e
add esp, 0x20
test eax, eax
je 0x40f2c9
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x421864
push dword [ebp + 0x6c]
call esi
push 0x421878
push dword [ebp + 0x6c]
call esi
push 0x42188c
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
jmp 0x40f2d8
xor edi, edi
mov dword [0x42771c], edi
xor eax, eax
pop edi
add ebp, 0x74
leave
ret 4
Function at 0x40f2e8
Capabilities:
Create thread
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
call fcn.0040cef6
test eax, eax
jne 0x40f2f9
leave
ret
push ebx
push 4
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push 1
xor ebx, ebx
push eax
mov dword [ebp - 8], ebx
call fcn.0040c9d4
test eax, eax
pop ecx
pop ecx
je 0x40f3a5
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x42189c
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
jne 0x40f363
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push 0x4218ac
push dword [ebp - 4]
call edi
mov esi, eax
neg esi
sbb esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
cmp esi, ebx
pop esi
je 0x40f3a5
cmp dword [0x42771c], ebx
jne 0x40f3a5
cmp dword [ebp + 8], ebx
jne 0x40f395
push 0x42771c
push ebx
push ebx
push fcn.0040f0f8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40f3a5
push ebx
mov dword [0x42771c], 1
call fcn.0040f0f8
xor eax, eax
inc eax
pop ebx
leave
ret

Function at 0x40f46e
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x208
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x4219e8
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x70], 3
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp + 0x6c]
push eax
push str.Country
xor ebx, ebx
push ebx
call fcn.0040caa9
add esp, 0x10
push 0x4219f4
lea eax, [ebp - 0x194]
push eax
mov dword [ebp + 0x70], 0x100
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x194]
push eax
push str.PostStatusUrl
push ebx
call fcn.0040caa9
add esp, 0x10
push 0x421a08
lea eax, [ebp - 0x14]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x14]
push eax
push str.InstalledJREVersion
push ebx
mov dword [ebp + 0x70], 0x80
call fcn.0040caa9
add esp, 0x10
push 0x421a20
lea eax, [ebp - 0x94]
push eax
call esi
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x94]
push eax
push str.NewJREVersion
push ebx
mov dword [ebp + 0x70], 0x80
call fcn.0040caa9
push dword [ebp + 0x7c]
lea eax, [ebp - 0x14]
push ebx
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp + 0x6c]
push eax
push 0x421a34
lea eax, [ebp - 0x194]
push 0x421a38
push eax
call fcn.0040dd9e
add esp, 0x30
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x410974
Capabilities:
Create process on windows

Disassembly:
cmp word [esp + 8], 0xcc
jne 0x410996
push 1
xor eax, eax
push eax
push eax
add ecx, 0x620
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor eax, eax
ret 0x10

Function at 0x41281d
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.004127e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4128b8
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 [0x4279b4]
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 0x4128b8
cmp eax, 1
je 0x4128d9
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 0x4128b8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x412885
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4128b4
xor eax, eax
inc eax
jmp 0x4128f8
cmp edi, eax
jae 0x4128bc
xor eax, eax
jmp 0x4128f8
cmp eax, esi
jae 0x4128c3
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 [0x4279b4]
jmp 0x4128dc
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 0x413777
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x4221f0
call fcn.00411e68
mov edi, 0x94
mov eax, edi
call fcn.004127e0
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 [0x4279b4], ecx
mov eax, dword [esi + 4]
mov dword [0x4279c0], eax
mov edx, dword [esi + 8]
mov dword [0x4279c4], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4279b8], esi
cmp ecx, 2
je 0x4137d7
or esi, 0x8000
mov dword [0x4279b8], esi
shl eax, 8
add eax, edx
mov dword [0x4279bc], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x413812
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413812
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x41382a
cmp eax, 0x20b
je 0x413817
mov dword [ebp - 0x1c], esi
jmp 0x41383e
cmp dword [ecx + 0x84], 0xe
jbe 0x413812
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x413838
cmp dword [ecx + 0x74], 0xe
jbe 0x413812
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00413f73
pop ecx
test eax, eax
jne 0x413852
push 0x1c
call fcn.00413753
pop ecx
call fcn.00415992
test eax, eax
jne 0x413863
push 0x10
call fcn.00413753
pop ecx
call fcn.004196ef
mov dword [ebp - 4], esi
call fcn.004194f1
test eax, eax
jge 0x41387c
push 0x1b
call fcn.0041372e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x429094], eax
call fcn.004193cf
mov dword [0x427800], eax
call fcn.0041932d
test eax, eax
jge 0x4138a2
push 8
call fcn.0041372e
pop ecx
call fcn.004190fa
test eax, eax
jge 0x4138b3
push 9
call fcn.0041372e
pop ecx
push 1
call fcn.00414d27
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x4138c9
push eax
call fcn.0041372e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0041909d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x4138ea
movzx eax, word [ebp - 0x40]
jmp 0x4138ed
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.004012f7
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x41390b
push edi
call fcn.00414e54
call fcn.00414e76
jmp 0x41393d
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00411ea3
ret
Function at 0x413d30
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 0x413d5e
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 0x413d65
cmp ebx, dword [eax + 4]
jae 0x413d65
xor eax, eax
jmp 0x413f55
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x413d76
xor eax, eax
inc eax
jmp 0x413f54
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x413d8c
cmp ecx, edx
jae 0x413ed1
cmp dword [eax + 4], 0
je 0x413d95
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x413d7d
cmp dword [ebp + 8], 0
je 0x413db7
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x413ed1
cmp eax, esi
jae 0x413ed1
mov eax, dword [0x427810]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x413ddc
cmp dword [esi*4 + 0x427818], edi
je 0x413ed5
inc esi
cmp esi, eax
jl 0x413dca
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x413f51
cmp dword [ebp - 8], 0x1000000
jne 0x413f51
test byte [ebp - 0xc], 0xcc
je 0x413e5a
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x413f51
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x413f51
cmp word [eax + 0x18], 0x10b
jne 0x413f51
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x413f51
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x413e5a
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x413e5a
test byte [ecx + 0x27], 0x80
jne 0x413ed1
push 1
push 0x427858
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x413d6e
mov ecx, dword [0x427810]
test ecx, ecx
mov edx, ecx
jle 0x413e8e
lea eax, [ecx*4 + 0x427814]
cmp dword [eax], edi
je 0x413e8e
dec edx
sub eax, 4
test edx, edx
jg 0x413e82
test edx, edx
jne 0x413ebf
push 0xf
pop ebx
cmp ecx, ebx
jg 0x413e9b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x413eb3
lea eax, [edx*4 + 0x427818]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x413ea1
cmp ecx, 0x10
jge 0x413ebf
inc ecx
mov dword [0x427810], ecx
push 0
push 0x427858
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x413d6e
xor eax, eax
jmp 0x413f54
test esi, esi
jle 0x413d6e
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x427858
call ebx
test eax, eax
jne 0x413d6e
cmp dword [esi*4 + 0x427818], edi
je 0x413f2b
mov eax, dword [0x427810]
lea esi, [eax - 1]
test esi, esi
jl 0x413f19
cmp dword [esi*4 + 0x427818], edi
je 0x413f15
dec esi
jns 0x413f09
test esi, esi
jge 0x413f29
cmp eax, 0x10
jge 0x413f24
inc eax
mov dword [0x427810], eax
lea esi, [eax - 1]
jmp 0x413f2b
je 0x413f43
xor ecx, ecx
test esi, esi
jl 0x413f43
lea eax, [ecx*4 + 0x427818]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x413f31
push 0
push 0x427858
call ebx
jmp 0x413d6e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x414d91
Capabilities:
Terminate process

Disassembly:
push 8
push 0x422258
call fcn.00411e68
push 8
call fcn.00414117
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4279f4], esi
jne 0x414dc5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4279f0], esi
mov al, byte [ebp + 0x10]
mov byte [0x4279ec], al
cmp dword [ebp + 0xc], edi
jne 0x414e0f
cmp dword [0x429068], edi
je 0x414dff
mov eax, dword [0x429064]
sub eax, 4
mov dword [0x429064], eax
cmp eax, dword [0x429068]
jb 0x414dff
mov eax, dword [eax]
cmp eax, edi
je 0x414de0
call eax
jmp 0x414de0
push 0x42603c
mov eax, 0x426034
call fcn.00414d0f
pop ecx
push 0x426048
mov eax, 0x426040
call fcn.00414d0f
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x414e40
cmp dword [ebp + 0x10], edi
jne 0x414e4e
mov dword [0x4279f4], esi
push dword [ebp + 8]
call fcn.00414ccd
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x414e4d
push 8
call fcn.00414062
pop ecx
ret
call fcn.00411ea3
ret

Function at 0x418d89
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x426770]
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 + 0x426da8]
je 0x418dbe
inc eax
cmp eax, 0x13
jb 0x418daf
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x426da8]
jne 0x418ee4
mov eax, dword [0x427808]
cmp eax, 1
je 0x418ebc
cmp eax, edx
jne 0x418dee
cmp dword [0x426764], 1
je 0x418ebc
cmp ecx, 0xfc
je 0x418ee4
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 0x418e24
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041ab80
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00416fa0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x418e58
mov eax, edi
push eax
call fcn.00416fa0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x422f10
push edi
call fcn.004131d0
add esp, 0x10
push edi
call fcn.00416fa0
push dword [esi + 0x426dac]
mov ebx, eax
call fcn.00416fa0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004127e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041ab80
push edi
push ebx
call fcn.0041ab90
push 0x422ef0
push ebx
call fcn.0041ab90
push dword [esi + 0x426dac]
push ebx
call fcn.0041ab90
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041b945
add esp, 0x2c
jmp 0x418ee4
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x426dac]
push dword [esi]
call fcn.00416fa0
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.00413cbe
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret