joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa140
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4aa1e3
test eax, eax
jbe 0x4aa1e3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4aa1e3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4aa18e
xor esi, esi
jmp 0x4aa194
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4aa1bf
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00457010
add esi, eax
push esi
mov ebx, esi
call fcn.00457010
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4aa1a0
pop ebp
test edi, edi
pop edi
jne 0x4aa1e3
test ebx, ebx
je 0x4aa1e3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004be560
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4aa325
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4aa43d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4aa43d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004d003d
mov esi, eax
test esi, esi
je 0x4aa43d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4aa43d
mov ecx, esi
call fcn.004aa290
cmp edi, eax
jge 0x4aa43d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4aa3c3
mov dword [esp + 0x34], 1
jmp 0x4aa41e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4aa43d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004a9890
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x4aec20
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 0x4aec86
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 0x4aec86
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x4aec67
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4af010
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4af048
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 0x4afc70
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 0x4afcb9
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 0x4b0130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4e1ad0
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.004afce0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.004afd60
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.004afd60
lea ecx, [esi + 0xc]
call fcn.004ce50a
lea ecx, [esi + 0x10]
call fcn.004ce50a
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.004b12f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.004b12f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.004b12f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004ce57f
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004ce57f
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4cf3c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004d9913
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4cf3f6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004cf409
pop edi
pop esi
pop ebx
ret 8

Function at 0x4d09e0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d0a18
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.004cea26
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ce9fe
jmp 0x4d0a24
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d22cc
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 0x4d230e
call fcn.004d9913
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d230e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d2305
xor eax, eax
jmp 0x4d2316
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d231c
pop edi
pop esi
pop ebx
ret 4

Function at 0x4d9e43
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 0x4d9e71
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d9e8f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d9da9
jmp 0x4d9e8f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d9e8f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d9da9
test edi, edi
mov eax, edi
jne 0x4d9e79
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10016fd
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1001753
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x1001759
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp ebx, edi
je 0x10017f3
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x10017f3
lea eax, [ebp + 0xc]
push eax
push 0x10008
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x10017f8
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x10017dc
cmp esi, edi
jne 0x10017e8
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
call fcn.01001759
mov esi, eax
cmp esi, edi
je 0x1001797
jmp 0x10017e8
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10017f8
mov esi, 0x3f2
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x1001801
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0xc]
push eax
mov ebx, 0xf003f
push ebx
push 0
push 0x1001190
mov edi, 0x80000002
push edi
call esi
test eax, eax
je 0x1001837
xor eax, eax
jmp 0x10018fb
lea eax, [ebp - 0x1c]
push eax
push ebx
xor ebx, ebx
push ebx
push 0x1001210
push edi
call esi
test eax, eax
jne 0x1001830
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001290
push dword [ebp - 0xc]
mov dword [ebp - 8], 4
call esi
test eax, eax
je 0x100187e
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001830
mov eax, dword [ebp - 0x14]
cmp eax, ebx
mov dword [ebp - 4], ebx
jbe 0x10018f1
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, 0x100138c
push dword [ebp - 4]
lea eax, [ebp - 0x21c]
push 0x10012cc
push ebx
push eax
call edi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], 0x100
call esi
test eax, eax
jne 0x10018e6
push 0x10012f0
lea eax, [ebp - 0x41c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001900
inc dword [ebp - 4]
mov eax, dword [ebp - 0x14]
cmp dword [ebp - 4], eax
jb 0x1001893
xor ecx, ecx
cmp dword [ebp - 4], eax
setne cl
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 4]
lea eax, [ebp - 0x21c]
push 0x1001278
push ebx
push eax
call edi
add esp, 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], 4
call esi
push 0
push dword [ebp - 0x18]
call sub.TAPI32.dll_lineRemoveProvider
neg eax
sbb eax, eax
inc eax
jmp 0x10018fb
Function at 0x1001c40
Capabilities:
Check mutex on windows

Disassembly:
push edi
push dword [esp + 8]
xor edi, edi
call fcn.01001684
test eax, eax
mov dword [0x1003040], eax
je 0x1001ce7
push esi
push 0x10013a0
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
jne 0x1001c74
push 0xfc9
jmp 0x1001ccf
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x1001398
push dword [0x1003040]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1001cb1
call fcn.01001801
test eax, eax
jne 0x1001ca2
push 0xfc0
jmp 0x1001ccf
push 0xfae
call fcn.01001440
xor edi, edi
inc edi
jmp 0x1001cd4
push dword [0x1003040]
call fcn.01001947
test eax, eax
jne 0x1001cc7
push 0xfc1
jmp 0x1001ccf
xor edi, edi
inc edi
push 0xfaf
call fcn.01001440
test esi, esi
je 0x1001ce6
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
ret 4

Function at 0x1001e72
Capabilities:
Accept command line arguments

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x200
push 0x1003060
push 0xfb0
push eax
mov dword [0x1003460], eax
call dword [sym.imp.USER32.dll_LoadStringW]
call fcn.010016fd
test eax, eax
jne 0x1001ead
push 0xfa0
call fcn.01001440
xor eax, eax
inc eax
jmp 0x1001ecd
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
jne 0x1001ebc
push 2
pop eax
jmp 0x1001ecd
push eax
call fcn.01001ced
test eax, eax
jne 0x1001ecb
call fcn.0100148b
xor eax, eax
ret 0x10
Function at 0x1001ed0
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10013d8
call fcn.010020b8
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001f0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001f0d
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001f25
cmp eax, 0x20b
je 0x1001f12
mov dword [ebp - 0x1c], ebx
jmp 0x1001f39
cmp dword [ecx + 0x84], 0xe
jbe 0x1001f0d
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x1001f33
cmp dword [ecx + 0x74], 0xe
jbe 0x1001f0d
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003464], 0xffffffff
or dword [0x1003468], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003050]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100304c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100346c], eax
call fcn.010020b4
cmp dword [section..data], ebx
jne 0x1001f94
push fcn.010020b4
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010020a2
push 0x10010c8
push 0x10010c4
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003048]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1003044]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010c0
push 0x10010bc
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x100202a
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001ffe
cmp al, 0x22
jne 0x1001ff0
cmp byte [esi], 0x22
jne 0x1002007
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1002011
cmp al, 0x20
jbe 0x1002003
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x1002035
movzx eax, word [ebp - 0x48]
jmp 0x1002038
cmp byte [esi], 0x20
jbe 0x1002007
inc esi
mov dword [ebp - 0x34], esi
jmp 0x100202a
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1002055
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100208a
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010020f1
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push esi
push dword [0x406024]
mov esi, dword [sym.imp.USER32.dll_DestroyWindow]
call esi
push dword [0x406020]
call esi
push dword [0x406028]
call dword [sym.imp.USER32.dll_DestroyMenu]
push dword [0x40602c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40120a
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
shr eax, 4
not eax
and eax, 1
ret

Function at 0x40121d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0x90
xor ecx, ecx
cmp al, 0x10
sete cl
mov eax, ecx
ret

Function at 0x4012f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
add esi, 0x20
sub dword [ebp + 0x14], 0x20
jmp 0x40132e
push dword [ebp + 0x14]
push esi
push edi
call fcn.004012c8
add esp, 0xc
test eax, eax
je 0x401336
inc edi
dec dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 0x14]
jge 0x401319
xor esi, esi
cmp dword [ebp + 0xc], esi
jge 0x401347
push str.Could_not_set_new_icon.
call fcn.00401038
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40133d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x28]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x14]
push edi
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403e0a
leave
ret

Function at 0x40174e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401794
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 4
pop esi
jne 0x4017b8
cmp byte [ebp - 4], 0x50
jne 0x4017b8
cmp byte [ebp - 3], 0x4b
jne 0x4017b8
cmp byte [ebp - 2], 3
jne 0x4017b8
cmp byte [ebp - 1], 4
jne 0x4017b8
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x4017bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401802
push 0
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 4
pop esi
jne 0x401826
cmp byte [ebp - 4], 0x4d
jne 0x401826
cmp byte [ebp - 3], 0x53
jne 0x401826
cmp byte [ebp - 2], 0x43
jne 0x401826
cmp byte [ebp - 1], 0x46
jne 0x401826
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x40182a
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x406004]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
push 0
mov esi, 0x409c00
push esi
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push esi
push 0x7d7
push dword [0x406024]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push esi
push 0xff
push 0x406458
mov ebx, 0x40446e
push ebx
push str.Title
mov edi, 0x40482c
push edi
call ebp
push esi
push 0xff
push 0x406660
push ebx
push str.Website
push edi
call ebp
push esi
push 0x104
push 0x406350
push ebx
push str.ExtractPath
push edi
call ebp
push esi
push 0x104
push 0x406558
push ebx
push str.Execute
push edi
call ebp
push esi
push 6
push 0x40623c
push 0x40480c
push str.OSVersion
push edi
call ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push esi
xor ebx, ebx
push ebx
push str.RunElevated
push edi
call ebp
push esi
push ebx
push str.Subsystem64
push edi
mov dword [0x406134], eax
call ebp
push esi
push ebx
push 0x4047dc
push edi
mov dword [0x40634c], eax
call ebp
push esi
push ebx
push 0x4047d0
push edi
mov dword [0x406454], eax
call ebp
push esi
push ebx
mov dword [0x40665c], eax
push str.DeleteFiles
push edi
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
push esi
push 0x400
push 0x4096c0
push str.IntroText
mov dword [0x409360], eax
call edi
xor ecx, ecx
cmp eax, ebx
jle 0x40196a
lea edx, [ecx + 0x4096c1]
cmp byte [edx - 1], 0x5c
jne 0x401965
cmp byte [edx], bl
jne 0x401965
mov byte [edx - 1], 0xd
mov byte [edx], 0xa
inc ecx
cmp ecx, eax
jl 0x40194e
push esi
push 0x2800
mov ebp, 0x406b60
push ebp
push str.Shortcuts
call edi
push dword [0x406028]
call dword [sym.imp.USER32.dll_DestroyMenu]
call dword [sym.imp.USER32.dll_CreatePopupMenu]
xor esi, esi
mov dword [0x406028], eax
cmp byte [0x406b60], bl
je 0x401a0a
mov edi, ebp
mov ebp, 0x4047a8
lea eax, [esp + 0x10]
push eax
push ebx
lea eax, [esp + esi + 0x18]
push ebp
push eax
call fcn.0040112c
add esp, 0x10
cmp byte [eax], bl
je 0x4019f5
push 0x40479c
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4019f5
lea eax, [esp + 0x10]
push eax
push 1
push ebp
push edi
call fcn.0040112c
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ebx
push ebx
push dword [0x406028]
call dword [sym.imp.USER32.dll_AppendMenuA]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
lea edi, [esi + 0x406b60]
cmp byte [edi], bl
jne 0x4019a5
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403e0a
add esp, 0x20c
ret
Function at 0x403c6f
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x403d44
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403d33
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x403d1d
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x403d33
push eax
push edi
push dword [ebp - 0x110]
call fcn.00403c0c
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x403d46
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00403e0a
leave
ret 4

Function at 0x403e0a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x406004]
jne 0x403e14
repz ret
jmp fcn.00403e7c