joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4089fc
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, eax
add esi, 4
mov eax, dword [esi]
push edi
xor edi, edi
cmp eax, edi
je 0x408a1a
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov dword [esi], edi
push 0x20
lea eax, [ebp - 0x20]
push edi
push eax
call fcn.0042ded0
add esp, 0xc
push esi
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x20], edi
push dword [ebp + 8]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
pop edi
pop esi
leave
ret 8

Function at 0x408a9e
Capabilities:
Initialize winsock library

Disassembly:
push ebx
push edi
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00407a79
mov ecx, edi
call fcn.00407a8d
xor ebx, ebx
cmp eax, ebx
jge 0x408abd
push eax
call fcn.00401000
lea edi, [esi + 0x28]
mov ecx, edi
call fcn.00407a79
mov ecx, edi
call fcn.00407a8d
cmp eax, ebx
jl 0x408ab7
or dword [esi + 0x40], 0xffffffff
mov dword [esi], 1
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0x2710
cmp dword [0x45a900], ebx
je 0x408b0c
push 0x45a770
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [0x45a900], eax
pop edi
mov eax, esi
pop ebx
ret

Function at 0x408c11
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
xor ebx, ebx
cmp byte [esi + 0x44], bl
je 0x408c23
mov al, 1
jmp 0x408c95
mov eax, dword [esi + 0x40]
mov byte [ebp - 1], 1
cmp eax, 0xffffffff
jne 0x408c33
xor al, al
jmp 0x408c95
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x408c8f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x408c89
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x408c8c
push 0x2c
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.0042ded0
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
push ebx
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
je 0x408c8f
mov dword [esi + 0x48], eax
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
mov byte [esi + 0x44], al
pop ebx
leave
ret 8
Function at 0x408c9a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
push dword [esi + 0x4c]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push dword [esi + 0xc]
call edi
test eax, eax
je 0x408cc1
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x408d68
push ebx
xor ebx, ebx
push ebx
push dword [esi + 8]
call edi
cmp eax, 0x102
jne 0x408cdf
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x408d67
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
lea eax, [esi + 0x28]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 8]
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
je 0x408d27
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x408d59
push dword [esi + 0x4c]
push dword [esi + 8]
call edi
test eax, eax
jne 0x408d5c
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x40]
mov dword [ebp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x408d53
mov bl, 1
jmp 0x408d5c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
pop edi
leave
ret 0xc
Function at 0x408d6d
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push dword [esi + 0x4c]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x408d91
mov dword [esi + 0x48], 0x2749
xor al, al
jmp 0x408e59
push ebx
xor ebx, ebx
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x80
jne 0x408db3
mov dword [esi + 0x48], 0x2734
xor al, al
jmp 0x408e58
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi]
push 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x20]
push ebx
push eax
mov dword [edi], ebx
mov dword [ebp - 4], ebx
call fcn.0042ded0
lea eax, [esi + 0x10]
add esp, 0xc
push eax
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov eax, dword [esi + 4]
push eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 4]
push eax
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x40]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x408e16
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
jne 0x408e4a
push dword [esi + 0x4c]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x408e4d
lea eax, [ebp - 4]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x40]
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
je 0x408e44
mov bl, 1
jmp 0x408e4d
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [esi + 0x48], eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov al, bl
pop ebx
leave
ret 4
Function at 0x40eb3e
Capabilities:
Get graphical window text

Disassembly:
push 0x40c
mov eax, 0x443f54
call fcn.00431e61
mov ecx, dword [esi]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [ecx - 0xc], ebx
je 0x40eba7
push 0x400
lea ecx, [ebp - 0x414]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, ebx
jle 0x40eba7
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x418]
call fcn.00401f1d
push 1
lea eax, [ebp - 0x418]
push esi
push eax
mov dword [ebp - 4], ebx
call fcn.00425cd7
mov ecx, dword [ebp - 0x418]
add esp, 0xc
add ecx, 0xfffffff0
mov bl, al
call fcn.0040113c
mov al, bl
call fcn.00431ee4
ret 4
Function at 0x410954
Capabilities:
Delete file

Disassembly:
push 0x1c
mov eax, 0x443f2e
call fcn.00431e2b
mov ebx, dword [ebp + 8]
mov esi, ecx
and dword [ebp - 4], 0
and dword [ebp - 0x28], 0
push 0x44946e
mov ecx, ebx
call fcn.00401f1d
push str.__C
xor eax, eax
inc eax
push 4
push 0x1823
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
call fcn.004262bf
add esp, 0xc
push eax
lea ecx, [ebp - 0x1c]
call fcn.00401f1d
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00426a85
pop ecx
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040113c
mov eax, dword [esi + 8]
cmp dword [eax - 0xc], 0
je 0x410a7c
mov eax, dword [ebp - 0x24]
cmp dword [eax - 0xc], 0
je 0x410a7c
push eax
lea ecx, [ebp - 0x18]
call fcn.00401f1d
mov byte [ebp - 4], 5
push dword [esi + 8]
lea ecx, [ebp - 0x20]
call fcn.00401f1d
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp - 4], 6
call fcn.00411331
mov byte [ebp - 4], 7
push 0x44ab9c
push dword [ebp - 0x14]
call fcn.0042cda8
pop ecx
pop ecx
test eax, eax
je 0x410a29
sub eax, dword [ebp - 0x14]
js 0x410a29
push dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040222e
mov eax, dword [ebp - 0x14]
cmp dword [eax - 0xc], 0
je 0x410a5b
push dword [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.DLL_DeleteFileA]
call edi
lea esi, [ebp - 0x18]
call fcn.004113a3
push dword [ebp - 0x14]
call fcn.0040777e
push dword [ebp - 0x18]
mov ecx, ebx
call fcn.0040227b
push dword [ebx]
call edi
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040113c
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
call fcn.0040113c
mov eax, dword [ebp + 8]
call fcn.00431ed0
ret 8

Function at 0x412714
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x2c]
push ebx
push ebp
xor ebp, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [esi], 0x44b048
cmp eax, ebp
je 0x41273c
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push dword [esi + 0x2c]
call edi
mov dword [esi + 0x30], ebp
mov eax, dword [esi + 0x64]
cmp eax, ebp
je 0x412749
push eax
call edi
mov dword [esi + 0x64], ebp
mov eax, dword [esi + 0x68]
cmp eax, ebp
je 0x412756
push eax
call edi
mov dword [esi + 0x68], ebp
lea ebx, [esi + 0xa0]
mov eax, dword [ebx]
cmp eax, ebp
je 0x412767
push eax
call edi
mov dword [ebx], ebp
lea eax, [esi + 0x6c]
push eax
call fcn.00413e49
mov ecx, dword [esi + 0x54]
push 0x10
pop edi
sub ecx, edi
call fcn.0040113c
mov ecx, dword [esi + 0x3c]
sub ecx, edi
call fcn.0040113c
mov ecx, dword [esi + 0x38]
sub ecx, edi
call fcn.0040113c
mov ecx, dword [esi + 0x34]
sub ecx, edi
call fcn.0040113c
lea ecx, [esi + 4]
call fcn.0041829c
pop edi
pop ebp
mov dword [esi], vtable.HTMLWindowObserver.0
pop ebx
ret
Function at 0x412e26
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea ebx, [esi + 0x54]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.00402078
cmp dword [esi + 0x2c], edi
je 0x412e60
push 0x44af00
push 0x10
push 0x1ee8
call fcn.004262bf
mov ecx, dword [ebp + 0x14]
add esp, 0xc
push eax
call fcn.0040227b
jmp 0x412ed8
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x58], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x9c], eax
mov eax, dword [esi + 0x3c]
push eax
push ecx
mov dword [esi + 0x48], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x28], 1
call fcn.0042d042
test eax, eax
setne al
mov byte [ebp + 0x14], al
push dword [ebp + 0x14]
push dword [esi + 0x40]
call fcn.0041faad
add esp, 0x10
lea eax, [esi + 0x30]
push eax
push edi
push esi
push 0x4132ac
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push 0xffffffffffffffff
push dword [esi + 0xa0]
mov dword [esi + 0x2c], eax
call edi
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0xffffffffffffffff
push dword [esi + 0x64]
call edi
mov ecx, dword [ebp + 8]
push ebx
call fcn.00402206
mov eax, dword [ebp + 8]
pop edi
pop ebx
leave
ret 0x10

