joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b11d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x594148
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push ebp
push esi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 4]
mov esi, dword [edi + 0x14]
sub eax, 2
mov ebx, 1
cmp esi, eax
ja 0x4b1239
cmp dword [edi + 0x18], eax
je 0x4b1239
push ebx
push eax
mov ecx, edi
call fcn.0040a030
test al, al
je 0x4b1239
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], esi
jb 0x4b1232
mov eax, dword [edi + 4]
jmp 0x4b1235
lea eax, [edi + 4]
mov byte [eax + esi], 0
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add esi, ebx
mov dword [esp + 0x10], ecx
cmp esi, ecx
je 0x4b141d
jmp 0x4b1255
mov ecx, dword [esp + 0x10]
mov al, byte [esi]
add esi, ebx
mov byte [esp + 0x18], al
cmp al, 0x22
je 0x4b141d
cmp al, 0x5c
jne 0x4b1353
cmp esi, ecx
je 0x4b136f
mov al, byte [esi]
movsx eax, al
add esi, ebx
add eax, 0xffffffde
mov dword [esp + 0x84], esi
cmp eax, 0x53
ja case.0x4b1296.35
movzx eax, byte [eax + 0x4b145c]
jmp dword [eax*4 + 0x4b1434]
push 0x22
jmp 0x4b1358
push 0x2f
jmp 0x4b1358
push 0x5c
jmp 0x4b1358
push 8
jmp 0x4b1358
push 0xc
jmp 0x4b1358
push 0xa
jmp 0x4b1358
push 0xd
jmp 0x4b1358
push 9
jmp 0x4b1358
mov eax, dword [esp + 0x80]
lea edx, [esp + 0x14]
push edx
push ecx
push eax
lea ecx, [esp + 0x90]
mov edx, ebp
call fcn.004b14b0
test al, al
je 0x4b13ac
mov ecx, dword [esp + 0x14]
lea esi, [esp + 0x38]
call fcn.004afa00
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov dword [esp + 0x84], ebx
call fcn.0042e290
mov dword [esp + 0x78], 0xffffffff
cmp dword [esp + 0x50], 0x10
jb 0x4b1335
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.004f6734
add esp, 4
mov esi, dword [esp + 0x84]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
jmp 0x4b1360
mov edx, dword [esp + 0x18]
push edx
push ebx
mov ecx, edi
call fcn.004b19b0
cmp esi, dword [esp + 0x10]
jne 0x4b1251
jmp 0x4b141d
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x58]
call fcn.00409af0
mov eax, dword [esp + 0x80]
push ebp
push eax
mov edx, esi
lea ecx, [esp + 0x5c]
mov dword [esp + 0x80], 0
call fcn.004b1760
cmp dword [esp + 0x6c], 0x10
mov bl, al
jb 0x4b141d
mov ecx, dword [esp + 0x58]
push ecx
jmp 0x4b1415
xor al, al
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
push 0x1d
push str.Bad_escape_sequence_in_string
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00409ea0
mov edx, dword [esp + 0x80]
push ebp
push edx
mov edx, esi
lea ecx, [esp + 0x24]
mov dword [esp + 0x80], 2
call fcn.004b1760
cmp dword [esp + 0x34], 0x10
mov bl, al
jb 0x4b141d
mov eax, dword [esp + 0x20]
push eax
call fcn.004f6734
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x6c
ret 8
Function at 0x4b3d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x595de8
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
lea eax, [esi + 4]
mov dword [esp + 0x14], ebx
push eax
mov dword [esi], vtable.Json::StyledWriter.0
call fcn.0048dda0
mov dword [esi + 0x30], ebx
mov eax, 0xf
mov dword [esi + 0x34], eax
mov byte [esi + 0x20], bl
mov dword [esi + 0x50], eax
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x3c], bl
mov dword [esi + 0x54], 0x4a
mov dword [esi + 0x58], 3
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4
Function at 0x4b9540
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x20c], eax
cmp dword [0x660cfc], 0
push esi
jne 0x4b9641
push ecx
mov eax, esp
mov dword [esp + 8], esp
push eax
mov ecx, str.winusb
mov dword [0x660cfc], 1
call fcn.004066b0
call fcn.004c32c0
add esp, 4
test eax, eax
je 0x4b9641
cmp eax, 1
je 0x4b9641
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x12]
push edx
mov word [esp + 0x14], cx
call fcn.004fe380
add esp, 0xc
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x5f951c
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4b9641
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0xf4], eax
test eax, eax
je 0x4b9641
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.WinUsb_Initialize
push eax
call esi
mov ecx, dword [edi + 0xf4]
push str.WinUsb_GetCurrentAlternateSetting
push ecx
mov dword [0x65e140], eax
call esi
mov edx, dword [edi + 0xf4]
push str.WinUsb_QueryInterfaceSettings
push edx
mov dword [0x65e144], eax
call esi
mov dword [0x65e148], eax
mov eax, dword [edi + 0xf4]
push str.WinUsb_Free
push eax
call esi
mov dword [0x65e14c], eax
mov ecx, dword [esp + 0x210]
pop esi
xor ecx, esp
call fcn.004f673f
add esp, 0x210
ret
Function at 0x4bd5f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x59ebe0
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x61e69c]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov dword [esp + 0x1c], 1
mov eax, dword [0x6285c4]
mov edx, dword [eax + 0xc]
mov ecx, 0x6285c4
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov byte [esp + 0x1c], 2
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push str.USB_s_s
lea edi, [esp + 0x18]
call fcn.00407710
sub esp, 0x14
mov esi, esp
mov dword [esp + 0x30], esp
push 1
push 0
call fcn.004c0250
mov edx, dword [esp + 0x4c]
push edx
mov edx, eax
mov ecx, esi
call fcn.004bf270
mov byte [esp + 0x3c], 3
mov esi, dword [esp + 0x2c]
push ecx
add esi, 0xfffffff0
mov eax, esi
mov dword [esp + 0x48], esp
mov edi, esp
call fcn.004073f0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x40], 2
call fcn.004bcff0
mov edi, eax
mov byte [esp + 0x1c], 1
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4bd6b9
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bd6de
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4bd706
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x14
ret 0xc
Function at 0x4c32c0
Capabilities:
Query service status

Disassembly:
sub esp, 0x28
push esi
push 4
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4c32fd
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c32f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
pop esi
add esp, 0x28
ret
mov ecx, dword [esp + 0x30]
push edi
push 0xc
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
test edi, edi
jne 0x4c332f
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4c3368
lea ecx, [esp + 8]
push ecx
push 0x24
lea edx, [esp + 0x14]
push edx
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jge 0x4c337f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c3374
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, 1
pop esi
add esp, 0x28
ret
cmp dword [esp + 0x10], 4
jne 0x4c33a6
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
lea ecx, [esp + 0x34]
call fcn.00406760
pop edi
mov eax, 3
pop esi
add esp, 0x28
ret
lea ecx, [esp + 0x34]
call fcn.00406760
pop edi
mov eax, 2
pop esi
add esp, 0x28
ret

Function at 0x4c33c0
Capabilities:
Check os version

Disassembly:
sub esp, 0x144
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x140], eax
xor eax, eax
push esi
push 0x11c
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x30]
push eax
call fcn.004fe380
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x2c], 0x11c
call esi
test eax, eax
jne 0x4c343a
lea edx, [esp + 0x28]
push edx
mov dword [esp + 0x2c], 0x114
call esi
test eax, eax
je 0x4c3487
push str.GetNativeSystemInfo
push 0x5d7fc8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4c3487
lea ecx, [esp + 4]
push ecx
call eax
mov eax, dword [esp + 4]
cmp ax, 9
je 0x4c346c
cmp ax, 6
jne 0x4c3487
mov eax, 1
pop esi
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.004f673f
add esp, 0x144
ret
mov ecx, dword [esp + 0x144]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004f673f
add esp, 0x144
ret
Function at 0x4c34a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x61e69c]
xor eax, esp
mov dword [esp + 0x114], eax
lea eax, [esp]
push eax
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x10], 2
jne 0x4c359a
mov eax, dword [esp + 4]
cmp eax, 5
jne 0x4c3535
mov eax, dword [esp + 8]
test eax, eax
jne 0x4c34fc
mov eax, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f673f
add esp, 0x118
ret
cmp eax, 1
jne 0x4c351b
mov eax, 3
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f673f
add esp, 0x118
ret
cmp eax, 2
jne 0x4c359a
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f673f
add esp, 0x118
ret
cmp eax, 6
jne 0x4c359a
mov eax, dword [esp + 8]
test eax, eax
jne 0x4c355c
mov eax, 4
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f673f
add esp, 0x118
ret
cmp eax, 1
jne 0x4c357b
mov eax, 5
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f673f
add esp, 0x118
ret
cmp eax, 2
jne 0x4c359a
mov eax, 7
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004f673f
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor ecx, esp
xor eax, eax
call fcn.004f673f
add esp, 0x118
ret
Function at 0x4c4790
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x74
push 0xffffffffffffffff
push 0x592618
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x61e69c]
xor eax, ebp
mov dword [ebp + 0x70], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 8]
lea esi, [edi + 8]
mov dword [ebp + 0x2c], edi
mov ebx, edx
test eax, eax
je 0x4c47e5
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov dword [esi], 0
mov byte [edi + 0x10], 0
mov dword [ebp - 4], 0
cmp dword [edi + 4], 0
jne 0x4c481a
lea eax, [ebp + 0x34]
push eax
lea ecx, [ebp + 0x18]
mov dword [ebp + 0x34], str.SetKey:_Provider_is_not_valid
call fcn.004f795a
push 0x607cf0
lea ecx, [ebp + 0x18]
push ecx
mov dword [ebp + 0x18], vtable.WinAESException.0
call fcn.004fe8eb
test ebx, ebx
jne 0x4c4846
lea edx, [ebp + 0x28]
push edx
lea ecx, [ebp - 0x28]
mov dword [ebp + 0x28], str.SetKey:_Key_buffer_is_NULL
call fcn.004f795a
push 0x607cf0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], vtable.WinAESException.0
call fcn.004fe8eb
push 0x2c
lea ecx, [ebp + 0x44]
push 0
push ecx
call fcn.004fe380
xor edx, edx
mov byte [ebp + 0x44], 8
mov byte [ebp + 0x45], 2
mov word [ebp + 0x46], dx
push 0x10
push ebx
lea eax, [ebp + 0x50]
mov byte [ebp - 4], 1
push 0x10
push eax
mov dword [ebp + 0x48], 0x660e
mov dword [ebp + 0x4c], 0x10
call fcn.004f745a
add esp, 0x1c
test eax, eax
je 0x4c48b0
lea ecx, [ebp + 0x24]
push ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp + 0x24], str.SetKey:_Unable_to_copy_key
call fcn.004f795a
push 0x607cf0
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], vtable.WinAESException.0
call fcn.004fe8eb
mov ecx, dword [edi + 4]
push esi
push 0
push 0
push 0x1c
lea eax, [ebp + 0x44]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x4c48f1
lea edx, [ebp + 0x30]
push edx
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x30], str.SetKey:_Import_key_failed
call fcn.004f795a
push 0x607cf0
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], vtable.WinAESException.0
call fcn.004fe8eb
mov edx, dword [esi]
push 0
lea ecx, [ebp + 0x38]
push ecx
push 4
push edx
mov dword [ebp + 0x38], 1
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x4c4973
lea eax, [ebp + 0x3c]
push eax
lea ecx, [ebp]
mov dword [ebp + 0x3c], str.SetKey:_Set_CBC_mode_failed
call fcn.004f795a
push 0x607cf0
lea ecx, [ebp]
push ecx
mov dword [ebp], vtable.WinAESException.0
call fcn.004fe8eb
mov edx, dword [ebp + 0x2c]
test byte [edx + 0x14], 0x10
je 0x4c4947
push 0
push 0
call fcn.004fe8eb
mov byte [ebp + 0x43], 0
mov eax, 0x4c4951
ret
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
call fcn.004f673f
add ebp, 0x74
mov esp, ebp
pop ebp
ret
mov al, 1
mov edx, 4
lea ecx, [ebp + 0x44]
lea ecx, [ecx]
test edx, edx
je 0x4c4954
mov byte [ecx], 0
inc ecx
dec edx
jmp 0x4c4980
Function at 0x4c6b24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x20
mov eax, 0x5a1fd1
call fcn.004fed1d
push dword [ebp + 0xc]
movzx ebx, word [ebp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
xor eax, eax
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
call esi
mov edi, eax
test edi, edi
jne 0x4c6b8b
push 0x5dc2b4
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x4c6b8b
push 0x5dc2c8
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
jne 0x4c6b8b
push 0x5dc2c0
push ebx
push dword [ebp + 8]
call esi
mov edi, eax
test edi, edi
je 0x4c6c85
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jle 0x4c6c85
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c6c85
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4c6c85
push ebx
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push ebx
push esi
push eax
mov dword [ebp - 0x10], eax
call fcn.00500790
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
cmp dword [ebp - 0x14], edi
je 0x4c6c92
mov eax, dword [ebp - 0x10]
call fcn.00432450
test eax, eax
je 0x4c6c36
lea esi, [ebp + 0x10]
call fcn.00432b20
and dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
mov eax, esi
call fcn.00432b10
mov eax, dword [eax]
mov ecx, dword [eax]
push ebx
push dword [ebp - 0x10]
push eax
call dword [ecx + 0x14]
or dword [ebp - 4], 0xffffffff
test eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4c6c85
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x4c6c85
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, edi
je 0x4c6c4f
mov ecx, dword [ebp - 0x14]
mov esi, eax
call fcn.0040a440
mov esi, eax
jmp 0x4c6c51
xor esi, esi
test esi, esi
jne 0x4c6c5b
or dword [ebp - 4], 0xffffffff
jmp 0x4c6c85
push 0xff000000
lea eax, [ebp - 0x18]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x4c6c75
mov dword [esi + 8], eax
jmp 0x4c6c77
xor eax, eax
or dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4c6c92
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x4c6ca5
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x18]
call fcn.004fedbc
ret
Function at 0x4c6cae
Capabilities:
Read file on windows

Disassembly:
push 0x20
mov eax, 0x5a1fa6
call fcn.004fed1d
xor esi, esi
mov dword [ebp - 0x14], esi
cmp dword [ebp + 8], esi
jne 0x4c6ccb
xor eax, eax
jmp 0x4c6dfe
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, si
jne 0x4c6cd1
sub eax, edx
sar eax, 1
cmp eax, 4
jl 0x4c6cc4
push 0x5dee8c
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
call fcn.004f92b0
add esp, 0xc
test eax, eax
jne 0x4c6da4
cmp dword [ebp - 0x10], esi
je 0x4c6da4
push 2
push esi
push dword [ebp - 0x10]
call fcn.004f9855
add esp, 0xc
push dword [ebp - 0x10]
call fcn.004f975d
pop ecx
push esi
push esi
push dword [ebp - 0x10]
mov edi, eax
call fcn.004f9855
add esp, 0xc
cmp edi, 0xa
jle 0x4c6d9b
push edi
call fcn.004f499a
mov ebx, eax
pop ecx
cmp ebx, esi
je 0x4c6d9b
push dword [ebp - 0x10]
push 1
push edi
push ebx
call fcn.004f95a3
add esp, 0x10
mov eax, ebx
call fcn.00432450
test eax, eax
je 0x4c6d94
lea esi, [ebp - 0x18]
call fcn.00432b20
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov eax, esi
call fcn.00432b10
mov eax, dword [eax]
mov ecx, dword [eax]
push edi
push ebx
push eax
call dword [ecx + 0x14]
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4c6d92
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor esi, esi
push ebx
call fcn.004f744f
pop ecx
push dword [ebp - 0x10]
call fcn.004f9951
pop ecx
cmp dword [ebp - 0x14], esi
jne 0x4c6dfb
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, esi
je 0x4c6dc0
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.0040a400
mov esi, eax
test esi, esi
je 0x4c6cc4
push 0xff000000
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x4c6de2
mov dword [esi + 8], eax
jmp 0x4c6de4
xor eax, eax
or dword [ebp - 4], 0xffffffff
test eax, eax
mov eax, dword [esi]
push 1
mov ecx, esi
je 0x4c6df9
call dword [eax]
jmp 0x4c6cc4
call dword [eax]
mov eax, dword [ebp - 0x14]
call fcn.004fedbc
ret
Function at 0x4c6fcc
Capabilities:
Print debug messages

Disassembly:
push 8
mov eax, 0x5a2fab
call fcn.004fed1d
mov ebx, dword [ebp + 8]
cmp dword [ebx + 0x30], 0
jne 0x4c712a
lea edi, [ebx + 0x40]
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
test eax, eax
jne 0x4c700a
mov ecx, dword [ebx + 0x14]
cmp ecx, 1
je 0x4c712a
cmp ecx, 2
je 0x4c712a
test eax, eax
je 0x4c701e
lea eax, [ebx + 0x3c]
push eax
mov eax, edi
call fcn.00478c50
pop ecx
test al, al
jne 0x4c712a
mov eax, dword [ebx + 0x14]
cmp eax, 3
jne 0x4c7032
mov ecx, dword [ebx + 0x64]
cmp ecx, dword [ebx + 8]
je 0x4c712a
cmp eax, 1
jne 0x4c7041
push dword [edi]
call fcn.004c6cae
pop ecx
jmp 0x4c70a4
cmp eax, 2
jne 0x4c708d
mov eax, dword [edi]
mov ecx, dword [ebx + 0x38]
push eax
push ecx
call fcn.004c6e04
pop ecx
pop ecx
mov dword [ebx + 0x30], eax
test eax, eax
jne 0x4c70ad
lea esi, [ebp - 0x10]
call fcn.00406670
and dword [ebp - 4], 0
push dword [edi]
mov edi, esi
push 0x5fa09c
call fcn.00407710
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00406760
jmp 0x4c70ad
cmp eax, 3
jne 0x4c70a9
push dword [ebx + 8]
mov eax, dword [ebx + 0x44]
push eax
push dword [ebx + 0x4c]
call fcn.004c6b24
add esp, 0xc
mov dword [ebx + 0x30], eax
jmp 0x4c70ad
and dword [ebx + 0x30], 0
cmp dword [ebx + 0x30], 0
lea edi, [ebx + 0x3c]
jne 0x4c7100
mov eax, dword [ebx + 8]
mov dword [ebx + 0x64], eax
mov ecx, dword [ebx + 0x40]
mov esi, dword [edi]
lea eax, [ecx - 0x10]
sub esi, 0x10
cmp eax, esi
je 0x4c710a
cmp dword [esi + 0xc], 0
jl 0x4c70f0
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c70f0
call fcn.004073f0
mov dword [ebp + 8], eax
mov eax, esi
call fcn.00403930
mov eax, dword [ebp + 8]
add eax, 0x10
mov dword [edi], eax
jmp 0x4c710a
mov ebx, dword [ecx - 0xc]
push ecx
mov eax, edi
call fcn.004072f0
mov ebx, dword [ebp + 8]
jmp 0x4c710a
mov edx, 0x5d74e0
call fcn.00406780
mov eax, dword [ebx + 0x34]
mov dword [ebx + 4], eax
test eax, eax
jg 0x4c711b
mov dword [ebx + 0x34], 1
lea eax, [ebx + 0x18]
push eax
push 0x18
push dword [ebx + 0x30]
call dword [sym.imp.GDI32.dll_GetObjectW]
call fcn.004fedbc
ret 4

Function at 0x4c7b4c
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
push edi
push 0x5e1068
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_FindWindowW]
cmp eax, edi
jne 0x4c7b6c
xor eax, eax
jmp 0x4c7bd2
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 4], edi
je 0x4c7b68
push esi
push dword [ebp - 4]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
jne 0x4c7b96
xor eax, eax
jmp 0x4c7bd1
lea eax, [ebp - 8]
push eax
push 2
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea eax, [ebp - 0xc]
push eax
push 1
push 2
push edi
push 0xf01ff
push dword [ebp - 8]
mov dword [ebp - 0xc], edi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
push dword [ebp - 8]
call esi
mov eax, dword [ebp - 0xc]
pop esi
pop edi
leave
ret
Function at 0x4c8292
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov ecx, 0x5d906c
call fcn.004104a0
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x11f]
push ebx
push eax
mov byte [ebp - 0x120], bl
call fcn.004fe380
add esp, 0xc
push 0x104
lea eax, [ebp - 0x120]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str..._adbfile.dat
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebx
push 0x80
push 3
push ebx
push 1
push bind
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4c8323
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
call fcn.00492ad0
jmp 0x4c83c5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + 1]
push eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
call fcn.004f499a
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4c8372
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4c8372
cmp dword [ebp - 0x10], edi
jne 0x4c8372
mov eax, dword [ebp - 0x14]
mov byte [esi + eax - 1], bl
mov edx, esi
lea ebx, [ebp - 4]
call fcn.00410580
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x4c8380
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov edi, str.aec2226fdac04fd4
push esp
mov ecx, edi
call fcn.004104a0
push ecx
push esp
mov ecx, edi
call fcn.004104a0
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.004c8175
add esp, 0x14
cmp esi, ebx
je 0x4c83b2
push esi
call fcn.004f744f
pop ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0xc]
call fcn.00492ad0
lea eax, [ebp - 0xc]
call fcn.004b8a70
lea eax, [ebp - 4]
call fcn.004b8a70
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret