joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472593
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x7e4
mov ebx, eax
mov dword [esp + 8], 0xd
mov dword [esp + 4], str.urn:publicid:
mov dword [esp], eax
call sym.evasi0n_gui.exe_xmlStrncmp
mov edx, eax
xor eax, eax
test edx, edx
jne 0x4726f1
add ebx, 0xd
jmp 0x4726d1
cmp eax, 0x7cc
ja 0x4726db
cmp dl, 0x2b
jne 0x4725e6
mov byte [ebp + eax - 0x7d8], 0x20
inc eax
jmp 0x472615
cmp dl, 0x3a
jne 0x4725fd
mov byte [ebp + eax - 0x7d8], 0x2f
mov byte [ebp + eax - 0x7d7], 0x2f
jmp 0x472612
cmp dl, 0x3b
jne 0x47261d
mov byte [ebp + eax - 0x7d8], 0x3a
mov byte [ebp + eax - 0x7d7], 0x3a
add eax, 2
lea edx, [ebx + 1]
jmp 0x4726cf
cmp dl, 0x25
lea ecx, [ebx + 1]
jne 0x4726c5
mov edx, ecx
mov cl, byte [ebx + 1]
cmp cl, 0x32
jne 0x472645
mov cl, byte [ebx + 2]
cmp cl, 0x42
jne 0x47265c
mov byte [ebp + eax - 0x7d8], 0x2b
jmp 0x4726b4
cmp cl, 0x33
jne 0x4726ba
mov cl, byte [ebx + 2]
cmp cl, 0x41
jne 0x47266b
mov byte [ebp + eax - 0x7d8], 0x3a
jmp 0x4726b4
cmp cl, 0x46
jne 0x47267a
mov byte [ebp + eax - 0x7d8], 0x2f
jmp 0x4726b4
cmp cl, 0x42
jne 0x472689
mov byte [ebp + eax - 0x7d8], 0x3b
jmp 0x4726b4
cmp cl, 0x37
jne 0x472698
mov byte [ebp + eax - 0x7d8], 0x27
jmp 0x4726b4
cmp cl, 0x46
jne 0x4726ba
mov byte [ebp + eax - 0x7d8], 0x3f
jmp 0x4726b4
cmp cl, 0x33
jne 0x4726a7
mov byte [ebp + eax - 0x7d8], 0x23
jmp 0x4726b4
cmp cl, 0x35
jne 0x4726ba
mov byte [ebp + eax - 0x7d8], 0x25
inc eax
lea edx, [ebx + 3]
jmp 0x4726cf
mov byte [ebp + eax - 0x7d8], 0x25
inc eax
jmp 0x4726cf
mov byte [ebp + eax - 0x7d8], dl
inc eax
mov edx, ecx
mov ebx, edx
mov dl, byte [ebx]
test dl, dl
jne 0x4725cb
mov byte [ebp + eax - 0x7d8], 0
lea eax, [ebp - 0x7d8]
mov dword [esp], eax
call sym.evasi0n_gui.exe_xmlStrdup
add esp, 0x7e4
pop ebx
leave
ret

Function at 0x47309d
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x6d971c], 0
jne 0x4730da
mov dword [esp], str.XML_DEBUG_CATALOG
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4730c6
mov dword [0x6d9b10], 1
call sym.evasi0n_gui.exe_xmlNewRMutex
mov dword [0x6d9b14], eax
mov dword [0x6d971c], 1
leave
ret

Function at 0x473141
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov esi, eax
xor ebx, ebx
test eax, eax
je 0x4731cb
lea eax, [ebp - 0x3c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll__stat
test eax, eax
js 0x4731cb
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll__open
mov esi, eax
test eax, eax
js 0x4731cb
mov edi, dword [ebp - 0x28]
lea eax, [edi + 0xa]
mov dword [esp], eax
call dword [sym.evasi0n_gui.exe_xmlMallocAtomic]
mov ebx, eax
test eax, eax
jne 0x47319c
mov eax, str.allocating_catalog_data
call fcn.0047279b
jmp 0x4731cb
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll__read
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll__close
test edi, edi
jns 0x4731c7
mov dword [esp], ebx
call dword [sym.evasi0n_gui.exe_xmlFree]
xor ebx, ebx
jmp 0x4731cb
mov byte [ebx + edi], 0
mov eax, ebx
add esp, 0x4c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x475a95
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x6d971c], 0
jne 0x475bb8
call fcn.0047309d
mov eax, dword [0x6d9b14]
mov dword [esp], eax
call sym.evasi0n_gui.exe_xmlRMutexLock
mov dword [esp], str.XML_DEBUG_CATALOG
call sub.msvcrt.dll_getenv
test eax, eax
je 0x475ad7
mov dword [0x6d9b10], 1
cmp dword [0x6d9720], 0
jne 0x475bab
mov dword [esp], str.XML_CATALOG_FILES
call sub.msvcrt.dll_getenv
mov ebx, eax
test eax, eax
jne 0x475afb
mov ebx, str.file:___etc_xml_catalog
mov edx, dword [0x5f32e8]
mov eax, 1
call fcn.004730dc
mov edi, eax
test eax, eax
je 0x475bab
lea eax, [eax + 0x3c]
mov dword [ebp - 0x1c], eax
jmp 0x475b9c
inc ebx
mov al, byte [ebx]
lea edx, [eax - 9]
cmp dl, 1
jbe 0x475b1d
cmp al, 0x20
je 0x475b1d
cmp al, 0xd
je 0x475b1d
mov edx, ebx
test al, al
je 0x475b9c
jmp 0x475b39
inc ebx
mov al, byte [ebx]
test al, al
je 0x475b4f
lea ecx, [eax - 9]
cmp cl, 1
jbe 0x475b4f
cmp al, 0x20
je 0x475b4f
cmp al, 0xd
jne 0x475b38
mov eax, ebx
sub eax, edx
mov dword [esp + 4], eax
mov dword [esp], edx
call sym.evasi0n_gui.exe_xmlStrndup
mov esi, eax
test eax, eax
je 0x475b9c
mov dword [esp + 8], 0
mov eax, dword [0x5f32e8]
mov dword [esp + 4], eax
mov dword [esp], esi
xor ecx, ecx
xor edx, edx
mov eax, 1
call fcn.00472827
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
test eax, eax
je 0x475b93
mov dword [ebp - 0x1c], eax
mov dword [esp], esi
call dword [sym.evasi0n_gui.exe_xmlFree]
cmp byte [ebx], 0
jne 0x475b1e
mov dword [0x6d9720], edi
mov eax, dword [0x6d9b14]
mov dword [esp], eax
call sym.evasi0n_gui.exe_xmlRMutexUnlock
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x480275
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, eax
mov esi, edx
call fcn.0047f74e
test esi, esi
jne 0x4802ab
cmp dword [ebx + 0x7c], 0
jne 0x480358
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov dword [esp], str.DTD_node_is_NULL_n
call fcn.0059fdc8
jmp 0x480358
cmp dword [esi + 4], 0xe
je 0x4802c8
mov ecx, str.Node_is_not_a_DTD
mov edx, 0x139e
mov eax, ebx
add esp, 0x10
pop ebx
pop esi
leave
jmp fcn.0047f78e
cmp dword [ebx + 0x7c], 0
jne 0x480349
mov edx, dword [esi + 8]
test edx, edx
mov eax, dword [ebx]
je 0x4802ed
mov dword [esp + 8], edx
mov dword [esp + 4], str.DTD__s_
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4802fd
mov dword [esp + 4], eax
mov dword [esp], 0x66ec0c
call fcn.0059fdc8
mov eax, dword [esi + 0x34]
test eax, eax
je 0x48031a
mov dword [esp + 8], eax
mov dword [esp + 4], str.__PUBLIC__s
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [esi + 0x38]
test eax, eax
je 0x480337
mov dword [esp + 8], eax
mov dword [esp + 4], str.__SYSTEM__s
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call fcn.0059fd00
mov edx, esi
mov eax, ebx
add esp, 0x10
pop ebx
pop esi
leave
jmp fcn.00480002
add esp, 0x10
pop ebx
pop esi
leave
ret
Function at 0x480e56
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, eax
mov esi, edx
call fcn.0047f74e
test esi, esi
jne 0x480e89
cmp dword [ebx + 0x7c], 0
jne 0x480ef7
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov dword [esp], str.Attr_is_NULL
call fcn.0059fdc8
jmp 0x480ef7
cmp dword [ebx + 0x7c], 0
jne 0x480ed1
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov dword [esp], str.ATTRIBUTE
call fcn.0059fdc8
mov edx, dword [esi + 8]
mov eax, ebx
call fcn.0047fbbb
mov eax, dword [ebx]
mov dword [esp + 4], eax
mov dword [esp], 0xa
call fcn.0059fd00
mov edx, dword [esi + 0xc]
test edx, edx
je 0x480ed1
inc dword [ebx + 0x6c]
mov eax, ebx
call fcn.00480e37
dec dword [ebx + 0x6c]
cmp dword [esi + 8], 0
jne 0x480ee8
mov ecx, str.Attribute_has_no_name
mov edx, 0x1397
mov eax, ebx
call fcn.0047f78e
mov edx, esi
mov eax, ebx
add esp, 0x10
pop ebx
pop esi
leave
jmp fcn.00480002
add esp, 0x10
pop ebx
pop esi
leave
ret

Function at 0x482f68
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp dword [0x6d9f88], 0
jne 0x482fbd
mov dword [esp], 0x6d9f8c
call sub.KERNEL32.dll_InterlockedIncrement
push edx
dec eax
jne 0x482fb4
call sub.KERNEL32.dll_TlsAlloc
mov dword [0x5f361c], eax
call sub.KERNEL32.dll_GetCurrentThreadId
mov dword [0x6d9f84], eax
mov dword [0x6d9f88], 1
jmp 0x482fbd
mov dword [esp], 0
call sub.KERNEL32.dll_Sleep
push eax
cmp dword [0x6d9f88], 0
je 0x482fa7
leave
ret
Function at 0x48324b
Capabilities:
Create thread
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
call fcn.00482f68
mov eax, dword [0x5f361c]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
push ecx
mov esi, eax
test eax, eax
jne 0x483362
mov dword [esp], 0x204
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
jne 0x4832a3
call sym.evasi0n_gui.exe___xmlGenericError
mov ebx, dword [eax]
call sym.evasi0n_gui.exe___xmlGenericErrorContext
mov dword [esp + 4], str.xmlGetGlobalState:_out_of_memory_n
mov eax, dword [eax]
mov dword [esp], eax
call ebx
jmp 0x483362
mov ecx, 0x81
mov edi, eax
mov eax, esi
rep stosd dword es:[edi], eax
mov dword [esp], ebx
call sym.evasi0n_gui.exe_xmlInitializeGlobalState
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov edi, eax
test eax, eax
jne 0x4832ec
call sym.evasi0n_gui.exe___xmlGenericError
mov edi, dword [eax]
call sym.evasi0n_gui.exe___xmlGenericErrorContext
mov dword [esp + 4], str.xmlGetGlobalState:_out_of_memory_n
mov eax, dword [eax]
mov dword [esp], eax
call edi
mov eax, ebx
call fcn.00482fbf
jmp 0x483362
mov dword [eax + 4], ebx
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [ebp - 0x1c], eax
call sub.KERNEL32.dll_GetCurrentThread
mov esi, eax
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov edx, dword [ebp - 0x1c]
mov dword [esp + 8], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.KERNEL32.dll_DuplicateHandle
sub esp, 0x1c
mov dword [esp + 4], ebx
mov eax, dword [0x5f361c]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsSetValue
push edx
push edx
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], 0x482fe4
call sub.msvcrt.dll__beginthread
mov esi, ebx
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x48c71f
Capabilities:
Encrypt data using speck

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x6d9f94], 0
jne 0x48c733
call sym.evasi0n_gui.exe_xmlSchemaInitTypes
mov edx, dword [ebp + 8]
dec edx
xor eax, eax
cmp edx, 0x2d
ja case.default.0x48c742
jmp dword [edx*4 + 0x670da8]
mov eax, dword [0x6d9fac]
jmp case.default.0x48c742
mov eax, dword [0x6d9fb0]
jmp case.default.0x48c742
mov eax, dword [0x6d9fb4]
jmp case.default.0x48c742
mov eax, dword [0x6d9fb8]
jmp case.default.0x48c742
mov eax, dword [0x6d9fbc]
jmp case.default.0x48c742
mov eax, dword [0x6d9fc0]
jmp case.default.0x48c742
mov eax, dword [0x6d9fc4]
jmp case.default.0x48c742
mov eax, dword [0x6d9fc8]
jmp case.default.0x48c742
mov eax, dword [0x6d9fcc]
jmp case.default.0x48c742
mov eax, dword [0x6d9fd0]
jmp case.default.0x48c742
mov eax, dword [0x6d9fd4]
jmp case.default.0x48c742
mov eax, dword [0x6d9fd8]
jmp case.default.0x48c742
mov eax, dword [0x6d9fdc]
jmp case.default.0x48c742
mov eax, dword [0x6d9f98]
jmp case.default.0x48c742
mov eax, dword [0x6d9fe0]
jmp case.default.0x48c742
mov eax, dword [0x6d9fe4]
jmp case.default.0x48c742
mov eax, dword [0x6d9fe8]
jmp case.default.0x48c742
mov eax, dword [0x6d9fec]
jmp case.default.0x48c742
mov eax, dword [0x6d9f9c]
jmp case.default.0x48c742
mov eax, dword [0x6d9ff0]
jmp case.default.0x48c742
mov eax, dword [0x6d9ff4]
jmp case.default.0x48c742
mov eax, dword [0x6d9ff8]
jmp case.default.0x48c742
mov eax, dword [0x6d9ffc]
jmp case.default.0x48c742
mov eax, dword [0x6da000]
jmp case.default.0x48c742
mov eax, dword [0x6d9fa0]
jmp case.default.0x48c742
mov eax, dword [0x6da004]
jmp case.default.0x48c742
mov eax, dword [0x6d9fa4]
jmp case.default.0x48c742
mov eax, dword [0x6da008]
jmp case.default.0x48c742
mov eax, dword [0x6da00c]
jmp case.default.0x48c742
mov eax, dword [0x6da010]
jmp case.default.0x48c742
mov eax, dword [0x6da014]
jmp case.default.0x48c742
mov eax, dword [0x6da018]
jmp case.default.0x48c742
mov eax, dword [0x6da01c]
jmp case.default.0x48c742
mov eax, dword [0x6da020]
jmp case.default.0x48c742
mov eax, dword [0x6da024]
jmp case.default.0x48c742
mov eax, dword [0x6da028]
jmp case.default.0x48c742
mov eax, dword [0x6da02c]
jmp case.default.0x48c742
mov eax, dword [0x6da030]
jmp case.default.0x48c742
mov eax, dword [0x6da034]
jmp case.default.0x48c742
mov eax, dword [0x6da038]
jmp case.default.0x48c742
mov eax, dword [0x6da03c]
jmp case.default.0x48c742
mov eax, dword [0x6da040]
jmp case.default.0x48c742
mov eax, dword [0x6da044]
jmp case.default.0x48c742
mov eax, dword [0x6da048]
jmp case.default.0x48c742
mov eax, dword [0x6da04c]
jmp case.default.0x48c742
mov eax, dword [0x6da050]
leave
ret
Function at 0x48e1a9
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp + 0x14], 0
mov dword [ebp + 0x10], 1
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], ebx
pop ebx
pop ebx
leave
jmp fcn.0048e2f4

Function at 0x4900de
Capabilities:
Parse credit card information
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
mov dword [ebp + 0x14], 1
mov dword [ebp + 0x10], 0
mov dword [ebp + 0xc], 1
mov dword [ebp + 8], ebx
pop ebx
pop ebx
leave
jmp fcn.0048e2f4
Function at 0x4a0f68
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
test edx, edx
jle 0x4a0fa3
test eax, eax
je 0x4a0fa3
xor ebx, ebx
xor ecx, ecx
movzx esi, byte [eax + ebx]
add ecx, esi
imul esi, ecx, 0x401
mov ecx, esi
shr ecx, 6
xor ecx, esi
inc ebx
cmp ebx, edx
jl 0x4a0f79
lea ecx, [ecx + ecx*8]
mov eax, ecx
shr eax, 0xb
xor eax, ecx
imul eax, eax, 0x8001
jmp 0x4a0fa5
xor eax, eax
pop ebx
pop esi
leave
ret
Function at 0x4a70ea
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov edi, eax
mov ebx, edx
mov dword [edx + 0x4c], 0
mov dword [edx + 0x50], 0
test byte [edx + 0x20], 1
je 0x4a7134
mov eax, dword [edx + 0xc]
test eax, eax
je 0x4a7122
mov dword [esp], eax
call dword [sym.evasi0n_gui.exe_xmlFree]
mov dword [ebx + 0xc], 0
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4a7142
mov dword [esp], eax
call dword [sym.evasi0n_gui.exe_xmlFree]
jmp 0x4a713b
mov dword [edx + 0xc], 0
mov dword [ebx + 0x10], 0
test byte [ebx + 0x20], 2
je 0x4a7158
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x4a715f
mov dword [esp], eax
call dword [sym.evasi0n_gui.exe_xmlFree]
mov dword [ebx + 0x14], 0
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x4a7175
mov dword [esp], eax
call sym.evasi0n_gui.exe_xmlSchemaFreeValue
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 0x38]
test esi, esi
je 0x4a7232
add edi, 0x78
mov dword [ebp - 0x1c], ebx
jmp 0x4a718a
mov esi, ebx
mov ebx, dword [esi + 8]
cmp dword [esi + 0x18], 0
je 0x4a71c0
xor eax, eax
jmp 0x4a71bb
mov edx, dword [esi + 0x18]
mov edx, dword [edx + eax*4]
test edx, edx
je 0x4a71ba
mov dword [esp], edx
mov dword [ebp - 0x20], eax
call dword [sym.evasi0n_gui.exe_xmlFree]
mov edx, dword [esi + 0x18]
mov eax, dword [ebp - 0x20]
mov dword [edx + eax*4], 0
inc eax
cmp eax, dword [esi + 0x1c]
jl 0x4a7197
cmp dword [esi + 0x20], 0
je 0x4a720e
cmp dword [esi + 0x14], 0x18
jne 0x4a71ff
xor eax, eax
jmp 0x4a71f7
mov edx, dword [edx]
mov edx, dword [edx + eax*4]
mov ecx, dword [edx + 4]
mov dword [esp], ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], edx
call dword [sym.evasi0n_gui.exe_xmlFree]
mov edx, dword [ebp - 0x24]
mov dword [esp], edx
call dword [sym.evasi0n_gui.exe_xmlFree]
mov eax, dword [ebp - 0x20]
inc eax
mov edx, dword [esi + 0x20]
cmp eax, dword [edx + 4]
jl 0x4a71d0
mov eax, dword [esi + 0x20]
call fcn.004a4335
mov dword [esi + 0x20], 0
mov dword [esi + 8], 0
mov eax, dword [edi]
test eax, eax
je 0x4a721e
mov dword [esi + 0xc], eax
mov dword [edi], esi
test ebx, ebx
jne 0x4a7188
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 0x38], 0
mov eax, dword [ebx + 0x34]
test eax, eax
jne 0x4a723d
jmp 0x4a724f
mov eax, esi
mov esi, dword [eax]
call fcn.004a486b
test esi, esi
jne 0x4a723b
mov dword [ebx + 0x34], 0
mov eax, dword [ebx + 0x3c]
test eax, eax
je 0x4a7265
mov dword [esp], eax
call sym.evasi0n_gui.exe_xmlRegFreeExecCtxt
mov dword [ebx + 0x3c], 0
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x4a728a
mov dword [esp], eax
call dword [sym.evasi0n_gui.exe_xmlFree]
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x48], 0
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4c33d8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
test ebx, ebx
je 0x4c3434
test eax, eax
je 0x4c3434
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [ebp - 0x1c], edx
call sym.evasi0n_gui.exe_xmlParserInputBufferCreateStatic
test eax, eax
mov edx, dword [ebp - 0x1c]
je 0x4c3434
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
jmp sym.evasi0n_gui.exe_xmlTextReaderSetup
or eax, 0xffffffff
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4c348c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
test eax, eax
js 0x4c34e8
test ebx, ebx
je 0x4c34e8
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [ebp - 0x1c], edx
call sym.evasi0n_gui.exe_xmlParserInputBufferCreateFd
test eax, eax
mov edx, dword [ebp - 0x1c]
je 0x4c34e8
mov dword [eax + 8], 0
mov dword [ebp + 0x18], edx
mov dword [ebp + 0x14], edi
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
jmp sym.evasi0n_gui.exe_xmlTextReaderSetup
or eax, 0xffffffff
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4c34f3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp + 0x1c]
mov edi, dword [ebp + 0x20]
test eax, eax
je 0x4c3556
test ebx, ebx
je 0x4c3556
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.evasi0n_gui.exe_xmlParserInputBufferCreateIO
test eax, eax
je 0x4c3556
mov dword [ebp + 0x18], edi
mov dword [ebp + 0x14], esi
mov edx, dword [ebp - 0x1c]
mov dword [ebp + 0x10], edx
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ebx
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
jmp sym.evasi0n_gui.exe_xmlTextReaderSetup
or eax, 0xffffffff
add esp, 0x2c
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4c6b4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c6ba8
mov dword [0x6da078], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4c68b8
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov dword [0x6da064], eax
test eax, eax
je 0x4c6bb4
xor ebx, ebx
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
mov ebx, 0xffffffea
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
call sub.KERNEL32.dll_GetLastError
mov ebx, eax
test eax, eax
je 0x4c6ba0
mov ecx, dword [0x6da068]
test ecx, ecx
jle 0x4c6ba0
mov dword [esp + 8], str.usbmuxd_subscribe
mov dword [esp + 4], str._s:_ERROR:_Could_not_start_device_watcher_thread__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4c74b8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
test eax, eax
js 0x4c7538
mov dword [esp + 0xc], 0
mov dword [esp + 8], esi
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.WS2_32.dll_send
sub esp, 0x10
mov ebx, eax
test eax, eax
js 0x4c7548
cmp esi, eax
jbe 0x4c7527
mov eax, dword [0x6da068]
test eax, eax
jle 0x4c7527
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.usbmuxd_send
mov dword [esp + 4], str._s:_Warning:_Did_not_send_enough__only__d_of__d__n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [edi], ebx
xor ebx, ebx
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov ebx, 0xffffffea
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [edi], 0
mov edx, dword [0x6da068]
test edx, edx
jle 0x4c752b
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.usbmuxd_send
mov dword [esp + 4], str._s:_Error__d_when_sending:__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4c752b
Function at 0x4c764c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
test eax, eax
jle 0x4c76d4
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], 0
inc eax
mov dword [ebp - 0x12c], eax
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x124]
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [ebp - 0x130], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x12c]
mov dword [esp], eax
call sub.WS2_32.dll_select
sub esp, 0x14
mov ebx, eax
test eax, eax
js 0x4c76f0
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
cmp dword [0x6da084], 1
jg 0x4c77a6
mov ebx, 0xffffffff
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
call sub.msvcrt.dll__errno
mov eax, dword [eax]
cmp eax, 4
je 0x4c7744
cmp eax, 0xb
je 0x4c7774
cmp dword [0x6da084], 1
jle 0x4c76e1
call sub.msvcrt.dll__errno
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strerror
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.check_fd
mov dword [esp + 4], str._s:_select_failed:__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
or ebx, 0xffffffff
jmp 0x4c76c7
cmp dword [0x6da084], 1
jle 0x4c7698
mov dword [esp + 8], str.check_fd
mov dword [esp + 4], str._s:_EINTR_n
mov eax, dword [ebp - 0x130]
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4c7698
cmp dword [0x6da084], 1
jle 0x4c76c7
mov dword [esp + 8], str.check_fd
mov dword [esp + 4], str._s:_EAGAIN_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
jmp 0x4c76c7
mov dword [esp + 8], eax
mov dword [esp + 4], str.ERROR:_invalid_fd_in_check_fd__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov ebx, 0xffffffff
jmp 0x4c76c7