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

Disassembly:
push 0xffffffffffffffff
push 0x43f710
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebp
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40ee40
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x27
push str.SOFTWARESiemensShared_ToolsCompSetup
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.004073e0
mov edi, dword [esp + 0x14]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40ee8b
push ebp
lea ecx, [esp + 0x18]
call fcn.00407500
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
push edi
push 0x80000002
call esi
test eax, eax
je 0x40eee7
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40eec7
push 0
lea ecx, [esp + 0x18]
call fcn.00407500
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push edi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40eee7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [edi - 8]
mov eax, 1
sub eax, dword [edi - 4]
or ecx, eax
jge 0x40ef05
push 0
lea ecx, [esp + 0x18]
call fcn.00407500
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push 0x2001f
push 0
push edi
push 0x80000002
call esi
test eax, eax
jne 0x40efe6
push 0x4486cc
lea ecx, [esp + 0x1c]
call fcn.00406960
mov eax, dword [esp + 0x18]
mov edx, dword [eax - 8]
mov esi, dword [eax - 0xc]
mov ecx, 1
sub ecx, dword [eax - 4]
mov byte [esp + 0x24], 1
or edx, ecx
jge 0x40ef59
push 0
lea ecx, [esp + 0x1c]
call fcn.00407500
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
add esi, 1
push esi
push eax
push 1
push 0
push str.SetupSucceeded
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push str.MsiReturn
push edx
call esi
mov eax, dword [esp + 0x10]
push str.Restart
push eax
call esi
mov ecx, dword [esp + 0x10]
push str.ComponentEntry
push ecx
call esi
mov edx, dword [esp + 0x10]
push str.LogFile
push edx
call esi
mov eax, dword [esp + 0x10]
push str.AppResult
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
mov ebp, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40efe6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f00a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x40f280
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x43f788
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
call fcn.0041890e
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40f2c2
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov eax, dword [esi + 0x58]
lea edi, [esi + 0x58]
push str.__INTERNAL_CLIENT
push eax
mov dword [esp + 0x30], 0
call fcn.004262f5
add esp, 8
test eax, eax
jne 0x40f32b
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f316
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
push 0x1d
push str.SoftwareSiemensShared_Tools
lea ecx, [esp + 0x1c]
call fcn.004073e0
add esi, 0x10c
push esi
lea ecx, [esp + 0x20]
push 0x442694
push ecx
call fcn.00406010
push str.Clients
push eax
lea edx, [esp + 0x24]
push edx
mov byte [esp + 0x40], 1
call fcn.00405f60
add esp, 0x18
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 2
call fcn.00406540
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x28], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f3a3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40f3c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp - 8]
mov eax, 1
sub eax, dword [ebp - 4]
or ecx, eax
jge 0x40f3ea
push 0
lea ecx, [esp + 0x18]
call fcn.00407500
mov ebp, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0x2001f
push 0
push 0x442630
push 0
push ebp
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40f45b
mov word [esp + 0x10], ax
mov eax, dword [edi]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
or eax, ecx
jge 0x40f433
push 0
mov ecx, edi
call fcn.00407500
mov edi, dword [edi]
mov eax, dword [esp + 0x18]
push 2
lea edx, [esp + 0x14]
push edx
push 1
push 0
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x18]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40f45e
or esi, 0xffffffff
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40f482
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x415060
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44004b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x456ea4]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], vtable.CVersion.0
lea edi, [esi + 8]
call fcn.0041890e
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x4150af
push 0x80004005
call fcn.00406210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
push fcn.004069e0
push fcn.00406900
push 8
push 4
lea ecx, [esi + 0x3c]
push ecx
mov dword [esp + 0x30], ebx
call fcn.004279d1
mov ecx, edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.00407310
mov byte [esi + 0x18], 1
mov word [esi + 4], 0x2e
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x415d40
Capabilities:
Delete file

Disassembly:
push ecx
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp]
push edx
call eax
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x415d74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop ecx
ret
Function at 0x41748a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push dword [ebp + 8]
xor esi, esi
mov dword [ebp - 8], esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x4174ba
push dword [ebp + 8]
call edi
push eax
call fcn.00422262
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4174e5
test byte [ebp - 4], 1
je 0x4174e5
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4174e5
push dword [ebp + 8]
call edi
push eax
call fcn.00422262
lea eax, [ebx + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x41759f
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.004173ef
pop ecx
lea eax, [ebx + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x41751b
lea ecx, [ebp - 0x10]
push ecx
push eax
call fcn.004173ef
pop ecx
lea eax, [ebp - 0x10]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [ebx]
or eax, dword [ebx + 4]
je 0x417531
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.004173ef
pop ecx
pop ecx
lea esi, [ebp - 0x18]
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41755e
push dword [ebp + 8]
call edi
push eax
call fcn.00422262
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x41758a
call edi
push ebx
mov dword [ebp - 8], eax
call esi
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.00422262
push ebx
call esi
test eax, eax
jne 0x41759c
push dword [ebp + 8]
call edi
push eax
call fcn.00422262
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0x20]
cmp eax, dword [ebp - 4]
je 0x4175c7
test byte [ebp - 4], 1
jne 0x4175c7
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4175c7
push dword [ebp + 8]
call edi
push eax
call fcn.00422262
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x417a1a
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x417a23
xor eax, eax
jmp 0x417a8c
cmp dword [esp + 8], 0
jne 0x417a2f
call fcn.0041864b
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00428e05
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x417a6a
push dword [esi + 0x10]
call fcn.00428b0b
test eax, eax
pop ecx
jne 0x417a6a
mov esi, dword [esi + 0xc]
call fcn.004288a8
push esi
push dword [eax]
push 1
call fcn.0042221c
push dword [esi + 0x10]
call fcn.00428b3a
test eax, eax
pop ecx
je 0x417a89
push dword [esi + 0x10]
call fcn.00428a5f
push eax
call fcn.00405a80
pop ecx
pop ecx
jmp 0x417a58
mov eax, edi
pop edi
pop esi
ret 8
Function at 0x417a95
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x417a9f
call fcn.0041864b
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.0042743b
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x417acc
mov esi, dword [esi + 0xc]
call fcn.004288a8
push esi
push dword [eax]
push 1
call fcn.0042221c
pop esi
ret 8

Function at 0x4193ce
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x456ea4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x41940b
push 0x44b6c0
push 4
push eax
call fcn.00427c97
push eax
call fcn.00405a80
add esp, 0x10
jmp 0x41941d
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419488
push edi
call fcn.00428895
mov edi, dword [eax]
call fcn.00428895
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0042777c
add esp, 0x18
mov ebx, eax
call fcn.00428895
cmp dword [eax], 0
je 0x419468
call fcn.00428895
push dword [eax]
call fcn.0041884d
pop ecx
jmp 0x41946f
call fcn.00428895
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x419488
cmp ebx, esi
jae 0x419488
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x41948a
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00425f3c
leave
ret
Function at 0x422a00
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x422a2e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x422a4c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0042296a
jmp 0x422a4c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x422a4c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0042296a
test edi, edi
mov eax, edi
jne 0x422a36
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x45a1f8]
test ecx, ecx
je 0x422b0f
jmp 0x4229ff
ret 8

