joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7d60
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x420
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov ebp, ecx
push eax
lea ecx, [esp + 0x22e]
push ecx
mov word [esp + 0x230], ax
call fcn.004e9ba0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x32]
push eax
mov word [esp + 0x34], dx
call fcn.004e9ba0
mov eax, dword [ebp + 0x24]
mov ecx, dword [eax + 0x18]
mov ebx, dword [ecx]
mov esi, dword [eax]
add esp, 0x18
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0x24]
mov edi, dword [eax + 0x18]
mov eax, dword [eax]
test esi, esi
je 0x4c7dd3
cmp esi, eax
je 0x4c7dd8
call fcn.004ea132
cmp ebx, edi
je 0x4c7f87
test esi, esi
jne 0x4c7e44
call fcn.004ea132
cmp ebx, dword [esi + 0x18]
jne 0x4c7df3
call fcn.004ea132
mov esi, dword [ebx + 0x10]
mov dword [esp + 0x10], esi
add esi, 0xc
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c7e02
sub eax, edx
sar eax, 1
test eax, eax
jle 0x4c7f71
push esi
lea edx, [esp + 0x228]
push str.Is_s
push edx
call fcn.00403b80
mov ebx, 8
add esp, 0xc
cmp dword [ebp + 0xb0], ebx
jb 0x4c7e48
mov eax, dword [ebp + 0x9c]
jmp 0x4c7e4e
mov esi, dword [esi]
jmp 0x4c7de9
lea eax, [ebp + 0x9c]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea eax, [esp + 0x24]
push eax
push 0x6002fc
lea ecx, [esp + 0x234]
push ecx
push str.HotKey
call edi
mov ecx, 0x6002fc
lea eax, [esp + 0x1c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c7ea6
test dx, dx
je 0x4c7ea2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c7ea6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c7e80
xor eax, eax
jmp 0x4c7eab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c7ec5
lea edx, [esp + 0x1c]
push edx
call fcn.004e9c30
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
add esp, 4
mov byte [edx], al
push esi
lea eax, [esp + 0x228]
push str.Use_s
push eax
call fcn.00403b80
add esp, 0xc
cmp dword [ebp + 0xb0], ebx
jb 0x4c7eeb
mov eax, dword [ebp + 0x9c]
jmp 0x4c7ef1
lea eax, [ebp + 0x9c]
push eax
push 0x104
lea ecx, [esp + 0x24]
push ecx
push str.nothing
lea edx, [esp + 0x234]
push edx
push str.HotKey
call edi
mov ecx, str.nothing
lea eax, [esp + 0x1c]
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4c7f46
test dx, dx
je 0x4c7f42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4c7f46
add eax, 4
add ecx, 4
test dx, dx
jne 0x4c7f20
xor eax, eax
jmp 0x4c7f4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4c7f71
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
lea ecx, [esp + 0x1c]
lea ebx, [ebx]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4c7f60
lea ecx, [esp + 0x14]
call fcn.004404a0
mov ebx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
jmp 0x4c7dc3
mov ecx, dword [esp + 0x42c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0x420
ret
Function at 0x4c7fa0
Capabilities:
Copy file

Disassembly:
sub esp, 0x41c
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x418], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
push ebx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
test edi, edi
je 0x4c7fe2
cmp edi, eax
je 0x4c7fe7
call fcn.004ea132
cmp dword [esp + 0x14], ebx
je 0x4c80ef
test edi, edi
jne 0x4c802b
call fcn.004ea132
mov eax, dword [esp + 0x14]
cmp eax, dword [edi + 0x18]
jne 0x4c8008
call fcn.004ea132
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x10]
mov edx, dword [edi + 4]
cmp byte [edx], 0
mov ebx, dword [edi + 8]
je 0x4c802f
push 0x5ff190
push 0x6012d8
lea eax, [esp + 0x20]
push eax
jmp 0x4c803e
mov edi, dword [edi]
jmp 0x4c7ffa
push 0x5ff1a4
push 0x6012d8
lea ecx, [esp + 0x20]
push ecx
call fcn.00403b80
add esp, 0xc
add edi, 0xc
push edi
lea edx, [esp + 0x224]
push str.Is_s
push edx
call fcn.00403b80
add esp, 0xc
cmp dword [esi + 0xb0], 8
jb 0x4c8070
mov eax, dword [esi + 0x9c]
jmp 0x4c8076
lea eax, [esi + 0x9c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x228]
push ecx
push str.HotKey
call ebp
push edi
lea edx, [esp + 0x224]
push str.Use_s
push edx
call fcn.00403b80
push ebx
lea eax, [esp + 0x28]
push 0x6012d8
push eax
call fcn.00403b80
add esp, 0x18
cmp dword [esi + 0xb0], 8
jb 0x4c80c2
mov eax, dword [esi + 0x9c]
jmp 0x4c80c8
lea eax, [esi + 0x9c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x228]
push edx
push str.HotKey
call ebp
lea ecx, [esp + 0x10]
call fcn.004404a0
mov edi, dword [esp + 0x10]
jmp 0x4c7fd2
mov edi, 8
pop ebx
cmp dword [esi + 0xe8], edi
jb 0x4c8105
mov eax, dword [esi + 0xd4]
jmp 0x4c810b
lea eax, [esi + 0xd4]
push eax
push 0x5ff190
push str.ModifyHotKey
push str.SetModify
call ebp
cmp dword [esi + 0xe8], edi
jb 0x4c812d
mov eax, dword [esi + 0xd4]
jmp 0x4c8133
lea eax, [esi + 0xd4]
push eax
push 0x5ff190
push str.ModifyHotKey64
push str.SetModify
call ebp
cmp dword [esi + 0xe8], edi
jb 0x4c8155
mov eax, dword [esi + 0xd4]
jmp 0x4c815b
lea eax, [esi + 0xd4]
push eax
push 0x5ff190
push str.TempModifyHotKey
push str.SetModify
call ebp
cmp dword [esi + 0xe8], edi
jb 0x4c817d
mov eax, dword [esi + 0xd4]
jmp 0x4c8183
lea eax, [esi + 0xd4]
push eax
push 0x5ff190
push str.TempModifyHotKey64
push str.SetModify
call ebp
cmp dword [esi + 0xcc], edi
jb 0x4c81a5
mov eax, dword [esi + 0xb8]
jmp 0x4c81ab
lea eax, [esi + 0xb8]
cmp dword [esi + 0xb0], edi
jb 0x4c81bb
mov esi, dword [esi + 0x9c]
jmp 0x4c81c1
add esi, 0x9c
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004e8c89
add esp, 0x41c
ret
Function at 0x4c7fbb
Capabilities:
Copy file

Disassembly:
sub esp, 0x41c
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x418], eax
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push esi
mov esi, ecx
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x18]
mov edx, dword [ecx]
push edi
mov edi, dword [eax]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], edi
push ebx
mov eax, dword [esi + 0x24]
mov ebx, dword [eax + 0x18]
mov eax, dword [eax]
test edi, edi
je 0x4c7fe2
cmp edi, eax
je 0x4c7fe7
call fcn.004ea132
cmp dword [esp + 0x14], ebx
je 0x4c80ef
test edi, edi
jne 0x4c802b
call fcn.004ea132
mov eax, dword [esp + 0x14]
cmp eax, dword [edi + 0x18]
jne 0x4c8008
call fcn.004ea132
mov ecx, dword [esp + 0x14]
mov edi, dword [ecx + 0x10]
mov edx, dword [edi + 4]
cmp byte [edx], 0
mov ebx, dword [edi + 8]
je 0x4c802f
push 0x5ff190
push 0x6012d8
lea eax, [esp + 0x20]
push eax
jmp 0x4c803e
mov edi, dword [edi]
jmp 0x4c7ffa
push 0x5ff1a4
push 0x6012d8
lea ecx, [esp + 0x20]
push ecx
call fcn.00403b80
add esp, 0xc
add edi, 0xc
push edi
lea edx, [esp + 0x224]
push str.Is_s
push edx
call fcn.00403b80
add esp, 0xc
cmp dword [esi + 0xb0], 8
jb 0x4c8070
mov eax, dword [esi + 0x9c]
jmp 0x4c8076
lea eax, [esi + 0x9c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x228]
push ecx
push str.HotKey
call ebp
push edi
lea edx, [esp + 0x224]
push str.Use_s
push edx
call fcn.00403b80
push ebx
lea eax, [esp + 0x28]
push 0x6012d8
push eax
call fcn.00403b80
add esp, 0x18
cmp dword [esi + 0xb0], 8
jb 0x4c80c2
mov eax, dword [esi + 0x9c]
jmp 0x4c80c8
lea eax, [esi + 0x9c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x228]
push edx
push str.HotKey
call ebp
lea ecx, [esp + 0x10]
call fcn.004404a0
mov edi, dword [esp + 0x10]
jmp 0x4c7fd2
mov edi, 8
pop ebx
cmp dword [esi + 0xe8], edi
jb 0x4c8105
mov eax, dword [esi + 0xd4]
jmp 0x4c810b
lea eax, [esi + 0xd4]
push eax
push 0x5ff190
push str.ModifyHotKey
push str.SetModify
call ebp
cmp dword [esi + 0xe8], edi
jb 0x4c812d
mov eax, dword [esi + 0xd4]
jmp 0x4c8133
lea eax, [esi + 0xd4]
push eax
push 0x5ff190
push str.ModifyHotKey64
push str.SetModify
call ebp
cmp dword [esi + 0xe8], edi
jb 0x4c8155
mov eax, dword [esi + 0xd4]
jmp 0x4c815b
lea eax, [esi + 0xd4]
push eax
push 0x5ff190
push str.TempModifyHotKey
push str.SetModify
call ebp
cmp dword [esi + 0xe8], edi
jb 0x4c817d
mov eax, dword [esi + 0xd4]
jmp 0x4c8183
lea eax, [esi + 0xd4]
push eax
push 0x5ff190
push str.TempModifyHotKey64
push str.SetModify
call ebp
cmp dword [esi + 0xcc], edi
jb 0x4c81a5
mov eax, dword [esi + 0xb8]
jmp 0x4c81ab
lea eax, [esi + 0xb8]
cmp dword [esi + 0xb0], edi
jb 0x4c81bb
mov esi, dword [esi + 0x9c]
jmp 0x4c81c1
add esi, 0x9c
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004e8c89
add esp, 0x41c
ret
Function at 0x4c8aa0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5ef13e
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x60]
mov dword [esi], vtable.CShareVariableManager.0
mov eax, 7
xor edi, edi
xor edx, edx
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], edi
mov word [ecx + 4], dx
lea ebx, [esi + 0x7c]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], edi
mov dword [esp + 0x20], edi
mov word [ebx + 4], dx
lea ebp, [esi + 0x98]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], edi
mov word [ebp + 4], dx
mov dword [esi + 0xcc], eax
xor eax, eax
mov dword [esi + 0xc8], edi
mov word [esi + 0xb8], ax
mov eax, 7
mov dword [esi + 0xe8], eax
mov dword [esi + 0xe4], edi
mov word [esi + 0xd4], dx
mov dword [esi + 0x104], eax
xor eax, eax
mov dword [esi + 0x100], edi
mov word [esi + 0xf0], ax
push edi
push 0x5fd0cc
mov byte [esp + 0x28], 5
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call fcn.00401c70
push edi
push 0x5fd0cc
mov ecx, ebx
call fcn.00401c70
push edi
push 0x5fd0cc
mov ecx, ebp
call fcn.00401c70
push edi
push 0x5fd0cc
lea ecx, [esi + 0xb4]
call fcn.00401c70
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4ce2fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4ce344
call fcn.004cb428
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4ce344
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4ce387
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4ce370
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4ce370
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4ce384
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4d433c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4d4383
call fcn.004cb428
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4d4383
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4d439f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004d3eb4
mov esi, eax
test edi, edi
je 0x4d439d
test ebx, ebx
je 0x4d439d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4d4a9e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5ef5f9
call fcn.004ef712
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4d4ac3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4d4b09
lea ecx, [ebp - 0x10]
call fcn.00404740
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00413d20
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004041c0
mov eax, esi
call fcn.004ef7ea
ret 8
Function at 0x4e52e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x4e530c
cmp dword [edi + 0x54], 0
jne 0x4e530c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004cb428
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004e52a9
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4e8c89
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x704dd8]
jne 0x4e8c93
repz ret
jmp fcn.004f4fd8

Function at 0x501c6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004f2bbc
and dword [ebp - 4], 0
cmp dword [0x71239c], 0
mov ebx, eax
jne 0x501d1d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x501dce
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x501dce
push eax
call fcn.004f2b4a
mov dword [esp], 0x61bc40
push edi
mov dword [0x71239c], eax
call esi
push eax
call fcn.004f2b4a
mov dword [esp], 0x61bc2c
push edi
mov dword [0x7123a0], eax
call esi
push eax
call fcn.004f2b4a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x7123a4], eax
call esi
push eax
call fcn.004f2b4a
pop ecx
mov dword [0x7123ac], eax
test eax, eax
je 0x501d1d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004f2b4a
pop ecx
mov dword [0x7123a8], eax
mov eax, dword [0x7123a8]
cmp eax, ebx
je 0x501d75
cmp dword [0x7123ac], ebx
je 0x501d75
push eax
call fcn.004f2bc5
push dword [0x7123ac]
mov esi, eax
call fcn.004f2bc5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x501d75
test edi, edi
je 0x501d75
call esi
test eax, eax
je 0x501d6c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x501d6c
test byte [ebp - 0xc], 1
jne 0x501d75
or dword [ebp + 0x10], 0x200000
jmp 0x501dae
mov eax, dword [0x7123a0]
cmp eax, ebx
je 0x501dae
push eax
call fcn.004f2bc5
pop ecx
test eax, eax
je 0x501dae
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x501dae
mov eax, dword [0x7123a4]
cmp eax, ebx
je 0x501dae
push eax
call fcn.004f2bc5
pop ecx
test eax, eax
je 0x501dae
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x71239c]
call fcn.004f2bc5
pop ecx
test eax, eax
je 0x501dce
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x501dd0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50a330
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5f06c3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x712674
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x712674
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x6015b5
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.005096b0
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x50a3e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5f06e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x50a422
push edi
push edi
push edi
push 2
call fcn.0050bcd0
xor al, al
jmp 0x50a5bf
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x50a441
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x50a430
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.004eb9c2
push ebp
call fcn.004ec5ea
push 0
push 0
push ebp
mov edi, eax
call fcn.004eb9c2
add esp, 0x1c
test edi, edi
jne 0x50a485
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.0050bcd0
xor al, al
jmp 0x50a5bf
mov dword [esp + 0x14], 0x712674
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.00509610
lea eax, [edi + 1]
push eax
call fcn.004ca5aa
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.004ec36a
add esp, 0x14
cmp eax, 1
je 0x50a4f5
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.0050bcd0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x712674
je 0x50a4ee
push eax
call fcn.004ca5d9
add esp, 4
xor al, al
jmp 0x50a5bf
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x50a567
mov cl, byte [esi]
cmp cl, 0xa
jne 0x50a525
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.005097a0
add esi, 1
mov eax, esi
jmp 0x50a562
cmp cl, 0xd
jne 0x50a55f
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x50a53d
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.005097a0
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.005097a0
cmp byte [esi + 1], 0xa
jne 0x50a51e
add esi, 2
mov eax, esi
jmp 0x50a562
add esi, 1
cmp byte [esi], 0
jne 0x50a505
sub esi, eax
je 0x50a576
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.005097a0
push ebp
call fcn.004ca5d9
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x50a4de
cmp eax, 0x712674
je 0x50a5bd
push eax
call fcn.004ca5d9
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x50a950
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f0799
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x712674
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea edi, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esp + 0x20], ebx
mov dword [edi], 0x712674
lea ebp, [esi + 0x30]
mov dword [ebp], 0x712674
mov dword [esi + 0x34], 0x712674
mov ecx, dword [esp + 0x28]
mov eax, ecx
lea edx, [eax + 1]
mov byte [esp + 0x20], 3
mov dword [esp + 0x28], edx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x50a9e0
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.005096b0
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x50aa00
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.005096b0
mov edx, dword [esp + 0x30]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x50aa20
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.005096b0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc

Function at 0x50ed50
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x50eda0
mov ax, word [esp]
cmp al, 2
jne 0x50ed9a
cmp ah, al
jne 0x50ed9a
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004e8c89
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.004e8c89
add esp, 0x194
ret

Function at 0x51a860
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x51a892
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x51a9e0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x51a9fb
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
jl 0x51aa2f
cmp eax, 2
jg 0x51aa2f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x61e878]
push 2
push edx
call fcn.004eb848
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.004eb848
add esp, 0x20
xor eax, eax
ret
Function at 0x51ad40
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebx], 0
jne 0x51adbd
push ebp
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x51ad94
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.0051ec40
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.0051abc0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x856c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret