joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066f7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x406706
pop dword [ebp - 0x3c]
mov eax, 0x58cf2c80
add eax, 0xa7713a86
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x4a7a115a
add dword [ebp - 0x4c], 0x3d833f1
mov dword [ebp - 0x48], 0x351a981
sub dword [ebp - 0x48], 0xd11e5d3c
mov dword [ebp - 0x44], 0xea46b025
sub dword [ebp - 0x44], 0x9dfa6bf7
mov dword [ebp - 0x40], 0x4f0af48a
add dword [ebp - 0x40], 0xb0f50b76
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x403b109a
sub dword [ebp - 0x4c], 0xcbc8a744
mov dword [ebp - 0x48], 0x64081043
sub dword [ebp - 0x48], 0x229baece
mov dword [ebp - 0x44], 0xd3fc1def
sub dword [ebp - 0x44], 0x708cb183
mov dword [ebp - 0x40], 0x84edd93b
add dword [ebp - 0x40], 0x7b1226c5
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x374a3
push 0
call eax
mov ecx, 0x4951
xor edx, edx
add edx, eax
mov esi, 0xb3ed405
sub esi, 0xafde805
add esi, dword [ebp - 0x3c]
mov ebx, 0x6f2de76f
mov edi, dword [esi]
sub dword [ebp - 0x28], eax
add edi, ebx
sub dword [ebp - 0x28], 0x793dc0fd
mov dword [edx], edi
xor dword [ebp - 0x18], esi
add edx, 0x9805ca64
sub edx, 0x9805ca60
add esi, 4
loop 0x406814
add eax, 0x11817
mov ebx, eax
add eax, 0xd79f811
sub eax, 0xd79f80c
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x406b00
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c148]
jne 0x406b0a
repz ret
jmp fcn.0040704e
Function at 0x406fbe
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x40ada0
call fcn.00406fd0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
cmp dword [0x40c630], ebx
jne 0x406d61
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.kernel32.dll_HeapSetInformation]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x40c62c
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x406d9b
cmp eax, esi
jne 0x406d8e
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x406d9e
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
jmp 0x406d75
xor esi, esi
inc esi
mov eax, dword [0x40c628]
cmp eax, esi
jne 0x406db1
push 0x1f
call sub.MSVCR100.dll__amsg_exit
pop ecx
jmp 0x406dec
mov eax, dword [0x40c628]
test eax, eax
jne 0x406de6
mov dword [0x40c628], esi
push 0x408260
push 0x408254
call sub.MSVCR100.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x406dec
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x406efe
mov dword [0x40c2a8], esi
mov eax, dword [0x40c628]
cmp eax, esi
jne 0x406e10
push 0x408250
push 0x408238
call sub.MSVCR100.dll__initterm
pop ecx
pop ecx
mov dword [0x40c628], 2
cmp dword [ebp - 0x20], ebx
jne 0x406e1d
push ebx
push edi
call dword [sym.imp.kernel32.dll_InterlockedExchange]
cmp dword [0x40c634], ebx
je 0x406e3e
push 0x40c634
call fcn.004066f7
pop ecx
test eax, eax
je 0x406e3e
push ebx
push 2
push ebx
call dword [0x40c634]
mov eax, dword [sym.imp.MSVCR100.dll__wcmdln]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp ecx, 0x20
ja 0x406e9f
cmp cx, bx
je 0x406e5a
cmp dword [ebp - 0x1c], ebx
jne 0x406e9f
movzx ecx, word [eax]
cmp cx, bx
je 0x406e6f
cmp ecx, 0x20
ja 0x406e6f
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x406e5a
test byte [ebp - 0x40], 1
je 0x406e7b
movzx ecx, word [ebp - 0x3c]
jmp 0x406e7e
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x40c2a4], eax
cmp dword [0x40c298], ebx
jne 0x406ee4
push eax
call dword [sym.imp.MSVCR100.dll_exit]
cmp ecx, 0x22
jne 0x406eaf
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
add eax, 2
jmp 0x406e45
cmp dword [0x40c2a8], ebx
jne 0x406ef2
call dword [sym.imp.MSVCR100.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x40c2a4]
call fcn.00407015
ret
call fcn.004066f7
jmp 0x406d33

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x3d6f008], 0x8088405
inc edx
mov dword [ebx + 0x3d6f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x3d5354a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3d53551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x3d548af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x3d7154c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x3d7154c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x3d70378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x3d548b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x418b3d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov esi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], esi
je 0x418b82
call fcn.004163c5
mov ebx, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x418b82
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x418b9e
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00487f4c
mov ebx, eax
test edi, edi
je 0x418b9c
test esi, esi
je 0x418b9c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41d5ba
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x54c1b2
call fcn.0052658c
mov edi, ecx
xor esi, esi
cmp dword [edi + 0x6c], esi
jne 0x41d5e0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41d634
call fcn.004129f8
push eax
lea ecx, [ebp - 0x10]
call fcn.004014e0
mov ecx, dword [edi + 0x6c]
lea edx, [ebp - 0x10]
mov eax, dword [ecx]
push edx
mov dword [ebp - 4], esi
call dword [eax + 0x8c]
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00527db7
push eax
call fcn.0040398f
add esp, 0x14
test edi, edi
je 0x41d627
push edi
call fcn.00526080
pop ecx
mov esi, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401560
mov eax, esi
call fcn.0052655a
ret 8
Function at 0x43170a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test esi, esi
jne 0x431722
call fcn.004163c5
mov esi, dword [eax + 0xc]
push 0x551e54
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x431778
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x431777
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x431758
xor esi, esi
jmp 0x43176e
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.0043177e
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4b01a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
test byte [esi + 4], 1
push edi
mov dword [ebp - 4], ebx
je 0x4b01c2
mov edi, dword [esi + 0xc]
jmp 0x4b0202
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4b01db
call fcn.00413516
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4b01f0
call fcn.00413516
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4b0202
call fcn.00413516
call fcn.004163c5
cmp dword [eax + 0x3c], 0
je 0x4b0217
push edi
mov ecx, ebx
call fcn.004afa3c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004b03da
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x7c]
test ecx, ecx
je 0x4b023a
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x7c], 0
test ebx, ebx
je 0x4b0243
mov edi, ebx
mov dword [eax + 0x7c], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4eee04
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00520fc6
call fcn.00416419
cmp dword [eax + 0x14], 0
jne 0x4eee1f
mov ecx, esi
pop esi
jmp fcn.004ee223
pop esi
ret
Function at 0x4eef25
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
mov ecx, dword [esi + 4]
push eax
push dword [ebp + 0xc]
call fcn.0041d220
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4eef61
call fcn.004ef140
mov dword [esi + 0xc], 1
jmp 0x4eef66
call fcn.004ef140
cmp dword [esi], 0
je 0x4eefaf
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4eef89
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00416bbe
jmp 0x4eef9a
push 0xff
mov ecx, esi
call fcn.004016c0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00410b02
jmp 0x4eefd3
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x4eefd3
push dword [esi]
push dword [ebp - 4]
call fcn.0041efa3
pop esi
leave
ret 0xc

Function at 0x4ef097
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.004ef140
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4ef0df
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00416bbe
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00410b02
jmp 0x4ef0ea
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0041efa3
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x51ed39
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.004b38cc
call fcn.00416419
cmp dword [eax + 0x14], 0
jne 0x51ed54
mov ecx, esi
pop esi
jmp fcn.0051e62c
pop esi
ret
Function at 0x7b21b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007b2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007b2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007b2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007b2140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7b2bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7b2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7c487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7b2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7b2c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x419282
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x419291
pop dword [ebp - 8]
mov eax, 0x419291
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3d3e8
push 0
mov eax, 0xe04b0184
add eax, 0x1ff75094
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x45f3
mov ebx, eax
mov edi, 0x12dafc91
sub edi, 0x1297a891
add edi, dword [ebp - 8]
mov edx, 0xecbeb56d
xor dword [ebp - 4], esi
mov esi, dword [edi]
xor esi, edx
mov dword [ebp - 4], 0x9abeeea9
mov dword [ebx], esi
sub dword [ebp - 4], 0x6104bd04
add ebx, 0xe551fb89
sub ebx, 0xe551fb85
add edi, 0xf5ed82a0
sub edi, 0xf5ed829c
loop 0x4192df
add eax, 0x10a9f
xor ebx, ebx
add ebx, eax
add eax, 0x769dbf4e
add eax, 0x896240b7
mov ecx, 0x6fc531cf
sub ecx, 0x6f8531cf
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x401700
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov eax, dword [0x5bc570]
test byte [eax], 1
jne 0x4018b1
mov eax, dword [0x5c1038]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp + 0x24], eax
push eax
call sub.msvcrt.dll_strlen
add esp, 4
mov dword [esp + 0x28], eax
sub esp, 0x18
movsd xmm0, qword [esp + 0x3c]
lea eax, [esp + 0x20]
movsd qword [esp + 4], xmm0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp], eax
call fcn.004228d0
add esp, 0x18
test al, al
je 0x401806
mov eax, dword [esp + 4]
lea esi, [esp + 0x18]
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov byte [esp + 0x18], 0x12
mov dword [esp + 0x1d], 0x6c696b3a
mov dword [esp + 0x19], 0x74736f68
mov word [esp + 0x21], 0x6c
push esi
push eax
call fcn.00418020
add esp, 8
test byte [esp + 0x18], 1
mov ebx, eax
je 0x4017e5
push dword [esp + 0x20]
call fcn.004fc300
add esp, 4
test bl, bl
je 0x401824
push 4
push esi
push dword [esp + 0xc]
call fcn.004181e0
add esp, 0xc
push dword [esp + 4]
call fcn.00418910
add esp, 4
jmp 0x401868
push 2
call dword [0x58040c]
add esp, 4
mov ecx, dword [0x5c1038]
test byte [esp + 8], 1
je 0x401854
mov edx, dword [esp + 0x10]
jmp 0x401858
push 2
call dword [0x58040c]
add esp, 4
mov esi, eax
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call fcn.00439f20
add esp, 4
push eax
push str.error:_write_failure_during_connection:__s_n
push esi
call fcn.00438580
add esp, 0xc
xor ebx, ebx
jmp 0x40186a
lea edx, [esp + 9]
push edx
push ecx
push str.cannot_connect_to_daemon_at__s:__s_n
push eax
call fcn.00438580
add esp, 0x10
mov bl, 1
call dword [sym.imp.msvcrt.dll__errno]
mov esi, dword [eax]
mov eax, dword [esp + 4]
cmp eax, 0xffffffff
je 0x401884
push eax
call fcn.0041a210
add esp, 4
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], esi
test byte [esp + 8], 1
je 0x4018a7
push dword [esp + 0x10]
call fcn.004fc300
add esp, 4
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004ddb30
cmp eax, 1
jg 0x40171a
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
lea esi, [esp + 0x18]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 1
push 0
push 0xaa
push str.system_core_adb_client_adb_client.cpp
call fcn.004ddb50
mov ecx, esi
call fcn.004ddb40
mov esi, eax
lea eax, [esp + 8]
push str.adb_kill_server
push eax
call fcn.004deac0
add esp, 8
movzx eax, byte [esp + 8]
test al, 1
je 0x401912
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
jmp 0x401918
shr eax, 1
lea ecx, [esp + 9]
push eax
push ecx
push esi
call fcn.0056cec0
add esp, 0xc
test byte [esp + 8], 1
je 0x401936
push dword [esp + 0x10]
call fcn.004fc300
add esp, 4
lea ecx, [esp + 0x18]
call fcn.004ddc40
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], edi
jmp 0x40171a