joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406dc7
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
mov al, byte [ebp]
mov dword [esp + 0x14], esi
test al, al
je 0x406f1e
mov edi, 0x400
mov ecx, esi
sub ecx, dword [esp + 0x14]
cmp ecx, edi
jge 0x406f1e
movzx ebx, al
inc ebp
cmp ebx, 0xdd
jge 0x406e09
mov byte [esi], bl
inc esi
jmp 0x406f13
cmp ebx, 0xff
jne 0x406e1d
mov al, byte [ebp]
mov byte [esi], al
inc esi
inc ebp
jmp 0x406f13
lea eax, [ebx - 0xdd]
cmp eax, 0x21
ja case.default.0x406e33
movzx eax, byte [eax + 0x406f46]
jmp dword [eax*4 + 0x406f26]
push dword [0x422de4]
push 0x40a5cc
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
jmp case.default.0x406e33
lea eax, [ebx - 0xde]
shl eax, 0xa
add eax, 0x41bd80
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp case.default.0x406e33
push esi
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00406c58
add esp, 0x10
cmp byte [esi], 0
jne 0x406eeb
push str.C:Program_Files
jmp 0x406e63
push esi
push dword [ebx*4 + 0x40a0c8]
call fcn.00406f68
pop ecx
pop ecx
jmp case.default.0x406e33
push esi
push str.Common_AppData
call fcn.00406f68
pop ecx
pop ecx
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je case.0x406e33.252
test al, 0x10
jne case.default.0x406e33
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
jmp case.default.0x406e33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp case.default.0x406e33
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp byte [esi], 0
je 0x406efa
push esi
call dword [sym.imp.USER32.dll_CharNextA]
cmp byte [eax], 0
je 0x406efa
inc esi
jmp case.default.0x406e33
cmp ebx, 0xf2
jle 0x406f0a
cmp byte [esi], 0x5c
jne 0x406f0a
and byte [esi], 0
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [ebp]
test al, al
jne 0x406de7
and byte [esi], 0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406f68
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
mov al, byte [0x421d80]
push ebx
push ebp
push esi
push edi
mov esi, dword [esp + 0x18]
movsx edi, al
mov ecx, edi
push esi
neg ecx
sbb ecx, ecx
mov ebp, 0x80000001
and ecx, 0xfffffff9
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
add ecx, 7
add ecx, dword [esp + 0x18]
push ecx
xor ecx, ecx
test al, al
setne cl
add ecx, ebp
push ebx
push ecx
call fcn.00406c58
add esp, 0x10
cmp byte [esi], 0
jne 0x406fd8
test edi, edi
je 0x406fcc
mov eax, dword [esp + 0x14]
push esi
add eax, 7
xor edi, edi
push eax
xor eax, eax
cmp byte [0x421d80], al
push ebx
setne al
add eax, ebp
push eax
jmp 0x406f9f
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406fdd
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
push esi
push 1
xor esi, esi
pop ebx
push esi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ole32.dll_OleInitialize]
cmp eax, ebx
je 0x407006
cmp eax, esi
je 0x407006
mov eax, ebx
jmp 0x4070f0
lea eax, [ebp - 4]
push eax
push 0x408378
push ebx
push esi
push 0x408368
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4070e7
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x408388
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4070de
mov eax, dword [ebp - 4]
push edi
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push dword [ebp + 0x20]
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
cmp dword [ebp + 0x24], esi
je 0x407069
mov eax, dword [ebp - 4]
push dword [ebp + 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
cmp dword [ebp + 0x28], esi
je 0x40707a
mov eax, dword [ebp - 4]
push dword [ebp + 0x28]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
cmp dword [ebp + 0x10], esi
je 0x40708e
push dword [ebp + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x1c], esi
je 0x40709f
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp edi, esi
pop edi
jl 0x4070d5
lea eax, [ebp - 0x80c]
push 0x400
push eax
push 0xffffffffffffffff
push dword [ebp + 0xc]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x80c]
push ebx
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x4070d5
mov dword [ebp - 0xc], esi
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_OleUninitialize]
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x402ee0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4408ea
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4556d4]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00416415
push 0
call fcn.0041947a
mov eax, dword [edi + 0xd8]
mov edx, dword [edi + 0xe0]
mov ecx, dword [edi + 0xd4]
add esp, 4
push 0x40
sub edx, eax
push edx
mov edx, dword [edi + 0xdc]
sub edx, ecx
push edx
push eax
push ecx
push 0x4589a8
mov ecx, edi
call fcn.004131c8
mov eax, dword [edi + 0x1f8]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
mov eax, dword [edi + 0x20]
push 1
push 0x80
push eax
call ebx
mov eax, dword [edi + 0x1f8]
mov ecx, dword [edi + 0x20]
push eax
push 0
push 0x80
push ecx
call ebx
mov eax, dword [edi + 0x20]
mov ecx, edi
mov dword [edi + 0x168], eax
call fcn.004065c0
push 1
mov eax, 0xa
push edi
lea edx, [esp + 0x24]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov eax, 0x64
push edx
lea ebp, [edi + 0x1fc]
push 0x50011044
mov ecx, ebp
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.0040d4a0
push 0x447f50
push 0x20
push 0
push 0
push 0
push 0x86
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xc
mov dword [edi + 0x1f4], 0xc
lea esi, [edi + 0x1dc]
call dword [sym.imp.GDI32.dll_CreateFontW]
push eax
mov ecx, esi
call fcn.00414ac7
test esi, esi
je 0x403008
mov esi, dword [esi + 4]
mov eax, dword [edi + 0x21c]
push 1
push esi
push 0x30
push eax
call ebx
mov ecx, dword [edi + 0x21c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
push 0
mov ecx, ebp
call fcn.00412f3d
push 0x820
call fcn.0040c3dd
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x38], 0
test eax, eax
je 0x403055
push eax
call fcn.00408ee0
jmp 0x403057
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
mov dword [edi + 0x1b8], eax
mov edx, dword [eax]
push edi
mov ecx, eax
mov eax, dword [edx + 0x13c]
push 0x93
call eax
call fcn.004030a0
mov eax, 1
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404450
Capabilities:
Capture screenshot
Open clipboard
Write clipboard data

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
push ebp
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x404472
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [ebp + 4]
mov ebx, dword [ebp + 8]
mov edi, eax
mov eax, dword [ebp]
mov ebp, dword [ebp + 0xc]
sub ebp, ecx
push ebp
sub ebx, eax
push ebx
push esi
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [esp + 0x20]
push 0xcc0020
push edx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x18]
push eax
push esi
push ebp
push ebx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x14]
push ecx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
mov esi, dword [esp + 0x20]
mov edx, dword [esi + 0x20]
push edx
mov ebx, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
cmp dword [esp + 0x24], 0
je 0x404523
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x404523
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
push str.Black_Pic_Tmp.bmp
add esi, 0x1ec
lea ecx, [esp + 0x20]
push esi
push ecx
call fcn.00406ab0
mov edx, dword [eax]
add esp, 0xc
push edx
push ebx
call fcn.00404580
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404565
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 8
ret 0xc
Function at 0x407d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407d59
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x407d94
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x407d90
lea ebx, [ebx]
cmp esi, eax
jae 0x407d94
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x407d80
cmp esi, eax
jb 0x407d9a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x408d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43ffd8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4556d4]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esi], vtable.CCurve.0
xor edi, edi
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x20]
mov dword [esi + 0x1c], vtable.CList_class_CPoint__class_CPoint_.0
cmp eax, edi
je 0x408db6
mov eax, dword [eax]
cmp eax, edi
jne 0x408db0
mov ecx, dword [esi + 0x30]
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
call fcn.0041b410
mov dword [esi + 0x30], edi
mov dword [esi], vtable.CShape.0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x412cca
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x412d11
call fcn.0040cdbd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x412d11
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x412d2d
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00412842
mov esi, eax
test edi, edi
je 0x412d2b
test ebx, ebx
je 0x412d2b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4134fc
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x43ebc9
call fcn.0042c3ce
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x413521
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x413567
lea ecx, [ebp - 0x10]
call fcn.004020b0
mov ecx, dword [esi + 0x50]
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.0040cebb
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00402090
mov eax, esi
call fcn.0042c4a6
ret 8
Function at 0x416951
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x416975
cmp dword [edi + 0x54], 0
jne 0x416975
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040cdbd
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.00416912
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 0x418f43
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x418f8b
call fcn.0040cdbd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x418f8b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x418fce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x418fb7
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x418fb7
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x418fcb
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42af4a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4556d4]
jne 0x42af54
repz ret
jmp fcn.0042ecc3
Function at 0x436b0b
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.0042e6d2
and dword [ebp - 4], 0
cmp dword [0x459b04], 0
mov ebx, eax
jne 0x436bbc
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x436c6d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x436c6d
push eax
call fcn.0042e660
mov dword [esp], 0x4460c0
push edi
mov dword [0x459b04], eax
call esi
push eax
call fcn.0042e660
mov dword [esp], 0x4460ac
push edi
mov dword [0x459b08], eax
call esi
push eax
call fcn.0042e660
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x459b0c], eax
call esi
push eax
call fcn.0042e660
pop ecx
mov dword [0x459b14], eax
test eax, eax
je 0x436bbc
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e660
pop ecx
mov dword [0x459b10], eax
mov eax, dword [0x459b10]
cmp eax, ebx
je 0x436c14
cmp dword [0x459b14], ebx
je 0x436c14
push eax
call fcn.0042e6db
push dword [0x459b14]
mov esi, eax
call fcn.0042e6db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x436c14
test edi, edi
je 0x436c14
call esi
test eax, eax
je 0x436c0b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436c0b
test byte [ebp - 0xc], 1
jne 0x436c14
or dword [ebp + 0x10], 0x200000
jmp 0x436c4d
mov eax, dword [0x459b08]
cmp eax, ebx
je 0x436c4d
push eax
call fcn.0042e6db
pop ecx
test eax, eax
je 0x436c4d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x436c4d
mov eax, dword [0x459b0c]
cmp eax, ebx
je 0x436c4d
push eax
call fcn.0042e6db
pop ecx
test eax, eax
je 0x436c4d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x459b04]
call fcn.0042e6db
pop ecx
test eax, eax
je 0x436c6d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436c6f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
push 0x20
pop ebx
cmp al, 0x22
je 0x401029
cmp al, bl
jbe 0x40103b
inc esi
cmp byte [esi], bl
ja 0x40101e
jmp 0x40103b
cmp al, 0x22
je 0x40103a
inc esi
mov al, byte [esi]
test al, al
jne 0x401025
cmp al, 0x22
jne 0x40103b
jmp 0x40103a
cmp al, bl
ja 0x401041
inc esi
mov al, byte [esi]
test al, al
jne 0x401036
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x80
push 8
mov dword [0x4061a4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [0x4061a0], eax
mov eax, section..data
mov edi, 0x406010
mov ebx, eax
cmp eax, edi
jae 0x40108d
mov eax, dword [ebx]
test eax, eax
je 0x401086
call eax
add ebx, 4
cmp ebx, edi
jb 0x40107e
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov ecx, dword [0x4061a8]
mov ebx, eax
test ecx, ecx
je 0x4010c5
mov eax, dword [0x4061a0]
lea edi, [eax + ecx*4]
mov esi, eax
cmp eax, edi
jae 0x4010c5
mov eax, dword [esi]
test eax, eax
je 0x4010be
call eax
add esi, 4
cmp esi, edi
jb 0x4010b6
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40114c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401163
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401198
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x401194
cmp edi, eax
jae 0x401198
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x401186
cmp edi, eax
jb 0x40119c
xor eax, eax
jmp 0x4011a5
movzx eax, word [edi]
neg eax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret

Function at 0x4011c1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x406130]
xor eax, ebp
mov dword [ebp + 0x74], eax
push 0x9c
lea eax, [ebp - 0x28]
push 0
push eax
call fcn.00402c06
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401202
xor al, al
jmp 0x40121f
cmp dword [ebp - 0x24], 5
jb 0x4011fe
jbe 0x40120e
mov al, 1
jmp 0x40121f
xor eax, eax
inc eax
cmp dword [ebp - 0x20], eax
jae 0x40121f
cmp word [ebp + 0x6c], 4
sbb al, al
inc al
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.004011c0
add ebp, 0x78
leave
ret
Function at 0x401765
Capabilities:
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
push edi
lea ebx, [esi + 0x20]
mov eax, ebx
lea edi, [ebp - 0xc]
call fcn.004020bb
push dword [eax + 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, edi
call fcn.004020d9
mov eax, dword [ebx]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4017ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4017e2
add esi, 0x1c
mov eax, esi
lea edi, [ebp - 0xc]
call fcn.004020bb
mov eax, dword [eax + 4]
mov ebx, dword [ebx]
push eax
push 0
push 0x405188
push ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ebx, eax
neg ebx
sbb bl, bl
mov ecx, edi
inc bl
call fcn.004020d9
test bl, bl
je 0x4017e7
or eax, 0xffffffff
jmp 0x4017fb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401800
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [0x406184]
mov ecx, 0x406184
call dword [eax + 0xc]
or dword [ebp - 0xc], 0xffffffff
add eax, 0x10
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 0x104
mov esi, eax
mov dword [ebp - 0x14], eax
call fcn.004022c1
mov dword [ebp - 0x10], eax
push dword [ebp - 0x10]
mov eax, dword [edi + 0x20]
xor esi, esi
push esi
push 0x40518c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.004020d9
cmp ebx, esi
je 0x401907
lea eax, [ebp - 4]
push eax
add edi, 0x10
call fcn.00402004
push 0x405158
push 0x66
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp eax, esi
je 0x401907
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
je 0x401907
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
je 0x401907
push esi
push esi
push 4
push esi
push esi
push 0xc0000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
inc eax
neg eax
sbb eax, eax
and eax, dword [fcn.004011c0]
cmp eax, esi
je 0x4018fb
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
mov ecx, ebx
call fcn.00401b43
pop ecx
pop ecx
test eax, eax
jne 0x4018fb
mov esi, dword [ebp - 4]
add esi, 0xfffffff0
call fcn.00402382
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
cmp edi, 0xffffffff
je 0x40190f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40190f
cmp edi, 0xffffffff
je 0x401907
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 8]
call fcn.00401e90
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004011a8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4