joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4809e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x480a10
mov byte [ebp - 1], bl
jmp 0x480a73
push esi
push 0x80
call fcn.00483abf
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x480a4b
mov byte [ebp - 1], bl
jmp 0x480a5e
push dword [ebp + 0x10]
push esi
call fcn.00483a12
test eax, eax
pop ecx
pop ecx
je 0x480a5e
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x480a69
push esi
call fcn.00483fb2
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x480b03
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4e430c]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
mov eax, dword [ebp + 0x1b8]
push edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1bc]
xor edi, edi
push 0x206
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5a]
push edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x68], edi
mov word [ebp - 0x5c], di
call fcn.00482db0
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetEnumPCI
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x60], 0x104
mov dword [ebp - 0x70], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x480c26
mov eax, dword [ebp - 0x70]
push ebx
mov dword [ebp - 0x64], eax
push esi
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x68]
test eax, eax
jne 0x480c16
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x480bdc
cmp word [ebx], di
je 0x480bdc
push ebx
call fcn.004833d5
cmp eax, 1
pop ecx
jb 0x480bdc
cmp dword [ebp - 0x60], eax
jbe 0x480bdc
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004885ed
add esp, 0xc
test eax, eax
je 0x480c00
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x480bae
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00482db0
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x480b83
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x78]
shl esi, 6
mov eax, dword [esi + eax + 4]
mov dword [ecx], eax
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x64], edi
pop esi
pop ebx
je 0x480c26
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop edi
call fcn.0048ad8d
add ebp, 0x1b0
leave
ret 8
Function at 0x480c41
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4e430c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, ecx
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
je 0x480db7
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.00482db0
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.0041528e
or ebx, 0xffffffff
cmp eax, ebx
jne 0x480d82
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.0041528e
cmp eax, ebx
jne 0x480d82
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.0041528e
cmp eax, ebx
jne 0x480d82
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.0041528e
cmp eax, ebx
je 0x480d0a
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x480d96
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.0046ef5d
mov eax, esi
call fcn.004278ac
mov edi, 0x4ca9ec
jmp 0x480da6
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.0041528e
cmp eax, ebx
je 0x480d2c
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x480ce6
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.0041528e
cmp eax, ebx
je 0x480d6d
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00482db0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x480cee
mov edi, 0x4cf294
push edi
xor ecx, ecx
call fcn.0041528e
cmp eax, ebx
je 0x480cf9
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.00480dcd
test eax, eax
pop ecx
pop ecx
jne 0x480cee
xor eax, eax
jmp 0x480db5
push 0x4cad08
push edi
push esi
call fcn.0046ef5d
push edi
xor ecx, ecx
call fcn.0041528e
cmp eax, ebx
jne 0x480d9a
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0048ad8d
add ebp, 0x190
leave
ret
Function at 0x480dcd
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4d73f0
call fcn.0048dabc
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x480e7e
cmp dword [ebp + 0xc], eax
je 0x480e7e
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x480e7e
mov ebx, 0x103
cmp esi, ebx
ja 0x480e7e
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048137c
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x480e77
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.00482db0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x480e77
cmp eax, ebx
ja 0x480e77
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004865ae
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x480e77
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x480e8d
push dword [ebp - 0x1c]
call fcn.00482e2a
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.0048db01
ret

Function at 0x480e96
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x480f3a
push edi
push 1
push esi
call fcn.0048352a
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x480f37
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x480f30
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4cb5e0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x480f30
cmp dword [ebp - 4], 0
je 0x480f30
push 0x10
call fcn.00456e9f
mov esi, eax
test esi, esi
pop ecx
je 0x480f37
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
and dword [eax], 0
push eax
push 0x4cad08
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x480f39
push edi
call fcn.00483fb2
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x480f54
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4e430c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov ax, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [edi + 8]
push esi
mov word [ebp - 0x12], ax
call ebx
mov word [ebp - 0x10], ax
mov ax, word [edi + 8]
mov word [ebp - 0xe], ax
mov ax, word [edi + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x4e4
call ebx
mov word [ebp - 8], ax
mov word [ebp - 6], 0x4e4
xor ebx, ebx
mov esi, 0x104
movzx eax, word [ebp + ebx*2 - 0x14]
movzx ecx, word [ebp + ebx*2 - 0x12]
inc ebx
push 0x4cb6f8
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push str.StringFileInfo_04x_04x_ls
push esi
lea eax, [ebp - 0x21c]
push esi
push eax
inc ebx
call fcn.00483948
and dword [ebp - 0x220], 0
add esp, 0x1c
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x481016
cmp dword [ebp - 0x220], 0
jne 0x48102d
cmp ebx, 8
jb 0x480fb7
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ad8d
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.004833d5
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.00446240
mov al, 1
jmp 0x48101d

Function at 0x481e75
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4e430c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00481db4
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00482db0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x481ec4
cmp dword [ebp - 0x1c], 5
jb 0x481edc
jmp 0x481ed8
cmp dword [ebp - 0x10], 1
jne 0x481edc
cmp dword [ebp - 0x1c], 4
ja 0x481ed8
jne 0x481edc
cmp dword [ebp - 0x18], 0
jbe 0x481edc
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4bca38
call fcn.00430560
test eax, eax
jge 0x481efd
mov byte [0x4eb304], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048ad8d
add ebp, 0x78
leave
ret
Function at 0x4820af
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ea5e0], 0
push esi
jne 0x482022
call fcn.00481f4d
test eax, eax
je 0x482065
mov eax, dword [0x4ea5e0]
cmp eax, 1
jne 0x482043
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x482065
pop esi
ret
push eax
call dword [0x4ea5e8]
test eax, eax
jne 0x4820ad
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x482069
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4ea5e0]
call dword [0x4ea5e8]
mov edi, eax
test edi, edi
je 0x482090
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4820ac
lea edi, [esi + 0xff0]
push esi
push dword [0x4ea5e0]
call dword [0x4ea5e4]
add esi, 0x10
cmp esi, edi
jb 0x482096
mov eax, esi
pop edi
pop esi
ret
jmp 0x48200f

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x486540
call fcn.0048d3b9
mov dword [eax], esi
call fcn.0048d3a6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00484431
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x48651c
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48656f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0048d3cc
pop ecx
call fcn.0048d3a6
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x486596
test al, 1
je 0x486596
test byte [esp + 0xc], 2
je 0x486596
call fcn.0048d3b9
mov dword [eax], 5
call fcn.0048d3a6
mov dword [eax], 0xd
jmp 0x486566
xor eax, eax
pop esi
ret
Function at 0x486750
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x48678d
cmp dword [ebp + 0x14], edi
je 0x48678d
cmp ecx, edi
jne 0x486794
call fcn.0048d3a6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00484431
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4867a8
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4867c9
cmp ebx, 0xffffffff
je 0x4867b8
push ebx
push edi
push ecx
call fcn.00482db0
add esp, 0xc
cmp esi, edi
je 0x486775
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x486775
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4867e5
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4867ec
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4868dd
test word [esi + 0xc], 0x10c
je 0x486840
mov eax, dword [esi + 4]
test eax, eax
je 0x486840
jl 0x48693e
cmp ebx, eax
mov edi, ebx
jb 0x486811
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4868e5
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00483997
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4868d5
cmp ebx, dword [ebp - 0xc]
jb 0x4868ad
cmp dword [ebp - 0xc], 0
je 0x48686a
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x48685f
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x486866
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x486875
mov eax, SysReAllocString
cmp ebx, eax
ja 0x486875
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x486911
push eax
push dword [ebp - 8]
push esi
call fcn.00488821
pop ecx
push eax
call fcn.004948b8
add esp, 0xc
test eax, eax
je 0x486950
cmp eax, 0xffffffff
je 0x48693e
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4868d5
push esi
call fcn.004941d7
cmp eax, 0xffffffff
pop ecx
je 0x486942
cmp dword [ebp - 4], 0
je 0x486911
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4867f4
mov eax, dword [ebp + 0x14]
jmp 0x48678f
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4868fc
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00482db0
add esp, 0xc
call fcn.0048d3a6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x486785
cmp dword [ebp + 0xc], 0xffffffff
je 0x486927
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00482db0
add esp, 0xc
call fcn.0048d3a6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x486785
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x48678f
or dword [esi + 0xc], 0x10
jmp 0x486942
Function at 0x48ad8d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e430c]
jne 0x48ad97
repz ret
jmp fcn.004997ec

Function at 0x48ea6b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4e45a8]
je 0x48ea86
inc edi
cmp edi, 0x17
jb 0x48ea77
cmp edi, 0x17
jae 0x48ec06
push ebp
push 3
call fcn.0049b579
cmp eax, 1
pop ecx
je 0x48ebd2
push 3
call fcn.0049b579
test eax, eax
pop ecx
jne 0x48eaba
cmp dword [0x4e4160], 1
je 0x48ebd2
cmp ebx, 0xfc
je 0x48ec05
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ea6c0
push ebp
call fcn.00489860
add esp, 0xc
test eax, eax
je 0x48eaf0
push esi
push esi
push esi
push esi
push esi
call fcn.00484335
add esp, 0x14
push 0x104
mov esi, 0x4ea6d9
push esi
push 0
mov byte [0x4ea7dd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48eb34
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00489860
add esp, 0xc
test eax, eax
je 0x48eb34
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00484335
add esp, 0x14
push esi
call fcn.00483230
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x48eb79
push esi
call fcn.00483230
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ea9d4
push 0x4bdb6c
sub ecx, eax
push ecx
push eax
call fcn.00489d28
add esp, 0x14
test eax, eax
je 0x48eb79
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00484335
add esp, 0x14
jmp 0x48eb7b
xor esi, esi
push 0x4bdb68
push ebx
push ebp
call fcn.0049a85f
add esp, 0xc
test eax, eax
je 0x48eb9b
push esi
push esi
push esi
push esi
push esi
call fcn.00484335
add esp, 0x14
push dword [edi*8 + 0x4e45ac]
push ebx
push ebp
call fcn.0049a85f
add esp, 0xc
test eax, eax
je 0x48ebbd
push esi
push esi
push esi
push esi
push esi
call fcn.00484335
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049b3bc
add esp, 0xc
jmp 0x48ec05
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x48ec05
cmp ebp, 0xffffffff
je 0x48ec05
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e45ac]
push dword [esi]
call fcn.00483230
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x49b3bc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0048df0e
xor ebx, ebx
cmp dword [0x4eb1c0], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x49b492
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49b572
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x49b572
push eax
call fcn.0048dea0
mov dword [esp], 0x4be808
push edi
mov dword [0x4eb1c0], eax
call esi
push eax
call fcn.0048dea0
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4eb1c4], eax
call esi
push eax
call fcn.0048dea0
mov dword [0x4eb1c8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0048d493
test eax, eax
pop ecx
pop ecx
je 0x49b460
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00484335
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x49b492
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0048dea0
cmp eax, ebx
pop ecx
mov dword [0x4eb1d0], eax
je 0x49b492
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0048dea0
pop ecx
mov dword [0x4eb1cc], eax
mov eax, dword [0x4eb1cc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49b517
cmp dword [0x4eb1d0], ecx
je 0x49b517
push eax
call fcn.0048df17
push dword [0x4eb1d0]
mov esi, eax
call fcn.0048df17
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49b517
cmp edi, ebx
je 0x49b517
call esi
cmp eax, ebx
je 0x49b4e4
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49b4e4
test byte [ebp - 0x18], 1
jne 0x49b517
lea eax, [ebp - 0x10]
push eax
call fcn.0048d4ca
test eax, eax
pop ecx
je 0x49b4ff
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00484335
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49b50e
or dword [ebp + 0x10], 0x200000
jmp 0x49b552
or dword [ebp + 0x10], 0x40000
jmp 0x49b552
mov eax, dword [0x4eb1c4]
cmp eax, dword [ebp - 8]
je 0x49b552
push eax
call fcn.0048df17
cmp eax, ebx
pop ecx
je 0x49b552
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49b552
mov eax, dword [0x4eb1c8]
cmp eax, dword [ebp - 8]
je 0x49b552
push eax
call fcn.0048df17
cmp eax, ebx
pop ecx
je 0x49b552
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4eb1c0]
call fcn.0048df17
cmp eax, ebx
pop ecx
je 0x49b572
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49b574
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a0db4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4e430c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4a0df5
cmp byte [ebp - 0x194], 2
jne 0x4a0def
cmp byte [ebp - 0x193], 2
je 0x4a0df8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ad8d
leave
ret

Function at 0x4a8aa6
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x4a8ad5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x4a8bf6
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4a8c16
push dword [esi + 0xf4]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x4a8c4f
cmp eax, 2
jg 0x4a8c4f
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4bfd10
push 2
push eax
call fcn.0048904c
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0048904c
add esp, 0x20
xor eax, eax
ret

Function at 0x4a8e15
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x12c]
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0x18]
and dword [edi], 0
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
jne 0x4a8e87
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4a8e61
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4a8e86
push ebx
push esi
call fcn.004b1fc6
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004a8d81
mov eax, dword [esi]
mov dword [eax + 0x855c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret