joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457be4
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 0x457c14
mov byte [ebp - 1], bl
jmp 0x457c77
push esi
push 0x80
call fcn.0045ad7c
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 0x457c4f
mov byte [ebp - 1], bl
jmp 0x457c62
push dword [ebp + 0x10]
push esi
call fcn.0045b0f6
test eax, eax
pop ecx
pop ecx
je 0x457c62
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x457c6d
push esi
call fcn.0045bbb4
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 0x457d07
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4b561c]
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.0045b9c0
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 0x457e2a
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 0x457e1a
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x457de0
cmp word [ebx], di
je 0x457de0
push ebx
call fcn.0045bd0b
cmp eax, 1
pop ecx
jb 0x457de0
cmp dword [ebp - 0x60], eax
jbe 0x457de0
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0045f28a
add esp, 0xc
test eax, eax
je 0x457e04
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x457db2
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0045b9c0
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x457d87
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 0x457e2a
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.004616ca
add ebp, 0x1b0
leave
ret 8
Function at 0x457e45
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4b561c]
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 0x457fbb
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.0045b9c0
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.00413a07
or ebx, 0xffffffff
cmp eax, ebx
jne 0x457f86
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.00413a07
cmp eax, ebx
jne 0x457f86
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.00413a07
cmp eax, ebx
jne 0x457f86
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.00413a07
cmp eax, ebx
je 0x457f0e
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x457f9a
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.0042f2f4
mov eax, esi
call fcn.00421fa2
mov edi, 0x4a2d4c
jmp 0x457faa
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.00413a07
cmp eax, ebx
je 0x457f30
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x457eea
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.00413a07
cmp eax, ebx
je 0x457f71
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0045b9c0
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 0x457ef2
mov edi, 0x4a6e4c
push edi
xor ecx, ecx
call fcn.00413a07
cmp eax, ebx
je 0x457efd
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.00457fd1
test eax, eax
pop ecx
pop ecx
jne 0x457ef2
xor eax, eax
jmp 0x457fb9
push 0x4a3068
push edi
push esi
call fcn.0042f2f4
push edi
xor ecx, ecx
call fcn.00413a07
cmp eax, ebx
jne 0x457f9e
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004616ca
add ebp, 0x190
leave
ret
Function at 0x457fd1
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4ac638
call fcn.00464728
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x458082
cmp dword [ebp + 0xc], eax
je 0x458082
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 0x458082
mov ebx, 0x103
cmp esi, ebx
ja 0x458082
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.0045832c
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x45807b
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0045b9c0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x45807b
cmp eax, ebx
ja 0x45807b
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0045bc42
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x45807b
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x458091
push dword [ebp - 0x1c]
call fcn.0045b76b
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.0046476d
ret

Function at 0x45809a
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 0x45813e
push edi
push 1
push esi
call fcn.0045be3f
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x45813b
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x458134
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4a3914
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x458134
cmp dword [ebp - 4], 0
je 0x458134
push 0x10
call fcn.0045acc3
mov esi, eax
test esi, esi
pop ecx
je 0x45813b
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 0x4a3068
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x45813d
push edi
call fcn.0045bbb4
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x458158
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4b561c]
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 str.ProductName
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.0045a3af
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 0x45821b
mov eax, dword [ebp - 0x220]
test eax, eax
jne 0x458232
cmp ebx, 8
jb 0x4581bb
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004616ca
leave
ret 4
mov esi, dword [ebp - 0x224]
call fcn.0042f66a
mov al, 1
jmp 0x458222

Function at 0x4598fa
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b561c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00459839
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.0045b9c0
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 0x459949
cmp dword [ebp - 0x1c], 5
jb 0x459961
jmp 0x45995d
cmp dword [ebp - 0x10], 1
jne 0x459961
cmp dword [ebp - 0x1c], 4
ja 0x45995d
jne 0x459961
cmp dword [ebp - 0x18], 0
jbe 0x459961
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4969c8
call fcn.0040d2c1
test eax, eax
jge 0x459982
mov byte [0x4baad4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004616ca
add ebp, 0x78
leave
ret
Function at 0x459b34
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4b9de8], 0
push esi
jne 0x459aa7
call fcn.004599d2
test eax, eax
je 0x459aea
mov eax, dword [0x4b9de8]
cmp eax, 1
jne 0x459ac8
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x459aea
pop esi
ret
push eax
call dword [0x4b9df0]
test eax, eax
jne 0x459b32
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 0x459aee
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4b9de8]
call dword [0x4b9df0]
mov edi, eax
test edi, edi
je 0x459b15
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x459b31
lea edi, [esi + 0xff0]
push esi
push dword [0x4b9de8]
call dword [0x4b9dec]
add esi, 0x10
cmp esi, edi
jb 0x459b1b
mov eax, esi
pop edi
pop esi
ret
jmp 0x459a94

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x45a7c2
call fcn.00463cf6
mov dword [eax], esi
call fcn.00463ce3
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0045ab73
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x45a79e
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45a7f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00463d09
pop ecx
call fcn.00463ce3
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x45a818
test al, 1
je 0x45a818
test byte [esp + 0xc], 2
je 0x45a818
call fcn.00463cf6
mov dword [eax], 5
call fcn.00463ce3
mov dword [eax], 0xd
jmp 0x45a7e8
xor eax, eax
pop esi
ret
Function at 0x45db04
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 0x45db41
cmp dword [ebp + 0x14], edi
je 0x45db41
cmp ecx, edi
jne 0x45db48
call fcn.00463ce3
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0045ab73
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x45db5c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x45db7d
cmp ebx, 0xffffffff
je 0x45db6c
push ebx
push edi
push ecx
call fcn.0045b9c0
add esp, 0xc
cmp esi, edi
je 0x45db29
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x45db29
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x45db99
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x45dba0
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x45dc91
test word [esi + 0xc], 0x10c
je 0x45dbf4
mov eax, dword [esi + 4]
test eax, eax
je 0x45dbf4
jl 0x45dcf2
cmp ebx, eax
mov edi, ebx
jb 0x45dbc5
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x45dc99
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0045bb39
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 0x45dc89
cmp ebx, dword [ebp - 0xc]
jb 0x45dc61
cmp dword [ebp - 0xc], 0
je 0x45dc1e
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x45dc13
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x45dc1a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x45dc29
mov eax, SysReAllocString
cmp ebx, eax
ja 0x45dc29
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x45dcc5
push eax
push dword [ebp - 8]
push esi
call fcn.0046ae89
pop ecx
push eax
call fcn.0046ad8c
add esp, 0xc
test eax, eax
je 0x45dd04
cmp eax, 0xffffffff
je 0x45dcf2
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x45dc89
push esi
call fcn.0046a6ab
cmp eax, 0xffffffff
pop ecx
je 0x45dcf6
cmp dword [ebp - 4], 0
je 0x45dcc5
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 0x45dba8
mov eax, dword [ebp + 0x14]
jmp 0x45db43
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x45dcb0
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0045b9c0
add esp, 0xc
call fcn.00463ce3
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x45db39
cmp dword [ebp + 0xc], 0xffffffff
je 0x45dcdb
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0045b9c0
add esp, 0xc
call fcn.00463ce3
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x45db39
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x45db43
or dword [esi + 0xc], 0x10
jmp 0x45dcf6
Function at 0x4616ca
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b561c]
jne 0x4616d4
repz ret
jmp fcn.0046f00c

Function at 0x466b76
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 + 0x4b5c50]
je 0x466b91
inc edi
cmp edi, 0x17
jb 0x466b82
cmp edi, 0x17
jae 0x466d11
push ebp
push 3
call fcn.00471999
cmp eax, 1
pop ecx
je 0x466cdd
push 3
call fcn.00471999
test eax, eax
pop ecx
jne 0x466bc5
cmp dword [0x4b51f0], 1
je 0x466cdd
cmp ebx, 0xfc
je 0x466d10
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4b9f10
push ebp
call fcn.0045fd64
add esp, 0xc
test eax, eax
je 0x466bfb
push esi
push esi
push esi
push esi
push esi
call fcn.0045aa77
add esp, 0x14
push 0x104
mov esi, 0x4b9f29
push esi
push 0
mov byte [0x4ba02d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x466c3f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0045fd64
add esp, 0xc
test eax, eax
je 0x466c3f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0045aa77
add esp, 0x14
push esi
call fcn.0045b6e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x466c84
push esi
call fcn.0045b6e0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ba224
push 0x497afc
sub ecx, eax
push ecx
push eax
call fcn.0045fe8e
add esp, 0x14
test eax, eax
je 0x466c84
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0045aa77
add esp, 0x14
jmp 0x466c86
xor esi, esi
push 0x497af8
push ebx
push ebp
call fcn.0046fc81
add esp, 0xc
test eax, eax
je 0x466ca6
push esi
push esi
push esi
push esi
push esi
call fcn.0045aa77
add esp, 0x14
push dword [edi*8 + 0x4b5c54]
push ebx
push ebp
call fcn.0046fc81
add esp, 0xc
test eax, eax
je 0x466cc8
push esi
push esi
push esi
push esi
push esi
call fcn.0045aa77
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004717dc
add esp, 0xc
jmp 0x466d10
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x466d10
cmp ebp, 0xffffffff
je 0x466d10
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b5c54]
push dword [esi]
call fcn.0045b6e0
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 0x4717dc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004650bd
xor ebx, ebx
cmp dword [0x4ba9d4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4718b2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x471992
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x471992
push eax
call fcn.0046504f
mov dword [esp], 0x498720
push edi
mov dword [0x4ba9d4], eax
call esi
push eax
call fcn.0046504f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ba9d8], eax
call esi
push eax
call fcn.0046504f
mov dword [0x4ba9dc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00465788
test eax, eax
pop ecx
pop ecx
je 0x471880
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045aa77
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4718b2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0046504f
cmp eax, ebx
pop ecx
mov dword [0x4ba9e4], eax
je 0x4718b2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0046504f
pop ecx
mov dword [0x4ba9e0], eax
mov eax, dword [0x4ba9e0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x471937
cmp dword [0x4ba9e4], ecx
je 0x471937
push eax
call fcn.004650c6
push dword [0x4ba9e4]
mov esi, eax
call fcn.004650c6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x471937
cmp edi, ebx
je 0x471937
call esi
cmp eax, ebx
je 0x471904
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x471904
test byte [ebp - 0x18], 1
jne 0x471937
lea eax, [ebp - 0x10]
push eax
call fcn.004657bf
test eax, eax
pop ecx
je 0x47191f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0045aa77
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x47192e
or dword [ebp + 0x10], 0x200000
jmp 0x471972
or dword [ebp + 0x10], 0x40000
jmp 0x471972
mov eax, dword [0x4ba9d8]
cmp eax, dword [ebp - 8]
je 0x471972
push eax
call fcn.004650c6
cmp eax, ebx
pop ecx
je 0x471972
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x471972
mov eax, dword [0x4ba9dc]
cmp eax, dword [ebp - 8]
je 0x471972
push eax
call fcn.004650c6
cmp eax, ebx
pop ecx
je 0x471972
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ba9d4]
call fcn.004650c6
cmp eax, ebx
pop ecx
je 0x471992
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x471994
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x477bcf
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4b561c]
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 0x477c10
cmp byte [ebp - 0x194], 2
jne 0x477c0a
cmp byte [ebp - 0x193], 2
je 0x477c13
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004616ca
leave
ret
Function at 0x480085
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 0x4800b4
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 0x4801c4
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
test ecx, ecx
je 0x4801e4
push dword [esi + 0x134]
push dword [esp + 0xc]
push dword [esp + 0xc]
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x48021d
cmp eax, 2
jg 0x48021d
push dword [esi + 0x130]
imul eax, eax, 3
push 1
add eax, 0x499910
push 2
push eax
call fcn.0046082a
push dword [esi + 0x130]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0046082a
add esp, 0x20
xor eax, eax
ret

Function at 0x4803cc
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 + 0x154]
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 0x48043e
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x480418
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x48043d
push ebx
push esi
call fcn.00484db3
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.0048033e
mov eax, dword [esi]
mov dword [eax + 0x860c], ebx
add esp, 0x14
mov dword [edi], 0x37
pop ebx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
ret

Function at 0x481cdb
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push edi
xor eax, eax
xor edi, edi
cmp dword [esi + 0x46c], edi
push 4
setne al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x481d1b
push ebx
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.004802d4
add esp, 0xc
jmp 0x481d86
push dword [esi + 0x470]
mov dword [ebp - 0x14], 1
call fcn.004889c1
imul eax, eax, 0x3e8
push dword [esi + 0x474]
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
call fcn.004889c1
imul eax, eax, 0x3e8
pop ecx
pop ecx
push edi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push 0xc
lea eax, [ebp - 0x14]
push eax
push 0x98000004
push ebx
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x481d86
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ebx
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.004802d4
add esp, 0x10
pop edi
leave
ret