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

Disassembly:
jmp 0x401fb0
sub esp, 0x318
mov eax, dword [0x47ffa0]
xor eax, esp
mov dword [esp + 0x314], eax
mov eax, dword [esp + 0x320]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push ebp
push esi
push edi
mov edi, dword [esp + 0x32c]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x128]
push edx
mov dword [esp + 0x24], eax
lea eax, [esp + 0x20]
push eax
xor esi, esi
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push esi
mov ebp, 0x104
push edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
call ebx
cmp eax, 0x103
je 0x402073
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x128]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push 0
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40207a
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x128]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
add esi, 1
push esi
push edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], ebp
call ebx
cmp eax, 0x103
jne 0x402017
mov eax, 1
jmp 0x40207c
xor eax, eax
mov ecx, dword [esp + 0x324]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00426bcd
add esp, 0x318
ret
Function at 0x402c50
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x402c50
push 0xffffffffffffffff
push 0x464d10
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x47ffa0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
push edi
mov eax, dword [0x47ffa0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [esp + 0x40]
lea edx, [esp + 0xc]
mov dword [esp + 0x38], 1
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402c94
lea eax, [esp + 0xc]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x402ca7
mov ecx, dword [str..exe]
mov dl, byte [0x46d388]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0xc]
push eax
call fcn.0040102d
add esp, 4
test eax, eax
je 0x402cdc
push eax
call fcn.00401118
add esp, 4
mov esi, dword [esp + 0x44]
lea edx, [esp + 0xc]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x402ce8
lea eax, [esp + 0xc]
add eax, 0xffffffff
jmp 0x402d00
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x402d00
mov ecx, dword [str..exe]
mov dl, byte [0x46d388]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0xc]
push eax
call fcn.0040102d
add esp, 4
test eax, eax
je 0x402d35
push eax
call fcn.00401118
add esp, 4
lea eax, [edi - 0x10]
mov byte [esp + 0x38], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d56
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402d7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00426bcd
add esp, 0x30
ret
Function at 0x402df0
Capabilities:
Create process on windows

Disassembly:
jmp 0x402df0
push 0xffffffffffffffff
push 0x464d60
mov eax, dword fs:[0]
push eax
sub esp, 0x204
mov eax, dword [0x47ffa0]
xor eax, esp
mov dword [esp + 0x200], eax
push esi
push edi
mov eax, dword [0x47ffa0]
xor eax, esp
push eax
lea eax, [esp + 0x210]
mov dword fs:[0], eax
push 0x100
lea eax, [esp + 0x10]
push eax
push 0
mov dword [esp + 0x224], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xc]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402e50
sub eax, edx
cmp byte [esp + eax + 0xb], 0x5c
lea eax, [esp + eax + 0xb]
je 0x402e6e
sub eax, 1
cmp byte [eax], 0x5c
jne 0x402e66
mov edi, dword [esp + 0x224]
mov esi, dword [esp + 0x220]
mov byte [eax], 0
cmp dword [section..data], 0
jne 0x402e9d
push esi
lea ecx, [esp + 0x10]
push ecx
push str.__s_s.exe_
lea edx, [esp + 0x118]
push edx
jmp 0x402eb0
push edi
lea eax, [esp + 0x10]
push eax
push str.__s_s.exe_
lea ecx, [esp + 0x118]
push ecx
call fcn.00426f85
add esp, 0x10
push 5
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
ja 0x402edb
push 0
push 0
push str.Config_Utility_cannot_be_found
call fcn.0040971b
lea eax, [esi - 0x10]
mov byte [esp + 0x218], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402eff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x218], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402f26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x210]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.00426bcd
add esp, 0x210
ret
Function at 0x418086
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4180bf
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004089cb
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004089a6
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x419fc6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41a009
call fcn.0040af08
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41a009
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41a024
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00419b7d
test ebx, ebx
mov esi, eax
je 0x41a022
test edi, edi
je 0x41a022
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41e0ae
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x47ffa0]
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 - 0x11c]
jne 0x41e0ee
push 0x46f0c8
push 4
push eax
call fcn.0042c7a0
push eax
call fcn.00401244
add esp, 0x10
jmp 0x41e100
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x41e16e
push edi
call fcn.004290b1
mov edi, dword [eax]
call fcn.004290b1
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.00427053
add esp, 0x18
mov ebx, eax
call fcn.004290b1
cmp dword [eax], 0
je 0x41e14e
call fcn.004290b1
push dword [eax]
call fcn.004071fc
pop ecx
jmp 0x41e155
call fcn.004290b1
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x41e16e
cmp ebx, esi
jae 0x41e16e
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x41e170
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00426bcd
leave
ret
Function at 0x426bcd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47ffa0]
jne 0x426bd7
repz ret
jmp fcn.0042dc52

Function at 0x435d27
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 + 0x480900]
je 0x435d42
inc edi
cmp edi, 0x17
jb 0x435d33
cmp edi, 0x17
jae 0x435ec2
push ebp
push 3
call fcn.00445d66
cmp eax, 1
pop ecx
je 0x435e8e
push 3
call fcn.00445d66
test eax, eax
pop ecx
jne 0x435d76
cmp dword [0x47ffd0], 1
je 0x435e8e
cmp ebx, 0xfc
je 0x435ec1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4840e8
push ebp
call fcn.0042c7a0
add esp, 0xc
test eax, eax
je 0x435dac
push esi
push esi
push esi
push esi
push esi
call fcn.00430142
add esp, 0x14
push 0x104
mov esi, 0x484101
push esi
push 0
mov byte [0x484205], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x435df0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0042c7a0
add esp, 0xc
test eax, eax
je 0x435df0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00430142
add esp, 0x14
push esi
call fcn.00428c90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x435e35
push esi
call fcn.00428c90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4843fc
push 0x4705dc
sub ecx, eax
push ecx
push eax
call fcn.0042ca5f
add esp, 0x14
test eax, eax
je 0x435e35
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00430142
add esp, 0x14
jmp 0x435e37
xor esi, esi
push 0x4705d8
push ebx
push ebp
call fcn.0042d091
add esp, 0xc
test eax, eax
je 0x435e57
push esi
push esi
push esi
push esi
push esi
call fcn.00430142
add esp, 0x14
push dword [edi*8 + 0x480904]
push ebx
push ebp
call fcn.0042d091
add esp, 0xc
test eax, eax
je 0x435e79
push esi
push esi
push esi
push esi
push esi
call fcn.00430142
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00445ba9
add esp, 0xc
jmp 0x435ec1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x435ec1
cmp ebp, 0xffffffff
je 0x435ec1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x480904]
push dword [esi]
call fcn.00428c90
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 0x445ba9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0042f794
xor ebx, ebx
cmp dword [0x484644], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x445c7f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x445d5f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x445d5f
push eax
call fcn.0042f726
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x484644], eax
call esi
push eax
call fcn.0042f726
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x484648], eax
call esi
push eax
call fcn.0042f726
mov dword [0x48464c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0042cc14
test eax, eax
pop ecx
pop ecx
je 0x445c4d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430142
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x445c7f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0042f726
cmp eax, ebx
pop ecx
mov dword [0x484654], eax
je 0x445c7f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042f726
pop ecx
mov dword [0x484650], eax
mov eax, dword [0x484650]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x445d04
cmp dword [0x484654], ecx
je 0x445d04
push eax
call fcn.0042f79d
push dword [0x484654]
mov esi, eax
call fcn.0042f79d
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x445d04
cmp edi, ebx
je 0x445d04
call esi
cmp eax, ebx
je 0x445cd1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x445cd1
test byte [ebp - 0x18], 1
jne 0x445d04
lea eax, [ebp - 0x10]
push eax
call fcn.0042ccc3
test eax, eax
pop ecx
je 0x445cec
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00430142
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x445cfb
or dword [ebp + 0x10], 0x200000
jmp 0x445d3f
or dword [ebp + 0x10], 0x40000
jmp 0x445d3f
mov eax, dword [0x484648]
cmp eax, dword [ebp - 8]
je 0x445d3f
push eax
call fcn.0042f79d
cmp eax, ebx
pop ecx
je 0x445d3f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x445d3f
mov eax, dword [0x48464c]
cmp eax, dword [ebp - 8]
je 0x445d3f
push eax
call fcn.0042f79d
cmp eax, ebx
pop ecx
je 0x445d3f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x484644]
call fcn.0042f79d
cmp eax, ebx
pop ecx
je 0x445d5f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x445d61
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450bdd
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x47ffa0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00450a3c
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.00426c10
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 0x450c2c
cmp dword [ebp - 0x1c], 5
jb 0x450c44
jmp 0x450c40
cmp dword [ebp - 0x10], 1
jne 0x450c44
cmp dword [ebp - 0x1c], 4
ja 0x450c40
jne 0x450c44
cmp dword [ebp - 0x18], 0
jbe 0x450c44
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x475340
call fcn.004507f9
test eax, eax
jge 0x450c65
mov byte [0x481dac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00426bcd
add ebp, 0x78
leave
ret
Function at 0x418f10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov eax, edx
and eax, 1
sub eax, 1
not eax
and eax, 0xedb88320
mov ecx, edx
shr ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
sub eax, 1
shr ecx, 1
not eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
shr eax, 1
xor ecx, eax
mov dword [edx*4 + 0x420de0], ecx
add edx, 1
cmp edx, 0x100
jb 0x418f12
cmp edx, 0x800
jae 0x418ffb
mov edi, edi
mov eax, dword [edx*4 + 0x4209e0]
mov ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x420de0]
add edx, 1
cmp edx, 0x800
mov dword [edx*4 + 0x420ddc], eax
jb 0x418fd0
mov dword [0x420dbc], 0x4196b0
call fcn.00419140
test eax, eax
jne 0x419018
mov dword [0x420dbc], 0x4195d0
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x6f7f6d4a
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..pdata_1
nop
mov ebx, 0x42e3d0
mov ecx, 0x55c55628
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.00404610
push 0x44
lea ecx, [ebp - 0x15c]
push 0
push ecx
call fcn.00404610
mov edx, 5
mov word [ebp - 0x12c], dx
lea edx, [ebp - 0x108]
add esp, 0x18
mov dword [ebp - 0x15c], 0x44
mov dword [ebp - 0x130], 1
mov eax, esi
sub edx, esi
lea ecx, [ecx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401070
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea ecx, [ebp - 0x118]
push ecx
lea edx, [ebp - 0x15c]
push edx
lea eax, [ebp - 0x108]
push eax
push 0
push 0x20
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4010c2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401cf5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x118]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x118]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x114]
push eax
call esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00401cf5
mov esp, ebp
pop ebp
ret
Function at 0x401100
Capabilities:
Clear file content
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xa
mov esi, ecx
push 0xca
push esi
mov dword [ebp - 0x110], 0x5a4d
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x401258
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x114], eax
test eax, eax
je 0x401258
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401258
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x401257
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401190
mov ecx, dword [str._display_setup.exe]
mov edx, dword [0x40a154]
mov dword [eax], ecx
mov ecx, dword [0x40a158]
mov dword [eax + 4], edx
mov edx, dword [0x40a15c]
mov dword [eax + 8], ecx
mov cx, word [0x40a160]
mov dword [eax + 0xc], edx
mov dl, byte [0x40a162]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401257
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x10c]
push edx
push 2
lea eax, [ebp - 0x110]
push eax
push esi
mov dword [ebp - 0x10c], 0
call edi
test eax, eax
je 0x401250
mov edx, dword [ebp - 0x114]
push 0
lea ecx, [ebp - 0x10c]
push ecx
add edx, 0xfffffffe
push edx
add ebx, 2
push ebx
push esi
call edi
push esi
test eax, eax
je 0x401251
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401cf5
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Clear file content
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xa
mov esi, ecx
push 0xc9
push esi
mov dword [ebp - 0x110], 0x5a4d
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4013b6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x114], eax
test eax, eax
je 0x4013b6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4013b6
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4013b5
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401300
mov ecx, dword [str._setup.exe]
mov edx, dword [0x40a168]
mov dword [eax], ecx
mov cx, word [0x40a16c]
mov dword [eax + 4], edx
mov dl, byte [0x40a16e]
mov word [eax + 8], cx
mov byte [eax + 0xa], dl
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4013b5
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x10c]
push edx
push 2
lea eax, [ebp - 0x110]
push eax
push esi
mov dword [ebp - 0x10c], 0
call edi
test eax, eax
je 0x4013ae
mov edx, dword [ebp - 0x114]
push 0
lea ecx, [ebp - 0x10c]
push ecx
add edx, 0xfffffffe
push edx
add ebx, 2
push ebx
push esi
call edi
push esi
test eax, eax
je 0x4013af
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401cf5
mov esp, ebp
pop ebp
ret
Function at 0x4013d0
Capabilities:
Clear file content
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x40b004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xa
mov esi, ecx
push 0xcb
push esi
mov dword [ebp - 0x110], 0x5a4d
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x40151f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x114], eax
test eax, eax
je 0x40151f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40151f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40151e
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
dec eax
lea ebx, [ebx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401460
mov ecx, dword [str._cmcc_sign.dll]
mov edx, dword [0x40a174]
mov dword [eax], ecx
mov ecx, dword [0x40a178]
mov dword [eax + 4], edx
mov dx, word [0x40a17c]
mov dword [eax + 8], ecx
mov cl, byte [0x40a17e]
mov word [eax + 0xc], dx
lea edx, [ebp - 0x108]
push edx
mov byte [eax + 0xe], cl
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40151e
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x10c]
push ecx
push 2
lea edx, [ebp - 0x110]
push edx
push esi
mov dword [ebp - 0x10c], 0
call edi
test eax, eax
je 0x401517
mov ecx, dword [ebp - 0x114]
push 0
lea eax, [ebp - 0x10c]
push eax
add ecx, 0xfffffffe
push ecx
add ebx, 2
push ebx
push esi
call edi
push esi
test eax, eax
je 0x401518
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401cf5
mov esp, ebp
pop ebp
ret