joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4215c0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x3ef
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x20
push 0x20
push 0x1036
mov ecx, eax
push ecx
mov dword [esi + 0x20], eax
call edi
mov edx, dword [esi + 0x20]
xor eax, eax
push str.File_Name
push eax
push 0x1057
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], 0xf
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], str.File_Name
call edi
mov ecx, dword [esi + 0x20]
add eax, 0xf
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push 0
push 0x1061
push ecx
mov dword [esp + 0x2c], 0
call edi
mov edx, dword [esi + 0x20]
push 0xc8
push 0
push 0x101e
push edx
call edi
xor eax, eax
push str.Process_ID
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x20]
push 0x1057
push eax
mov dword [esp + 0x18], 0xd
mov dword [esp + 0x1c], 1
mov dword [esp + 0x24], str.Process_ID
call edi
mov edx, dword [esi + 0x20]
lea ecx, [esp + 8]
push ecx
push 1
push 0x1061
add eax, 0xf
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], 1
call edi
mov eax, dword [esi + 0x20]
push 0x64
push 1
push 0x101e
push eax
call edi
pop edi
pop esi
add esp, 0x20
ret
Function at 0x4225f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44c778
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x463fcc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0xc], vtable.CReportWayDlg.0
push esi
mov dword [esp + 0x3c], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
lea ecx, [esp + 0x14]
call fcn.00422560
mov eax, dword [esp + 0x20]
cmp eax, esi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x38], 0xffffffff
je 0x42265e
push eax
call fcn.0042e0e5
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x30
ret

Function at 0x422e50
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x44c8c9
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x463fcc]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0x18], edi
mov eax, dword [0x465aac]
mov edx, dword [eax + 0xc]
mov ecx, 0x465aac
mov dword [esp + 0x24], edi
call edx
mov ebx, dword [esp + 0x2c]
add eax, 0x10
mov dword [ebx], eax
mov esi, dword [esp + 0x30]
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
cmp ecx, edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x18], 1
jle 0x422f6a
test edi, edi
jl 0x422f80
cmp edi, ecx
jg 0x422f80
mov al, byte [eax + edi]
test al, al
js 0x422f40
cmp edi, ecx
jg 0x422f80
movsx eax, al
push eax
push str.:_________
call fcn.00431060
add esp, 8
test eax, eax
jne 0x422f40
mov eax, dword [esi]
cmp edi, dword [eax - 0xc]
jg 0x422f80
mov cl, byte [eax + edi]
mov eax, dword [ebx]
mov ebp, dword [eax - 0xc]
mov byte [esp + 0x17], cl
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
lea esi, [ebp + 1]
sub eax, esi
or eax, ecx
jge 0x422f1d
push esi
mov ecx, ebx
call fcn.00408f10
test esi, esi
mov eax, dword [ebx]
mov dl, byte [esp + 0x17]
mov byte [eax + ebp], dl
jl 0x422f80
mov eax, dword [ebx]
cmp esi, dword [eax - 8]
jg 0x422f80
mov dword [eax - 0xc], esi
mov eax, dword [ebx]
mov byte [esi + eax], 0
mov esi, dword [esp + 0x30]
jmp 0x422f5a
mov eax, dword [esi]
cmp edi, dword [eax - 0xc]
jg 0x422f80
movzx ecx, byte [eax + edi]
push ecx
push str.___02x
push ebx
call fcn.00422c00
add esp, 0xc
mov eax, dword [esi]
mov ecx, dword [eax - 0xc]
add edi, 1
cmp edi, ecx
jl 0x422eb6
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.004011d0
int3
Function at 0x423a30
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, esi
mov dword [esp + 4], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423a40
push 0
sub eax, edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 8]
push ecx
sar eax, 1
push eax
push esi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423a85
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x423a70
sub eax, edx
sar eax, 1
cmp dword [esp + 4], eax
je 0x423a99
push 0x45fe20
lea eax, [esp + 7]
push eax
mov byte [esp + 0xb], 0
call fcn.0042e585
add esp, 8
ret
Function at 0x423aa0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x90
mov eax, dword [0x463fcc]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x98]
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
push edi
mov esi, 0x453ef8
mov ebx, ecx
mov dword [esp + 0x10], eax
call fcn.00423a30
push edi
mov esi, ebx
call fcn.00423a30
mov eax, ebp
add esp, 8
sub eax, 1
je 0x423b25
sub eax, 2
je 0x423b17
sub eax, 1
je 0x423b09
push ebp
push str._hex__x_:
lea ecx, [esp + 0x20]
push 0x40
push ecx
call fcn.0043111e
add esp, 0x10
jmp 0x423b39
push 0x40
push str._dword:
lea edx, [esp + 0x20]
push edx
jmp 0x423b31
push 0x40
push str._hex:
lea eax, [esp + 0x20]
push eax
jmp 0x423b31
push 0x40
push 0x453eb4
lea ecx, [esp + 0x20]
push ecx
call fcn.00430132
add esp, 0xc
push edi
lea esi, [esp + 0x1c]
call fcn.00423a30
add esp, 4
cmp ebp, 1
je 0x423c11
cmp ebp, 2
je 0x423c11
cmp ebp, 4
jne 0x423ba4
mov ebx, dword [esp + 0xa8]
add ebx, 0xffffffff
js 0x423cd6
lea ecx, [ecx]
mov edx, dword [esp + 0xc]
movzx eax, byte [edx + ebx]
push eax
push 0x453ea8
lea ecx, [esp + 0x20]
push 0x80
push ecx
call fcn.0043111e
push edi
lea esi, [esp + 0x2c]
call fcn.00423a30
add esp, 0x14
sub ebx, 1
jns 0x423b70
jmp 0x423cd6
mov ebp, dword [esp + 0xa8]
xor ebx, ebx
test ebp, ebp
jbe 0x423cd6
test ebx, ebx
mov eax, 0x453ea4
ja 0x423bc3
mov eax, 0x44e890
mov edx, dword [esp + 0xc]
movzx ecx, byte [edx + ebx]
push ecx
push eax
push str._s_02x
lea edx, [esp + 0x24]
push 0x80
push edx
call fcn.0043111e
push edi
lea esi, [esp + 0x30]
call fcn.00423a30
add esp, 0x18
test ebx, ebx
jbe 0x423c05
test bl, 0xf
jne 0x423c05
push edi
mov esi, 0x453e8c
call fcn.00423a30
add esp, 4
add ebx, 1
cmp ebx, ebp
jb 0x423bb5
jmp 0x423cd6
mov eax, dword [esp + 0xa8]
add eax, 0xffffffff
xor ebp, ebp
test eax, eax
mov dword [esp + 0x14], eax
jle 0x423cc8
lea esp, [esp]
mov eax, dword [esp + 0xc]
lea ebx, [eax + ebp]
mov al, byte [ebx]
cmp al, 0x5c
je 0x423c41
cmp al, 0x22
jne 0x423c4f
push edi
mov esi, 0x453e88
call fcn.00423a30
add esp, 4
movzx cx, byte [ebx]
push ecx
call fcn.00430ca3
add esp, 4
test eax, eax
je 0x423c96
push 0
lea edx, [esp + 0x14]
push edx
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423c7c
cmp dword [esp + 0x10], 1
je 0x423cbb
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0042ed09
add esp, 0x90
ret
movzx eax, byte [ebx]
push eax
push str._02x
lea ecx, [esp + 0x20]
push 0x80
push ecx
call fcn.0043111e
push edi
lea esi, [esp + 0x2c]
call fcn.00423a30
add esp, 0x14
add ebp, 1
cmp ebp, dword [esp + 0x14]
jl 0x423c30
push edi
mov esi, 0x453ef8
call fcn.00423a30
add esp, 4
push edi
mov esi, 0x453e8c
call fcn.00423a30
mov ecx, dword [esp + 0x9c]
add esp, 4
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042ed09
add esp, 0x90
ret
Function at 0x423f70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44c9b0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x463fcc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 8]
test esi, esi
je 0x4240c7
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4240c7
cmp word [eax], 0
je 0x4240c7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4240c7
cmp word [eax], 0
je 0x4240c7
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4240b3
cmp esi, 0x80000000
mov edi, str.UNKNOWN
jne 0x42400b
mov edi, str.HKEY_CLASSES_ROOT
jmp 0x424063
cmp esi, 0x80000001
jne 0x42401a
mov edi, str.HKEY_CURRENT_USER
jmp 0x424063
cmp esi, reloc.OLEAUT32.dll_SysReAllocString
jne 0x424029
mov edi, str.HKEY_LOCAL_MACHINE
jmp 0x424063
cmp esi, 0x80000005
jne 0x424038
mov edi, str.HKEY_CURRENT_CONFIG
jmp 0x424063
cmp esi, 0x80000003
jne 0x424047
mov edi, str.HKEY_USERS
jmp 0x424063
cmp esi, 0x80000004
jne 0x424056
mov edi, str.HKEY_PERFORMANCE_DATA
jmp 0x424063
cmp esi, reloc.OLEAUT32.dll_SysStringLen
jne 0x424063
mov edi, str.HKEY_DYN_DATA
push eax
mov esi, 0x453f0c
call fcn.00423a30
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
push edi
mov dword [ebp - 4], 0
call fcn.00423d00
add esp, 0x14
mov bl, al
jmp 0x42409b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x4240b3
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x425a70
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x425a7b
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x425b77
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x425aa0
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4540d8]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4540d8]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x4540d8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4540d8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4540d8]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4540d8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4540d8]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4540d8]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x425aa0
pop ebp
test edi, edi
je 0x425b9c
jmp 0x425b80
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4540d8]
add ecx, 1
sub edi, 1
jne 0x425b80
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x4260c0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x426103
mov eax, dword [esi + 0x1c]
push edi
mov edi, dword [esp + 0x10]
lea edx, [eax + edi]
cmp edx, dword [esi + 0x20]
jb 0x4260e8
pop edi
mov dword [esi + 0xc], 0x30000
xor eax, eax
pop esi
ret 8
mov edx, dword [esp + 0xc]
push edi
push edx
add eax, ecx
push eax
call fcn.00430510
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
pop edi
pop esi
ret 8
mov eax, dword [esi]
test eax, eax
je 0x426129
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0xc]
pop esi
ret 8
mov dword [esi + 0xc], 0x1000000
xor eax, eax
pop esi
ret 8

Function at 0x426430
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x64]
test ecx, ecx
push edi
je 0x426483
mov eax, dword [esi + 0x6c]
mov edi, dword [esi + 0x68]
cmp eax, edi
jae 0x4264cd
mov edx, dword [esp + 0x14]
sub edi, eax
cmp edi, edx
jbe 0x426456
mov edi, edx
mov ebx, dword [esp + 0x10]
push edi
add eax, ecx
push eax
push ebx
call fcn.00430510
mov eax, dword [esi + 0x58]
add dword [esi + 0x6c], edi
add dword [esi + 0x54], edi
push edi
push ebx
push eax
call fcn.00425a70
add esp, 0x18
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x4264c6
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
push 0
lea ecx, [esp + 0x18]
push ecx
push edx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4264cd
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x58]
add dword [esi + 0x54], edi
push edi
push ebx
push eax
call fcn.00425a70
add esp, 0xc
mov dword [esi + 0x58], eax
mov eax, edi
pop edi
pop esi
pop ebx
ret 8
mov dword [esi + 0xc], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
ret 8
Function at 0x4276e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ebx, ebx
push edi
xor edi, edi
cmp dword [esi + 0x6af90], ebx
mov dword [esi + 0x6af80], 2
lea ebp, [ebx + 1]
je 0x4278f3
cmp dword [esi + 0x6af90], 3
jb 0x427759
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov ebx, dword [esi + eax*4 + 0x4af70]
and ecx, 0x7fff
mov dword [esi + ecx*4 + 0x2af70], ebx
mov eax, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
test ebx, ebx
je 0x427799
mov edx, dword [esi + 0x6af84]
sub edx, ebx
cmp edx, 0x7efa
ja 0x427799
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x427781
mov dword [esi + 0x6afa0], eax
push ebx
push esi
call fcn.00424e30
mov edi, eax
mov eax, dword [esi + 0x6af90]
add esp, 8
cmp edi, eax
jbe 0x427799
mov edi, eax
cmp edi, 3
jb 0x427870
mov ecx, dword [esi + 0x6af84]
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
push eax
push ecx
push esi
call fcn.004248a0
sub dword [esi + 0x6af90], edi
mov ecx, dword [esi + 0x6af90]
add esp, 0xc
cmp edi, dword [esi + 0x6af98]
ja 0x427838
cmp ecx, 3
jb 0x427838
sub edi, ebp
jmp 0x4277e0
add dword [esi + 0x6af84], ebp
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov ebx, dword [esi + 0x6af7c]
shl ebx, 5
xor ecx, ebx
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
and edx, 0x7fff
sub edi, ebp
mov dword [esi + edx*4 + 0x2af70], ebx
mov edx, dword [esi + 0x6af7c]
mov ecx, dword [esi + 0x6af84]
mov dword [esi + edx*4 + 0x4af70], ecx
jne 0x4277e0
jmp 0x427891
add dword [esi + 0x6af84], edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
add edx, esi
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + 0x1af71]
shl ecx, 5
xor edx, ecx
xor edi, edi
and edx, 0x7fff
mov dword [esi + 0x6af7c], edx
jmp 0x427897
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
push ecx
push 0
push esi
call fcn.004248a0
add esp, 0xc
add dword [esi + 0x6af90], 0xffffffff
add dword [esi + 0x6af84], ebp
test eax, eax
je 0x4278d1
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x4278ae
lea ecx, [eax + esi + 0x1af70]
jmp 0x4278b0
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push 0
sub edx, eax
push edx
push ecx
push esi
call fcn.00427520
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x4278e6
push esi
call fcn.00425000
add esp, 4
cmp dword [esi + 0x6af90], 0
jne 0x427705
mov eax, dword [esi + 0x6af74]
test eax, eax
jl 0x427906
lea ecx, [eax + esi + 0x1af70]
jmp 0x427908
xor ecx, ecx
mov edx, dword [esi + 0x6af84]
push ebp
sub edx, eax
push edx
push ecx
push esi
call fcn.00427520
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x42ded1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x463fcc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0042de10
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.0042f5a0
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 0x42df20
cmp dword [ebp - 0x1c], 5
jb 0x42df38
jmp 0x42df34
cmp dword [ebp - 0x10], 1
jne 0x42df38
cmp dword [ebp - 0x1c], 4
ja 0x42df34
jne 0x42df38
cmp dword [ebp - 0x18], 0
jbe 0x42df38
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x454b7c
call fcn.00401910
test eax, eax
jge 0x42df59
mov byte [0x465708], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042ed09
add ebp, 0x78
leave
ret

Function at 0x42e192
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x465b58], 0
push esi
jne 0x42e105
call fcn.0042e030
test eax, eax
je 0x42e148
mov eax, dword [0x465b58]
cmp eax, 1
jne 0x42e126
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x42e148
pop esi
ret
push eax
call dword [0x465b60]
test eax, eax
jne 0x42e190
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x42e14c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x465b58]
call dword [0x465b60]
mov edi, eax
test edi, edi
je 0x42e173
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x42e18f
lea edi, [esi + 0xff0]
push esi
push dword [0x465b58]
call dword [0x465b5c]
add esi, 0x10
cmp esi, edi
jb 0x42e179
mov eax, esi
pop edi
pop esi
ret
jmp 0x42e0f2

Function at 0x42ed09
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x463fcc]
jne 0x42ed13
repz ret
jmp fcn.004340dc
Function at 0x43235d
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 + 0x464048]
je 0x432378
inc edi
cmp edi, 0x17
jb 0x432369
cmp edi, 0x17
jae 0x4324f8
push ebp
push 3
call fcn.0043da8a
cmp eax, 1
pop ecx
je 0x4324c4
push 3
call fcn.0043da8a
test eax, eax
pop ecx
jne 0x4323ac
cmp dword [0x46403c], 1
je 0x4324c4
cmp ebx, 0xfc
je 0x4324f7
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x465be8
push ebp
call fcn.004351a9
add esp, 0xc
test eax, eax
je 0x4323e2
push esi
push esi
push esi
push esi
push esi
call fcn.0042f7b2
add esp, 0x14
push 0x104
mov esi, 0x465c01
push esi
push 0
mov byte [0x465d05], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x432426
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004351a9
add esp, 0xc
test eax, eax
je 0x432426
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0042f7b2
add esp, 0x14
push esi
call fcn.00435210
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43246b
push esi
call fcn.00435210
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x465efc
push 0x45523c
sub ecx, eax
push ecx
push eax
call fcn.0043d9d7
add esp, 0x14
test eax, eax
je 0x43246b
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0042f7b2
add esp, 0x14
jmp 0x43246d
xor esi, esi
push 0x455238
push ebx
push ebp
call fcn.0043d966
add esp, 0xc
test eax, eax
je 0x43248d
push esi
push esi
push esi
push esi
push esi
call fcn.0042f7b2
add esp, 0x14
push dword [edi*8 + 0x46404c]
push ebx
push ebp
call fcn.0043d966
add esp, 0xc
test eax, eax
je 0x4324af
push esi
push esi
push esi
push esi
push esi
call fcn.0042f7b2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0043d7a9
add esp, 0xc
jmp 0x4324f7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4324f7
cmp ebp, 0xffffffff
je 0x4324f7
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46404c]
push dword [esi]
call fcn.00435210
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 0x43d7a9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00431e7b
xor ebx, ebx
cmp dword [0x466708], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43d87f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43d95f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43d95f
push eax
call fcn.00431e0d
mov dword [esp], 0x458f28
push edi
mov dword [0x466708], eax
call esi
push eax
call fcn.00431e0d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46670c], eax
call esi
push eax
call fcn.00431e0d
mov dword [0x466710], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042e312
test eax, eax
pop ecx
pop ecx
je 0x43d84d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f7b2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43d87f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00431e0d
cmp eax, ebx
pop ecx
mov dword [0x466718], eax
je 0x43d87f
push 0x458ee0
push edi
call esi
push eax
call fcn.00431e0d
pop ecx
mov dword [0x466714], eax
mov eax, dword [0x466714]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43d904
cmp dword [0x466718], ecx
je 0x43d904
push eax
call fcn.00431e84
push dword [0x466718]
mov esi, eax
call fcn.00431e84
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43d904
cmp edi, ebx
je 0x43d904
call esi
cmp eax, ebx
je 0x43d8d1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43d8d1
test byte [ebp - 0x18], 1
jne 0x43d904
lea eax, [ebp - 0x10]
push eax
call fcn.0042e349
test eax, eax
pop ecx
je 0x43d8ec
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042f7b2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43d8fb
or dword [ebp + 0x10], 0x200000
jmp 0x43d93f
or dword [ebp + 0x10], 0x40000
jmp 0x43d93f
mov eax, dword [0x46670c]
cmp eax, dword [ebp - 8]
je 0x43d93f
push eax
call fcn.00431e84
cmp eax, ebx
pop ecx
je 0x43d93f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43d93f
mov eax, dword [0x466710]
cmp eax, dword [ebp - 8]
je 0x43d93f
push eax
call fcn.00431e84
cmp eax, ebx
pop ecx
je 0x43d93f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x466708]
call fcn.00431e84
cmp eax, ebx
pop ecx
je 0x43d95f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43d961
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret