joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c16b0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push 0
call sub.ws2_32.dll_select
test eax, eax
setg byte [ebp - 9]
cmp byte [ebp - 9], 0
je 0x4c177c
mov esi, ebx
dec esi
test esi, esi
jl 0x4c177c
inc esi
xor edi, edi
mov edx, dword [ebp - 4]
add edx, edi
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
call fcn.0048f34c
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push ebx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
setne al
test al, al
je 0x4c174e
push 2
push 1
lea eax, [ebp - 0xa]
push eax
push ebx
call sub.ws2_32.dll_recv
dec eax
jne 0x4c173f
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 8]
mov edx, ebx
call fcn.0048f1e0
jmp 0x4c1774
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0xc]
mov edx, ebx
call fcn.0048f1e0
jmp 0x4c1774
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
push ebx
call sub.ws2_32.dll___WSAFDIsSet
test eax, eax
setne al
test al, al
je 0x4c1774
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 0xc]
mov edx, ebx
call fcn.0048f1e0
inc edi
dec esi
jne 0x4c16f4
movzx eax, byte [ebp - 9]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c7a60
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
xor edx, edx
mov dword [ebp - 0x74], edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], edx
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c7d2b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x4c7d48
mov eax, 3
call fcn.004b2ef4
mov dl, 1
mov eax, dword [0x4bfe2c]
call fcn.004c0e64
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4c7c14
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.004c0f4c
mov edx, 0x4c7d74
mov eax, dword [ebp - 0x10]
call fcn.004c0fb0
test al, al
jne 0x4c7bfc
mov ecx, 0x4c7db0
mov edx, 0x4c7d48
mov eax, 3
call fcn.004b2eec
lea eax, [ebp - 0x58]
mov ecx, 0x4c7dd4
mov edx, dword [ebp - 4]
call fcn.0040ad14
mov eax, dword [ebp - 0x58]
mov dl, 1
call fcn.00420bf4
test al, al
jne 0x4c7b83
mov ecx, 0x4c7df4
mov edx, 0x4c7d48
mov eax, 7
call fcn.004b2eec
push 0x4c7e2c
push 0xa
mov ecx, dword [0x4dc63c]
mov dl, 1
mov eax, dword [0x471e64]
call fcn.00493d90
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4c7b7c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x5c]
mov ecx, 0x4c7dd4
mov edx, dword [ebp - 4]
call fcn.0040ad14
mov edx, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x14]
call fcn.00493b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7b83
mov eax, dword [ebp - 0x14]
call fcn.00408404
pop eax
jmp eax
lea eax, [ebp - 0x54]
xor ecx, ecx
mov edx, 0x3c
call fcn.00407d78
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x50], 0x40
lea eax, [ebp - 0x60]
mov ecx, 0x4c7dd4
mov edx, dword [ebp - 4]
call fcn.0040ad14
mov eax, dword [ebp - 0x60]
call fcn.0040aac8
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x54]
push eax
call sub.shell32.dll_ShellExecuteExW
test eax, eax
je 0x4c7be8
push 0x3e8
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 0xc], 0x103
je 0x4c7bc8
mov ecx, 0x4c7db0
mov edx, 0x4c7d48
mov eax, 5
call fcn.004b2eec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c7c1b
mov eax, dword [ebp - 0x10]
call fcn.00408404
pop eax
jmp eax
Function at 0x403430
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov byte [ebp - 0x6c], dl
mov byte [ebp - 0x68], cl
mov dword [ebp - 0x54], 0x772e
mov ax, word [ebp + 0xc]
mov word [ebp - 0x58], ax
movzx ecx, word [ebp - 0x58]
sub ecx, 0xdeb
movzx edx, word [ebp + 0xc]
cmp ecx, edx
jle 0x403479
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x54]
push ecx
call fcn.00402d00
add esp, 0x14
cmp dword [ebp - 0x54], 0x7c59
jle 0x40348f
lea edx, [ebp - 0x48]
push edx
call dword [sym.imp.COMDLG32.dll_PrintDlgA]
mov dword [ebp - 0x64], eax
movzx ecx, word [ebp + 0xc]
and ecx, 0xd0
movzx edx, word [ebp - 0x58]
cmp ecx, edx
jl 0x4034c1
lea eax, [ebp - 0x4c]
push eax
mov ecx, dword [ebp - 0x5c]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x50], eax
mov dl, byte [0x4dd248]
mov byte [ebp - 0x68], dl
mov dword [ebp - 0x50], 0xbcfb
mov ax, word [ebp - 0x58]
mov word [ebp + 0xc], ax
lea ecx, [ebp - 0x54]
push ecx
push 0x8d
push 0x68
mov edx, dword [ebp - 0x4c]
push edx
call sub.VERSION.dll_GetFileVersionInfoA
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x54]
sar eax, 0x17
mov dword [ebp - 0x54], eax
mov eax, 0x14
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d68b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004d57a4
and dword [ebp - 4], 0
cmp dword [0x4e0498], 0
mov ebx, eax
jne 0x4d6964
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4d6a15
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4d6a15
push eax
call fcn.004d5732
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4e0498], eax
call esi
push eax
call fcn.004d5732
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4e049c], eax
call esi
push eax
call fcn.004d5732
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e04a0], eax
call esi
push eax
call fcn.004d5732
pop ecx
mov dword [0x4e04a8], eax
test eax, eax
je 0x4d6964
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004d5732
pop ecx
mov dword [0x4e04a4], eax
mov eax, dword [0x4e04a4]
cmp eax, ebx
je 0x4d69bc
cmp dword [0x4e04a8], ebx
je 0x4d69bc
push eax
call fcn.004d57ad
push dword [0x4e04a8]
mov esi, eax
call fcn.004d57ad
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4d69bc
test edi, edi
je 0x4d69bc
call esi
test eax, eax
je 0x4d69b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4d69b3
test byte [ebp - 0xc], 1
jne 0x4d69bc
or dword [ebp + 0x10], 0x200000
jmp 0x4d69f5
mov eax, dword [0x4e049c]
cmp eax, ebx
je 0x4d69f5
push eax
call fcn.004d57ad
pop ecx
test eax, eax
je 0x4d69f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4d69f5
mov eax, dword [0x4e04a0]
cmp eax, ebx
je 0x4d69f5
push eax
call fcn.004d57ad
pop ecx
test eax, eax
je 0x4d69f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e0498]
call fcn.004d57ad
pop ecx
test eax, eax
je 0x4d6a15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4d6a17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4d871e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4de688]
jne 0x4d8728
repz ret
jmp fcn.004d9e45
Function at 0x413e70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4397e0]
jne 0x413e7a
repz ret
jmp fcn.0041bba0
Function at 0x421f50
Capabilities:
Get common file path
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
cmp dword [0x4e10cc], 0x37
jne 0x421fe0
lea eax, [ebp - 0x40c]
push eax
lea ecx, [ebp - 0x810]
push ecx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push str.Fohiyufopec_linuxejasoga_gevunenen_bugorilehosin
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea edx, [ebp - 0xa30]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.colakafi_jovivekosorodirotufimipa_rimipepimapokofo_nudecudicococawocebamenih_hefihejoho
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
push 0
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0
push str.sebitihibelucacufoperoyipoxipehucilonipuromosuvojarusavarukuvucimaxegotobefucahufehesapolokijikixuzegow
push 0
push str.lituvosefoteheb
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CompareStringW]
mov dword [ebp - 4], 0
mov eax, dword [0x4e17c8]
add dword [ebp - 4], eax
mov eax, 0x12336
add dword [ebp - 4], eax
mov ecx, dword [0x4cd5fc]
add ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
add edx, dword [ebp + 8]
mov al, byte [edx]
mov byte [ecx], al
mov esp, ebp
pop ebp
ret 4
Function at 0x422580
Capabilities:
Delete file
Get disk information
Manipulate console buffer
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1050
call fcn.00416050
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [0x4e10cc], 0x516
jne 0x422629
push 0
push 0
call sub.KERNEL32.dll_Process32NextW
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll__hread]
push 0
push 0
call dword [sym.imp.KERNEL32.dll__lopen]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
shr eax, 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
jmp 0x42264a
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
jae 0x4226b6
cmp dword [0x4e10cc], 0x29
jne 0x422666
push str.mebaricusuhe
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [0x4e10cc], 0x1c
jne 0x4226a1
push 0
lea edx, [ebp - 0x1050]
push edx
push str.gekupamasusa_tozidehiyuyafahepahuxocarebayay
call dword [sym.imp.KERNEL32.dll_GetVolumeNameForVolumeMountPointW]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx*4]
push eax
call fcn.004222b0
jmp 0x422641
mov esp, ebp
pop ebp
ret 0xc
Function at 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x29812c31
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
mov ebx, 0x42f314
nop
nop
mov ecx, 0x12f62bbc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4663ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
sub esp, 0x310
lea ebp, [esp - 4]
mov eax, dword [0x58e700]
xor eax, ebp
mov dword [ebp + 0x310], eax
push 4
mov eax, 0x52f76c
call fcn.00507831
push 0xffffffffffffffff
push str.LANG_EN
lea ecx, [ebp]
call fcn.00496674
xor ebx, ebx
lea ecx, [ebp]
push str.LANG_PT
mov dword [ebp - 4], ebx
call fcn.0049680f
push 4
call fcn.0049edf0
lea eax, [ebp + 0x84]
push eax
call fcn.0049a13e
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.0049a2fd
dec eax
je 0x466595
dec eax
je 0x466558
dec eax
je 0x4664e0
dec eax
jne 0x46660f
push 0x564e44
push 0x85
call fcn.0049a2e8
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x46660f
push esi
call fcn.0049a2e8
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4664d4
push esi
call fcn.0049a2e8
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4664d4
push ebx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.0049edfd
add esp, 0xc
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x564e54
call fcn.00467166
mov ecx, eax
call fcn.004b5811
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x46660f
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.005071f0
sub esp, 0x78
lea eax, [ebp + 0x108]
lea esi, [ebp]
push 0x21
pop ecx
mov edi, esp
push str.skin_s_skin_
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
lea ecx, [ebp + 0x84]
push eax
call fcn.004968cc
lea ecx, [ebp + 0x84]
call fcn.0049686b
push eax
call fcn.0049eda7
mov dword [esp], 0x564dfc
push ecx
mov eax, esp
mov dword [eax], str.IDR_RES
jmp 0x466603
push str.skin_
lea ecx, [ebp + 0x84]
call fcn.004968cc
lea ecx, [ebp + 0x84]
call fcn.0049686b
push eax
call fcn.0049eda7
push ebx
push 1
push str.res.zip
call fcn.0049ee8b
add esp, 0x10
push ebx
push ecx
mov eax, esp
mov dword [eax], 0x564e30
jmp 0x466603
xor eax, eax
push 0x206
mov word [ebp + 0x108], ax
lea eax, [ebp + 0x10a]
push ebx
push eax
call fcn.005071f0
sub esp, 0x78
lea eax, [ebp + 0x108]
lea esi, [ebp]
push 0x21
pop ecx
mov edi, esp
push str...lib_skin_s_skin_
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x8c
lea eax, [ebp + 0x108]
lea ecx, [ebp + 0x84]
push eax
call fcn.004968cc
lea ecx, [ebp + 0x84]
call fcn.0049686b
push eax
call fcn.0049eda7
pop ecx
push ebx
push ecx
mov eax, esp
mov dword [eax], str.res.xml
call fcn.00467166
mov ecx, eax
call fcn.004b5811
lea ecx, [ebp + 0x84]
mov byte [ebp - 4], bl
call fcn.00496777
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp]
call fcn.00496777
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x310]
xor ecx, ebp
call fcn.00502673
lea esp, [ebp + 0x314]
pop ebp
ret
Function at 0x4010af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401109
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4010fb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x4010f7
cmp esi, ecx
jae 0x4010fb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x4010e5
cmp esi, ecx
jb 0x4010ff
xor eax, eax
jmp 0x401108
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4015a7
Capabilities:
Delete directory
Delete file

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0xc], 0x8004ffff
je 0x4015ee
push esi
xor esi, esi
cmp dword [edi + 0x14], esi
je 0x4015d4
push ebx
push esi
lea ecx, [edi + 0x10]
call fcn.00402356
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
inc esi
cmp esi, dword [edi + 0x14]
jne 0x4015bc
pop ebx
lea ecx, [edi + 0x10]
call fcn.00402380
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [edi + 0x1c]
call fcn.004025ea
pop esi
lea ecx, [edi + 0x20]
call fcn.00402919
lea ecx, [edi + 0x1c]
call fcn.00402919
lea ecx, [edi + 0x10]
call fcn.00402380
lea ecx, [edi + 8]
call fcn.00402919
lea ecx, [edi + 4]
pop edi
jmp fcn.00402919
Function at 0x401a6f
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 0x401a9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401a9d
xor al, al
jmp 0x401b18
call fcn.004011d2
push eax
lea ecx, [ebp + 8]
call fcn.00402934
or dword [ebp - 8], 0xffffffff
lea eax, [ebp + 8]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004025b2
push eax
push ebx
push 0x41b8dc
push dword [edi]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x10]
mov edi, eax
call fcn.0040258c
test edi, edi
je 0x401b0e
cmp edi, 0x6f
je 0x401b0e
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 0x401b0e
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
push eax
add ecx, 0x1c
call fcn.004024b6
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00402919
mov al, bl
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x401b20
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401b37
xor al, al
jmp 0x401ba5
push ebx
push esi
call fcn.004011d2
push eax
lea ecx, [ebp - 4]
call fcn.00402934
or dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
push 0x104
mov ecx, eax
mov dword [ebp - 0x10], eax
call fcn.004025b2
push eax
xor ebx, ebx
mov dword [ebp - 0xc], eax
push ebx
push ebx
push 0x26
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x10]
mov esi, eax
call fcn.0040258c
test esi, esi
js 0x401b99
lea eax, [ebp - 4]
mov ecx, edi
push eax
call fcn.00401a6f
test al, al
je 0x401b99
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x20]
call fcn.004024b6
mov bl, 1
lea ecx, [ebp - 4]
call fcn.00402919
pop esi
mov al, bl
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x401c29
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41d018]
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.00405970
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41b8e4
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401d26
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402549
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.004023b6
lea ecx, [ebp - 0x214]
call fcn.00402919
push 0x41b7d4
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401d26
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401d26
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401d26
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 0x401d26
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.00401fe6
pop ecx
test eax, eax
jne 0x401d1c
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401d26
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.00405641
mov esp, ebp
pop ebp
ret
Function at 0x401fe6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x41d018]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, edx
mov dword [ebp - 0x9c], eax
push edi
mov edi, ecx
cmp esi, 0xd
jae 0x402016
or eax, 0xffffffff
jmp 0x4021a3
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x401fca
push eax
xor ebx, ebx
mov dword [ebp - 0x90], 0x401fd8
push ecx
mov edx, edi
mov dword [ebp - 0x68], ebx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x6c], ebx
call fcn.00404900
xor eax, eax
mov dword [ebp - 0x58], ebx
inc eax
mov dword [ebp - 0x34], ebx
add edi, 5
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
sub esi, 0xd
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x50], ebx
mov eax, dword [edi]
push eax
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x80], esi
call fcn.00413035
add esp, 0xc
mov dword [ebp - 0x84], ebx
mov edi, eax
lea eax, [ebp - 0x84]
mov edx, edi
push eax
push ecx
lea eax, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x7c]
add eax, 8
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.004047a1
add esp, 0x14
mov esi, eax
lea eax, [ebp - 0x94]
push dword [ebp - 0x6c]
push eax
call dword [ebp - 0x90]
push dword [ebp - 0x68]
lea eax, [ebp - 0x94]
mov dword [ebp - 0x6c], ebx
push eax
call dword [ebp - 0x90]
add esp, 0x10
mov dword [ebp - 0x68], ebx
test esi, esi
je 0x4020e5
or ebx, 0xffffffff
jmp 0x40219a
mov edx, dword [edi]
lea ecx, [edi + 4]
mov eax, dword [ecx]
push 4
pop esi
add ecx, esi
mov dword [ebp - 0x98], eax
push edx
mov dword [ebp - 0x80], edx
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x88], eax
mov eax, dword [ecx]
add ecx, esi
mov dword [ebp - 0x8c], eax
mov ebx, dword [ecx]
add ecx, esi
mov dword [ebp - 0x84], ecx
call fcn.00413035
mov edx, dword [ebp - 0x88]
mov esi, eax
pop ecx
push dword [ebp - 0x80]
mov ecx, dword [ebp - 0x8c]
push esi
push ebx
mov ebx, dword [ebp - 0x98]
lea eax, [ecx + edx]
add eax, ebx
add eax, dword [ebp - 0x84]
push eax
push ecx
mov ecx, dword [ebp - 0x84]
lea eax, [edx + ebx]
add eax, ecx
push eax
push edx
lea eax, [ebx + ecx]
mov edx, ebx
push eax
call fcn.00404974
add esp, 0x20
xor ebx, ebx
test eax, eax
je 0x402169
inc ebx
jmp 0x402193
push ebx
lea eax, [ebp - 0xa0]
push eax
push dword [ebp - 0x80]
push esi
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402190
mov eax, dword [ebp - 0x80]
cmp dword [ebp - 0xa0], eax
je 0x402193
or ebx, 0xffffffff
push esi
call fcn.00413022
pop ecx
push edi
call fcn.00413022
pop ecx
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405641
mov esp, ebp
pop ebp
ret
Function at 0x402c41
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00402cde
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 0x402cd4
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 0x402ccd
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 0x402cc4
push 6
pop ecx
mov dword [ebp - 0x1c], edi
xor eax, eax
lea edi, [ebp - 0x18]
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 0x402cc4
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x402cd6
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00402cde
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402e76
Capabilities:
Parse pe header

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