joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483a7f
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 0x483aaf
mov byte [ebp - 1], bl
jmp 0x483b12
push esi
push 0x80
call fcn.00486776
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 0x483aea
mov byte [ebp - 1], bl
jmp 0x483afd
push dword [ebp + 0x10]
push esi
call fcn.004859a0
test eax, eax
pop ecx
pop ecx
je 0x483afd
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x483b08
push esi
call fcn.00485be5
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 0x483ba2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x4e731c]
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.00486640
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 0x483cc5
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 0x483cb5
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x483c7b
cmp word [ebx], di
je 0x483c7b
push ebx
call fcn.00486c84
cmp eax, 1
pop ecx
jb 0x483c7b
cmp dword [ebp - 0x60], eax
jbe 0x483c7b
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0048b3e5
add esp, 0xc
test eax, eax
je 0x483c9f
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x483c4d
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00486640
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x483c22
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 0x483cc5
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.0048db8d
add ebp, 0x1b0
leave
ret 8
Function at 0x483ce0
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x4e731c]
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 0x483e56
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.00486640
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.0041531e
or ebx, 0xffffffff
cmp eax, ebx
jne 0x483e21
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.0041531e
cmp eax, ebx
jne 0x483e21
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.0041531e
cmp eax, ebx
jne 0x483e21
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.0041531e
cmp eax, ebx
je 0x483da9
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x483e35
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.00471ec0
mov eax, esi
call fcn.004276a7
mov edi, 0x4cde7c
jmp 0x483e45
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.0041531e
cmp eax, ebx
je 0x483dcb
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x483d85
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.0041531e
cmp eax, ebx
je 0x483e0c
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00486640
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 0x483d8d
mov edi, 0x4d251c
push edi
xor ecx, ecx
call fcn.0041531e
cmp eax, ebx
je 0x483d98
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.00483e6c
test eax, eax
pop ecx
pop ecx
jne 0x483d8d
xor eax, eax
jmp 0x483e54
push 0x4c9eb8
push edi
push esi
call fcn.00471ec0
push edi
xor ecx, ecx
call fcn.0041531e
cmp eax, ebx
jne 0x483e39
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0048db8d
add ebp, 0x190
leave
ret
Function at 0x483e6c
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4da610
call fcn.004908bc
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x483f1d
cmp dword [ebp + 0xc], eax
je 0x483f1d
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 0x483f1d
mov ebx, 0x103
cmp esi, ebx
ja 0x483f1d
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.004841da
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x483f16
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.00486640
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x483f16
cmp eax, ebx
ja 0x483f16
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0048957c
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x483f16
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x483f2c
push dword [ebp - 0x1c]
call fcn.00486839
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.00490901
ret

Function at 0x483f35
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 0x483fd9
push edi
push 1
push esi
call fcn.00485d91
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x483fd6
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x483fcf
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4ce818
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x483fcf
cmp dword [ebp - 4], 0
je 0x483fcf
push 0x10
call fcn.00459afb
mov esi, eax
test esi, esi
pop ecx
je 0x483fd6
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 0x4c9eb8
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x483fd8
push edi
call fcn.00485be5
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x483ff3
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4e731c]
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 0x4ce930
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.0048715d
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 0x4840b5
cmp dword [ebp - 0x220], 0
jne 0x4840cc
cmp ebx, 8
jb 0x484056
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0048db8d
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.00486c84
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.00448670
mov al, 1
jmp 0x4840bc

Function at 0x484c55
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4e731c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00484b94
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.00486640
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 0x484ca4
cmp dword [ebp - 0x1c], 5
jb 0x484cbc
jmp 0x484cb8
cmp dword [ebp - 0x10], 1
jne 0x484cbc
cmp dword [ebp - 0x1c], 4
ja 0x484cb8
jne 0x484cbc
cmp dword [ebp - 0x18], 0
jbe 0x484cbc
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4bfa38
call fcn.00432e5a
test eax, eax
jge 0x484cdd
mov byte [0x4ee308], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048db8d
add ebp, 0x78
leave
ret
Function at 0x484e8f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4ed5d8], 0
push esi
jne 0x484e02
call fcn.00484d2d
test eax, eax
je 0x484e45
mov eax, dword [0x4ed5d8]
cmp eax, 1
jne 0x484e23
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x484e45
pop esi
ret
push eax
call dword [0x4ed5e0]
test eax, eax
jne 0x484e8d
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 0x484e49
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4ed5d8]
call dword [0x4ed5e0]
mov edi, eax
test edi, edi
je 0x484e70
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x484e8c
lea edi, [esi + 0xff0]
push esi
push dword [0x4ed5d8]
call dword [0x4ed5dc]
add esi, 0x10
cmp esi, edi
jb 0x484e76
mov eax, esi
pop edi
pop esi
ret
jmp 0x484def

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x48950e
call fcn.004901b9
mov dword [eax], esi
call fcn.004901a6
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004864ae
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4894ea
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48953d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004901cc
pop ecx
call fcn.004901a6
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x489564
test al, 1
je 0x489564
test byte [esp + 0xc], 2
je 0x489564
call fcn.004901b9
mov dword [eax], 5
call fcn.004901a6
mov dword [eax], 0xd
jmp 0x489534
xor eax, eax
pop esi
ret
Function at 0x48971e
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 0x48975b
cmp dword [ebp + 0x14], edi
je 0x48975b
cmp ecx, edi
jne 0x489762
call fcn.004901a6
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.004864ae
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x489776
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x489797
cmp ebx, 0xffffffff
je 0x489786
push ebx
push edi
push ecx
call fcn.00486640
add esp, 0xc
cmp esi, edi
je 0x489743
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x489743
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4897b3
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4897ba
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4898ab
test word [esi + 0xc], 0x10c
je 0x48980e
mov eax, dword [esi + 4]
test eax, eax
je 0x48980e
jl 0x48990c
cmp ebx, eax
mov edi, ebx
jb 0x4897df
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4898b3
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.00486e7c
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 0x4898a3
cmp ebx, dword [ebp - 0xc]
jb 0x48987b
cmp dword [ebp - 0xc], 0
je 0x489838
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x48982d
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x489834
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x489843
mov eax, SysReAllocString
cmp ebx, eax
ja 0x489843
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4898df
push eax
push dword [ebp - 8]
push esi
call fcn.0048b829
pop ecx
push eax
call fcn.00497998
add esp, 0xc
test eax, eax
je 0x48991e
cmp eax, 0xffffffff
je 0x48990c
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4898a3
push esi
call fcn.004972b7
cmp eax, 0xffffffff
pop ecx
je 0x489910
cmp dword [ebp - 4], 0
je 0x4898df
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 0x4897c2
mov eax, dword [ebp + 0x14]
jmp 0x48975d
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4898ca
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00486640
add esp, 0xc
call fcn.004901a6
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x489753
cmp dword [ebp + 0xc], 0xffffffff
je 0x4898f5
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00486640
add esp, 0xc
call fcn.004901a6
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x489753
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x48975d
or dword [esi + 0xc], 0x10
jmp 0x489910
Function at 0x48db8d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e731c]
jne 0x48db97
repz ret
jmp fcn.0049c5dc

Function at 0x490ab6
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 + 0x4e75b0]
je 0x490ad1
inc edi
cmp edi, 0x17
jb 0x490ac2
cmp edi, 0x17
jae 0x490c51
push ebp
push 3
call fcn.0049e2ac
cmp eax, 1
pop ecx
je 0x490c1d
push 3
call fcn.0049e2ac
test eax, eax
pop ecx
jne 0x490b05
cmp dword [0x4e7170], 1
je 0x490c1d
cmp ebx, 0xfc
je 0x490c50
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4ed6a8
push ebp
call fcn.0048c660
add esp, 0xc
test eax, eax
je 0x490b3b
push esi
push esi
push esi
push esi
push esi
call fcn.004863b2
add esp, 0x14
push 0x104
mov esi, 0x4ed6c1
push esi
push 0
mov byte [0x4ed7c5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x490b7f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0048c660
add esp, 0xc
test eax, eax
je 0x490b7f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004863b2
add esp, 0x14
push esi
call fcn.004858d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x490bc4
push esi
call fcn.004858d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4ed9bc
push 0x4c0b04
sub ecx, eax
push ecx
push eax
call fcn.0048cb28
add esp, 0x14
test eax, eax
je 0x490bc4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004863b2
add esp, 0x14
jmp 0x490bc6
xor esi, esi
push 0x4c0b00
push ebx
push ebp
call fcn.0049d251
add esp, 0xc
test eax, eax
je 0x490be6
push esi
push esi
push esi
push esi
push esi
call fcn.004863b2
add esp, 0x14
push dword [edi*8 + 0x4e75b4]
push ebx
push ebp
call fcn.0049d251
add esp, 0xc
test eax, eax
je 0x490c08
push esi
push esi
push esi
push esi
push esi
call fcn.004863b2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0049e0ef
add esp, 0xc
jmp 0x490c50
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x490c50
cmp ebp, 0xffffffff
je 0x490c50
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e75b4]
push dword [esi]
call fcn.004858d0
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 0x49e0ef
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00490d69
xor ebx, ebx
cmp dword [0x4ee1b8], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x49e1c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x49e2a5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x49e2a5
push eax
call fcn.00490cfb
mov dword [esp], 0x4c1800
push edi
mov dword [0x4ee1b8], eax
call esi
push eax
call fcn.00490cfb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ee1bc], eax
call esi
push eax
call fcn.00490cfb
mov dword [0x4ee1c0], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00490293
test eax, eax
pop ecx
pop ecx
je 0x49e193
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004863b2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x49e1c5
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00490cfb
cmp eax, ebx
pop ecx
mov dword [0x4ee1c8], eax
je 0x49e1c5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00490cfb
pop ecx
mov dword [0x4ee1c4], eax
mov eax, dword [0x4ee1c4]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x49e24a
cmp dword [0x4ee1c8], ecx
je 0x49e24a
push eax
call fcn.00490d72
push dword [0x4ee1c8]
mov esi, eax
call fcn.00490d72
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x49e24a
cmp edi, ebx
je 0x49e24a
call esi
cmp eax, ebx
je 0x49e217
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49e217
test byte [ebp - 0x18], 1
jne 0x49e24a
lea eax, [ebp - 0x10]
push eax
call fcn.004902ca
test eax, eax
pop ecx
je 0x49e232
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004863b2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x49e241
or dword [ebp + 0x10], 0x200000
jmp 0x49e285
or dword [ebp + 0x10], 0x40000
jmp 0x49e285
mov eax, dword [0x4ee1bc]
cmp eax, dword [ebp - 8]
je 0x49e285
push eax
call fcn.00490d72
cmp eax, ebx
pop ecx
je 0x49e285
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x49e285
mov eax, dword [0x4ee1c0]
cmp eax, dword [ebp - 8]
je 0x49e285
push eax
call fcn.00490d72
cmp eax, ebx
pop ecx
je 0x49e285
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ee1b8]
call fcn.00490d72
cmp eax, ebx
pop ecx
je 0x49e2a5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49e2a7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4a3ba4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4e731c]
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 0x4a3be5
cmp byte [ebp - 0x194], 2
jne 0x4a3bdf
cmp byte [ebp - 0x193], 2
je 0x4a3be8
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048db8d
leave
ret

Function at 0x4ab896
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 0x4ab8c5
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 0x4ab9e6
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4aba06
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 0x4aba3f
cmp eax, 2
jg 0x4aba3f
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x4c2d08
push 2
push eax
call fcn.0048b5e8
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.0048b5e8
add esp, 0x20
xor eax, eax
ret

Function at 0x4abc05
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 0x4abc77
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4abc51
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4abc76
push ebx
push esi
call fcn.004b4db6
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004abb71
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