joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455ddc
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x455f85
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402e64
cmp word [ebx + 0xa2], 0
je 0x455e24
mov edx, ebx
mov eax, dword [ebx + 0xa4]
call dword [ebx + 0xa0]
mov eax, dword [ebx + 0x90]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x455e3b
lea eax, [ebp - 4]
mov dword [ebp - 0xc], eax
jmp 0x455e40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x80], 0
jne 0x455e50
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x455e5e
mov eax, dword [ebx + 0x80]
call fcn.004049dc
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x7c]
call fcn.004049dc
push eax
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.004554fc
mov eax, dword [ebp - 0x18]
call fcn.004049dc
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebx + 0x74]
call fcn.004049dc
push eax
mov eax, dword [ebp - 0x14]
call fcn.004049dc
push eax
mov eax, ebx
call fcn.00455648
push eax
mov eax, ebx
call fcn.0045561c
push eax
mov eax, ebx
call fcn.004555d0
push eax
push 0xf01ff
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004553c8
mov eax, dword [ebp - 0x1c]
call fcn.004049dc
push eax
mov eax, dword [ebx + 8]
call fcn.004049dc
push eax
push esi
call sub.advapi32.dll_CreateServiceA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x90], eax
cmp dword [ebp - 8], 0
jne 0x455eea
call fcn.0040d444
xor edx, edx
push ebp
push 0x455f63
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x455f28
push dword fs:[edx]
mov dword fs:[edx], esp
cmp word [ebx + 0xaa], 0
je 0x455f1e
mov edx, ebx
mov eax, dword [ebx + 0xac]
call dword [ebx + 0xa8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x455f4c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455f6a
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret

Function at 0x455f94
Capabilities:
Delete service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0xb2], 0
je 0x455fc0
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xb4]
call dword [esi + 0xb0]
push 0xf01ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.004049dc
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x455fe5
call fcn.0040d444
xor eax, eax
push ebp
push 0x45601c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x456005
call fcn.0040d444
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x456023
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
Function at 0x45684c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, edx
mov ebx, eax
push 0
push 0
mov eax, edi
call fcn.00416f14
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.004049dc
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
setne bl
test bl, bl
je 0x45691f
push 0
push esi
call sub.kernel32.dll_GetFileSize
mov dword [esp], eax
mov eax, edi
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x4568b6
cmp eax, dword [esp]
pop edx
pop eax
jbe 0x4568c5
jmp 0x4568ba
pop edx
pop eax
jle 0x4568c5
mov edx, dword [esp]
inc edx
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, edi
mov edx, dword [eax]
call dword [edx]
mov edx, eax
mov eax, dword [edi + 4]
xor ecx, ecx
call fcn.00403124
mov eax, dword [esp]
xor edx, edx
push edx
push eax
mov eax, edi
call fcn.00416f14
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [edi + 4]
push eax
push esi
call sub.kernel32.dll_ReadFile
push esi
call sub.kernel32.dll_CloseHandle
mov eax, edi
call fcn.00416ef4
push edx
push eax
mov eax, dword [esp + 8]
xor edx, edx
cmp edx, dword [esp + 4]
jne 0x456919
cmp eax, dword [esp]
pop edx
pop eax
je 0x45691f
xor ebx, ebx
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x45769c
Capabilities:
Move file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004049cc
mov eax, dword [ebp - 8]
call fcn.004049cc
xor eax, eax
push ebp
push 0x45781e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x118]
mov edx, dword [ebp - 4]
call fcn.00408d38
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4577f3
push 2
push 0
push 0
push ebx
call sub.kernel32.dll_SetFilePointer
mov esi, eax
call fcn.00409ff4
add esp, 0xfffffff8
fstp qword [esp]
wait
lea eax, [ebp - 0x11c]
call fcn.0040ac58
push dword [ebp - 0x11c]
push 0x457834
push dword [ebp - 8]
push 0x457840
lea eax, [ebp - 8]
mov edx, 4
call fcn.0040489c
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
call fcn.004047dc
push eax
lea eax, [ebp - 8]
call fcn.00404a34
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
cmp esi, 0x500000
jbe 0x4577f3
call fcn.00409ff4
add esp, 0xfffffff8
fstp qword [esp]
wait
lea ecx, [ebp - 0xe]
lea edx, [ebp - 0xc]
lea eax, [ebp - 0xa]
call fcn.00409fac
push 1
lea eax, [ebp - 0x120]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.0040478c
lea eax, [ebp - 0x120]
push eax
lea edx, [ebp - 0x124]
movzx eax, word [ebp - 0xc]
call fcn.004085a8
mov edx, dword [ebp - 0x124]
pop eax
call fcn.004047e4
mov eax, dword [ebp - 0x120]
call fcn.004049dc
push eax
lea eax, [ebp - 0x118]
push eax
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457825
lea eax, [ebp - 0x124]
mov edx, 3
call fcn.00404540
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404540
ret
Function at 0x457ab4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.00403124
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov ax, word [ebp + 0xc]
mov word [ebp - 0x14], ax
mov eax, 0x457b38
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x457b2c
mov eax, dword [ebp - 0x4c]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp - 0x54]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle
mov esi, dword [ebx + 0x20]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x45887c
Capabilities:
Get session user name

