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

Disassembly:
sub esp, 0xc
mov ecx, dword [0x7ecaec]
mov eax, ecx
push ebx
push ebp
push esi
mov esi, dword [0x7ecae8]
xor ebx, ebx
sub eax, esi
mov dword [esp + 0xc], ebx
push 0x60
cdq
pop ebp
idiv ebp
test eax, eax
je 0x4d642b
push edi
xor edi, edi
xor ebp, ebp
cmp dword [edi + esi + 0x40], ebp
je 0x4d6411
mov eax, dword [edi + esi + 0x3c]
push dword [esp + 0x24]
lea ecx, [eax + ebp]
mov eax, dword [edi + esi + 0x38]
dec eax
and ecx, eax
mov eax, dword [edi + esi + 0x34]
mov ebx, dword [eax + ecx*4]
push ebx
call fcn.004d5863
test al, al
je 0x4d63fa
push dword [ebx + 0x78]
call fcn.004d45d1
add eax, 0xc
cmp dword [eax + 0x14], 8
jb 0x4d63be
mov eax, dword [eax]
lea ecx, [ebx + 0x30]
cmp dword [ecx + 0x14], 0x10
jb 0x4d63c9
mov ecx, dword [ecx]
add ebx, 0x18
mov edx, ebx
cmp dword [ebx + 0x14], 8
jb 0x4d63d6
mov edx, dword [ebx]
push eax
push ecx
push edx
call fcn.004d57ae
test al, al
jne 0x4d63fa
mov ecx, dword [esp + 0x20]
push ebx
call fcn.0044826a
mov ecx, dword [esp + 0x20]
push 0x700bf4
call fcn.004578e2
inc ebp
cmp ebp, dword [edi + esi + 0x40]
jne 0x4d6388
mov ecx, dword [0x7ecaec]
mov esi, dword [0x7ecae8]
mov ebx, dword [esp + 0x10]
mov eax, ecx
inc ebx
sub eax, esi
mov dword [esp + 0x10], ebx
push 0x60
pop ebp
cdq
add edi, ebp
idiv ebp
cmp ebx, eax
jne 0x4d637c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x4d9a71
Capabilities:
Create thread

Disassembly:
push ecx
push esi
xor esi, esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
lea ecx, [esp + 4]
mov dword [0x7ecb78], eax
push ecx
push esi
push eax
push 0x4d94b6
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
pop ecx
ret

Function at 0x4da69c
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6d80b2
call fcn.006899cc
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 8], 0x6fbe5c
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 1
mov dword [esi], 0x70ab84
mov dword [esi + 8], 0x70aba0
mov dword [esi + 0xc], ebx
call fcn.004df6ce
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov byte [esi + 0x58], bl
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x6c], ebx
mov byte [esi + 0x5c], bl
mov dword [esi + 0x70], 0xf
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], ebx
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4e0c56
Capabilities:
Resolve dns

Disassembly:
mov eax, 0x6d8766
call fcn.006899cc
sub esp, 0x28
push ebx
push esi
push edi
xor edx, edx
mov byte [ebp - 0x34], 1
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
push 0x10
pop edi
lea eax, [ebp + 8]
mov byte [ebp - 4], 1
mov bl, dl
cmp dword [ebp + 0x1c], edi
jb 0x4e0c97
mov eax, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x18]
push ecx
push edx
push edx
push edi
push eax
call sub.DNSAPI.dll_DnsQuery_UTF8
test eax, eax
jne 0x4e0d42
mov esi, dword [ebp - 0x18]
test esi, esi
je 0x4e0d0d
cmp word [esi + 8], di
jne 0x4e0d07
xor edi, edi
test bl, bl
jne 0x4e0d04
lea eax, [esi + 0x1c]
mov dword [ebp - 0x14], eax
cmp edi, dword [esi + 0x18]
jae 0x4e0d04
mov edx, dword [eax]
push edx
push str.DEBUG:_Processing_TXT:__s_n
call fcn.0040f570
mov ecx, edx
add esp, 8
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4e0ce0
lea eax, [ebp - 0x34]
sub ecx, ebx
push eax
push ecx
push edx
call fcn.004eeb47
mov bl, al
inc edi
mov eax, dword [ebp - 0x14]
add eax, 4
mov dword [ebp - 0x14], eax
test bl, bl
je 0x4e0cc6
push 0x10
pop edi
mov esi, dword [esi]
test bl, bl
je 0x4e0cb0
push 1
push dword [ebp - 0x18]
call sub.DNSAPI.dll_DnsFree
xor esi, esi
test bl, bl
je 0x4e0d4b
mov byte [ebp - 0xd], 1
call fcn.00489fdc
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp + 8]
push eax
call fcn.004f021f
mov byte [ebp - 4], 3
call fcn.0048a01d
jmp 0x4e0d4b
cmp eax, 0x251d
je 0x4e0d4b
mov esi, eax
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x4e0d6d
mov eax, dword [ebp - 0x1c]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00447e20
and dword [ebp - 0x24], 0
and dword [ebp - 0x20], 0
and dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x4e0d8f
mov eax, dword [ebp - 0x28]
sub eax, ecx
and eax, 0xfffffffc
push eax
push ecx
call fcn.00447e20
and dword [ebp - 0x30], 0
and dword [ebp - 0x2c], 0
and dword [ebp - 0x28], 0
lea ecx, [ebp + 8]
call fcn.0040fad0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x4e1a38
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, 0x6d881f
call fcn.006899cc
sub esp, 0x160
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
xor ebx, ebx
mov dword [ecx], 0x70d214
push 0xf
pop edx
mov dword [ecx + 4], ebx
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x18], edx
mov byte [ecx + 4], bl
mov dword [ecx + 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ecx + 0x2c], ebx
mov dword [ecx + 0x30], edx
mov byte [ecx + 0x1c], bl
mov dword [ecx + 0x34], ebx
mov dword [ecx + 0x44], ebx
mov dword [ecx + 0x48], edx
mov byte [ecx + 0x34], bl
lea ebx, [ecx + 0x4c]
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov byte [ebx], al
lea eax, [ebp - 0x16c]
mov byte [ebp - 4], 3
push eax
mov dword [ebp - 0x16c], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x4e1b87
push dword [ebp - 0x160]
lea eax, [ebp - 0x2c]
push dword [ebp - 0x164]
push dword [ebp - 0x168]
push str._d._d._d
push eax
call fcn.004756fb
add esp, 0x14
movzx eax, byte [ebp - 0x52]
mov edi, 0x77d3ac
mov byte [ebp - 4], 4
sub eax, 1
je 0x4e1b08
sub eax, 1
je 0x4e1aff
sub eax, 1
je 0x4e1af6
mov dword [ebp - 0x14], edi
jmp 0x4e1b0f
mov dword [ebp - 0x14], str.server
jmp 0x4e1b0f
mov dword [ebp - 0x14], str.domaincontroller
jmp 0x4e1b0f
mov dword [ebp - 0x14], str.workstation
mov ecx, dword [ebp - 0x10]
push 7
pop esi
push esi
push str.Windows
lea ecx, [ecx + 4]
call fcn.00414b60
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x14]
lea ecx, [ecx + 0x1c]
call fcn.00414b30
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ecx + 0x34]
call fcn.00430860
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
movzx eax, word [ebp - 0x50]
test eax, eax
je 0x4e1b6c
cmp eax, 6
je 0x4e1b65
cmp eax, 9
jne 0x4e1b74
mov edi, str.amd64
push 5
jmp 0x4e1b73
mov edi, str.itanium
jmp 0x4e1b74
mov edi, 0x70d25c
push 3
pop esi
push esi
push edi
mov ecx, ebx
call fcn.00414b60
lea ecx, [ebp - 0x2c]
call fcn.0040fad0
jmp 0x4e1bc5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x10]
mov edi, 0x77d3ac
push 7
pop esi
push esi
push edi
lea ecx, [ecx + 4]
call fcn.00414b60
mov ecx, dword [ebp - 0x10]
push esi
push edi
lea ecx, [ecx + 0x1c]
call fcn.00414b60
mov ecx, dword [ebp - 0x10]
push esi
push edi
lea ecx, [ecx + 0x34]
call fcn.00414b60
push esi
push edi
mov ecx, ebx
call fcn.00414b60
push 0x10
pop edi
cmp dword [ebx + 0x14], edi
jb 0x4e1bcf
mov ebx, dword [ebx]
mov esi, dword [ebp - 0x10]
lea ecx, [esi + 0x34]
cmp dword [ecx + 0x14], edi
jb 0x4e1bdc
mov ecx, dword [ecx]
lea edx, [esi + 0x1c]
cmp dword [edx + 0x14], edi
jb 0x4e1be6
mov edx, dword [edx]
lea eax, [esi + 4]
cmp dword [eax + 0x14], edi
jb 0x4e1bf0
mov eax, dword [eax]
push ebx
push ecx
push edx
push eax
push str.OS_info:__name__s_release__s_version__s_machine__s
call fcn.0040f570
mov ecx, dword [ebp - 0xc]
add esp, 0x14
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4e1fbd
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
xor edi, edi
push 0x2cc
mov dword [ebp - 8], edi
call fcn.0046f1ab
mov ebx, eax
push 0x70a608
push 0x6f60d8
mov dword [ebp - 4], ebx
mov dword [ebx], 0x10007
call fcn.00473e2b
test eax, eax
je 0x4e2035
push esi
push dword [ebp + 8]
push edi
push 0x1fffff
call eax
mov esi, eax
test esi, esi
je 0x4e2034
push esi
call dword [sym.imp.KERNEL32.DLL_SuspendThread]
cmp eax, 0xffffffff
je 0x4e2026
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_GetThreadContext]
test eax, eax
je 0x4e2026
lea eax, [ebp - 8]
push eax
call fcn.004e1c5b
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop esi
mov eax, edi
pop edi
pop ebx
leave
ret 4
Function at 0x4f4acb
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, ecx
push ebp
mov ebp, dword [esp + 0xc]
mov ecx, ebp
push edi
lea edi, [ebx + 0xac]
push edi
call fcn.004df702
xor edx, edx
test al, al
je 0x4f4af2
cmp word [ebp + 0x10], dx
jne 0x4f4bf7
cmp dword [ebx + 4], 0xffffffff
push esi
push 5
pop ecx
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
je 0x4f4b0a
push edx
mov ecx, ebx
call fcn.0048a6a7
xor edx, edx
push edx
push edx
push 2
lea eax, [ebx + 0xac]
push eax
call fcn.004762ee
movzx eax, al
mov ecx, ebx
neg eax
sbb eax, eax
and eax, 0xffffffeb
add eax, 0x17
push eax
call fcn.0048bdae
cmp dword [ebx + 4], 0xffffffff
je 0x4f4bf6
push ebp
mov ecx, ebx
call fcn.0048a250
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x4f4b68
call edi
mov esi, eax
push esi
call fcn.004887df
push eax
push esi
push ebp
push 0x7109d0
call fcn.0048e961
add esp, 0x10
jmp 0x4f4b7e
xor eax, eax
cmp word [ebp + 0x10], ax
jne 0x4f4b7e
mov ecx, ebx
call fcn.0048bb46
mov word [ebx + 0xbc], ax
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
lea eax, [esp + 0x14]
push 4
push eax
push 0x1002
push 0xffff
push dword [ebx + 4]
mov ebp, 0x200000
mov dword [esp + 0x28], ebp
call esi
cmp eax, 0xffffffff
jne 0x4f4bbc
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_RCVBUF___d__failed:__d
call fcn.0048e8e7
add esp, 0xc
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], ebp
push eax
push 0x1001
push 0xffff
push dword [ebx + 4]
call esi
cmp eax, 0xffffffff
jne 0x4f4bef
call edi
push eax
push dword [esp + 0x18]
push str.UDP_setsockopt_SO_SNDBUF___d__failed:__d
call fcn.0048e8e7
add esp, 0xc
mov ecx, ebx
call fcn.0048b506
pop esi
pop edi
pop ebp
pop ebx
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x80
push eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4f4fea
push esi
push edi
lea eax, [ebp - 0x98]
push eax
lea ecx, [ebp - 0x18]
call fcn.004df614
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0x18]
push 5
pop ecx
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 0x14
Function at 0x4f53bd
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x1a0
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1bc]
xor ebx, ebx
mov dword [esp + 0xc], ecx
mov word [esp + 0x25], bx
mov byte [esp + 0x24], bl
movzx eax, word [esi + 0x10]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esp + 0x1c0]
movzx ebp, ax
test ecx, ecx
je 0x4f5424
mov ebx, ecx
mov byte [esp + 0x27], 3
lea edx, [ebx + 1]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x4f53ff
sub ebx, edx
lea eax, [esp + 0x29]
push ebx
push ecx
push eax
mov byte [esp + 0x34], bl
call fcn.0068b600
add esp, 0xc
mov word [esp + ebx + 0x29], bp
xor ebx, ebx
jmp 0x4f5455
push esi
call fcn.004762ee
test al, al
je 0x4f5441
mov eax, dword [esi + 0xc]
mov byte [esp + 0x27], 1
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], bp
jmp 0x4f5455
push edi
mov byte [esp + 0x2b], 4
lea edi, [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov word [esp + 0x3c], bp
pop edi
lea eax, [esp + 0x24]
mov ecx, eax
mov dword [esp + 0x18], eax
call fcn.004f54f8
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x14], eax
add ecx, 0x12c
mov eax, dword [esp + 0x1b8]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1b4]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x130]
push eax
call fcn.0048ba49
push ebx
push ebx
push dword [esp + 0x18]
lea eax, [esp + 0x138]
mov dword [esp + 0x18], ebx
push eax
push ebx
lea eax, [esp + 0x20]
push eax
push 2
lea eax, [esp + 0x30]
push eax
push dword [esp + 0x1d0]
call dword [sym.imp.WS2_32.dll_WSASendTo]
mov esi, eax
test esi, esi
jne 0x4f54d0
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
cmp esi, eax
je 0x4f54ec
lea ecx, [esp + 0x24]
call fcn.004f54f8
cmp esi, eax
jg 0x4f54e8
xor eax, eax
jmp 0x4f54ec
sub esi, eax
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x1a0
ret 0x14

Function at 0x4f56c7
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [0x7ed830], 0
je 0x4f56dd
mov al, 1
leave
ret
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4f5713
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x4f570d
shr eax, 8
cmp al, 2
jne 0x4f570d
mov byte [0x7ed830], 1
jmp 0x4f56d9
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
leave
ret
Function at 0x4ffea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
sub esp, 0x18
mov eax, 0x6d98bb
call fcn.006899cc
sub esp, 0xf4
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp + 0x18], esi
mov ebx, dword [esi + 0x3ac]
call fcn.0050004b
mov esi, dword [esi + 0x154]
lea edi, [ebp + 4]
push 5
pop ecx
mov dword [ebp], 0x32716572
add esi, 8
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x100]
call fcn.0047ac67
and dword [ebp - 4], 0
lea eax, [ebp]
push 0x18
push eax
lea ecx, [ebp - 0x100]
call fcn.0047ac05
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0x74]
rep movsd dword es:[edi], dword [esi]
push 5
pop ecx
mov esi, ebx
lea edi, [ebp - 0x88]
rep movsd dword es:[edi], dword [esi]
xor edi, edi
mov ecx, edi
mov eax, dword [ebx + ecx + 0x14]
xor dword [ebp + ecx - 0x74], eax
add ecx, 4
cmp ecx, 0x14
jb 0x4fff05
mov al, byte [0x7c0df4]
mov esi, dword [ebp + 0x18]
mov ecx, esi
shr al, 2
not al
mov dword [ebp - 0x58], edi
and al, 1
mov dword [ebp - 0x60], edi
or al, 2
mov dword [ebp - 0x5c], edi
mov byte [ebp - 0x55], al
mov byte [ebx], al
lea eax, [ebp - 0x50]
push dword [esi + 0x154]
mov dword [ebp - 0x54], 0x44000000
push eax
call fcn.004f9be4
mov eax, dword [esi + 0x154]
mov ecx, esi
push 0x14
add eax, 8
push eax
call fcn.005014f1
lea eax, [ebx + 0xc]
push eax
push 0x54
lea eax, [ebp - 0x60]
push eax
call fcn.005a2120
lea eax, [ebx + 0x114]
mov dword [ebx + 5], edi
push eax
lea ecx, [ebx + 1]
push 8
push ecx
mov dword [ecx], edi
call fcn.005a2120
mov eax, dword [esi]
lea ecx, [ebp - 0x88]
push edi
push 0x7c
push ecx
mov ecx, esi
call dword [eax + 0x28]
lea ecx, [ebp - 0x100]
call fcn.0040f570
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add ebp, 0x1c
leave
ret

Function at 0x5061ee
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x6d9d09
call fcn.006899cc
sub esp, 0x1c
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x10], ebx
xor edx, edx
mov dword [ebx], 0x713054
mov dword [ebp - 4], edx
mov dword [ebx + 4], edx
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov eax, dword [ebp + 8]
lea edi, [ebx + 0x14]
push 5
pop ecx
lea esi, [ebp + 0xc]
mov byte [ebp - 4], 1
rep movsd dword es:[edi], dword [esi]
push edx
mov dword [ebx + 0x10], eax
call fcn.004a76db
mov ecx, eax
mov esi, edx
mov eax, dword [0x7e6748]
cdq
add ecx, eax
mov dword [ebx + 0x3c], 0xea60
mov dword [ebx + 0x28], ecx
adc esi, edx
xor eax, eax
mov dword [ebx + 0x2c], esi
mov dword [ebx + 0x30], eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x40], eax
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x48], eax
lea edi, [ebx + 0x4c]
mov dword [edi], 0x712f4c
push str.share
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
call fcn.004849d5
push edi
push eax
lea ecx, [ebx + 0x50]
mov byte [ebp - 4], 4
call fcn.005576bb
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call fcn.0044823e
push 0x1388
call fcn.0046f1ab
and dword [ebx + 0x90], 0
mov ecx, ebx
mov dword [ebx + 0x94], eax
call fcn.0050746e
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x509913
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, ecx
push ebp
cmp byte [ebx + 0x154], 0
jne 0x50999f
mov ebp, 0x100
cmp dword [ebx + 0x170], ebp
jae 0x50999f
xor eax, eax
mov byte [ebx + 0x154], 1
mov dword [ebx + 0x158], eax
mov dword [ebx + 0x15c], eax
mov dword [ebx + 0x160], eax
mov dword [ebx + 0x164], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x168], eax
mov eax, dword [ebx]
push esi
mov esi, dword [ebx + 0x170]
push edi
lea edi, [ebx + 0x158]
call dword [eax + 0x10]
push edi
mov edx, eax
lea ecx, [ebx + 0x174]
lea eax, [ebx + 0x16c]
sub ebp, esi
push eax
push ebp
add ecx, esi
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
pop edi
pop esi
test eax, eax
je 0x5099a6
push dword [esp + 0xc]
mov byte [ebx + 0x154], 0
call dword [sym.imp.KERNEL32.DLL_SetEvent]
mov al, 1
pop ebp
pop ebx
ret 4
xor al, al
jmp 0x5099a1
Function at 0x50fa38
Capabilities:
Get process heap flags

Disassembly:
mov eax, 0x6d33f6
call fcn.006899cc
push ecx
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], ebx
xor edi, edi
push esi
mov dword [ebx], edi
mov dword [ebx + 0x10], edi
mov dword [ebx + 0x14], edi
call fcn.00448193
lea ecx, [ebx + 0x18]
mov dword [ebp - 4], edi
lea eax, [esi + 0x18]
mov dword [ecx], edi
push eax
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edi
call fcn.00448193
mov eax, dword [esi + 0x30]
lea edi, [ebx + 0x40]
mov dword [ebx + 0x30], eax
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
add esi, 0x40
mov dword [ebx + 0x3c], ecx
push 5
pop ecx
mov dword [ebx + 0x38], eax
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x515436
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
push esi
mov esi, dword [esp + 8]
cmp edx, 4
jb 0x51545b
mov ecx, edx
shr ecx, 2
xor eax, dword [esi]
sub edx, 4
add esi, 4
rol eax, 0xd
sub ecx, 1
jne 0x51544b
test edx, edx
je 0x51546d
movzx ecx, byte [esi]
xor eax, ecx
inc esi
rol eax, 8
sub edx, 1
jne 0x51545f
pop esi
ret 8
Function at 0x51b1fe
Capabilities:
Get file attributes

Disassembly:
mov eax, 0x6db0a9
call fcn.006899cc
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
mov edx, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
test edx, edx
je 0x51b227
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
jmp 0x51b22b
mov eax, ebx
mov ecx, ebx
mov dword [esi], eax
mov eax, dword [ebp + 0x24]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 0x28]
mov dword [esi + 8], eax
xor eax, eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
push 7
pop edi
mov dword [esi + 0x38], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], edi
mov word [esi + 0x38], ax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], edi
mov word [esi + 0x50], ax
mov al, byte [ebp + 0x2c]
mov byte [esi + 0x69], al
mov al, byte [esi + 0x6a]
and al, 0xe1
mov byte [esi + 0x68], 8
or al, 0x40
mov word [esi + 0x6b], bx
mov byte [esi + 0x6a], al
xor eax, eax
mov dword [esi + 0x70], ebx
mov dword [esi + 0x80], ebx
mov dword [esi + 0x84], edi
mov word [esi + 0x70], ax
mov dword [esi + 0x88], ebx
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], edx
mov byte [esi + 0x94], bl
mov dword [esi + 0x98], ebx
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.0051baf2
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
mov dword [ecx], ebx
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.00448193
mov ecx, esi
call fcn.0051daa5
xor eax, eax
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
mov ecx, dword [esi + 0x90]
mov byte [ebp - 4], 5
test ecx, ecx
je 0x51b32b
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.0051c96f
lea ecx, [ebp - 0x28]
cmp ecx, eax
je 0x51b323
mov byte [ebp + 0x2c], bl
push dword [ebp + 0x2c]
push eax
call fcn.00448215
lea ecx, [ebp - 0x40]
call fcn.0044823e
lea eax, [ebp - 0x28]
push eax
call fcn.004704f8
test al, al
je 0x51b358
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x51b344
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
shl al, 5
xor al, byte [esi + 0x6a]
and al, 0x20
xor byte [esi + 0x6a], al
jmp 0x51b35c
and byte [esi + 0x6a], 0xdf
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x51b397
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp + 0x2c], eax
mov dword [ebp + 8], ecx
cmp eax, 0x1000
jb 0x51b38e
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044810a
mov eax, dword [ebp + 0x2c]
mov ecx, dword [ebp + 8]
push eax
push ecx
call fcn.0068976d
pop ecx
pop ecx
lea ecx, [ebp + 0xc]
call fcn.0044823e
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 0x28
Function at 0x51be65
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x6d0050
call fcn.006899cc
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, ecx
mov esi, 0xa0
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
sub eax, ecx
cdq
idiv esi
test eax, eax
je 0x51bf1f
xor esi, esi
lea eax, [esi + ecx]
mov ecx, edi
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0051c96f
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x51beb5
mov eax, dword [ebp - 0x28]
push eax
call fcn.0047050d
test al, al
jne 0x51bec9
mov eax, dword [edi + 4]
and byte [eax + esi + 0x6a], 0xdf
jmp 0x51bef8
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x51bed5
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, dword [edi + 4]
cmp eax, 0xffffffff
je 0x51bef3
shl al, 5
xor al, byte [esi + ecx + 0x6a]
and al, 0x20
xor byte [esi + ecx + 0x6a], al
jmp 0x51bef8
or byte [esi + ecx + 0x6a], 0x20
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0044823e
mov eax, dword [edi + 8]
inc ebx
mov ecx, dword [edi + 4]
add esi, 0xa0
sub eax, ecx
cdq
idiv dword [ebp - 0x10]
cmp ebx, eax
jb 0x51be96
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret