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

Disassembly:
push 0xa4
mov eax, 0x602521
call fcn.005e47a1
mov edi, ecx
mov dword [ebp - 0x18], edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
call fcn.005af19c
push 0x40
lea esi, [edi + 4]
mov dword [ebp - 4], ebx
push ebx
mov ecx, esi
call fcn.0057ccfd
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.005b01a9
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.005a7058
push eax
mov byte [ebp - 4], 3
call fcn.005b0ea5
pop ecx
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0x14], edi
call fcn.0057cf38
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 4
call fcn.00594ac2
push 0x40
mov dword [ebp - 0x48], vtable.ASCrypt::ICodec.0
lea ecx, [ebp - 0x28]
push dword [edi + 8]
mov byte [ebp - 4], 1
call fcn.0057ccfd
push ebx
push dword [edi + 8]
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.0057d29d
push ebx
push dword [edi + 8]
lea ecx, [ebp - 0x28]
call fcn.0057d29d
mov ecx, esi
call fcn.0057d2e0
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0057d2e0
mov ebx, dword [ebp + 0xc]
mov esi, eax
mov ecx, ebx
mov edx, dword [ebx]
call dword [edx + 8]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx + 8]
jbe 0x5af3e2
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x88]
push eax
call fcn.005a8ba9
add esp, 0xc
push 0x40
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
mov dword [ebp - 0x10], 1
call fcn.0057ce03
push 7
pop ebx
push 0x40
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 3
call fcn.0057ce03
mov dword [ebp - 4], 8
jmp 0x5af413
push 0x40
push ebx
lea ecx, [ebp - 0x78]
call fcn.0057cd91
push 0x40
push eax
lea ecx, [ebp - 0x98]
mov dword [ebp - 4], 9
mov dword [ebp - 0x10], 8
call fcn.0057ce03
push 0x18
mov dword [ebp - 4], 0xa
pop ebx
push 0x40
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], ebx
call fcn.0057ce03
mov dword [ebp - 4], 0xc
test bl, 0x10
je 0x5af43e
and ebx, 0xffffffef
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x10], ebx
call fcn.0057cf38
mov byte [ebp - 4], 0xd
test bl, 8
je 0x5af455
and ebx, 0xfffffff7
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x10], ebx
call fcn.0057cf38
mov byte [ebp - 4], 0xe
test bl, 4
je 0x5af46c
and ebx, 0xfffffffb
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x10], ebx
call fcn.0057cf38
mov byte [ebp - 4], 0xf
test bl, 2
je 0x5af483
and ebx, 0xfffffffd
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x10], ebx
call fcn.0057cf38
mov byte [ebp - 4], 0x10
test bl, 1
je 0x5af497
lea ecx, [ebp - 0x88]
call fcn.0057cf38
push edi
lea ecx, [ebp - 0x38]
call fcn.0057cc71
push esi
lea ecx, [ebp - 0x38]
call fcn.0057cc71
mov ecx, dword [ebp - 0x14]
xor eax, eax
cmp dword [ecx + 8], eax
jbe 0x5af4c3
sub edi, esi
xor byte [edi + esi], 0x5c
xor byte [esi], 0x36
inc eax
inc esi
cmp eax, dword [ecx + 8]
jb 0x5af4b5
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x28]
push eax
call fcn.005b0f55
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 5
call fcn.0057cf38
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0057cf38
mov eax, dword [ebp - 0x18]
call fcn.005e476f
ret 8
Function at 0x5bbaa6
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x5c], ecx
pop ebp
ret
Function at 0x5da0a0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
mov eax, dword [0x68fa7c]
add eax, 1
mov dword [0x68fa7c], eax
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x10]
cmp edx, 1
jne 0x5da166
cmp dword [0x68fa7c], 1
jne 0x5da166
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x5da0f1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xc], 3
je 0x5da0f1
mov edx, dword [ebp - 4]
cmp dword [edx + 0xc], 0x101
jne 0x5da166
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push 0
mov ecx, dword [ebp - 4]
call fcn.005d9ff0
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x5da11d
mov dword [ebp - 0xc], 1
jmp 0x5da140
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
jne 0x5da133
mov dword [ebp - 8], 1
jmp 0x5da13a
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x10], 0
je 0x5da164
push 0x620c60
call fcn.00561070
add esp, 4
jmp 0x5da166
jmp 0x5da0ff
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 8]
call eax
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
mov esp, ebp
pop ebp
ret 4

Function at 0x5da340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.005db330
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5da384
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x5da390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], ecx
push 0
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0xc]
push ecx
call fcn.005db330
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5da3d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x5da5e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609326
mov eax, dword fs:[0]
push eax
mov eax, 0x119c
call fcn.0055f460
mov eax, dword [0x66d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x1164]
push eax
lea ecx, [ebp - 0x114]
push ecx
push 0x104
push 0
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x5da666
push 0x620c80
lea ecx, [ebp - 0xd44]
call fcn.005d9d60
mov ecx, 0x100
mov esi, eax
lea edi, [ebp - 0x544]
rep movsd dword es:[edi], dword [esi]
push 0x6693cc
lea eax, [ebp - 0x544]
push eax
call fcn.00559436
push 0x620c9c
lea ecx, [ebp - 0x12c]
call fcn.0045e4d0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x12c]
call fcn.0046a6d0
push 0x620ca4
lea ecx, [ebp - 0x12c]
call fcn.0046a6d0
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x1148], edx
mov eax, dword [ebp - 0x1148]
cmp dword [eax], 0
je 0x5da704
push 0x620ca8
lea ecx, [ebp - 0x12c]
call fcn.0046a6d0
mov ecx, dword [ebp - 0x1148]
mov edx, dword [ecx]
mov dword [ebp - 0x114c], edx
mov eax, dword [ebp - 0x114c]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0046a6d0
mov ecx, dword [ebp - 0x1148]
add ecx, 4
mov dword [ebp - 0x1148], ecx
push 0x620cac
lea ecx, [ebp - 0x12c]
call fcn.0046a6d0
jmp 0x5da6a8
push 0x44
push 0
lea edx, [ebp - 0x11a8]
push edx
call fcn.005594a0
add esp, 0xc
mov dword [ebp - 0x11a8], 0x44
xor eax, eax
mov dword [ebp - 0x1160], eax
mov dword [ebp - 0x115c], eax
mov dword [ebp - 0x1158], eax
mov dword [ebp - 0x1154], eax
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x144]
call fcn.0045e480
mov byte [ebp - 4], 1
lea edx, [ebp - 0x1160]
push edx
lea eax, [ebp - 0x11a8]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x144]
call fcn.0045e630
push eax
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x5da7b8
push 0x620cb0
lea ecx, [ebp - 0x1144]
call fcn.005d9d60
mov ecx, 0x100
mov esi, eax
lea edi, [ebp - 0x944]
rep movsd dword es:[edi], dword [esi]
push 0x6693cc
lea edx, [ebp - 0x944]
push edx
call fcn.00559436
mov eax, dword [ebp - 0x1160]
mov dword [ebp - 0x1150], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x144]
call fcn.0045e5e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.0045e5e0
mov eax, dword [ebp - 0x1150]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055337c
mov esp, ebp
pop ebp
ret
Function at 0x5dae90
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
movsx eax, word [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x5daebb
cmp dword [ebp - 4], 3
je 0x5daf0e
cmp dword [ebp - 4], 0x101
je 0x5daf5e
jmp 0x5dafac
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 1
push 0x620de8
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 2
push 0x620e18
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x5dafac
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 1
push 0x620e48
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 2
push 0x620e7c
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
jmp 0x5dafac
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 1
push 0x620eb0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push 0
push 0
push 0x400
push 0x400
push 0xff
push 6
push 2
push 0x620ee4
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x5e3100
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x609798
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x66d060]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x67cb70]
cmp eax, 0xffffffff
jne 0x5e3139
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x5e3146
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x5e31ad
jmp 0x5e317c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x5e31ea
test edi, edi
jne 0x5e31f0
push 0x5e28e0
push 0x68fd58
call fcn.005e26c0
mov eax, dword [0x67cb70]
add esp, 8
cmp eax, 0xffffffff
je 0x5e31ad
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x5e31d6
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5e31d6
mov eax, dword [ebp]
mov ecx, ebp
push 0
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x5e3228
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x5e3219
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
mov ecx, esi
push 0
mov eax, dword [esi]
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x5e31f0
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov dword [esp + 0x18], eax
mov esi, dword [ebx]
cmp esi, ebx
je 0x5e3170
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x5e3287
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x5e326c
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x5e3287
jmp 0x5e3260
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x5e3260
jmp 0x5e3287
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x5e3285
cmp esi, dword [eax + 8]
jne 0x5e3285
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x5e3275
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x5e329b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x5e329b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
mov ecx, ebp
push eax
call fcn.004836e0
cmp esi, ebx
jne 0x5e3240
mov ebp, dword [esp + 0x14]
jmp 0x5e3170
Function at 0x5e32c0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x18]
push eax
push 4
push edx
push 0x5e3330
push 0
push 0
call fcn.005e8278
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x5e32e9
pop esi
xor al, al
pop ebx
ret
mov ecx, dword [esi]
mov eax, 1
push edi
add ecx, 4
lock xadd dword [ecx], eax
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x5e330d
cmp eax, 0xffffffff
je 0x5e330d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x5ed962
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x609cf1
call fcn.005e47d4
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x5eda60
cmp byte [ebx + 0x46], 0
je 0x5eda60
mov eax, dword [ebx]
mov esi, 0xffff
push esi
call dword [eax + 0xc]
movzx eax, ax
cmp si, ax
jne 0x5ed99e
xor al, al
jmp 0x5eda62
xor eax, eax
mov dword [ebp - 0x14], 0xf
push eax
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x28], al
call fcn.00460ed0
and dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x28]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x5ed9f8
dec eax
je 0x5ed9fc
dec eax
dec eax
je 0x5eda4e
xor bl, bl
jmp 0x5eda50
mov byte [ebx + 0x46], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x5eda34
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.005556d1
add esp, 0x10
cmp esi, eax
jne 0x5ed9f4
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x28]
cmp byte [ebx + 0x46], 0
je 0x5eda4e
test esi, esi
jne 0x5ed9c2
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.0045f920
jmp 0x5ed9bc
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0045fc60
mov al, bl
jmp 0x5eda62
mov al, 1
call fcn.005e4783
ret

Function at 0x5ee8b9
Capabilities:
Print debug messages

Disassembly:
push 0x20
mov eax, 0x609e6b
call fcn.005e47a1
mov ecx, dword [ebp + 8]
push 0xa0
push str.....SourceLogger.cpp
push 1
push 0xc
call fcn.0057c109
movzx eax, al
push eax
call fcn.0057be0a
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
add esp, 0x10
push 0xc
push eax
call fcn.0057c19e
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
push 0x40
push eax
call fcn.0057ce03
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0057cf38
lea ecx, [ebp - 0x1c]
call fcn.0057d2d6
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp byte [ebp + 0xc], 0
je 0x5ee930
push 0x633e3c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0057cf38
call fcn.005e476f
ret 8
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
push edx
pop edi
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
push eax
pop esi
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x433002
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10003900
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10003945
xorps xmm0, xmm0
movq qword [esp + 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [esp + 0xc], esi
call fcn.10019610
mov dword [esp + 0x10], eax
test esi, esi
jne 0x10003958
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1000d449
mov esp, ebp
pop ebp
ret
mov edx, 0x1002a3fc
lea ecx, [esp + 0xc]
call fcn.100037a0
int3

Function at 0x10003970
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x10033700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10003988
mov ecx, dword [eax + 4]
jmp 0x1000398a
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea ebx, [esi + 3]
shr ebx, 2
test ecx, ecx
je 0x100039be
mov eax, dword [ecx]
test eax, eax
je 0x100039be
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x100039b5
mov byte [eax + esi], dl
pop esi
pop ebx
pop ebp
ret
push eax
call fcn.1000d666
add esp, 4
lea eax, [ebx*4 + 1]
push eax
call fcn.1000dd4f
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x100039e4
movzx eax, bl
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
pop ebp
ret
xor eax, eax
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
pop ebp
ret

Function at 0x100039f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x10033700]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x10003a08
mov edx, dword [eax + 4]
jmp 0x10003a0a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x10003a29
test edx, edx
je 0x10003a29
cmp dword [edx], 0
jne 0x10003a29
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.1000d666
add esp, 4
pop ebp
ret

Function at 0x10003dc0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x10033600
lock xadd dword [ecx], eax
push 0
push dword [esi + 4]
test eax, eax
je 0x10003e21
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d449
mov esp, ebp
pop ebp
ret
push fcn.10003db0
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1000d449
mov esp, ebp
pop ebp
ret
Function at 0x10003e80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100204e1
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 0x13c], edi
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [edi], vtable.boost::asio::detail::win_iocp_io_context.0
mov dword [edi + 0x14], 0
push 0x11c
lea eax, [ebp - 0x138]
mov dword [edi + 0x18], 0
push 0
push eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
call fcn.10012090
add esp, 0xc
mov dword [ebp - 0x138], 0x11c
mov dword [ebp - 0x134], 6
push 3
push 2
push 0
push 0
call dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
push edx
push eax
push 2
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
and eax, 0xfffffe0b
add eax, 0x1f4
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [edi + 0x38]
mov dword [edi + 0x34], 0
call fcn.10003a50
xorps xmm0, xmm0
mov esi, eax
movq qword [ebp - 0x18], xmm0
call fcn.10019610
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10003fa1
mov edx, str.mutex
lea ecx, [ebp - 0x18]
call fcn.100037a0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0
push 0xffffffffffffffff
push 0
push 0
mov byte [ebp - 4], 5
push 0xffffffffffffffff
mov dword [edi + 0x5c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi + 0x14], eax
test eax, eax
jne 0x10004002
xorps xmm0, xmm0
movq qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.10019610
mov dword [ebp - 0x14], eax
test esi, esi
je 0x10004002
mov edx, str.iocp
lea ecx, [ebp - 0x18]
call fcn.100037a0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000d449
mov esp, ebp
pop ebp
ret 8