joyce8/EMBER2024-capa huggingface dataset:
Function at 0x499321
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [eax], esi
push edi
mov dword [ebx], esi
mov dword [ebp - 4], esi
call fcn.00499799
xor edi, edi
inc edi
test eax, eax
je 0x499349
mov esi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp + 0xb]
call fcn.004997f2
test eax, eax
jne 0x49936d
lea ecx, [ebp + 0xb]
call fcn.00499820
test eax, eax
jne 0x49936d
lea ecx, [ebp + 0xb]
call fcn.0049984e
test eax, eax
je 0x499370
or esi, 2
call fcn.004998c8
test eax, eax
je 0x49937f
or esi, 4
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0
je 0x499396
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [ebx], edi
mov dword [eax], esi
jmp 0x4994bc
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00499999
test eax, eax
je 0x4993be
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x4994bc
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00499a4c
test eax, eax
je 0x4993db
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 3
jmp 0x4993b1
call fcn.00499e19
test al, al
je 0x4993eb
mov eax, 0x2001
jmp 0x499409
call fcn.00499dde
test al, al
je 0x4993fb
mov eax, 0x2002
jmp 0x499409
call fcn.00499d46
test al, al
je 0x499416
mov eax, 0x2003
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 4
jmp 0x4993b4
lea esi, [ebp - 0xc8]
mov dword [ebp - 4], 3
call fcn.00499fec
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0049a076
test eax, eax
je 0x499470
mov eax, dword [ebp - 4]
test eax, eax
je 0x499446
cmp eax, edi
je 0x499446
cmp eax, 2
jne 0x499470
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 5
jne 0x499460
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3001
jmp 0x4994bc
cmp eax, 2
jne 0x4994bc
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3002
jmp 0x4994bc
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x49948c
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 6
jmp 0x4994b6
call fcn.004994c2
test eax, eax
je 0x4994a2
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 7
jmp 0x4994b6
call fcn.00499565
test eax, eax
je 0x4994bc
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 8
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x499a98
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.0049bec0
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x499b1a
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x499b12
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.0049e644
test eax, eax
pop ecx
pop ecx
je 0x499b18
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x499aee
jmp 0x499b1a
mov bl, 1
test esi, esi
je 0x499b25
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.004a4df3
leave
ret

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

Disassembly:
push 0x434
mov eax, 0x595a59
call fcn.004a4e6b
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049bec0
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 0x499c63
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x499b9c
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049bec0
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004a0776
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x61b46c]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.005924b7
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499c3f
lea esi, [ebp - 0x440]
call fcn.004992b1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x499c48
cmp dword [ebp - 0x440], eax
je 0x499c29
push dword [ebp - 0x43c]
call fcn.0049975d
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 0x14
jb 0x499b9a
jmp 0x499c63
mov byte [ebp - 0x431], 1
jmp 0x499c63
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x499c63
push dword [ebp - 0x43c]
call fcn.0049975d
mov al, byte [ebp - 0x431]
call fcn.004a4eb5
ret
Function at 0x499e19
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x434
mov eax, 0x595a59
call fcn.004a4e6b
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049bec0
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 0x499f47
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x499e80
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049bec0
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004a0776
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x61b490]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.005924b7
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499f23
lea esi, [ebp - 0x440]
call fcn.004992b1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x499f2c
cmp dword [ebp - 0x440], eax
je 0x499f0d
push dword [ebp - 0x43c]
call fcn.0049975d
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 4
jb 0x499e7e
jmp 0x499f47
mov byte [ebp - 0x431], 1
jmp 0x499f47
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x499f47
push dword [ebp - 0x43c]
call fcn.0049975d
mov al, byte [ebp - 0x431]
call fcn.004a4eb5
ret

Function at 0x499f53
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 0x499f83
mov byte [ebp - 1], bl
jmp 0x499fe6
push esi
push 0x80
call fcn.0049e472
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 0x499fbe
mov byte [ebp - 1], bl
jmp 0x499fd1
push dword [ebp + 0x10]
push esi
call fcn.0049b9e0
test eax, eax
pop ecx
pop ecx
je 0x499fd1
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x499fdc
push esi
call fcn.0049ca88
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 0x49a076
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.0049bec0
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 0x49a199
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 0x49a189
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x49a14f
cmp word [ebx], di
je 0x49a14f
push ebx
call fcn.0049bdc3
cmp eax, 1
pop ecx
jb 0x49a14f
cmp dword [ebp - 0x60], eax
jbe 0x49a14f
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004a150c
add esp, 0xc
test eax, eax
je 0x49a173
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x49a121
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0049bec0
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x49a0f6
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 0x49a199
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.004a4df3
add ebp, 0x1b0
leave
ret 8
Function at 0x49a1b4
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 0x49a331
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.0049bec0
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.00401336
or ebx, 0xffffffff
cmp eax, ebx
jne 0x49a2fc
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x49a2fc
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x49a2fc
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49a281
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x49a310
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.0047d8ce
push 0x5c
push 0x2f
mov eax, esi
call fcn.004327ec
mov edi, 0x5f0b30
jmp 0x49a320
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49a2a3
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x49a259
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49a2e7
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0049bec0
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 0x49a261
mov edi, 0x5f2e0c
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x49a26c
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.0049a347
test eax, eax
pop ecx
pop ecx
jne 0x49a261
xor eax, eax
jmp 0x49a32f
push 0x5e6df4
push edi
push esi
call fcn.0047d8ce
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x49a314
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004a4df3
add ebp, 0x190
leave
ret
Function at 0x49a347
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x5fcb28
call fcn.004a7b24
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x49a3f8
cmp dword [ebp + 0xc], eax
je 0x49a3f8
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 0x49a3f8
mov ebx, 0x103
cmp esi, ebx
ja 0x49a3f8
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.0049a638
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49a3f1
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049bec0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x49a3f1
cmp eax, ebx
ja 0x49a3f1
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004a0776
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x49a3f1
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x49a407
push dword [ebp - 0x1c]
call fcn.0049bf3a
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a7b69
ret

Function at 0x49a410
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 0x49a4b4
push edi
push 1
push esi
call fcn.0049e021
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x49a4b1
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49a4aa
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ee4f0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49a4aa
cmp dword [ebp - 4], 0
je 0x49a4aa
push 0x10
call fcn.004656b0
mov esi, eax
test esi, esi
pop ecx
je 0x49a4b1
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 0x5e6df4
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x49a4b3
push edi
call fcn.0049ca88
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x49a4ce
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 0x5ee608
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.0049bdf5
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 0x49a590
cmp dword [ebp - 0x220], 0
jne 0x49a5a7
cmp ebx, 8
jb 0x49a531
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4df3
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.0049bdc3
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.0041e3df
mov al, 1
jmp 0x49a597

Function at 0x49b3e5
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.0049b324
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.0049bec0
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 0x49b434
cmp dword [ebp - 0x1c], 5
jb 0x49b44c
jmp 0x49b448
cmp dword [ebp - 0x10], 1
jne 0x49b44c
cmp dword [ebp - 0x1c], 4
ja 0x49b448
jne 0x49b44c
cmp dword [ebp - 0x18], 0
jbe 0x49b44c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x59dae4
call fcn.00440f7e
test eax, eax
jge 0x49b46d
mov byte [0x61e5e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a4df3
add ebp, 0x78
leave
ret
Function at 0x49b61f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x61b908], 0
push esi
jne 0x49b592
call fcn.0049b4bd
test eax, eax
je 0x49b5d5
mov eax, dword [0x61b908]
cmp eax, 1
jne 0x49b5b3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49b5d5
pop esi
ret
push eax
call dword [0x61b910]
test eax, eax
jne 0x49b61d
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 0x49b5d9
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 0x49b600
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x49b61c
lea edi, [esi + 0xff0]
push esi
push dword [0x61b908]
call dword [0x61b90c]
add esi, 0x10
cmp esi, edi
jb 0x49b606
mov eax, esi
pop edi
pop esi
ret
jmp 0x49b57f

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4a086c
call fcn.004a6a9e
mov dword [eax], esi
call fcn.004a6a8b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0049cfa0
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4a0848
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a089b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a6ab1
pop ecx
call fcn.004a6a8b
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4a08c2
test al, 1
je 0x4a08c2
test byte [esp + 0xc], 2
je 0x4a08c2
call fcn.004a6a9e
mov dword [eax], 5
call fcn.004a6a8b
mov dword [eax], 0xd
jmp 0x4a0892
xor eax, eax
pop esi
ret
Function at 0x4a0c18
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 0x4a0c55
cmp dword [ebp + 0x14], edi
je 0x4a0c55
cmp ecx, edi
jne 0x4a0c5c
call fcn.004a6a8b
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0049cfa0
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a0c70
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a0c91
cmp ebx, 0xffffffff
je 0x4a0c80
push ebx
push edi
push ecx
call fcn.0049bec0
add esp, 0xc
cmp esi, edi
je 0x4a0c3d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a0c3d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a0cad
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a0cb4
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a0da5
test word [esi + 0xc], 0x10c
je 0x4a0d08
mov eax, dword [esi + 4]
test eax, eax
je 0x4a0d08
jl 0x4a0e06
cmp ebx, eax
mov edi, ebx
jb 0x4a0cd9
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a0dad
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0049bd03
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 0x4a0d9d
cmp ebx, dword [ebp - 0xc]
jb 0x4a0d75
cmp dword [ebp - 0xc], 0
je 0x4a0d32
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4a0d27
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a0d2e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a0d3d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4a0d3d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a0dd9
push eax
push dword [ebp - 8]
push esi
call fcn.004a2082
pop ecx
push eax
call fcn.004b263c
add esp, 0xc
test eax, eax
je 0x4a0e18
cmp eax, 0xffffffff
je 0x4a0e06
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a0d9d
push esi
call fcn.004b1f5b
cmp eax, 0xffffffff
pop ecx
je 0x4a0e0a
cmp dword [ebp - 4], 0
je 0x4a0dd9
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 0x4a0cbc
mov eax, dword [ebp + 0x14]
jmp 0x4a0c57
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a0dc4
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049bec0
add esp, 0xc
call fcn.004a6a8b
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a0c4d
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a0def
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049bec0
add esp, 0xc
call fcn.004a6a8b
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a0c4d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a0c57
or dword [esi + 0xc], 0x10
jmp 0x4a0e0a
Function at 0x4a4df3
Capabilities:
Terminate process

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

Function at 0x4b0010
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 0x4b002b
inc edi
cmp edi, 0x17
jb 0x4b001c
cmp edi, 0x17
jae 0x4b01ab
push ebp
push 3
call fcn.004bb128
cmp eax, 1
pop ecx
je 0x4b0177
push 3
call fcn.004bb128
test eax, eax
pop ecx
jne 0x4b005f
cmp dword [0x60b1d4], 1
je 0x4b0177
cmp ebx, 0xfc
je 0x4b01aa
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x61bc38
push ebp
call fcn.004a3050
add esp, 0xc
test eax, eax
je 0x4b0095
push esi
push esi
push esi
push esi
push esi
call fcn.0049cea4
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 0x4b00d9
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004a3050
add esp, 0xc
test eax, eax
je 0x4b00d9
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0049cea4
add esp, 0x14
push esi
call fcn.0049db70
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b011e
push esi
call fcn.0049db70
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x61bf4c
push 0x5a50a4
sub ecx, eax
push ecx
push eax
call fcn.004a3518
add esp, 0x14
test eax, eax
je 0x4b011e
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0049cea4
add esp, 0x14
jmp 0x4b0120
xor esi, esi
push 0x5a50a0
push ebx
push ebp
call fcn.004b7121
add esp, 0xc
test eax, eax
je 0x4b0140
push esi
push esi
push esi
push esi
push esi
call fcn.0049cea4
add esp, 0x14
push dword [edi*8 + 0x60bf24]
push ebx
push ebp
call fcn.004b7121
add esp, 0xc
test eax, eax
je 0x4b0162
push esi
push esi
push esi
push esi
push esi
call fcn.0049cea4
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004baf6b
add esp, 0xc
jmp 0x4b01aa
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4b01aa
cmp ebp, 0xffffffff
je 0x4b01aa
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x60bf24]
push dword [esi]
call fcn.0049db70
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