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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x60c1e0]
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.0049cee0
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x49ab3a
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x49ab32
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.0049f664
test eax, eax
pop ecx
pop ecx
je 0x49ab38
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x49ab0e
jmp 0x49ab3a
mov bl, 1
test esi, esi
je 0x49ab45
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.004a5e13
leave
ret

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

Disassembly:
push 0x434
mov eax, 0x596a39
call fcn.004a5e8b
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049cee0
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 0x49ac83
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x49abbc
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049cee0
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004a1796
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x61c4fc]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.005934a7
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49ac5f
lea esi, [ebp - 0x440]
call fcn.0049a2d1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x49ac68
cmp dword [ebp - 0x440], eax
je 0x49ac49
push dword [ebp - 0x43c]
call fcn.0049a77d
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 0x14
jb 0x49abba
jmp 0x49ac83
mov byte [ebp - 0x431], 1
jmp 0x49ac83
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x49ac83
push dword [ebp - 0x43c]
call fcn.0049a77d
mov al, byte [ebp - 0x431]
call fcn.004a5ed5
ret
Function at 0x49ae39
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x434
mov eax, 0x596a39
call fcn.004a5e8b
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049cee0
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 0x49af67
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x49aea0
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049cee0
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004a1796
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x61c520]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.005934a7
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49af43
lea esi, [ebp - 0x440]
call fcn.0049a2d1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x49af4c
cmp dword [ebp - 0x440], eax
je 0x49af2d
push dword [ebp - 0x43c]
call fcn.0049a77d
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 4
jb 0x49ae9e
jmp 0x49af67
mov byte [ebp - 0x431], 1
jmp 0x49af67
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x49af67
push dword [ebp - 0x43c]
call fcn.0049a77d
mov al, byte [ebp - 0x431]
call fcn.004a5ed5
ret

Function at 0x49af73
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 0x49afa3
mov byte [ebp - 1], bl
jmp 0x49b006
push esi
push 0x80
call fcn.0049f492
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 0x49afde
mov byte [ebp - 1], bl
jmp 0x49aff1
push dword [ebp + 0x10]
push esi
call fcn.0049ca00
test eax, eax
pop ecx
pop ecx
je 0x49aff1
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x49affc
push esi
call fcn.0049daa8
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 0x49b096
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x60c1e0]
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.0049cee0
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 0x49b1b9
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 0x49b1a9
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x49b16f
cmp word [ebx], di
je 0x49b16f
push ebx
call fcn.0049cde3
cmp eax, 1
pop ecx
jb 0x49b16f
cmp dword [ebp - 0x60], eax
jbe 0x49b16f
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004a252c
add esp, 0xc
test eax, eax
je 0x49b193
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x49b141
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0049cee0
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x49b116
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 0x49b1b9
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.004a5e13
add ebp, 0x1b0
leave
ret 8
Function at 0x49b1d4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x60c1e0]
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 0x49b351
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.0049cee0
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.00401336
or ebx, 0xffffffff
cmp eax, ebx
jne 0x49b31c
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x49b31c
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x49b31c
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49b2a1
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x49b330
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.0047de8f
push 0x5c
push 0x2f
mov eax, esi
call fcn.0043227e
mov edi, 0x5f1b88
jmp 0x49b340
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49b2c3
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x49b279
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49b307
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0049cee0
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 0x49b281
mov edi, 0x5f3dbc
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49b28c
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.0049b367
test eax, eax
pop ecx
pop ecx
jne 0x49b281
xor eax, eax
jmp 0x49b34f
push 0x5e7df4
push edi
push esi
call fcn.0047de8f
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x49b334
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004a5e13
add ebp, 0x190
leave
ret
Function at 0x49b367
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x5fdb88
call fcn.004a8b44
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x49b418
cmp dword [ebp + 0xc], eax
je 0x49b418
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 0x49b418
mov ebx, 0x103
cmp esi, ebx
ja 0x49b418
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.0049b658
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49b411
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049cee0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x49b411
cmp eax, ebx
ja 0x49b411
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004a1796
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x49b411
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x49b427
push dword [ebp - 0x1c]
call fcn.0049cf5a
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a8b89
ret

Function at 0x49b430
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 0x49b4d4
push edi
push 1
push esi
call fcn.0049f041
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x49b4d1
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49b4ca
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ef538
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49b4ca
cmp dword [ebp - 4], 0
je 0x49b4ca
push 0x10
call fcn.00465fbb
mov esi, eax
test esi, esi
pop ecx
je 0x49b4d1
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 0x5e7df4
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x49b4d3
push edi
call fcn.0049daa8
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x49b4ee
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x60c1e0]
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 0x5ef650
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.0049ce15
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 0x49b5b0
cmp dword [ebp - 0x220], 0
jne 0x49b5c7
cmp ebx, 8
jb 0x49b551
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5e13
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.0049cde3
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.0041def3
mov al, 1
jmp 0x49b5b7

Function at 0x49c405
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x60c1e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049c344
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.0049cee0
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 0x49c454
cmp dword [ebp - 0x1c], 5
jb 0x49c46c
jmp 0x49c468
cmp dword [ebp - 0x10], 1
jne 0x49c46c
cmp dword [ebp - 0x1c], 4
ja 0x49c468
jne 0x49c46c
cmp dword [ebp - 0x18], 0
jbe 0x49c46c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x59eae4
call fcn.00440ecb
test eax, eax
jge 0x49c48d
mov byte [0x61f680], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a5e13
add ebp, 0x78
leave
ret
Function at 0x49c63f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x61c9a8], 0
push esi
jne 0x49c5b2
call fcn.0049c4dd
test eax, eax
je 0x49c5f5
mov eax, dword [0x61c9a8]
cmp eax, 1
jne 0x49c5d3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49c5f5
pop esi
ret
push eax
call dword [0x61c9b0]
test eax, eax
jne 0x49c63d
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 0x49c5f9
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x61c9a8]
call dword [0x61c9b0]
mov edi, eax
test edi, edi
je 0x49c620
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x49c63c
lea edi, [esi + 0xff0]
push esi
push dword [0x61c9a8]
call dword [0x61c9ac]
add esi, 0x10
cmp esi, edi
jb 0x49c626
mov eax, esi
pop edi
pop esi
ret
jmp 0x49c59f

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4a188c
call fcn.004a7ac1
mov dword [eax], esi
call fcn.004a7aae
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0049dfc0
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4a1868
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a18bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a7ad4
pop ecx
call fcn.004a7aae
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4a18e2
test al, 1
je 0x4a18e2
test byte [esp + 0xc], 2
je 0x4a18e2
call fcn.004a7ac1
mov dword [eax], 5
call fcn.004a7aae
mov dword [eax], 0xd
jmp 0x4a18b2
xor eax, eax
pop esi
ret
Function at 0x4a1c38
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 0x4a1c75
cmp dword [ebp + 0x14], edi
je 0x4a1c75
cmp ecx, edi
jne 0x4a1c7c
call fcn.004a7aae
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0049dfc0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a1c90
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a1cb1
cmp ebx, 0xffffffff
je 0x4a1ca0
push ebx
push edi
push ecx
call fcn.0049cee0
add esp, 0xc
cmp esi, edi
je 0x4a1c5d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a1c5d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a1ccd
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a1cd4
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a1dc5
test word [esi + 0xc], 0x10c
je 0x4a1d28
mov eax, dword [esi + 4]
test eax, eax
je 0x4a1d28
jl 0x4a1e26
cmp ebx, eax
mov edi, ebx
jb 0x4a1cf9
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a1dcd
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0049cd23
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 0x4a1dbd
cmp ebx, dword [ebp - 0xc]
jb 0x4a1d95
cmp dword [ebp - 0xc], 0
je 0x4a1d52
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4a1d47
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a1d4e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a1d5d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4a1d5d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a1df9
push eax
push dword [ebp - 8]
push esi
call fcn.004a30a2
pop ecx
push eax
call fcn.004b366c
add esp, 0xc
test eax, eax
je 0x4a1e38
cmp eax, 0xffffffff
je 0x4a1e26
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a1dbd
push esi
call fcn.004b2f8b
cmp eax, 0xffffffff
pop ecx
je 0x4a1e2a
cmp dword [ebp - 4], 0
je 0x4a1df9
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 0x4a1cdc
mov eax, dword [ebp + 0x14]
jmp 0x4a1c77
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a1de4
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049cee0
add esp, 0xc
call fcn.004a7aae
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a1c6d
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a1e0f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049cee0
add esp, 0xc
call fcn.004a7aae
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a1c6d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a1c77
or dword [esi + 0xc], 0x10
jmp 0x4a1e2a
Function at 0x4a5e13
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x60c1e0]
jne 0x4a5e1d
repz ret
jmp fcn.004b74dc

Function at 0x4b1040
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 + 0x60cf20]
je 0x4b105b
inc edi
cmp edi, 0x17
jb 0x4b104c
cmp edi, 0x17
jae 0x4b11db
push ebp
push 3
call fcn.004bc158
cmp eax, 1
pop ecx
je 0x4b11a7
push 3
call fcn.004bc158
test eax, eax
pop ecx
jne 0x4b108f
cmp dword [0x60c1d4], 1
je 0x4b11a7
cmp ebx, 0xfc
je 0x4b11da
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x61ccd8
push ebp
call fcn.004a4070
add esp, 0xc
test eax, eax
je 0x4b10c5
push esi
push esi
push esi
push esi
push esi
call fcn.0049dec4
add esp, 0x14
push 0x104
mov esi, 0x61ccf1
push esi
push 0
mov byte [0x61cdf5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b1109
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004a4070
add esp, 0xc
test eax, eax
je 0x4b1109
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049dec4
add esp, 0x14
push esi
call fcn.0049eb90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b114e
push esi
call fcn.0049eb90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x61cfec
push 0x5a60a4
sub ecx, eax
push ecx
push eax
call fcn.004a4538
add esp, 0x14
test eax, eax
je 0x4b114e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049dec4
add esp, 0x14
jmp 0x4b1150
xor esi, esi
push 0x5a60a0
push ebx
push ebp
call fcn.004b8151
add esp, 0xc
test eax, eax
je 0x4b1170
push esi
push esi
push esi
push esi
push esi
call fcn.0049dec4
add esp, 0x14
push dword [edi*8 + 0x60cf24]
push ebx
push ebp
call fcn.004b8151
add esp, 0xc
test eax, eax
je 0x4b1192
push esi
push esi
push esi
push esi
push esi
call fcn.0049dec4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004bbf9b
add esp, 0xc
jmp 0x4b11da
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b11da
cmp ebp, 0xffffffff
je 0x4b11da
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x60cf24]
push dword [esi]
call fcn.0049eb90
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 0x4bbf9b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a8e10
xor ebx, ebx
cmp dword [0x61d59c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4bc071
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bc151
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a72b0
push edi
call esi
cmp eax, ebx
je 0x4bc151
push eax
call fcn.004a8da2
mov dword [esp], 0x5a72a0
push edi
mov dword [0x61d59c], eax
call esi
push eax
call fcn.004a8da2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x61d5a0], eax
call esi
push eax
call fcn.004a8da2
mov dword [0x61d5a4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a6eee
test eax, eax
pop ecx
pop ecx
je 0x4bc03f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049dec4
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4bc071
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a8da2
cmp eax, ebx
pop ecx
mov dword [0x61d5ac], eax
je 0x4bc071
push 0x5a7258
push edi
call esi
push eax
call fcn.004a8da2
pop ecx
mov dword [0x61d5a8], eax
mov eax, dword [0x61d5a8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4bc0f6
cmp dword [0x61d5ac], ecx
je 0x4bc0f6
push eax
call fcn.004a8e19
push dword [0x61d5ac]
mov esi, eax
call fcn.004a8e19
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4bc0f6
cmp edi, ebx
je 0x4bc0f6
call esi
cmp eax, ebx
je 0x4bc0c3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4bc0c3
test byte [ebp - 0x18], 1
jne 0x4bc0f6
lea eax, [ebp - 0x10]
push eax
call fcn.004a6f25
test eax, eax
pop ecx
je 0x4bc0de
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049dec4
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4bc0ed
or dword [ebp + 0x10], 0x200000
jmp 0x4bc131
or dword [ebp + 0x10], 0x40000
jmp 0x4bc131
mov eax, dword [0x61d5a0]
cmp eax, dword [ebp - 8]
je 0x4bc131
push eax
call fcn.004a8e19
cmp eax, ebx
pop ecx
je 0x4bc131
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4bc131
mov eax, dword [0x61d5a4]
cmp eax, dword [ebp - 8]
je 0x4bc131
push eax
call fcn.004a8e19
cmp eax, ebx
pop ecx
je 0x4bc131
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x61d59c]
call fcn.004a8e19
cmp eax, ebx
pop ecx
je 0x4bc151
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4bc153
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bfc01
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x60c1e0]
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 0x4bfc42
cmp byte [ebp - 0x194], 2
jne 0x4bfc3c
cmp byte [ebp - 0x193], 2
je 0x4bfc45
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a5e13
leave
ret