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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x60b1e0]
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.0049c520
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x49a17a
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x49a172
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.0049eca4
test eax, eax
pop ecx
pop ecx
je 0x49a178
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x49a14e
jmp 0x49a17a
mov bl, 1
test esi, esi
je 0x49a185
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.004a5453
leave
ret

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

Disassembly:
push 0x434
mov eax, 0x596047
call fcn.004a54cb
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049c520
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 0x49a2c3
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x49a1fc
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049c520
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004a0dd6
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x61b46c]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00592b0f
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49a29f
lea esi, [ebp - 0x440]
call fcn.00499911
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x49a2a8
cmp dword [ebp - 0x440], eax
je 0x49a289
push dword [ebp - 0x43c]
call fcn.00499dbd
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 0x14
jb 0x49a1fa
jmp 0x49a2c3
mov byte [ebp - 0x431], 1
jmp 0x49a2c3
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x49a2c3
push dword [ebp - 0x43c]
call fcn.00499dbd
mov al, byte [ebp - 0x431]
call fcn.004a5515
ret
Function at 0x49a479
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x434
mov eax, 0x596047
call fcn.004a54cb
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049c520
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 0x49a5a7
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x49a4e0
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049c520
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004a0dd6
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x61b490]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00592b0f
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49a583
lea esi, [ebp - 0x440]
call fcn.00499911
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x49a58c
cmp dword [ebp - 0x440], eax
je 0x49a56d
push dword [ebp - 0x43c]
call fcn.00499dbd
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 4
jb 0x49a4de
jmp 0x49a5a7
mov byte [ebp - 0x431], 1
jmp 0x49a5a7
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x49a5a7
push dword [ebp - 0x43c]
call fcn.00499dbd
mov al, byte [ebp - 0x431]
call fcn.004a5515
ret

Function at 0x49a5b3
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 0x49a5e3
mov byte [ebp - 1], bl
jmp 0x49a646
push esi
push 0x80
call fcn.0049ead2
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 0x49a61e
mov byte [ebp - 1], bl
jmp 0x49a631
push dword [ebp + 0x10]
push esi
call fcn.0049c040
test eax, eax
pop ecx
pop ecx
je 0x49a631
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x49a63c
push esi
call fcn.0049d0e8
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 0x49a6d6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x60b1e0]
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.0049c520
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 0x49a7f9
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 0x49a7e9
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x49a7af
cmp word [ebx], di
je 0x49a7af
push ebx
call fcn.0049c423
cmp eax, 1
pop ecx
jb 0x49a7af
cmp dword [ebp - 0x60], eax
jbe 0x49a7af
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004a1b6c
add esp, 0xc
test eax, eax
je 0x49a7d3
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x49a781
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0049c520
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x49a756
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 0x49a7f9
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.004a5453
add ebp, 0x1b0
leave
ret 8
Function at 0x49a814
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x60b1e0]
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 0x49a991
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.0049c520
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.00401336
or ebx, 0xffffffff
cmp eax, ebx
jne 0x49a95c
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x49a95c
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x49a95c
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49a8e1
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x49a970
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.0047dfe6
push 0x5c
push 0x2f
mov eax, esi
call fcn.00432540
mov edi, 0x5f0bb4
jmp 0x49a980
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49a903
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x49a8b9
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49a947
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0049c520
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 0x49a8c1
mov edi, 0x5f2fe4
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49a8cc
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.0049a9a7
test eax, eax
pop ecx
pop ecx
jne 0x49a8c1
xor eax, eax
jmp 0x49a98f
push 0x5e6cfc
push edi
push esi
call fcn.0047dfe6
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x49a974
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004a5453
add ebp, 0x190
leave
ret
Function at 0x49a9a7
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x5fcd00
call fcn.004a8184
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x49aa58
cmp dword [ebp + 0xc], eax
je 0x49aa58
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 0x49aa58
mov ebx, 0x103
cmp esi, ebx
ja 0x49aa58
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.0049ac98
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49aa51
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049c520
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x49aa51
cmp eax, ebx
ja 0x49aa51
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004a0dd6
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x49aa51
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x49aa67
push dword [ebp - 0x1c]
call fcn.0049c59a
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a81c9
ret

