joyce8/EMBER2024-capa huggingface dataset:
Function at 0x470738
Capabilities:
Hide graphical window

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
mov eax, ebx
call fcn.00470198
test byte [ebx + 0x285], 4
jne 0x4707cd
mov edx, esp
mov eax, ebx
call fcn.004498d8
push esp
mov eax, ebx
call fcn.00451e8c
push eax
push 0
mov eax, ebx
test eax, eax
je 0x47076d
sub eax, 0xfffffd34
push eax
push 0
push 0xfffffffffffffffb
mov eax, dword [ebx + 0x260]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
cmp dword [ebx + 0x274], 0
jne 0x47079e
mov ecx, dword [0x4b7ef8]
mov dl, 1
mov eax, dword [0x46b09c]
call fcn.0040dc50
call fcn.00404abc
mov eax, ebx
call fcn.00470d10
cmp byte [ebx + 0x57], 0
jne 0x4707d4
mov eax, ebx
call fcn.0045209c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4707d4
push 0
mov eax, ebx
call fcn.0045209c
push eax
call sub.user32.dll_ShowWindow
jmp 0x4707d4
mov eax, ebx
call fcn.0044e288
add esp, 0x10
pop ebx
ret

Function at 0x47552c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x475593
push dword fs:[eax]
mov dword fs:[eax], esp
push esi
call sub.user32.dll_GetWindowTextLengthA
mov ebx, eax
lea edi, [ebx + 1]
mov edx, edi
lea eax, [ebp - 4]
call fcn.00405864
push edi
mov eax, dword [ebp - 4]
call fcn.004055d4
push eax
push esi
call sub.user32.dll_GetWindowTextA
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00405198
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47559a
lea eax, [ebp - 4]
call fcn.00405144
ret

Function at 0x479eec
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
push 0x40
push 0x1000
push pe_nt_image_headers32
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x479f76
xor edx, edx
push ebp
push 0x479f57
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov dword [eax], 0x448b5050
mov dword [eax + 4], 0x44890824
mov dword [eax + 8], 0x58b0424
lea edx, [ebx + 4]
mov dword [eax + 0xc], edx
mov dword [eax + 0x10], 0x8244489
mov dword [eax + 0x14], 0x25ff9058
mov dword [eax + 0x18], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x479f76
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47ddb8
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47dde6
mov eax, ebx
call fcn.0047e86c
cmp dword [ebx + 0x40], 0
je 0x47dddf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47de57
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47de49
cmp dword [ebx + 8], 0
je 0x47de08
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47de1a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47de49
cmp dword [ebx + 8], 0
je 0x47ddfb
cmp eax, 3
je 0x47de2d
dec eax
jne 0x47ddfb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47ddfb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47ddfb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47de75
cmp dword [ebx + 0x14], 0xcc
je 0x47de75
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047de80
pop ebx
ret

Function at 0x48e564
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055c4
mov eax, dword [ebp - 8]
call fcn.004055c4
mov eax, dword [ebp - 0xc]
call fcn.004055c4
xor eax, eax
push ebp
push 0x48e693
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 2
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.004055d4
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x34], 3
mov eax, dword [ebp - 0xc]
call fcn.004055d4
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
call fcn.0043b7ec
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004055d4
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48e678
xor eax, eax
push ebp
push 0x48e671
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
push 0
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x48e651
push 0
push 0
push 0x25
push 0
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x48e655
xor eax, eax
jmp 0x48e657
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e678
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e69a
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405168
ret
Function at 0x48e6a4
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004055c4
mov eax, dword [ebp - 8]
call fcn.004055c4
mov eax, dword [ebp - 0xc]
call fcn.004055c4
mov eax, dword [ebp + 0xc]
call fcn.004055c4
xor eax, eax
push ebp
push 0x48e80e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0xd], 0
mov ebx, 0x14
mov dword [ebp - 0x28], 0x14
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 3
mov dword [ebp - 0x4c], 1
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x40], 2
mov eax, dword [ebp - 8]
call fcn.004055d4
mov esi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x34], 3
mov eax, 0x48e824
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x18], eax
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
call fcn.004055d4
push eax
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x48e7eb
xor edx, edx
push ebp
push 0x48e7e4
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
push 3
mov eax, dword [ebp + 0xc]
call fcn.004055d4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004055d4
push eax
movzx eax, word [ebp + 8]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetConnectA
test eax, eax
je 0x48e7cd
push ebx
lea eax, [ebp - 0x28]
push eax
push 0x4b
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x48e7c4
push 0
push 0
push 0x25
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetSetOptionA
test eax, eax
jne 0x48e7c8
xor eax, eax
jmp 0x48e7ca
mov al, 1
mov byte [ebp - 0xd], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e7eb
mov eax, dword [ebp - 0x14]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e815
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405168
lea eax, [ebp + 0xc]
call fcn.00405144
ret
Function at 0x48e82c
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
mov byte [ebp - 1], 0
mov ebx, 0x14
mov dword [ebp - 0x1c], 0x14
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x40], 1
mov dword [ebp - 0x3c], 3
mov dword [ebp - 0x34], 2
mov eax, 0x48e8f4
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], 3
mov eax, 0x48e8f8
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 1
push 0x48e8f4
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x48e8eb
xor eax, eax
push ebp
push 0x48e8e4
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
lea eax, [ebp - 0x1c]
push eax
push 0x4b
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
push 0
push 0
push 0x25
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetSetOptionA
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e8eb
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
movzx eax, byte [ebp - 1]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x48eb64
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
push ebx
xor edx, edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x48ed76
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x20], 0x105
mov eax, dword [ebp - 0x20]
call fcn.00402f9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x48ebe2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x48ebcc
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x10]
call fcn.0040533c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48ebe9
mov eax, dword [ebp - 0x10]
call fcn.00402fb8
ret

Function at 0x49014c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov bl, 2
lea eax, [ebp - 0xa]
xor ecx, ecx
mov edx, 0xa
call fcn.0040396c
push 0xa
lea eax, [ebp - 0xa]
push eax
push 0xd
push 0x400
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
je 0x490186
cmp byte [ebp - 0xa], 0x31
jne 0x490184
mov bl, 1
jmp 0x490186
xor ebx, ebx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x491a1c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 4], edx
mov esi, eax
xor ebx, ebx
mov eax, esi
call fcn.0045243c
test al, al
je 0x491adb
mov byte [ebp - 9], 0
xor ebx, ebx
call sub.kernel32.dll_GetTickCount
mov dword [ebp - 8], eax
jmp 0x491ab9
cmp word [esi + 0x65a], 0
je 0x491a6d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 9]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [esi + 0x65c]
call dword [esi + 0x658]
movzx eax, byte [esi + 0x650]
or al, byte [ebp - 9]
jne 0x491a90
cmp dword [ebp - 4], 0
jbe 0x491a8c
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
ja 0x491a90
xor ebx, ebx
jmp 0x491a92
mov bl, 1
test bl, bl
jne 0x491adb
mov eax, dword [0x4b8038]
mov eax, dword [eax]
cmp byte [eax + 0xa4], 0
jne 0x491adb
mov eax, dword [0x4b8038]
mov eax, dword [eax]
call fcn.004687e0
push 1
call sub.kernel32.dll_Sleep_2
test esi, esi
je 0x491adb
cmp byte [esi + 0x5f0], 0
jne 0x491adb
mov edx, 0xfffffdf3
mov eax, esi
call fcn.00470b48
cmp eax, 4
jne 0x491a4a
mov byte [esi + 0x650], 0
test bl, bl
sete al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a1860
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x4a18fb
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jle 0x4a18e5
call fcn.0049ec64
cmp eax, dword [esi]
jae 0x4a18c4
mov edx, dword [esi]
sub edx, eax
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jbe 0x4a18c4
mov eax, dword [ebp - 8]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0xc]
call fcn.0040a10c
mov ecx, dword [ebp - 0xc]
mov dl, 0xc
mov eax, edi
call fcn.004a3008
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_Sleep_1
fild dword [ebp - 4]
mov dword [ebp - 0x10], ebx
fild dword [ebp - 0x10]
fdivp st(1)
fmul dword [0x4a190c]
call fcn.00403478
mov ebx, eax
call fcn.0049ec64
add ebx, eax
mov dword [esi], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1902
lea eax, [ebp - 0xc]
call fcn.00405144
ret

Function at 0x4ab514
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4ab52f
add esp, 0xfffffff0
call fcn.004044a8
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00406f7c
xor eax, eax
push ebp
push 0x4ab631
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
call fcn.00407018
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
lea eax, [ebp - 0xc]
call fcn.0040594c
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
call fcn.00407018
mov edx, dword [ebp - 0xc]
lea eax, [esi + 0x14]
call fcn.004053cc
lea eax, [ebp - 0x10]
call fcn.0040594c
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x28]
call fcn.00407018
mov edx, dword [ebp - 0x10]
lea eax, [esi + 0x18]
call fcn.004053cc
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x34]
call fcn.00407018
mov eax, dword [ebp - 8]
mov dword [esi + 0xc], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
call fcn.00407018
mov eax, dword [ebp - 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.00407018
mov eax, dword [ebp - 8]
mov dword [esi + 0x20], eax
lea edx, [ebp - 0x14]
mov eax, esi
call fcn.004ab658
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov eax, esi
call fcn.0040db94
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ab638
lea eax, [ebp - 0x14]
call fcn.00405144
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405964
lea eax, [ebp - 4]
call fcn.00406f08
ret
Function at 0x4b0848
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
movzx ebx, byte [0x4b0884]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4b085f
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4b086e
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4b087d
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4b1c30
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4b8038]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4b1c56
push 0
mov eax, dword [0x4b8038]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4018fd
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x40748c], eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push dword [0x407078]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
cmp byte [eax], 0x22
mov dl, 0x20
jne 0x40193a
add dl, 2
inc eax
jmp 0x401942
inc eax
cmp cl, dl
je 0x40194a
mov cl, byte [eax]
test cl, cl
jne 0x40193d
jmp 0x401979
mov cl, byte [eax]
cmp cl, 0x20
je 0x401960
cmp cl, 0x5c
je 0x401960
cmp cl, 0x2f
je 0x401960
cmp cl, 0x2d
jne 0x401963
inc eax
jmp 0x40194a
mov cl, byte [eax]
mov byte [ebp - 4], cl
inc eax
cmp byte [eax], 0x20
je 0x401968
push eax
push dword [ebp - 4]
call fcn.004013e8
pop ecx
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4023b8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x40743c], esi
push edi
jne 0x4023d8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x407438], esi
mov byte [0x407434], al
jne 0x40243e
mov ecx, dword [0x4076e8]
test ecx, ecx
je 0x40241f
mov eax, dword [0x4076e4]
sub eax, 4
cmp eax, ecx
jmp 0x402418
mov eax, dword [eax]
test eax, eax
je 0x40240a
call eax
mov eax, dword [0x4076e4]
sub eax, 4
cmp eax, dword [0x4076e8]
mov dword [0x4076e4], eax
jae 0x402402
mov eax, 0x40701c
mov esi, 0x407020
cmp eax, esi
mov edi, eax
jae 0x40243e
mov eax, dword [edi]
test eax, eax
je 0x402437
call eax
add edi, 4
cmp edi, esi
jb 0x40242f
mov eax, 0x407024
mov esi, 0x407028
cmp eax, esi
mov edi, eax
jae 0x40245d
mov eax, dword [edi]
test eax, eax
je 0x402456
call eax
add edi, 4
cmp edi, esi
jb 0x40244e
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x402478
push dword [ebp + 8]
mov dword [0x40743c], 1
call fcn.00402388
pop ecx
pop ebp
ret
Function at 0x402a87
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402bc0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402b1c
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x4073fc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x402b1c
cmp eax, 1
je 0x402b34
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402b1c
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x402af1
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x402b18
xor eax, eax
inc eax
jmp 0x402b50
cmp esi, ebx
jae 0x402b20
xor eax, eax
jmp 0x402b50
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4073fc]
jmp 0x402b36
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4040a8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x407474], ebx
push esi
push edi
jne 0x404128
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x404163
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x407474], eax
je 0x404163
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x407478], eax
call esi
cmp dword [0x4073fc], 2
mov dword [0x40747c], eax
jne 0x404128
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x407484], eax
je 0x404128
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x407480], eax
mov eax, dword [0x407480]
test eax, eax
je 0x40416d
call eax
test eax, eax
je 0x404154
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x407484]
test eax, eax
je 0x404154
test byte [ebp - 8], 1
jne 0x40416d
cmp dword [0x407408], 4
jb 0x404167
or byte [ebp + 0x12], 0x20
jmp 0x40418c
xor eax, eax
jmp 0x40419c
or byte [ebp + 0x12], 4
jmp 0x40418c
mov eax, dword [0x407478]
test eax, eax
je 0x40418c
call eax
mov ebx, eax
test ebx, ebx
je 0x40418c
mov eax, dword [0x40747c]
test eax, eax
je 0x40418c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x407474]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404790
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push 8
pop ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.00401d50
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
push eax
call fcn.00401d50
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
call fcn.00401d50
push 1
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xfc]
push eax
call fcn.00404a7d
mov eax, dword [ebp + 0x14]
add esp, 0x34
shr eax, 3
je 0x40482f
push esi
push edi
mov edi, dword [ebp + 0x10]
lea esi, [ebp - 8]
sub esi, edi
mov dword [ebp + 0x14], eax
push ebx
lea eax, [ebp - 0x10]
push edi
push eax
call fcn.00401d50
lea eax, [ebp - 0xfc]
push eax
push edi
call fcn.00404bc4
add esp, 0x14
mov eax, ebx
mov cl, byte [esi + edi]
xor byte [edi], cl
inc edi
dec eax
jne 0x40480c
push ebx
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00401d50
add esp, 0xc
sub esi, ebx
dec dword [ebp + 0x14]
jne 0x4047ef
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40484e
Capabilities:
Create process on windows

Disassembly:
push 5
xor eax, eax
push eax
push eax
push dword [esp + 0x10]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret

Function at 0x4048b4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
movsx ecx, byte [ebp + 0xc]
shl ecx, 8
or ecx, 0x200020
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp + eax - 0x260], ecx
je 0x40490e
add eax, 3
mov ecx, 0x208
sub ecx, eax
push ecx
push dword [ebp + 0x10]
lea eax, [ebp + eax - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x404983
cmp byte [ebp + 0x14], bl
je 0x404971
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x40496e
cmp dword [ebp - 4], 0x103
jne 0x404971
mov dword [ebp - 4], ebx
push esi
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
pop esi
mov eax, dword [ebp - 4]
pop ebx
leave
ret