Function at 0x425f3c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x456ea4]
jne 0x425f46
repz ret
jmp fcn.0042d8dc

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x426017
call fcn.004288a8
mov dword [eax], esi
call fcn.00428895
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042de00
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x425ff3
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x426046
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004288bb
pop ecx
call fcn.00428895
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x42606d
test al, 1
je 0x42606d
test byte [esp + 0xc], 2
je 0x42606d
call fcn.004288a8
mov dword [eax], 5
call fcn.00428895
mov dword [eax], 0xd
jmp 0x42603d
xor eax, eax
pop esi
ret
Function at 0x428b69
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x428ba6
cmp dword [ebp + 0x14], edi
je 0x428ba6
cmp ecx, edi
jne 0x428bad
call fcn.00428895
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0042de00
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x428bc1
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x428be2
cmp ebx, 0xffffffff
je 0x428bd1
push ebx
push edi
push ecx
call fcn.00425f70
add esp, 0xc
cmp esi, edi
je 0x428b8e
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x428b8e
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x428bfe
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x428c05
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x428cf6
test word [esi + 0xc], 0x10c
je 0x428c59
mov eax, dword [esi + 4]
test eax, eax
je 0x428c59
jl 0x428d57
cmp ebx, eax
mov edi, ebx
jb 0x428c2a
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x428cfe
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00426af0
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x428cee
cmp ebx, dword [ebp - 0xc]
jb 0x428cc6
cmp dword [ebp - 0xc], 0
je 0x428c83
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x428c78
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x428c7f
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x428c8e
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x428c8e
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x428d2a
push eax
push dword [ebp - 8]
push esi
call fcn.0042882d
pop ecx
push eax
call fcn.00434b6a
add esp, 0xc
test eax, eax
je 0x428d69
cmp eax, 0xffffffff
je 0x428d57
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x428cee
push esi
call fcn.00434489
cmp eax, 0xffffffff
pop ecx
je 0x428d5b
cmp dword [ebp - 4], 0
je 0x428d2a
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x428c0d
mov eax, dword [ebp + 0x14]
jmp 0x428ba8
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x428d15
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00425f70
add esp, 0xc
call fcn.00428895
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x428b9e
cmp dword [ebp + 0xc], 0xffffffff
je 0x428d40
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00425f70
add esp, 0xc
call fcn.00428895
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x428b9e
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x428ba8
or dword [esi + 0xc], 0x10
jmp 0x428d5b
Function at 0x42b98c
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x457050]
je 0x42b9a7
inc edi
cmp edi, 0x17
jb 0x42b998
cmp edi, 0x17
jae 0x42bb27
push ebp
push 3
call fcn.004371f0
cmp eax, 1
pop ecx
je 0x42baf3
push 3
call fcn.004371f0
test eax, eax
pop ecx
jne 0x42b9db
cmp dword [0x456ea0], 1
je 0x42baf3
cmp ebx, 0xfc
je 0x42bb26
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x45a510
push ebp
call fcn.0043718b
add esp, 0xc
test eax, eax
je 0x42ba11
push esi
push esi
push esi
push esi
push esi
call fcn.0042dd04
add esp, 0x14
push 0x104
mov esi, 0x45a529
push esi
push 0
mov byte [0x45a62d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42ba55
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043718b
add esp, 0xc
test eax, eax
je 0x42ba55
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042dd04
add esp, 0x14
push esi
call fcn.00437100
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42ba9a
push esi
call fcn.00437100
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x45a824
push 0x44d19c
sub ecx, eax
push ecx
push eax
call fcn.0043704a
add esp, 0x14
test eax, eax
je 0x42ba9a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042dd04
add esp, 0x14
jmp 0x42ba9c
xor esi, esi
push 0x44d198
push ebx
push ebp
call fcn.00436fd9
add esp, 0xc
test eax, eax
je 0x42babc
push esi
push esi
push esi
push esi
push esi
call fcn.0042dd04
add esp, 0x14
push dword [edi*8 + 0x457054]
push ebx
push ebp
call fcn.00436fd9
add esp, 0xc
test eax, eax
je 0x42bade
push esi
push esi
push esi
push esi
push esi
call fcn.0042dd04
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00436e1c
add esp, 0xc
jmp 0x42bb26
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42bb26
cmp ebp, 0xffffffff
je 0x42bb26
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x457054]
push dword [esi]
call fcn.00437100
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x436e1c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042c53c
xor ebx, ebx
cmp dword [0x45b018], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x436ef2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x436fd2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x436fd2
push eax
call fcn.0042c4ce
mov dword [esp], 0x44d548
push edi
mov dword [0x45b018], eax
call esi
push eax
call fcn.0042c4ce
mov dword [esp], 0x44d534
push edi
mov dword [0x45b01c], eax
call esi
push eax
call fcn.0042c4ce
mov dword [0x45b020], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00426f7b
test eax, eax
pop ecx
pop ecx
je 0x436ec0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042dd04
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x436ef2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042c4ce
cmp eax, ebx
pop ecx
mov dword [0x45b028], eax
je 0x436ef2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042c4ce
pop ecx
mov dword [0x45b024], eax
mov eax, dword [0x45b024]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x436f77
cmp dword [0x45b028], ecx
je 0x436f77
push eax
call fcn.0042c545
push dword [0x45b028]
mov esi, eax
call fcn.0042c545
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x436f77
cmp edi, ebx
je 0x436f77
call esi
cmp eax, ebx
je 0x436f44
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436f44
test byte [ebp - 0x18], 1
jne 0x436f77
lea eax, [ebp - 0x10]
push eax
call fcn.00426fb2
test eax, eax
pop ecx
je 0x436f5f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042dd04
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x436f6e
or dword [ebp + 0x10], 0x200000
jmp 0x436fb2
or dword [ebp + 0x10], 0x40000
jmp 0x436fb2
mov eax, dword [0x45b01c]
cmp eax, dword [ebp - 8]
je 0x436fb2
push eax
call fcn.0042c545
cmp eax, ebx
pop ecx
je 0x436fb2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x436fb2
mov eax, dword [0x45b020]
cmp eax, dword [ebp - 8]
je 0x436fb2
push eax
call fcn.0042c545
cmp eax, ebx
pop ecx
je 0x436fb2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45b018]
call fcn.0042c545
cmp eax, ebx
pop ecx
je 0x436fd2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436fd4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43e0be
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x456ea4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0043e053
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00425f70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x43e10d
cmp dword [ebp - 0x1c], 5
jb 0x43e125
jmp 0x43e121
cmp dword [ebp - 0x10], 1
jne 0x43e125
cmp dword [ebp - 0x1c], 4
ja 0x43e121
jne 0x43e125
cmp dword [ebp - 0x18], 0
jbe 0x43e125
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x44e5e0
call fcn.0043df27
test eax, eax
jge 0x43e146
mov byte [0x4585b0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00425f3c
add ebp, 0x78
leave
ret