joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a63a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ed301
push eax
mov dword fs:[0], esp
sub esp, 0xec
push edi
mov edi, ecx
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4a63dd
xor eax, eax
pop edi
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
add esp, 0xf8
ret
push esi
push 0x400
lea ecx, [esp + 0xc]
call fcn.004e258c
push 0
push 0x1000
lea eax, [esp + 0x10]
push 0
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x10c], 0
call fcn.004e18d4
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.0049f100
lea ecx, [esp + 8]
call fcn.004e2837
lea ecx, [esp + 0x30]
call fcn.004e1a38
mov edx, dword [esp + 8]
push 0
push 0
lea ecx, [esp + 0x10]
call dword [edx + 0x28]
push 0
push 0x1000
lea eax, [esp + 0x10]
push 1
push eax
lea ecx, [esp + 0x84]
call fcn.004e18d4
lea ecx, [esp + 0x74]
lea esi, [edi + 0x60]
push ecx
mov ecx, esi
mov byte [esp + 0x100], 2
call fcn.0049f570
lea ecx, [esp + 0x74]
call fcn.004e1a38
lea ecx, [esp + 8]
call fcn.004e2838
mov eax, dword [edi + 0x5c]
lea edx, [esp + 0xb8]
push edx
push 0x3c
mov eax, dword [eax + 0xc8]
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea ecx, [esp + 0xb8]
push ecx
mov ecx, esi
call fcn.0049cd10
mov edx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [edx + 0xdc]
mov dword [esi + 0xdc], eax
call fcn.0049f010
mov ecx, esi
call fcn.0049fbf0
mov eax, dword [edi + 0x5c]
push 0xffffffffffffffff
mov ecx, esi
mov eax, dword [eax + 0xe0]
mov dword [esi + 0xe0], eax
call fcn.0049f010
mov ecx, esi
call fcn.0049fbf0
mov ecx, dword [edi + 0x5c]
push 0xffffffffffffffff
mov eax, dword [ecx + 0xe4]
mov ecx, esi
mov dword [esi + 0xe4], eax
call fcn.0049f010
mov ecx, esi
call fcn.0049fbf0
mov ecx, dword [edi + 0x5c]
call fcn.0049c4f0
push eax
mov ecx, esi
call fcn.0049c500
mov ecx, dword [edi + 0x5c]
call fcn.0049cab0
push eax
mov ecx, esi
call fcn.0049ca50
mov ecx, dword [edi + 0x5c]
call fcn.0049cbd0
push eax
mov ecx, esi
call fcn.0049cb80
mov ecx, dword [edi + 0x5c]
push 0
call fcn.0049bdd0
push eax
mov ecx, esi
call fcn.0049bde0
mov edx, dword [edi + 0x7c]
push 1
push 0
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x74]
mov byte [esp + 0xfc], 1
call fcn.004e19b0
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 0
call fcn.004e19b0
lea ecx, [esp + 8]
mov dword [esp + 0xfc], 0xffffffff
call fcn.004e2651
mov ecx, dword [esp + 0xf4]
pop esi
mov eax, 1
pop edi
mov dword fs:[0], ecx
add esp, 0xf8
ret
Function at 0x4a7c20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4ed527
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], method.CMenu.virtual_0
mov dword [esi + 4], ebx
lea ecx, [esi + 0x1c]
mov dword [esp + 0x16c], ebx
call fcn.004d8678
lea ecx, [esi + 0x24]
mov byte [esp + 0x16c], 1
call fcn.004d8678
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
push 7
mov byte [esp + 0x170], 2
mov dword [esi], method.CMenu.virtual_0
call edi
push 0xe
mov dword [esi + 0x2c], eax
call edi
push 0xf
mov dword [esi + 0x30], eax
call edi
push 4
mov dword [esi + 0x34], eax
call edi
push 0xd
mov dword [esi + 0x38], eax
call edi
push 0x14
mov dword [esi + 0x3c], eax
call edi
push 0x10
mov dword [esi + 0x40], eax
call edi
push 0x11
mov dword [esi + 0x44], eax
call edi
push 0xf
mov dword [esi + 0x48], eax
call edi
push 0x14
mov dword [esi + 0x4c], eax
call edi
push 0x10
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, 0x14
mov ecx, eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], ecx
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push ebx
push eax
push ebx
push 0x29
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x20], 0x154
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
lea ecx, [esp + 0xb0]
push ecx
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ecx, esi
mov dword [esi + 0x10], eax
mov dword [esi + 8], ebx
call fcn.004a8740
mov eax, esi
mov ecx, dword [esp + 0x164]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x164
ret
Function at 0x4a8790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ed600
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004e4a92
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x4a87c3
xor al, al
jmp 0x4a88ef
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x4a87e5
xor al, al
jmp 0x4a88ef
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x4a87f8
xor al, al
jmp 0x4a88ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x4a880c
xor al, al
jmp 0x4a88ef
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.004d8728
test eax, eax
jne 0x4a8840
xor al, al
jmp 0x4a88ef
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x50ff24
mov dword [esp + 0x20], ebp
call fcn.004e4a92
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.004e1589
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.004e15e0
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x4a88d4
mov ax, word [ebx]
test ax, ax
je 0x4a88c6
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.004a8910
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x4a88aa
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.004e15e0
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x4a8e50
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.004e2c75
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x4a8e96
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.004c7f48
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0x5f8524
push ecx
call fcn.004c97b9
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x4aa550
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x4aa59a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x4aa5c9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x4aa60b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4aeea0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x4aef06
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x4aef06
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4aeee7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4af290
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4af2c8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x4afef0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4aff39
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4b03b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4edb90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004aff60
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004affe0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004affe0
lea ecx, [esi + 0xc]
call fcn.004da5ce
lea ecx, [esi + 0x10]
call fcn.004da5ce
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004b1570
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004b1570
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004b1570
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004da643
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004da643
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4b2d30
Capabilities:
Get storage device properties

Disassembly:
mov eax, 0x2820
call fcn.004c89e0
mov eax, dword [esp + 0x2824]
push ebx
push esi
push edi
push eax
lea ecx, [esp + 0x20]
push str..PhysicalDrive_d
push ecx
call fcn.004c97b9
add esp, 0xc
lea edx, [esp + 0x1c]
push 0
push 0
push 3
push 0
push 3
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b2edd
xor eax, eax
mov ecx, 0x9c4
mov dword [esp + 0x10], eax
lea edi, [esp + 0x11c]
mov dword [esp + 0x14], eax
mov ebx, dword [sym.imp.KERNEL32.dll_DeviceIoControl]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
push eax
push ecx
lea edx, [esp + 0x124]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push 0x2710
push edx
lea eax, [esp + 0x20]
push 0xc
push eax
push 0x2d1400
push esi
mov dword [esp + 0x2c], 0
call ebx
test eax, eax
je 0x4b2edd
mov ecx, dword [esp + 0x283c]
mov edx, dword [esp + 0x128]
push ecx
push 0
lea eax, [esp + 0x124]
push edx
push eax
call fcn.004b2ef0
mov ecx, dword [esp + 0x2848]
mov edx, dword [esp + 0x13c]
push ecx
push 0
lea eax, [esp + 0x134]
push edx
push eax
call fcn.004b2ef0
mov ecx, dword [esp + 0x2860]
mov edx, dword [esp + 0x150]
push ecx
push 0
lea eax, [esp + 0x144]
push edx
push eax
call fcn.004b2ef0
mov ecx, dword [esp + 0x2864]
mov edx, dword [esp + 0x164]
push ecx
push 1
lea eax, [esp + 0x154]
push edx
push eax
call fcn.004b2ef0
mov ecx, dword [esp + 0x2884]
add esp, 0x40
xor eax, eax
lea edi, [esp + 0x11c]
mov dword [ecx], 1
mov ecx, 0x9c4
lea edx, [esp + 0xc]
push eax
rep stosd dword es:[edi], eax
push edx
lea eax, [esp + 0x124]
push 0x2710
push eax
push 0
push 0
push 0x700a0
push esi
call ebx
test eax, eax
je 0x4b2edd
mov edi, dword [esp + 0x124]
mov edx, dword [esp + 0x2848]
mov eax, dword [esp + 0x284c]
xor ecx, ecx
cmp edi, 0xc
push esi
setne cl
inc ecx
mov dword [edx], ecx
mov ecx, dword [esp + 0x138]
mov edx, dword [esp + 0x13c]
mov dword [eax], ecx
mov dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x2820
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x2820
ret

Function at 0x4dca6f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4dcaa7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004daaea
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004daac2
jmp 0x4dcab3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4de269
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4de2ab
call fcn.004e4a92
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4de2ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4de2a2
xor eax, eax
jmp 0x4de2b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004de2b9
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e4fc2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e4ff0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e500e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e4f28
jmp 0x4e500e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e500e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e4f28
test edi, edi
mov eax, edi
jne 0x4e4ff8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringA]
push edi
push 9
push 0x408100
push 1
push dword [ebp + 8]
call esi
push 0x19
push 0x4087e4
push 0xe
push dword [ebp + 8]
call esi
call fcn.00401bea
call fcn.00401c3b
lea ecx, [ebp - 0x44]
push 0xa
push ecx
push eax
mov dword [0x408838], eax
call fcn.00404f46
add esp, 0xc
lea eax, [ebp - 0x1a8]
push 0x64
push eax
push 3
push dword [ebp + 8]
call esi
mov ebx, 0x4085dc
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebx
lea eax, [ebp - 0x20c]
push 0x64
push eax
lea eax, [ebp - 0x1a8]
push eax
push 0x40704c
push str.Message
call edi
push ebx
lea eax, [ebp - 0x144]
push 0x64
push eax
mov ebx, str.NONE
lea eax, [ebp - 0x44]
push ebx
push eax
push str.Message
call edi
lea eax, [ebp - 0x144]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
lea eax, [ebp - 0x144]
jne 0x4010bd
lea eax, [ebp - 0x20c]
push eax
push 0x40850c
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0xac]
push 0x32
push eax
push 2
push dword [ebp + 8]
call esi
mov esi, 0x4085dc
lea eax, [ebp - 0xe0]
push esi
push 0x32
push eax
lea eax, [ebp - 0xac]
push eax
push 0x40704c
push str.TitleBar
call edi
push esi
lea eax, [ebp - 0x78]
push 0x32
push eax
lea eax, [ebp - 0x44]
push ebx
push eax
push str.Message
call edi
lea eax, [ebp - 0x78]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
lea eax, [ebp - 0x78]
jne 0x401126
lea eax, [ebp - 0xe0]
push eax
push 0x408800
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp + 8]
mov esi, 0x408100
xor edi, edi
push esi
push eax
mov dword [ebp - 0x30], 0x30
mov dword [ebp - 4], edi
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x28], 0x401374
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f02
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x10], 0x10
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
call dword [sym.imp.USER32.dll_RegisterClassExA]
pop edi
pop esi
test ax, ax
pop ebx
jne 0x4011a9
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x4011a9
xor eax, eax
leave
ret
push 1
pop eax
leave
ret
Function at 0x401661
Capabilities:
Create directory
Get common file path
Get disk size
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
push ebx
and dword [ebp - 0xc], 0
push esi
push edi
mov edi, 0x100
mov esi, 0x4086e0
push edi
push 0
push esi
call fcn.00402630
add esp, 0xc
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x40883c
push edi
call ebx
cmp eax, 2
jle 0x4016b5
push edi
call fcn.00401d56
test eax, eax
pop ecx
je 0x4016b5
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
call ebx
cmp byte [eax + 0x4086df], 0x5c
je 0x4016cd
push 0x4070c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call fcn.00401e0b
test eax, eax
pop ecx
je 0x40175d
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
and dword [ebp - 4], 0
push 0
push esi
lea eax, [ebp - 0x1b8]
push str._ssetuptmp_d
push eax
call edi
lea eax, [ebp - 0x1b8]
push eax
call fcn.00401e0b
add esp, 0x14
test eax, eax
je 0x40173e
cmp dword [ebp - 4], 0x64
jge 0x40175d
inc dword [ebp - 4]
lea eax, [ebp - 0x1b8]
push dword [ebp - 4]
push esi
push str._ssetuptmp_d
push eax
call edi
lea eax, [ebp - 0x1b8]
push eax
call fcn.00401e0b
add esp, 0x14
test eax, eax
jne 0x40170a
cmp dword [ebp - 4], 0x64
jge 0x40175d
lea eax, [ebp - 0x1b8]
push eax
call fcn.00401d56
test eax, eax
pop ecx
je 0x40175d
lea eax, [ebp - 0x1b8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call edi
test eax, eax
jne 0x40177f
push str.c:_temp
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call edi
test eax, eax
jne 0x4017c8
lea eax, [ebp - 0xb4]
push 0x96
push eax
push 7
push dword [0x4085d4]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp - 0xb4]
push esi
push eax
push dword [0x4080fc]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
mov dword [0x407ff0], 1
pop eax
jmp 0x401878
push esi
call ebx
cmp byte [eax + 0x4086df], 0x5c
je 0x4017e0
push 0x4070c0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov al, byte [0x4086e0]
and byte [ebp - 5], 0
mov byte [ebp - 8], al
mov al, byte [0x4086e1]
mov byte [ebp - 7], al
mov al, byte [0x4086e2]
mov byte [ebp - 6], al
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x401834
mov eax, dword [ebp - 0x14]
xor ecx, ecx
imul eax, dword [ebp - 0x10]
imul eax, dword [ebp - 0x18]
test ecx, ecx
jg 0x401875
jl 0x401834
cmp eax, 0x1e8480
jae 0x401875
lea eax, [ebp - 0xb4]
push 0x96
push eax
push 8
push dword [0x4085d4]
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
lea eax, [ebp - 0xb4]
push esi
push eax
push dword [0x4080fc]
call dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x407ff0], 1
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d56
Capabilities:
Create directory
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 1
push edi
call esi
cmp byte [eax + edi - 1], 0x5c
je 0x401d88
push 0x4070c0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
call esi
mov ebx, eax
xor esi, esi
push 0x104
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.00402630
add esp, 0xc
cmp ebx, 2
jle 0x401e00
cmp byte [edi + 1], 0x3a
jne 0x401e00
test ebx, ebx
jle 0x401e03
lea eax, [ebp - 0x108]
sub edi, eax
cmp dword [ebp - 4], 0
je 0x401e03
lea eax, [ebp + esi - 0x108]
mov cl, byte [edi + eax]
cmp cl, 0x5c
mov byte [eax], cl
jne 0x401df9
cmp esi, 2
je 0x401df9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x401df9
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 4], eax
inc esi
cmp esi, ebx
jl 0x401dbb
jmp 0x401e03
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401e0b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x401e38
push 0x4070c0
push esi
call edi
lea eax, [ebp - 0x104]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
push str.irsetup.exe
push eax
call edi
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040282d
pop ecx
test eax, eax
pop ecx
jne 0x401e7c
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401e7c
push 1
pop ebx
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

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

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x401f6a
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x407190]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x401f48
pop esi
ret

Function at 0x40282d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40284d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00403250
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40286e
test byte [esp + 8], 2
je 0x40286e
mov dword [0x408944], 0xd
mov dword [0x408948], 5
jmp 0x402849
xor eax, eax
ret