joyce8/EMBER2024-capa huggingface dataset:
Function at 0x497f68
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x6091e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
xor bl, bl
call fcn.0049a380
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x497fea
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x497fe2
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.0049cb04
test eax, eax
pop ecx
pop ecx
je 0x497fe8
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x497fbe
jmp 0x497fea
mov bl, 1
test esi, esi
je 0x497ff5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a32b3
leave
ret

Function at 0x498005
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x434
mov eax, 0x593ed7
call fcn.004a332b
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049a380
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 0x431], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x498133
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x49806c
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049a380
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.0049ec36
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x619440]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.005909a5
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49810f
lea esi, [ebp - 0x440]
call fcn.00497781
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x498118
cmp dword [ebp - 0x440], eax
je 0x4980f9
push dword [ebp - 0x43c]
call fcn.00497c2d
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 0x14
jb 0x49806a
jmp 0x498133
mov byte [ebp - 0x431], 1
jmp 0x498133
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x498133
push dword [ebp - 0x43c]
call fcn.00497c2d
mov al, byte [ebp - 0x431]
call fcn.004a3375
ret
Function at 0x4982e9
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x434
mov eax, 0x593ed7
call fcn.004a332b
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049a380
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 0x431], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x498417
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x498350
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049a380
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.0049ec36
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x619464]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.005909a5
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4983f3
lea esi, [ebp - 0x440]
call fcn.00497781
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x4983fc
cmp dword [ebp - 0x440], eax
je 0x4983dd
push dword [ebp - 0x43c]
call fcn.00497c2d
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 4
jb 0x49834e
jmp 0x498417
mov byte [ebp - 0x431], 1
jmp 0x498417
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x498417
push dword [ebp - 0x43c]
call fcn.00497c2d
mov al, byte [ebp - 0x431]
call fcn.004a3375
ret

Function at 0x498423
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 0x498453
mov byte [ebp - 1], bl
jmp 0x4984b6
push esi
push 0x80
call fcn.0049c932
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 0x49848e
mov byte [ebp - 1], bl
jmp 0x4984a1
push dword [ebp + 0x10]
push esi
call fcn.00499ea8
test eax, eax
pop ecx
pop ecx
je 0x4984a1
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x4984ac
push esi
call fcn.0049af3d
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 0x498546
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x6091e0]
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.0049a380
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 0x498669
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 0x498659
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x49861f
cmp word [ebx], di
je 0x49861f
push ebx
call fcn.0049a28b
cmp eax, 1
pop ecx
jb 0x49861f
cmp dword [ebp - 0x60], eax
jbe 0x49861f
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0049f9cc
add esp, 0xc
test eax, eax
je 0x498643
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x4985f1
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0049a380
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x4985c6
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 0x498669
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.004a32b3
add ebp, 0x1b0
leave
ret 8
Function at 0x498810
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x5fa988
call fcn.004a5fe4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x4988c1
cmp dword [ebp + 0xc], eax
je 0x4988c1
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 0x4988c1
mov ebx, 0x103
cmp esi, ebx
ja 0x4988c1
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.00498b00
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4988ba
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049a380
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x4988ba
cmp eax, ebx
ja 0x4988ba
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0049ec36
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x4988ba
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x4988d0
push dword [ebp - 0x1c]
call fcn.0049a3fa
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a6029
ret

Function at 0x4988d9
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 0x49897d
push edi
push 1
push esi
call fcn.0049c4e1
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x49897a
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x498973
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ec488
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x498973
cmp dword [ebp - 4], 0
je 0x498973
push 0x10
call fcn.004657db
mov esi, eax
test esi, esi
pop ecx
je 0x49897a
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 0x5e4df4
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x49897c
push edi
call fcn.0049af3d
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x498997
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x6091e0]
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 0x5ec5a0
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.0049a2bd
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 0x498a59
cmp dword [ebp - 0x220], 0
jne 0x498a70
cmp ebx, 8
jb 0x4989fa
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a32b3
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.0049a28b
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.0041da58
mov al, 1
jmp 0x498a60

Function at 0x4998ad
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x6091e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004997ec
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.0049a380
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 0x4998fc
cmp dword [ebp - 0x1c], 5
jb 0x499914
jmp 0x499910
cmp dword [ebp - 0x10], 1
jne 0x499914
cmp dword [ebp - 0x1c], 4
ja 0x499910
jne 0x499914
cmp dword [ebp - 0x18], 0
jbe 0x499914
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x59bae4
call fcn.00440c38
test eax, eax
jge 0x499935
mov byte [0x61c5c0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a32b3
add ebp, 0x78
leave
ret
Function at 0x499ae7
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x6198e8], 0
push esi
jne 0x499a5a
call fcn.00499985
test eax, eax
je 0x499a9d
mov eax, dword [0x6198e8]
cmp eax, 1
jne 0x499a7b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x499a9d
pop esi
ret
push eax
call dword [0x6198f0]
test eax, eax
jne 0x499ae5
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 0x499aa1
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x6198e8]
call dword [0x6198f0]
mov edi, eax
test edi, edi
je 0x499ac8
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x499ae4
lea edi, [esi + 0xff0]
push esi
push dword [0x6198e8]
call dword [0x6198ec]
add esi, 0x10
cmp esi, edi
jb 0x499ace
mov eax, esi
pop edi
pop esi
ret
jmp 0x499a47

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x49ed2c
call fcn.004a4f61
mov dword [eax], esi
call fcn.004a4f4e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0049b455
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x49ed08
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x49ed5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a4f74
pop ecx
call fcn.004a4f4e
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x49ed82
test al, 1
je 0x49ed82
test byte [esp + 0xc], 2
je 0x49ed82
call fcn.004a4f61
mov dword [eax], 5
call fcn.004a4f4e
mov dword [eax], 0xd
jmp 0x49ed52
xor eax, eax
pop esi
ret
Function at 0x49f0d8
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 0x49f115
cmp dword [ebp + 0x14], edi
je 0x49f115
cmp ecx, edi
jne 0x49f11c
call fcn.004a4f4e
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0049b455
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x49f130
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x49f151
cmp ebx, 0xffffffff
je 0x49f140
push ebx
push edi
push ecx
call fcn.0049a380
add esp, 0xc
cmp esi, edi
je 0x49f0fd
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x49f0fd
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x49f16d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x49f174
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x49f265
test word [esi + 0xc], 0x10c
je 0x49f1c8
mov eax, dword [esi + 4]
test eax, eax
je 0x49f1c8
jl 0x49f2c6
cmp ebx, eax
mov edi, ebx
jb 0x49f199
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x49f26d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0049a1cb
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 0x49f25d
cmp ebx, dword [ebp - 0xc]
jb 0x49f235
cmp dword [ebp - 0xc], 0
je 0x49f1f2
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x49f1e7
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x49f1ee
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x49f1fd
mov eax, SysReAllocString
cmp ebx, eax
ja 0x49f1fd
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x49f299
push eax
push dword [ebp - 8]
push esi
call fcn.004a0542
pop ecx
push eax
call fcn.004b0b0c
add esp, 0xc
test eax, eax
je 0x49f2d8
cmp eax, 0xffffffff
je 0x49f2c6
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x49f25d
push esi
call fcn.004b042b
cmp eax, 0xffffffff
pop ecx
je 0x49f2ca
cmp dword [ebp - 4], 0
je 0x49f299
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 0x49f17c
mov eax, dword [ebp + 0x14]
jmp 0x49f117
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x49f284
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049a380
add esp, 0xc
call fcn.004a4f4e
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x49f10d
cmp dword [ebp + 0xc], 0xffffffff
je 0x49f2af
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049a380
add esp, 0xc
call fcn.004a4f4e
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x49f10d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x49f117
or dword [esi + 0xc], 0x10
jmp 0x49f2ca
Function at 0x4a32b3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6091e0]
jne 0x4a32bd
repz ret
jmp fcn.004b497c

Function at 0x4ae4e0
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 + 0x609f20]
je 0x4ae4fb
inc edi
cmp edi, 0x17
jb 0x4ae4ec
cmp edi, 0x17
jae 0x4ae67b
push ebp
push 3
call fcn.004b95f8
cmp eax, 1
pop ecx
je 0x4ae647
push 3
call fcn.004b95f8
test eax, eax
pop ecx
jne 0x4ae52f
cmp dword [0x6091d4], 1
je 0x4ae647
cmp ebx, 0xfc
je 0x4ae67a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x619c18
push ebp
call fcn.004a1510
add esp, 0xc
test eax, eax
je 0x4ae565
push esi
push esi
push esi
push esi
push esi
call fcn.0049b359
add esp, 0x14
push 0x104
mov esi, 0x619c31
push esi
push 0
mov byte [0x619d35], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4ae5a9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004a1510
add esp, 0xc
test eax, eax
je 0x4ae5a9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049b359
add esp, 0x14
push esi
call fcn.0049c030
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4ae5ee
push esi
call fcn.0049c030
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x619f2c
push 0x5a30a4
sub ecx, eax
push ecx
push eax
call fcn.004a19d8
add esp, 0x14
test eax, eax
je 0x4ae5ee
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049b359
add esp, 0x14
jmp 0x4ae5f0
xor esi, esi
push 0x5a30a0
push ebx
push ebp
call fcn.004b55f1
add esp, 0xc
test eax, eax
je 0x4ae610
push esi
push esi
push esi
push esi
push esi
call fcn.0049b359
add esp, 0x14
push dword [edi*8 + 0x609f24]
push ebx
push ebp
call fcn.004b55f1
add esp, 0xc
test eax, eax
je 0x4ae632
push esi
push esi
push esi
push esi
push esi
call fcn.0049b359
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004b943b
add esp, 0xc
jmp 0x4ae67a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4ae67a
cmp ebp, 0xffffffff
je 0x4ae67a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x609f24]
push dword [esi]
call fcn.0049c030
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 0x4c53a6
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 0x4c53d5
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 0x4c54f6
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x4c5516
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 0x4c554f
cmp eax, 2
jg 0x4c554f
push dword [esi + 0xf0]
imul eax, eax, 3
push 1
add eax, 0x5a5078
push 2
push eax
call fcn.004a06ce
push dword [esi + 0xf0]
push 1
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.004a06ce
add esp, 0x20
xor eax, eax
ret

Function at 0x4c5715
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 0x4c5787
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x4c5761
and dword [ebp + 8], 0
mov dword [edi], 0x51
jmp 0x4c5786
push ebx
push esi
call fcn.004d1691
push eax
push str.Send_failure:__s
push dword [esi]
call fcn.004c5681
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
Function at 0x4cac0b
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov ebx, eax
mov edi, ecx
call dword [0x60a868]
mov esi, eax
xor eax, eax
cmp esi, eax
pop ecx
pop ecx
mov dword [ebp - 4], 0xc
mov dword [edi + 0x3cc], esi
je 0x4cacbd
mov dword [edi + 0x3c4], eax
mov dword [edi + 0x3c8], eax
mov dword [edi + 0x3c0], eax
mov dword [edi + 0x3bc], ebx
or dword [esi + 4], 0xffffffff
push ebx
push dword [ebp + 8]
mov dword [esi], eax
lea eax, [esi + 0x10]
call fcn.004caac7
test eax, eax
pop ecx
pop ecx
je 0x4cacbd
lea ebx, [edi + 0x3b8]
push dword [ebx]
call fcn.004bdcd0
push dword [ebp + 8]
call dword [0x60a864]
test eax, eax
pop ecx
pop ecx
mov dword [ebx], eax
je 0x4cacbd
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x4cacbd
lea eax, [esi + 0x10]
push eax
push 0x4cab3b
call fcn.004d1eb6
test eax, eax
pop ecx
pop ecx
mov dword [esi], eax
jne 0x4cacd7
call fcn.004a4f4e
mov eax, dword [eax]
mov dword [ebp - 4], eax
add edi, 0x3b8
push edi
call fcn.004cabb9
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4cacda
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d238d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
push ebx
xor ebx, ebx
cmp dword [eax + 4], 2
push edi
sete bl
test ebx, ebx
je 0x4d23b1
push dword [eax + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [esi + 0xc]
jmp 0x4d23e2
cmp dword [esi + 8], 0
jne 0x4d23d2
push 0x5ec3dc
push dword [eax + 8]
call fcn.0049fc73
test eax, eax
pop ecx
pop ecx
mov dword [esi + 8], eax
jne 0x4d23d2
or eax, 0xffffffff
jmp 0x4d2408
push dword [esi + 8]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0049f374
mov edi, eax
add esp, 0x10
test edi, edi
je 0x4d23f0
cmp edi, dword [ebp + 0xc]
jbe 0x4d2406
test ebx, ebx
jne 0x4d2400
push dword [esi + 8]
call fcn.0049f401
and dword [esi + 8], ebx
pop ecx
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop ebx
pop ebp
ret