Function at 0x422bc4
Capabilities:
Create thread
Resume thread

Disassembly:
push 8
mov eax, 0x445564
call fcn.00431df8
push 0xac
call fcn.0042e83c
pop ecx
mov dword [ebp - 0x14], eax
and dword [ebp - 4], 0
test eax, eax
je 0x422bf6
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call fcn.0042b384
mov esi, eax
jmp 0x422bf8
xor esi, esi
or dword [ebp - 4], 0xffffffff
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x422efb
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
jne 0x422c2c
test esi, esi
je 0x422c28
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
xor al, al
jmp 0x422c52
mov esi, 0x45b4c0
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push dword [ebp - 0x10]
call fcn.00422fb3
push esi
mov dword [eax], edi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push edi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov al, 1
call fcn.00431ed0
ret

Function at 0x4234c5
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
push 8
push 1
push str.Microsoft_Base_Cryptographic_Provider_v1.0
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x4234e7
call fcn.0041254d
jmp 0x4234e9
xor eax, eax
ret 8

Function at 0x42351b
Capabilities:
Hash data via wincrypt

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x423538
call fcn.0041254d
jmp 0x42353a
xor eax, eax
ret 8

Function at 0x423595
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push dword [esp + 4]
mov eax, dword [eax]
push 0
push dword [0x45c090]
push 0x8003
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4235ba
call fcn.0041254d
jmp 0x4235bc
xor eax, eax
ret 4
Function at 0x424337
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push 0x424548
push edi
push edi
mov byte [ebp - 1], 0
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x424390
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x44c960
push 0x2b
push 0xd60
call fcn.004262bf
add esp, 0xc
push eax
lea ebx, [esi + 0xa8]
call fcn.00425c6f
pop ecx
pop ecx
jmp 0x424471
push dword [esi + 0xc]
mov ebx, dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push eax
call ebx
mov edi, 0x102
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x424417
cmp dword [esi + 0x28], 0
jbe 0x4243ba
push 0xffffffffffffffff
push dword [ebp - 0xc]
call ebx
mov dword [ebp - 8], eax
jmp 0x424401
push 3
pop eax
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_TerminateThread]
push 0x7d0
push dword [ebp - 0xc]
call ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
push 0x44c98c
push 0x26
push 0x2c66
call fcn.004262bf
push eax
lea ebx, [esi + 0xa8]
call fcn.00425c6f
add esp, 0x10
cmp dword [ebp - 8], edi
jne 0x424417
push dword [esi + 0xc]
push 0x44c9b4
push 0x26
push 0x2655
jmp 0x424452
cmp dword [ebp - 8], 0xffffffff
jne 0x424432
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push 0x44c9dc
push 0x2a
push 0x2858
jmp 0x424452
cmp dword [ebp - 8], 0
jne 0x424443
mov al, byte [esi + 0xd4]
mov byte [ebp - 1], al
jmp 0x424468
push dword [ebp - 8]
push 0x44ca08
push 0x2c
push 0xfbd
call fcn.004262bf
add esp, 0xc
push eax
lea ebx, [esi + 0xa8]
call fcn.00425c6f
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret
Function at 0x424f15
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x443c0e
call fcn.00431df8
mov ebx, ecx
push dword [ebp + 0x14]
xor esi, esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], esi
call fcn.00402206
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x20], esp
mov ecx, esp
push dword [ebp + 0xc]
call fcn.00402206
call fcn.00424c93
pop ecx
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x42503c
lea eax, [ebp - 0x14]
push eax
push 0x20019
push esi
push ecx
mov dword [ebp - 0x1c], esp
mov ecx, esp
push dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
call fcn.00402206
lea edi, [ebp - 0x1c]
call fcn.00424c40
pop ecx
push dword [eax]
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040113c
cmp dword [ebp - 0x14], esi
je 0x42503c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebx]
mov dword [ebp - 0x18], esi
push dword [ebp - 0x14]
call edi
cmp dword [ebp - 0x20], 4
jne 0x424fff
cmp dword [ebp - 0x18], 4
jne 0x425033
cmp dword [ebp + 0x10], esi
jne 0x425033
mov ebx, dword [ebx]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
push ebx
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
call edi
test eax, eax
je 0x424fe9
push dword [ebp + 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040222e
jmp 0x425033
push dword [ebp - 0x1c]
lea eax, [ebp - 0x10]
push 0x449d5c
push eax
call fcn.00403f05
add esp, 0xc
jmp 0x425033
cmp dword [ebp - 0x20], 1
jne 0x425033
push dword [ebp - 0x18]
call fcn.0042ead3
pop ecx
lea ecx, [ebp - 0x18]
push ecx
push eax
push esi
push esi
push dword [ebx]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x14]
call edi
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
call fcn.0040227b
push dword [ebp - 0x1c]
call fcn.0042d64f
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.00402206
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040113c
mov eax, dword [ebp + 8]
call fcn.00431ed0
ret
Function at 0x42505c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push ecx
mov dword [ebp - 0x10], esp
mov ecx, esp
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00402206
call fcn.00424c93
mov ebx, eax
xor esi, esi
pop ecx
cmp ebx, esi
je 0x425108
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push ecx
mov dword [ebp - 0x10], esp
mov ecx, esp
push dword [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00402206
lea edi, [ebp - 8]
call fcn.00424c40
pop ecx
push dword [eax]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0040113c
cmp dword [ebp - 4], esi
je 0x425108
mov ebx, dword [ebp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebx]
mov dword [ebp - 8], esi
push dword [ebp - 4]
call edi
cmp dword [ebp - 0x10], 4
jne 0x4250ff
cmp dword [ebp - 8], 4
jne 0x4250ff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push dword [ebx]
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x425427
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push ecx
mov dword [ebp - 8], esp
mov ecx, esp
push dword [ebp + 8]
xor ebx, ebx
call fcn.00402206
call fcn.00424c93
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4254b5
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push ecx
mov dword [ebp - 8], esp
mov ecx, esp
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call fcn.00402206
lea edi, [ebp - 8]
call fcn.00424c40
pop ecx
push dword [eax]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [ebp - 8]
add ecx, 0xfffffff0
call fcn.0040113c
cmp dword [ebp - 4], ebx
je 0x4254b5
push dword [ebp + 0x18]
mov eax, dword [ebp + 0xc]
push dword [ebp + 0x14]
mov eax, dword [eax]
push dword [ebp + 0x10]
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
sete bl
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x426594
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x458264]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 8
mov eax, 0x442f2c
call fcn.00431df8
xor edi, edi
mov dword [ebp - 4], edi
push 0x44946e
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], edi
call fcn.00401f1d
push 0x94
lea eax, [ebp]
push edi
mov dword [ebp - 4], edi
push eax
mov dword [ebp - 0x14], 1
call fcn.0042ded0
add esp, 0xc
lea eax, [ebp]
push eax
mov dword [ebp], 0x94
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
cmp dword [ebp + 0x10], 2
jne 0x42664b
mov eax, dword [ebp + 4]
cmp eax, 3
jb 0x426678
cmp eax, 4
jbe 0x426644
cmp eax, 5
je 0x42661e
cmp eax, 6
jne 0x426678
push str.vista
jmp 0x426670
cmp dword [ebp + 8], edi
jne 0x42662a
push str.win2k
jmp 0x426670
cmp dword [ebp + 8], 1
jne 0x426637
push str.winxp
jmp 0x426670
cmp dword [ebp + 8], 2
jb 0x426678
push str.win2k3
jmp 0x426670
push str.winnt
jmp 0x426670
cmp dword [ebp + 0x10], 1
jne 0x426678
cmp dword [ebp + 8], 0x5a
jb 0x42665e
push str.winme
jmp 0x426670
cmp dword [ebp + 8], 0xa
jb 0x42666b
push str.win98
jmp 0x426670
push str.win95
mov ecx, dword [ebp - 0x10]
call fcn.0040227b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.0042cc45
add ebp, 0x98
leave
ret

Function at 0x42669e
Capabilities:
Check if file exists

Disassembly:
push ebx
push dword [esp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov ecx, dword [esp + 8]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.0040113c
mov al, bl
pop ebx
ret
Function at 0x426760
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push 0x68
mov eax, 0x4444a5
call fcn.00431df8
mov eax, dword [ebp + 0xc]
push dword [eax]
lea ecx, [ebp - 0x14]
call fcn.00401f1d
xor ebx, ebx
mov dword [ebp - 4], ebx
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x426820
push 0x45a964
lea ecx, [ebp + 0xc]
call fcn.004021e1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00402206
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x18]
push esi
push 0x44d2bc
push 0x1a
push 0xc3c
call fcn.004262bf
add esp, 0xc
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00403f05
add esp, 0xc
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 1
call fcn.0040113c
mov esi, dword [ebp + 0xc]
push esi
push 0x44d2d8
push 0xc
push 0x9af
call fcn.004262bf
add esp, 0xc
push eax
push dword [ebp + 8]
call fcn.00427488
add esp, 0xc
lea ecx, [esi - 0x10]
call fcn.0040113c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0040113c
mov al, bl
call fcn.00431ed0
ret
push 0x44
pop edi
push edi
lea eax, [ebp - 0x74]
push ebx
push eax
mov byte [ebp + 0xf], bl
call fcn.0042ded0
add esp, 0xc
xor esi, esi
mov dword [ebp - 0x74], edi
cmp byte [ebp + 0x14], bl
jne 0x426850
xor eax, eax
mov dword [ebp - 0x48], 1
mov word [ebp - 0x44], ax
mov esi, 0x8000000
push 0x10
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.0042ded0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.00402206
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 3
call fcn.004266c2
pop ecx
pop ecx
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040113c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push ebx
push esi
push ebx
push ebx
push ebx
push dword [ebp - 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
je 0x4268e6
push dword [ebp + 0x18]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, ebx
jne 0x4268d3
mov byte [ebp + 0xf], 1
cmp dword [ebp + 0x1c], ebx
je 0x426920
push dword [ebp + 0x1c]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
jmp 0x426920
cmp eax, 0x102
jne 0x426920
mov eax, dword [ebp + 0x20]
cmp eax, ebx
je 0x426920
mov byte [eax], 1
jmp 0x426920
push 0x44d2e8
push 0x17
push 0x25db
call fcn.004262bf
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.0040771d
mov byte [ebp - 4], 6
push dword [eax]
push dword [ebp + 8]
call fcn.004274ef
mov ecx, dword [ebp - 0x18]
add esp, 0x1c
add ecx, 0xfffffff0
call fcn.0040113c
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x2c], ebx
je 0x426930
push dword [ebp - 0x2c]
call esi
cmp dword [ebp - 0x28], ebx
je 0x42693a
push dword [ebp - 0x28]
call esi
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040113c
mov bl, byte [ebp + 0xf]
jmp 0x42680d