Function at 0x49aa70
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 0x49ab14
push edi
push 1
push esi
call fcn.0049e681
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x49ab11
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49ab0a
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ee568
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49ab0a
cmp dword [ebp - 4], 0
je 0x49ab0a
push 0x10
call fcn.004661b9
mov esi, eax
test esi, esi
pop ecx
je 0x49ab11
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 0x5e6cfc
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x49ab13
push edi
call fcn.0049d0e8
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x49ab2e
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x60b1e0]
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 0x5ee680
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.0049c455
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 0x49abf0
cmp dword [ebp - 0x220], 0
jne 0x49ac07
cmp ebx, 8
jb 0x49ab91
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a5453
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.0049c423
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.0041e280
mov al, 1
jmp 0x49abf7

Function at 0x49ba45
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x60b1e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049b984
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.0049c520
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 0x49ba94
cmp dword [ebp - 0x1c], 5
jb 0x49baac
jmp 0x49baa8
cmp dword [ebp - 0x10], 1
jne 0x49baac
cmp dword [ebp - 0x1c], 4
ja 0x49baa8
jne 0x49baac
cmp dword [ebp - 0x18], 0
jbe 0x49baac
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x59dae4
call fcn.004413a9
test eax, eax
jge 0x49bacd
mov byte [0x61e5e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a5453
add ebp, 0x78
leave
ret
Function at 0x49bc7f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x61b908], 0
push esi
jne 0x49bbf2
call fcn.0049bb1d
test eax, eax
je 0x49bc35
mov eax, dword [0x61b908]
cmp eax, 1
jne 0x49bc13
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49bc35
pop esi
ret
push eax
call dword [0x61b910]
test eax, eax
jne 0x49bc7d
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 0x49bc39
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x61b908]
call dword [0x61b910]
mov edi, eax
test edi, edi
je 0x49bc60
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x49bc7c
lea edi, [esi + 0xff0]
push esi
push dword [0x61b908]
call dword [0x61b90c]
add esi, 0x10
cmp esi, edi
jb 0x49bc66
mov eax, esi
pop edi
pop esi
ret
jmp 0x49bbdf

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4a0ecc
call fcn.004a70fe
mov dword [eax], esi
call fcn.004a70eb
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0049d600
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4a0ea8
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a0efb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a7111
pop ecx
call fcn.004a70eb
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4a0f22
test al, 1
je 0x4a0f22
test byte [esp + 0xc], 2
je 0x4a0f22
call fcn.004a70fe
mov dword [eax], 5
call fcn.004a70eb
mov dword [eax], 0xd
jmp 0x4a0ef2
xor eax, eax
pop esi
ret
Function at 0x4a1278
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 0x4a12b5
cmp dword [ebp + 0x14], edi
je 0x4a12b5
cmp ecx, edi
jne 0x4a12bc
call fcn.004a70eb
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0049d600
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a12d0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a12f1
cmp ebx, 0xffffffff
je 0x4a12e0
push ebx
push edi
push ecx
call fcn.0049c520
add esp, 0xc
cmp esi, edi
je 0x4a129d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a129d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a130d
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a1314
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a1405
test word [esi + 0xc], 0x10c
je 0x4a1368
mov eax, dword [esi + 4]
test eax, eax
je 0x4a1368
jl 0x4a1466
cmp ebx, eax
mov edi, ebx
jb 0x4a1339
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a140d
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0049c363
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 0x4a13fd
cmp ebx, dword [ebp - 0xc]
jb 0x4a13d5
cmp dword [ebp - 0xc], 0
je 0x4a1392
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4a1387
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a138e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a139d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4a139d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a1439
push eax
push dword [ebp - 8]
push esi
call fcn.004a26e2
pop ecx
push eax
call fcn.004b2c9c
add esp, 0xc
test eax, eax
je 0x4a1478
cmp eax, 0xffffffff
je 0x4a1466
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a13fd
push esi
call fcn.004b25bb
cmp eax, 0xffffffff
pop ecx
je 0x4a146a
cmp dword [ebp - 4], 0
je 0x4a1439
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 0x4a131c
mov eax, dword [ebp + 0x14]
jmp 0x4a12b7
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a1424
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049c520
add esp, 0xc
call fcn.004a70eb
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a12ad
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a144f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049c520
add esp, 0xc
call fcn.004a70eb
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a12ad
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a12b7
or dword [esi + 0xc], 0x10
jmp 0x4a146a
Function at 0x4a5453
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x60b1e0]
jne 0x4a545d
repz ret
jmp fcn.004b6b0c

Function at 0x4b0670
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 + 0x60bf20]
je 0x4b068b
inc edi
cmp edi, 0x17
jb 0x4b067c
cmp edi, 0x17
jae 0x4b080b
push ebp
push 3
call fcn.004bb788
cmp eax, 1
pop ecx
je 0x4b07d7
push 3
call fcn.004bb788
test eax, eax
pop ecx
jne 0x4b06bf
cmp dword [0x60b1d4], 1
je 0x4b07d7
cmp ebx, 0xfc
je 0x4b080a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x61bc38
push ebp
call fcn.004a36b0
add esp, 0xc
test eax, eax
je 0x4b06f5
push esi
push esi
push esi
push esi
push esi
call fcn.0049d504
add esp, 0x14
push 0x104
mov esi, 0x61bc51
push esi
push 0
mov byte [0x61bd55], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b0739
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004a36b0
add esp, 0xc
test eax, eax
je 0x4b0739
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049d504
add esp, 0x14
push esi
call fcn.0049e1d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b077e
push esi
call fcn.0049e1d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x61bf4c
push 0x5a50a4
sub ecx, eax
push ecx
push eax
call fcn.004a3b78
add esp, 0x14
test eax, eax
je 0x4b077e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049d504
add esp, 0x14
jmp 0x4b0780
xor esi, esi
push 0x5a50a0
push ebx
push ebp
call fcn.004b7781
add esp, 0xc
test eax, eax
je 0x4b07a0
push esi
push esi
push esi
push esi
push esi
call fcn.0049d504
add esp, 0x14
push dword [edi*8 + 0x60bf24]
push ebx
push ebp
call fcn.004b7781
add esp, 0xc
test eax, eax
je 0x4b07c2
push esi
push esi
push esi
push esi
push esi
call fcn.0049d504
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004bb5cb
add esp, 0xc
jmp 0x4b080a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b080a
cmp ebp, 0xffffffff
je 0x4b080a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x60bf24]
push dword [esi]
call fcn.0049e1d0
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 0x4bb5cb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004a8450
xor ebx, ebx
cmp dword [0x61c4fc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4bb6a1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4bb781
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5a62b0
push edi
call esi
cmp eax, ebx
je 0x4bb781
push eax
call fcn.004a83e2
mov dword [esp], 0x5a62a0
push edi
mov dword [0x61c4fc], eax
call esi
push eax
call fcn.004a83e2
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x61c500], eax
call esi
push eax
call fcn.004a83e2
mov dword [0x61c504], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004a652b
test eax, eax
pop ecx
pop ecx
je 0x4bb66f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049d504
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4bb6a1
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004a83e2
cmp eax, ebx
pop ecx
mov dword [0x61c50c], eax
je 0x4bb6a1
push 0x5a6258
push edi
call esi
push eax
call fcn.004a83e2
pop ecx
mov dword [0x61c508], eax
mov eax, dword [0x61c508]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4bb726
cmp dword [0x61c50c], ecx
je 0x4bb726
push eax
call fcn.004a8459
push dword [0x61c50c]
mov esi, eax
call fcn.004a8459
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4bb726
cmp edi, ebx
je 0x4bb726
call esi
cmp eax, ebx
je 0x4bb6f3
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4bb6f3
test byte [ebp - 0x18], 1
jne 0x4bb726
lea eax, [ebp - 0x10]
push eax
call fcn.004a6562
test eax, eax
pop ecx
je 0x4bb70e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0049d504
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4bb71d
or dword [ebp + 0x10], 0x200000
jmp 0x4bb761
or dword [ebp + 0x10], 0x40000
jmp 0x4bb761
mov eax, dword [0x61c500]
cmp eax, dword [ebp - 8]
je 0x4bb761
push eax
call fcn.004a8459
cmp eax, ebx
pop ecx
je 0x4bb761
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4bb761
mov eax, dword [0x61c504]
cmp eax, dword [ebp - 8]
je 0x4bb761
push eax
call fcn.004a8459
cmp eax, ebx
pop ecx
je 0x4bb761
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x61c4fc]
call fcn.004a8459
cmp eax, ebx
pop ecx
je 0x4bb781
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4bb783
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4bf231
Capabilities:
Initialize winsock library

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