Disassembly:
add esp, 0xffffff94
mov dword [esp], 0x65
push esp
lea eax, [esp + 8]
push eax
call sub.advapi32.dll_GetUserNameA
mov edx, 0x4588a8
lea eax, [esp + 4]
call fcn.00408db0
test eax, eax
sete al
add esp, 0x6c
ret
Function at 0x458a48
Capabilities:
Get session user name
Query service configuration
Query service status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov byte [ebp - 1], al
xor eax, eax
push ebp
push 0x458be5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 2], 0
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x458b72
push 0xf01ff
push 0x458bf4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 2]
cmp byte [ebp - 2], 0
je 0x458b69
cmp byte [ebp - 1], 0
je 0x458ad5
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceStatus
mov eax, dword [ebp - 0x34]
add eax, 0xfffffffe
sub eax, 3
setb al
mov byte [ebp - 2], al
jmp 0x458b60
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x1c]
inc eax
call fcn.0040819c
mov dword [ebp - 0x18], eax
xor eax, eax
push ebp
push 0x458b59
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov edx, dword [edx + 0x1c]
call fcn.00404714
mov edx, 0x458c10
mov eax, dword [ebp - 0x14]
call fcn.00408320
test eax, eax
jne 0x458b41
lea eax, [ebp - 0x14]
mov edx, 0x458c24
call fcn.004045b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458b60
xor edx, edx
mov eax, dword [ebp - 0x18]
call fcn.00402a68
ret
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp byte [ebp - 1], 0
jne 0x458bca
cmp byte [ebp - 2], 0
je 0x458bca
mov dword [ebp - 0x1c], pe_nt_image_headers32
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
call fcn.00404b68
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004049dc
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 0x10]
call fcn.004049dc
call fcn.00408c74
mov edx, eax
lea eax, [ebp - 0x10]
call fcn.00404b68
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
call fcn.00408320
test eax, eax
sete byte [ebp - 2]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458bec
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404540
ret
Function at 0x458e14
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x458e1c
push ecx
mov eax, 0x458c54
call fcn.00406420
xor eax, eax
push ebp
push 0x458f9f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x43
call sub.user32.dll_GetSystemMetrics
test eax, eax
jne 0x458f84
call fcn.00402dfc
test eax, eax
jle 0x458f3a
lea edx, [ebp - 0x14]
mov eax, 1
call fcn.00402e64
mov eax, dword [ebp - 0x14]
mov edx, 0x458fb4
call fcn.00408438
test eax, eax
jne 0x458ea3
push 0xbb8
call sub.kernel32.dll_Sleep
mov eax, 0x458fcc
call fcn.0045887c
test al, al
je 0x458f84
push 0
push 0x458fe0
call sub.kernel32.dll_WinExec
jmp 0x458f84
lea edx, [ebp - 0x18]
mov eax, 1
call fcn.00402e64
mov eax, dword [ebp - 0x18]
mov edx, 0x459008
call fcn.00408438
test eax, eax
je 0x458edf
lea edx, [ebp - 0x1c]
mov eax, 1
call fcn.00402e64
mov eax, dword [ebp - 0x1c]
mov edx, 0x459018
call fcn.00408438
test eax, eax
jne 0x458ef0
push 0
push 0x459020
call sub.kernel32.dll_WinExec
jmp 0x458f84
lea edx, [ebp - 0x20]
mov eax, 1
call fcn.00402e64
mov eax, dword [ebp - 0x20]
mov edx, 0x459044
call fcn.00408438
test eax, eax
je 0x458f2c
lea edx, [ebp - 0x24]
mov eax, 1
call fcn.00402e64
mov eax, dword [ebp - 0x24]
mov edx, 0x459054
call fcn.00408438
test eax, eax
jne 0x458f3a
push 0
push 0x458fe0
call sub.kernel32.dll_WinExec
jmp 0x458f84
call fcn.004589d4
test al, al
jne 0x458f4e
xor eax, eax
call fcn.00458a48
test al, al
je 0x458f84
mov eax, dword [0x45b034]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x34]
push 0
mov ecx, dword [0x45b034]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x45879c]
call fcn.004588cc
mov edx, dword [0x45b058]
mov dword [edx], eax
mov eax, dword [0x45b034]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458fa6
lea eax, [ebp - 0x24]
mov edx, 5
call fcn.00404540
ret
Function at 0x40e2a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0040e1e0
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40e2ec
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x40e2c0
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ed00
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00410110
call fcn.0040eeb0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40ed38
jmp 0x40edd4
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40ed37
cmp cl, 0x22
je 0x40ed90
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40edb0
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40edb0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40ed70
jmp 0x40edb0
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40ed90
cmp cl, 0x22
je 0x40ee10
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40edce
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x40edc0
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40edf2
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00402570
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40edb0

Function at 0x40f330
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x44e5a0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40f370
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.00417488
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40f720
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x44e5a0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40f7fc
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x40f811
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x40f7d0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40f768
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40f778
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40f7c3
test edx, edx
jne 0x40f7b6
test ecx, ecx
je 0x40f760
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40f820
cmp eax, 8
je 0x40f760
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40f752
call fcn.0040f0c0
mov eax, dword [0x44e5a0]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x40f744
call fcn.0040f390
mov eax, dword [0x44e5a0]
jmp 0x40f744
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0040f690
cmp eax, 7
jne 0x40f7bb
mov eax, dword [0x44e5a0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40f873
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x40f89e
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x40f87f
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040f0c0
mov eax, dword [0x44e5a0]
jmp 0x40f851
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40f862
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40f862
call fcn.0040f390
mov eax, dword [0x44e5a0]
jmp 0x40f858
Function at 0x40fb00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x44e5a0]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40fb94
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x40fbb0
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x40fbd0
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40fb88
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040f690
cmp eax, 7
jne 0x40fc4f
mov eax, dword [0x44e5a0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40fc26
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x40fc40
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x40fc00
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040f8b0
jmp 0x40fb45
call fcn.0040f0c0
mov eax, dword [0x44e5a0]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x40fb20
lea esi, [esi]
call fcn.0040f390
mov eax, dword [0x44e5a0]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x40fb2b
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40fb2e
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40fb77
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40fb77
call fcn.0040f0c0
mov eax, dword [0x44e5a0]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x40fb69
nop
lea esi, [esi]
call fcn.0040f390
mov eax, dword [0x44e5a0]
jmp 0x40fb69
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40fc60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40fcf2
mov eax, dword [0x44e5a0]
test eax, eax
je 0x40fce6
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x40fd61
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x40fd07
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0040f8b0
cmp eax, 7
jne 0x40fd7f
mov eax, dword [0x44e5a0]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40fd52
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x40fd70
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x40fd33
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040f0c0
mov eax, dword [0x44e5a0]
jmp 0x40fc82
mov dword [esp], edi
call fcn.0040f720
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40fc97
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40fcd5
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40fcd5
call fcn.0040f0c0
mov eax, dword [0x44e5a0]
jmp 0x40fcc0
call fcn.0040f390
mov eax, dword [0x44e5a0]
jmp 0x40fc8d
call fcn.0040f390
mov eax, dword [0x44e5a0]
jmp 0x40fccb
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x40ff30
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x40ff60
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00417488
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret
Function at 0xd9e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00d9e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xd9e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9e06a
add dl, dl
jne 0xd9e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9e0dc
xor eax, eax
add dl, dl
jne 0xd9e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xd9e17d
add dl, dl
jne 0xd9e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xd9e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xd9e075
mov eax, 1
add dl, dl
jne 0xd9e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xd9e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9e0e1
sub eax, ebx
mov ebx, 1
jne 0xd9e128
mov ecx, 1
add dl, dl
jne 0xd9e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xd9e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xd9e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xd9e136
cmp eax, 0x7d00
jae 0xd9e16d
cmp eax, 0x500
jb 0xd9e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9e075
cmp eax, 0x7f
ja 0xd9e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xd9e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xd9e19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xd9e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx