joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a5df1
Capabilities:
Initialize winhttp library

Disassembly:
push 0x78
mov eax, 0x79befd
call fcn.006fee7b
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x6c], esi
call fcn.0045562b
cmp dword [edi + 0x10], 0
jne 0x4a5e1a
xor al, al
jmp 0x4a5f38
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpGetIEProxyConfigForCurrentUser]
test eax, eax
je 0x4a5e13
mov eax, dword [ebp - 0x58]
xor ecx, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFree]
inc ecx
test eax, eax
je 0x4a5e47
mov dword [ebp - 0x84], 2
mov dword [ebp - 0x7c], eax
jmp 0x4a5e5e
cmp dword [ebp - 0x5c], 0
je 0x4a5f04
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], 3
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x70], ecx
push edi
push eax
call fcn.004090c3
pop ecx
pop ecx
push 9
xor eax, eax
lea edi, [ebp - 0x34]
pop ecx
push eax
push eax
push eax
push eax
mov dword [ebp - 4], eax
mov esi, str.BlizzardProxyInfo
lea eax, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov edi, eax
test edi, edi
je 0x4a5ef7
cmp dword [ebp - 0x38], 8
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x84]
lea eax, [ebp - 0x4c]
cmovae eax, dword [ebp - 0x4c]
push ecx
push eax
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpGetProxyForUrl]
push edi
mov esi, eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
test esi, esi
je 0x4a5ef7
cmp dword [ebp - 0x68], 3
jne 0x4a5ed7
cmp dword [ebp - 0x64], 0
je 0x4a5ee2
push dword [ebp - 0x64]
push dword [ebp - 0x6c]
call fcn.004a6064
pop ecx
pop ecx
cmp dword [ebp - 0x64], 0
je 0x4a5ee2
push dword [ebp - 0x64]
call ebx
cmp dword [ebp - 0x60], 0
je 0x4a5eed
push dword [ebp - 0x60]
call ebx
lea ecx, [ebp - 0x4c]
call fcn.00406385
jmp 0x4a5f15
lea ecx, [ebp - 0x4c]
call fcn.00406385
jmp 0x4a5e13
cmp dword [ebp - 0x54], 0
je 0x4a5f2b
push dword [ebp - 0x54]
push esi
call fcn.004a6064
pop ecx
pop ecx
cmp dword [ebp - 0x58], 0
je 0x4a5f20
push dword [ebp - 0x58]
call ebx
cmp dword [ebp - 0x54], 0
je 0x4a5f2b
push dword [ebp - 0x54]
call ebx
cmp dword [ebp - 0x50], 0
je 0x4a5f36
push dword [ebp - 0x50]
call ebx
mov al, 1
call fcn.006fee25
ret
Function at 0x4b7316
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 4
mov eax, 0x79d83a
call fcn.006fee47
xor esi, esi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.004f31c0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4b734c
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.0049c062
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x14], 0x10
mov ecx, dword [eax + 0x10]
jb 0x4b7363
mov eax, dword [eax]
push ecx
push eax
mov ecx, edi
call fcn.0049bfc0
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 0x18]
movsd xmm0, qword [eax + 0x20]
or dword [edi + 8], 8
mov ecx, dword [edi + 8]
movsd qword [edi + 0x18], xmm0
or ecx, 0x10
movsd xmm0, qword [eax + 8]
mov dword [edi + 8], ecx
or ecx, 0x20
movsd qword [edi + 0x20], xmm0
movsd xmm0, qword [eax + 0x10]
mov dword [edi + 8], ecx
or ecx, 0x40
movsd qword [edi + 0x30], xmm0
movsd xmm0, qword [eax + 0x18]
mov dword [edi + 8], ecx
or ecx, 0x80
movsd qword [edi + 0x38], xmm0
movzx eax, byte [esi]
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], eax
movzx eax, byte [esi]
push eax
call fcn.00606df7
pop ecx
push eax
mov ecx, edi
call fcn.004b2ade
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
or dword [edi + 8], 0x400
mov edx, dword [edi + 8]
mov dword [edi + 0x48], eax
or edx, 0x800
mov dword [edi + 0x4c], ecx
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
mov dword [edi + 8], edx
or edx, 0x1000
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + 8], edx
or edx, 0x2000
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov dword [edi + 8], edx
or edx, 0x4000
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], ecx
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [edi + 8], edx
or edx, 0x8000
mov dword [edi + 0x70], eax
mov dword [edi + 0x74], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x3c]
mov dword [edi + 8], edx
or edx, 0x10000
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], ecx
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov dword [edi + 8], edx
or edx, 0x20000
mov dword [edi + 0x80], eax
mov dword [edi + 0x84], ecx
mov eax, dword [esi + 0x40]
mov dword [edi + 8], edx
or edx, 0x40000
mov dword [edi + 0x64], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 8], edx
or edx, 0x80104
mov dword [edi + 0x88], eax
mov eax, edi
mov ecx, dword [esi + 0x48]
mov dword [edi + 0x8c], ecx
mov ecx, dword [ebp + 0x20]
mov dword [edi + 0x60], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [edi + 8], edx
mov dword [edi + 0x28], ecx
call fcn.006fee10
ret
Function at 0x4d2c78
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4d2c9f
mov eax, dword [ebp + 8]
or dword [eax + 4], esi
mov byte [eax], 0
jmp 0x4d2d54
mov eax, dword [ebp + 0xc]
push ebx
push edi
mov edi, 0x4000
push 4
pop ebx
cmp eax, 0xffffffff
je 0x4d2cff
test eax, eax
mov dword [ebp - 4], 4
mov ebx, edi
cmovne ebx, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x1002
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
push 4
cmp dword [ebp - 8], ebx
je 0x4d2cfe
mov dword [ebp - 8], ebx
lea eax, [ebp - 8]
pop ebx
push ebx
push eax
push 0x1002
push 0xffff
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
jmp 0x4d2cff
pop ebx
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x4d2d49
test eax, eax
mov dword [ebp - 4], ebx
cmovne edi, eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp dword [ebp - 8], edi
je 0x4d2d49
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], edi
push eax
push 0x1001
push 0xffff
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [ebp + 8]
pop edi
pop ebx
mov byte [eax], 1
mov dword [eax + 4], esi
pop esi
leave
ret
Function at 0x4d87c0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
call fcn.004d8763
test al, al
je 0x4d892d
mov ecx, esi
call fcn.004d83cf
test eax, eax
je 0x4d892d
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
push ecx
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_GetExplicitEntriesFromAclW]
test eax, eax
jne 0x4d892d
mov byte [ebp - 0x10], bl
mov byte [ebp - 2], bl
mov byte [ebp - 1], bl
inc ebx
push ebx
call fcn.004d79aa
push 3
mov dword [ebp - 0x1c], eax
call fcn.004d79aa
push 2
mov dword [ebp - 0x20], eax
call fcn.004d79aa
and dword [ebp - 0x18], 0
add esp, 0xc
cmp dword [ebp - 0xc], 0
mov ecx, eax
mov dword [ebp - 8], ecx
jbe 0x4d88f7
xor esi, esi
push edi
mov edi, dword [ebp - 0x14]
cmp dword [esi + edi + 4], ebx
je 0x4d8856
cmp dword [esi + edi + 4], 2
jne 0x4d88e3
cmp dword [esi + edi + 0x14], 0
jne 0x4d88e3
test ecx, ecx
je 0x4d8888
mov eax, dword [esi + edi]
and eax, 0x20031
cmp eax, 0x20031
jne 0x4d8888
push dword [esi + edi + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4d8888
mov byte [ebp - 1], bl
jmp 0x4d88e0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4d88b2
mov eax, dword [esi + edi]
and eax, 0x20031
cmp eax, 0x20031
jne 0x4d88b2
push dword [esi + edi + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4d88b2
mov byte [ebp - 2], bl
jmp 0x4d88e0
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4d88e0
mov eax, dword [esi + edi]
mov edx, 0x30031
and eax, edx
cmp eax, edx
jne 0x4d88e0
push dword [esi + edi + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
mov ecx, dword [ebp - 0x10]
test eax, eax
movzx ecx, cl
cmovne ecx, ebx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
add esi, 0x20
inc edi
mov dword [ebp - 0x18], edi
cmp edi, dword [ebp - 0xc]
jb 0x4d8842
pop edi
lea eax, [ebp - 0x1c]
push eax
call fcn.004d8ed0
lea eax, [ebp - 0x20]
push eax
call fcn.004d8ed0
lea eax, [ebp - 8]
push eax
call fcn.004d8ed0
add esp, 0xc
cmp byte [ebp - 1], 0
je 0x4d8927
cmp byte [ebp - 2], 0
je 0x4d8927
cmp byte [ebp - 0x10], 0
jne 0x4d8929
xor bl, bl
mov al, bl
jmp 0x4d892f
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x4d8ab6
Capabilities:
Compare security identifiers

Disassembly:
push 0x28
mov eax, 0x7a058f
call fcn.006fee47
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.004d83fa
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebx + 0x34], edi
je 0x4d8c63
cmp dword [ebx + 0x3c], edi
je 0x4d8c63
test dword [ebp - 0x20], 0x1000
je 0x4d8aff
test dword [ebp - 0x20], 0x400
mov esi, edi
je 0x4d8c63
cmp dword [ebp - 0x24], edi
je 0x4d8c66
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.004d7e30
push 1
mov byte [ebp - 4], 1
call fcn.004d79aa
push 3
mov dword [ebp - 0x14], eax
call fcn.004d79aa
push 2
mov dword [ebp - 0x18], eax
call fcn.004d79aa
add esp, 0x14
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], 0
mov dword [ebp - 0x10], edi
jbe 0x4d8c26
mov esi, edi
mov edi, dword [ebp - 0x28]
mov eax, dword [esi + edi + 4]
test eax, eax
je 0x4d8c13
cmp eax, 5
je 0x4d8c13
cmp eax, 6
je 0x4d8c13
cmp dword [esi + edi + 0x14], 0
jne 0x4d8c13
push dword [esi + edi]
mov ecx, ebx
call fcn.004d7de8
push dword [esi + edi + 0x1c]
mov byte [ebp + 8], al
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4d8bad
cmp dword [esi + edi + 4], 3
je 0x4d8ba2
cmp dword [esi + edi + 4], 4
je 0x4d8ba2
xor eax, eax
jmp 0x4d8ba5
xor eax, eax
inc eax
push eax
push dword [ebp + 8]
push 1
jmp 0x4d8c07
push dword [esi + edi + 0x1c]
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4d8bdb
cmp dword [esi + edi + 4], 3
je 0x4d8bd0
cmp dword [esi + edi + 4], 4
je 0x4d8bd0
xor eax, eax
jmp 0x4d8bd3
xor eax, eax
inc eax
push eax
push dword [ebp + 8]
push 3
jmp 0x4d8c07
push dword [esi + edi + 0x1c]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
je 0x4d8c13
cmp dword [esi + edi + 4], 3
je 0x4d8bfe
cmp dword [esi + edi + 4], 4
je 0x4d8bfe
xor eax, eax
jmp 0x4d8c01
xor eax, eax
inc eax
push eax
push dword [ebp + 8]
push 2
lea eax, [ebp - 0x34]
push eax
call fcn.004d8c7f
add esp, 0x10
mov eax, dword [ebp - 0x10]
add esi, 0x20
inc eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp - 0x24]
jb 0x4d8b46
sub esp, 0xc
lea eax, [ebp - 0x34]
mov ecx, esp
push eax
call fcn.0042687f
call fcn.004d7d94
mov esi, eax
lea eax, [ebp - 0x14]
push eax
call fcn.004d8ed0
lea eax, [ebp - 0x18]
push eax
call fcn.004d8ed0
lea eax, [ebp - 0x1c]
push eax
call fcn.004d8ed0
add esp, 0x18
lea ecx, [ebp - 0x34]
call fcn.00439b4a
jmp 0x4d8c66
xor esi, esi
inc esi
cmp dword [ebp - 0x28], 0
je 0x4d8c75
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
call fcn.006fee10
ret 4
Function at 0x4fc816
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
neg eax
sbb al, al
xor ecx, ebp
inc al
call fcn.006fedff
leave
ret
Function at 0x503229
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x280c
call fcn.006ffc90
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x280c], eax
add eax, 0x2844
push ebx
xor ebx, ebx
push esi
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x2808], ebx
jb 0x50325f
mov eax, dword [eax]
push 0x7ce500
push eax
call fcn.0072de7e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x5032e7
push esi
call fcn.0072dc50
pop ecx
test eax, eax
jne 0x5032e0
push edi
push esi
push 0x2800
lea eax, [ebp - 0x2804]
push 1
push eax
call fcn.007210aa
mov edi, eax
add esp, 0x10
test edi, edi
jle 0x5032d4
mov ebx, edi
mov ecx, dword [ebp - 0x280c]
lea edx, [ebp - 0x2804]
mov eax, edi
sub eax, ebx
add eax, edx
push dword [ecx + 0x2800]
push ebx
push eax
push dword [ecx + 0x2804]
call dword [ecx + 0x2978]
add esp, 0x10
test eax, eax
js 0x5032f7
sub ebx, eax
jne 0x50329d
mov ebx, dword [ebp - 0x2808]
push esi
call fcn.0072dc50
pop ecx
test eax, eax
je 0x50327e
pop edi
push esi
call fcn.007207ee
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
push 0
mov ebx, eax
push 2
push esi
mov dword [ebp - 0x2808], ebx
call fcn.00721543
add esp, 0xc
jmp 0x5032d4
Function at 0x505ba4
Capabilities:
Query service status

Disassembly:
push 0x1a0
mov eax, 0x7a4104
call fcn.006fee7b
mov ebx, dword [ebp + 0x14]
xor esi, esi
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1a4], ecx
mov dword [ebp - 0x1a0], eax
test ebx, ebx
je 0x505c6a
lea eax, [ebp - 0x19c]
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x505d76
mov eax, dword [ebp - 0x198]
cmp eax, edi
je 0x505cf1
sub eax, 1
je 0x505c33
sub eax, 1
je 0x505c2b
sub eax, 1
je 0x505c26
sub eax, 1
je 0x505c33
sub eax, 1
je 0x505c2b
sub eax, 1
je 0x505c21
sub eax, 1
je 0x505c33
xor al, al
jmp 0x505c35
cmp edi, 7
jmp 0x505c2e
cmp edi, 1
jmp 0x505c2e
cmp edi, 4
setne al
jmp 0x505c35
mov al, 1
test al, al
jne 0x505cf9
and dword [ebp - 0x1a8], 0
lea eax, [ebp - 0x1ac]
push eax
mov dword [ebp - 0x1ac], 1
call fcn.00504c0b
inc esi
pop ecx
mov ecx, dword [ebp - 0x1a4]
cmp esi, ebx
jb 0x505bd5
call fcn.004056b5
push 2
pop esi
push esi
push eax
lea ecx, [ebp - 0x180]
call fcn.00404c30
lea eax, [ebp - 0x180]
mov dword [ebp - 4], esi
push str.Service_
push eax
call fcn.00401b53
pop ecx
pop ecx
push 0x7ceb70
push ebx
push str._within
push edi
mov ecx, eax
call fcn.00504c4d
add esp, 4
push eax
push str._failed_to
push dword [ebp - 0x1a0]
push ecx
call fcn.00403c14
pop ecx
pop ecx
push eax
call fcn.00401b53
pop ecx
pop ecx
push eax
call fcn.00401b53
pop ecx
pop ecx
push eax
call fcn.00401b53
pop ecx
pop ecx
mov ecx, eax
call fcn.00412dee
push eax
call fcn.00401b53
pop ecx
pop ecx
lea ecx, [ebp - 0x180]
call fcn.00404f66
mov al, 1
call fcn.006fee25
ret
push 1
push str.AgentErrors.log
lea ecx, [ebp - 0xc8]
call fcn.00404c30
lea eax, [ebp - 0xc8]
mov dword [ebp - 4], 1
push str.Encountered_state
push eax
call fcn.00401b53
push edi
mov ecx, eax
call fcn.00504c4d
add esp, 0xc
push eax
push str._to
push dword [ebp - 0x1a0]
push str._while_waiting_for_service_
push dword [ebp - 0x198]
call fcn.00504c4d
push eax
push ecx
call fcn.00401b53
add esp, 0xc
push eax
call fcn.00401b53
pop ecx
pop ecx
push eax
call fcn.00403c14
pop ecx
pop ecx
push eax
call fcn.00401b53
pop ecx
pop ecx
push eax
call fcn.00401b53
pop ecx
pop ecx
jmp 0x505deb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 1
push str.AgentErrors.log
lea ecx, [ebp - 0xc8]
mov esi, eax
call fcn.00404c30
and dword [ebp - 4], 0
lea eax, [ebp - 0xc8]
push str.Failed_to_query_service_
push eax
call fcn.00401b53
pop ecx
pop ecx
push esi
push 0x7ceae8
push edi
mov ecx, eax
call fcn.00504c4d
add esp, 4
push eax
push str._while_waiting_for_service_to
push dword [ebp - 0x1a0]
push ecx
call fcn.00403c14
pop ecx
pop ecx
push eax
call fcn.00401b53
pop ecx
pop ecx
push eax
call fcn.00401b53
pop ecx
pop ecx
push eax
call fcn.00401b53
pop ecx
pop ecx
mov ecx, eax
call fcn.00412dee
lea ecx, [ebp - 0xc8]
call fcn.00404f66
xor al, al
jmp 0x505cf3
Function at 0x5064cb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
shr edx, 2
mov esi, 0xeeeeeeee
push edi
mov edi, dword [ebp + 8]
test edx, edx
je 0x50651e
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [0x8f5470]
movzx ecx, bl
add esi, dword [eax + ecx*4 + 0x1000]
mov eax, ebx
not eax
shl eax, 0x15
add eax, 0x11111111
lea ecx, [esi + ebx]
imul esi, esi, 0x21
xor ecx, dword [edi]
shr ebx, 0xb
or ebx, eax
mov dword [edi], ecx
lea edi, [edi + 4]
add esi, 3
add esi, ecx
sub edx, 1
jne 0x5064e6
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x506686
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x7fed7fed
mov dword [ebp - 4], 0xeeeeeeee
mov al, byte [ebx]
test al, al
je 0x5066e1
push edi
mov edi, dword [ebp + 0xc]
shl edi, 8
movsx eax, al
push eax
call fcn.0072e0c1
mov edx, eax
inc ebx
pop ecx
push 0x5c
cmp edx, 0x2f
pop eax
cmove edx, eax
mov eax, dword [0x8f5470]
add esi, dword [ebp - 4]
lea ecx, [edi + edx]
xor esi, dword [eax + ecx*4]
imul ecx, dword [ebp - 4], 0x21
lea eax, [esi + 3]
add ecx, edx
add eax, ecx
mov dword [ebp - 4], eax
mov al, byte [ebx]
test al, al
jne 0x5066a8
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x518270
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x1c], edi
jne 0x518283
or eax, 0xffffffff
jmp 0x518322
mov ecx, dword [esi + 4]
lea eax, [esi + 0x2e]
cmp ecx, eax
jne 0x5182a8
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x24]
mov dword [esi + 4], ecx
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
cmp edx, eax
jae 0x5182a8
movzx eax, byte [edx]
jmp 0x518322
test ecx, ecx
jne 0x5182e6
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x5182cb
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x5182c7
push ecx
call fcn.006ff7b6
pop ecx
mov ecx, dword [esi + 0x28]
mov dword [esi + 0x24], eax
add ecx, eax
jmp 0x5182d1
lea ecx, [esi + 0x2d]
lea eax, [esi + 0x2c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 4]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
push dword [esi + 0x1c]
mov eax, dword [esi + 0xc]
sub eax, ecx
push eax
push 1
push ecx
call fcn.007210aa
add esp, 0x10
test eax, eax
jne 0x518314
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
add eax, ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
jmp 0x51827b
mov ecx, dword [esi + 4]
add eax, ecx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
movzx eax, byte [ecx]
pop edi
pop esi
ret
Function at 0x51c9f2
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e0
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x2e0], eax
xor esi, esi
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2d8], eax
mov dword [ebp - 0x2d0], 0x10001
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, edi
jne 0x51caa7
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x2dc]
push ecx
lea ecx, [ebp - 0x2d4]
mov dword [ebx], eax
push ecx
push eax
call fcn.0051c92a
mov bl, al
add esp, 0xc
test bl, bl
je 0x51ca84
mov eax, dword [ebp - 0x2d8]
mov ecx, dword [ebp - 0x2d4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x2e0]
sub ecx, dword [ebp - 0x2dc]
mov dword [eax], ecx
test esi, esi
je 0x51ca96
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
push edi
push esi
push 0x4a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
jne 0x51cabb
xor al, al
jmp 0x51ca98
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x51cad0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x51cab7
lea eax, [ebp - 0x2d0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x51ca43
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x51cac7

Function at 0x51cb51
Capabilities:
Create thread

Disassembly:
jmp 0x51e4f3
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x91a640
call esi
push 0x91a6a4
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
push edi
push edi
push edi
push edi
call esi
push edi
push edi
push edi
push edi
mov dword [0x91a6bc], eax
call esi
push 0x91a63c
push 0x10000
push edi
push 0x51e7fa
push 0x40000
push edi
mov dword [0x91a6c0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x91a638], eax
call fcn.0051caef
neg al
pop edi
sbb al, al
inc al
mov byte [0x91a65d], al
pop esi
ret
Function at 0x51d2d2
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 4
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x20], 0x1c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x51d36e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x20]
push eax
push esi
call sub.KERNEL32.dll_Thread32First
jmp 0x51d363
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x14], eax
jne 0x51d359
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x18], eax
je 0x51d359
xor eax, eax
push eax
push eax
push eax
push eax
push 1
push 1
push ebx
push edi
push eax
push dword [ebp - 0x18]
call fcn.0051d6df
push 0x7bc638
push ebx
call edi
add esp, 0x30
lea eax, [ebp - 0x20]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x51d329
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret
Function at 0x51ef9f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x8d5f40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
push 0x104
push ecx
push 0xffffffffffffffff
push eax
xor ebx, ebx
push ebx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x51efdb
xor al, al
jmp 0x51f019
lea eax, [ebp - 0x20c]
cmp byte [ebp + 0xc], bl
je 0x51efef
push eax
call fcn.0051f026
pop ecx
jmp 0x51f019
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x51f017
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51f013
test al, 0x10
je 0x51f013
mov bl, 1
mov al, bl
jmp 0x51f019
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.006fedff
leave
ret

Function at 0x51f026
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x51f03e
mov al, 1
jmp 0x51f09b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x51f051
shr eax, 4
and al, 1
jmp 0x51f09b
push edi
push 0x5c
pop eax
push eax
push esi
call fcn.00718d13
push 0x2f
push esi
mov edi, eax
call fcn.00718d13
add esp, 0x10
cmp edi, eax
cmovb edi, eax
test edi, edi
je 0x51f098
xor eax, eax
push esi
mov word [edi], ax
call fcn.0051f026
pop ecx
test al, al
je 0x51f098
push 0x5c
pop eax
push 0
push esi
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
jmp 0x51f09a
xor al, al
pop edi
pop esi
pop ebp
ret