joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420c97
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x597950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0041a966
pop ecx
cmp eax, esi
je 0x420d81
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x420d81
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00513270
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x420d81
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x420d81
cmp esi, 0x14
jge 0x420d81
push 0x10
push 0
push edi
call fcn.005151d2
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x420d70
call fcn.00513220
cmp dword [eax], 0x22
je 0x420d70
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.00512c89
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x420d46
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x59ae34], 0
jne 0x420e0c
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x420e35
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00420671
pop ecx
pop ecx
test eax, eax
jne 0x420e37
inc edi
cmp edi, esi
jl 0x420e12
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00510a46
leave
ret 8

Function at 0x4250a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00425a2a
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4250da
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00424cde
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x425138
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x42515c
cmp dword [edi + 0x74], 0
jne 0x42515c
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00425a2a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004250f9
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x428358
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00427ffc
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4283a2
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041d655
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041b8ef
jmp 0x4283ad
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0042b4d1
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4283b3
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.004299f0
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4283f0
call fcn.00427ffc
mov dword [esi + 0xc], 1
jmp 0x4283f5
call fcn.00427ffc
cmp dword [esi], 0
je 0x42843e
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jle 0x428416
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041d655
jmp 0x428428
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00410a80
push pe_nt_image_headers32
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041b8ef
jmp 0x428462
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x428462
push dword [esi]
push dword [ebp + 8]
call fcn.0042b4d1
pop esi
pop ebp
ret 0xc
Function at 0x429d26
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5382b2
call fcn.00513088
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x429d4b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x429d9d
call fcn.0041fe1b
push eax
lea ecx, [ebp - 0x10]
call fcn.004108d0
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00512bbc
push eax
call fcn.00401000
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004012a0
mov eax, esi
call fcn.00513160
ret 8

Function at 0x42d72a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x597950]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x42d75f
xor eax, eax
jmp 0x42d7b2
lea eax, [ebp - 0x210]
push eax
call fcn.00512c89
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x42d790
push 0x569200
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005151ec
add esp, 0xc
test eax, eax
jne 0x42d75b
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005151ec
add esp, 0xc
test eax, eax
jne 0x42d75b
lea eax, [ebp - 0x210]
push eax
call fcn.0041a966
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00510a46
leave
ret

Function at 0x458adb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x458af5
call fcn.00425a2a
mov esi, dword [eax + 0xc]
push dword [0x59c458]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x458b13
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x458b0b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x458b40
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x458b0d
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00458a09
mov esi, eax
jmp 0x458b32

Function at 0x48c5b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0041da74
call fcn.0041a9ec
cmp eax, esi
pop esi
jne 0x48c5cd
mov ecx, 0x59b418
jmp fcn.0042e344
ret
Function at 0x4f489c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4f48b4
mov edi, dword [esi + 0xc]
jmp 0x4f48f4
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4f48cd
call fcn.004287b2
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f48e2
call fcn.004287b2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4f48f4
call fcn.004287b2
call fcn.00425a2a
cmp dword [eax + 0x3c], 0
je 0x4f4909
push edi
mov ecx, ebx
call fcn.004f3758
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f47b6
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4f4927
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4f4933
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x510a46
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x597950]
jne 0x510a50
repz ret
jmp fcn.00519523
Function at 0x525148
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x597950]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00518f4b
and dword [ebp - 0x14], 0
cmp dword [0x59f88c], 0
mov dword [ebp - 0x18], eax
jne 0x5251fb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5252a3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x566ea8
push ebx
call edi
test eax, eax
je 0x5252a3
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x566e98
push ebx
mov dword [0x59f88c], eax
call edi
push eax
call esi
push 0x566e84
push ebx
mov dword [0x59f890], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x59f894], eax
call edi
push eax
call esi
mov dword [0x59f89c], eax
test eax, eax
je 0x5251fb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x59f898], eax
mov eax, dword [0x59f898]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x525254
cmp dword [0x59f89c], ecx
je 0x525254
push eax
call esi
push dword [0x59f89c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x525254
test ebx, ebx
je 0x525254
call edi
test eax, eax
je 0x52524b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x52524b
test byte [ebp - 8], 1
jne 0x525254
or dword [ebp + 0x10], 0x200000
jmp 0x525287
mov eax, dword [0x59f890]
cmp eax, dword [ebp - 0x18]
je 0x525287
push eax
call esi
test eax, eax
je 0x525287
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x525287
mov eax, dword [0x59f894]
cmp eax, dword [ebp - 0x18]
je 0x525287
push eax
call esi
test eax, eax
je 0x525287
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x59f88c]
call esi
test eax, eax
je 0x5252a3
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5252a5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00510a46
leave
ret
Function at 0x406627
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40664b
xor eax, eax
test eax, eax
je 0x40665d
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40665d
xor ecx, ecx
jmp 0x406660
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40674c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42ca1c], 0
push esi
jne 0x406783
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40675d
mov dword [ecx*4 + 0x42ca18], eax
inc ecx
cmp ecx, 0x100
jl 0x406758
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067b4
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42ca18]
xor eax, esi
inc ecx
dec edx
jne 0x406796
pop edi
not eax
pop esi
ret 0xc

Function at 0x414de4
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
xor dword [edi], ecx
add edi, 4
sub ebx, 1
and esi, esi
cmp edi, edx
jne fcn.00414de4
ret
Function at 0x4010df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401135
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401135
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401127
cmp esi, ecx
jae 0x401135
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401115
cmp esi, ecx
jae 0x401135
cmp word [esi], 0
je 0x401135
mov eax, esi
jmp 0x401137
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4016cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, word [0x422428]
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov ecx, edx
shr edx, 4
and ecx, 0xf
inc edx
push eax
movzx eax, dx
push eax
push 6
push edi
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x40172b
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40172b
mov ecx, dword [ebp - 4]
movzx eax, word [esi]
add esi, 2
test ax, ax
je 0x401725
mov dword [ebp - 4], eax
cmp edi, ecx
je 0x40173f
lea esi, [esi + eax*2]
inc edi
cmp edi, 0x10
jl 0x401710
call fcn.00401200
push eax
mov ecx, ebx
call fcn.0040305b
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
call fcn.00401200
push eax
push dword [ebp - 4]
mov ecx, ebx
push esi
call fcn.00402ffa
jmp 0x401738

Function at 0x4018b7
Capabilities:
Delete directory
Delete file

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 0x8004ffff
lea ebx, [esi + 0x10]
je 0x401900
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x4018e5
push edi
mov ecx, ebx
call fcn.004027fe
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc edi
cmp edi, dword [esi + 0x14]
jne 0x4018cf
mov ecx, ebx
call fcn.00402823
lea edi, [esi + 0x1c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, edi
call fcn.00402c54
jmp 0x401903
lea edi, [esi + 0x1c]
lea ecx, [esi + 0x20]
call fcn.00402fdf
mov ecx, edi
call fcn.00402fdf
mov ecx, ebx
call fcn.00402823
lea ecx, [esi + 8]
call fcn.00402fdf
pop edi
lea ecx, [esi + 4]
pop esi
pop ebx
jmp fcn.00402fdf
Function at 0x401e15
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
mov dword [ebp - 4], ecx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401e43
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401e43
xor al, al
jmp 0x401ebe
call fcn.00401200
push eax
lea ecx, [ebp + 8]
call fcn.0040305b
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.00402c18
push eax
push ebx
push 0x41ee58
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.00402bf2
test edi, edi
je 0x401eb4
cmp edi, 0x6f
je 0x401eb4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x401eb4
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.00402b1c
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00402fdf
mov al, bl
pop edi
pop ebx
leave
ret 4

Function at 0x401ec4
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401ede
xor al, al
jmp 0x401f97
push ebx
push esi
call fcn.00401200
push eax
lea ecx, [ebp - 8]
call fcn.0040305b
or dword [ebp - 0xc], 0xffffffff
lea eax, [ebp - 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.00402c18
push eax
xor ebx, ebx
mov dword [ebp - 0x10], eax
push ebx
push ebx
push 0x8026
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x14]
mov esi, eax
call fcn.00402bf2
test esi, esi
js 0x401f8b
push dword [ebp - 8]
lea ecx, [ebp - 4]
call fcn.00402baf
push str.CocCoc
lea ecx, [ebp - 4]
call fcn.00402a5b
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401f59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401f83
push str.Temp
lea ecx, [ebp - 4]
call fcn.00402a5b
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401e15
test al, al
je 0x401f83
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.00402b1c
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00402fdf
lea ecx, [ebp - 8]
call fcn.00402fdf
pop esi
mov al, bl
pop ebx
pop edi
leave
ret
Function at 0x402017
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.004061f0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41ee6c
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x402114
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402baf
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.0040285c
lea ecx, [ebp - 0x214]
call fcn.00402fdf
push 0x41ed24
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402114
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x402114
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x402114
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402114
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.004023a6
pop ecx
test eax, eax
jne 0x40210a
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x402114
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405e9e
leave
ret

Function at 0x403402
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.0040349a
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x403492
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x40348b
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x403482
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x403482
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x403494
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040349a
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x403625
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x10]
push edi
cmp esi, 0x40
jb 0x403683
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x403683
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp esi, eax
jb 0x403683
cmp dword [edx + ecx], 0x4550
jne 0x403683
movzx eax, word [edx + ecx + 4]
mov edi, 0x14c
cmp ax, di
je 0x40366e
mov edi, 0x8664
cmp ax, di
je 0x403683
lea eax, [ecx + 0x98]
add eax, edx
mov ecx, dword [eax]
test ecx, ecx
je 0x403683
add ecx, 0xc
cmp esi, ecx
jae 0x403685
xor eax, eax
pop edi
pop esi
pop ebp
ret 4