joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46442a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0xf82410]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x464470
cmp word [ebx], dx
jne 0x464470
or byte [eax + edi + 0x28], 4
jmp 0x464475
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4645d8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4645b8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4644b6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4644ec
cmp eax, edx
jae 0x4644fa
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x464491
jmp 0x4645d8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4645b3
cmp dword [ebp - 0x18], 0
je 0x4645b3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xf82410]
test byte [eax + edi + 0x28], 0x48
je 0x464589
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x46454d
mov word [esi], cx
jmp 0x464584
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xf82410]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0xf82410]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xf82410]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4645d8
pop eax
cmp word [ebp - 4], ax
jne 0x464599
cmp esi, ebx
jne 0x464599
mov word [esi], ax
jmp 0x4645d5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004653d6
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4645d8
push 0xd
pop eax
jmp 0x464594
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xf82410]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4645d2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4645d8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x472563
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x4725fe
push edi
push 0xffc498
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0xf82774]
test edi, edi
je 0x4725d1
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x4725ca
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0xf82774
call fcn.004ce97f
pop ecx
pop ecx
jmp 0x4725cc
mov edi, dword [edi]
test edi, edi
jne 0x47259f
pop ebp
mov esi, dword [0xf7c880]
push 0x10
push 0xf82774
lea eax, [esi + 1]
mov dword [0xf7c880], eax
call fcn.004ce9bf
pop ecx
pop ecx
push 0xffc498
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x472606
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
push 0
push edi
call fcn.00472400
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebx, 0xffc498
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0xf82774]
jmp 0x472637
cmp dword [esi + 0xc], edi
je 0x47263d
mov esi, dword [esi]
test esi, esi
jne 0x472630
jmp 0x472655
add esi, 8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0xf82774
call fcn.004ce97f
pop ecx
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
ret 4

Function at 0x472990
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x4729e5
push dword [esp + 0x10]
push 0x47290f
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0xf82780]
test edi, edi
je 0x472a3e
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x4729dd
cmp byte [edi + 0x10], 0
je 0x4729dd
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x4729b9
jmp 0x472a3e
mov edi, dword [0xf82780]
test edi, edi
je 0x472a3e
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x472a37
cmp byte [edi + 0x11], 0
je 0x472a10
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x472a27
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0xf82780
call fcn.004ce97f
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x4729f2
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x48e6f2
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push dword [0xffc4cc]
call fcn.004ce04a
mov esi, eax
or ebx, 0xffffffff
mov dword [esp + 0x20], esi
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebp, dword [esp + 0x28]
mov edx, eax
movzx ecx, word [edx]
test cx, cx
je 0x48e82f
mov eax, dword [esi]
mov edi, ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0x20
push 0x22
pop ecx
movzx eax, di
cmp di, word [esp + 0x18]
jne 0x48e758
push 0x20
pop edi
add edx, 2
movzx eax, word [edx]
cmp ax, di
je 0x48e74d
mov dword [esp + 0x14], 1
cmp ax, cx
jne 0x48e792
add edx, 2
mov edi, edx
movzx eax, word [edx]
mov ebx, eax
test ax, ax
je 0x48e7ec
push 0x22
mov ecx, eax
pop esi
movzx ebx, cx
cmp cx, si
je 0x48e7ec
add edx, 2
movzx eax, word [edx]
mov ecx, eax
mov ebx, eax
test ax, ax
jne 0x48e779
jmp 0x48e7ec
test ax, ax
je 0x48e7ff
push 0x20
mov edi, edx
movzx eax, ax
pop ebp
movzx ebx, ax
cmp ax, bp
je 0x48e7e8
add edx, 2
push 0x22
pop ebx
movzx eax, word [edx]
mov ecx, eax
cmp ax, bx
jne 0x48e7dd
add edx, 2
movzx eax, word [edx]
mov ecx, eax
test ax, ax
je 0x48e7dd
mov esi, eax
movzx ecx, si
cmp si, bx
je 0x48e7dd
add edx, 2
movzx eax, word [edx]
mov esi, eax
mov ecx, eax
test ax, ax
jne 0x48e7c6
movzx eax, cx
movzx ebx, cx
test cx, cx
jne 0x48e79f
mov ebp, dword [esp + 0x28]
test bx, bx
lea eax, [edx + 2]
mov ebx, dword [esp + 0x10]
mov esi, edx
cmove eax, edx
mov edx, eax
jmp 0x48e806
and dword [esp + 0x14], 0
xor edi, edi
cmp dword [esp + 0x1c], ebx
jne 0x48e810
test ebp, ebp
jne 0x48e837
cmp dword [esp + 0x14], 0
lea eax, [ebx + 1]
movzx ecx, word [edx]
cmove eax, ebx
mov edi, ecx
mov ebx, eax
mov dword [esp + 0x10], ebx
test cx, cx
jne 0x48e73d
test ebp, ebp
jne 0x48e84c
mov eax, ebx
jmp 0x48e852
test edi, edi
je 0x48e84c
mov eax, dword [esp + 0x20]
sub esi, edi
sar esi, 1
mov dword [ebp], esi
inc dword [eax]
mov eax, edi
jmp 0x48e852
and dword [ebp], 0
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x48e9cd
Capabilities:
Read file on windows

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0x10], esi
jle 0x48ea21
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
and dword [esp + 0x10], 0
lea eax, [esp + 0x10]
push 0
push eax
mov eax, dword [esp + 0x20]
sub eax, esi
push eax
lea eax, [esi + ebp]
push eax
push dword [ebx + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48ea0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x48ea1b
add esi, dword [esp + 0x10]
cmp esi, dword [esp + 0x18]
jl 0x48e9e0
jmp 0x48ea1f
add esi, dword [esp + 0x10]
pop ebp
pop ebx
mov eax, esi
pop esi
ret 0xc
Function at 0x48ea27
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, 0x1000
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebp, ebp
cmp dword [esp + 0x24], 0x18
mov ebx, eax
je 0x48eae6
cmp dword [esp + 0x24], 2
je 0x48eae6
push 0x2000
push ebp
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
jmp 0x48eab5
cmp dword [esp + 0x18], 2
jne 0x48ead1
cmp dword [esp + 0x28], 0xffffffff
je 0x48ea79
cmp ebp, dword [esp + 0x28]
jae 0x48ead1
add ebp, 2
test ebx, ebx
jne 0x48ea9e
lea eax, [edi*2 + 0x2000]
push eax
push esi
push 8
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov ax, word [esp + 0x14]
cmp ax, 0xa
je 0x48ead1
cmp ax, 0xd
je 0x48eab5
mov word [esi + edi*2], ax
inc edi
dec ebx
push 0
lea eax, [esp + 0x1c]
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x48ea65
push dword [esp + 0x2c]
xor eax, eax
push esi
mov word [esi + edi*2], ax
call fcn.0055aa10
jmp 0x48eb78
push eax
push 0
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp dword [esp + 0x28], 0xffffffff
je 0x48eb04
cmp ebp, dword [esp + 0x28]
jae 0x48eb5c
push 0
lea eax, [esp + 0x1c]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [esp + 0x30]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x48eb5c
cmp dword [esp + 0x18], 1
jne 0x48eb5c
inc ebp
test ebx, ebx
jne 0x48eb49
lea eax, [edi + 0x1000]
push eax
push esi
push 8
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov esi, eax
mov ebx, 0x1000
mov al, byte [esp + 0x13]
cmp al, 0xa
je 0x48eb5c
cmp al, 0xd
je 0x48eaf7
mov byte [esi + edi], al
inc edi
dec ebx
jmp 0x48eaf7
cmp dword [esp + 0x24], 0x18
push dword [esp + 0x2c]
mov byte [esi + edi], 0
push esi
jne 0x48eb73
call fcn.0055aa60
jmp 0x48eb78
call fcn.0055a9b0
push esi
push 0
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x48ee6c
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x44
mov eax, dword [esp + 0x48]
xor ecx, ecx
push ebx
push edi
xor edi, edi
inc ecx
mov ebx, edi
mov dword [esp + 8], edi
mov dword [esp + 0x18], ebx
cmp dword [eax + 0x10], ecx
jne 0x48f019
push esi
mov esi, dword [esp + 0x58]
test esi, esi
je 0x48f018
push ebp
push edi
push pe_nt_image_headers32
push 3
push edi
push 7
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x48f017
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0x200000
push edi
push dword [0xf81030]
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x48f010
call fcn.004e1fa0
mov edi, eax
mov dword [esp + 0x1c], edi
test edi, edi
je 0x48effd
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00573071
push 0x1a4
push edi
call fcn.004e24b0
lea eax, [esp + 0x34]
push eax
push edi
call fcn.004e2720
mov eax, dword [esp + 0x70]
add esp, 0x18
mov eax, dword [eax + 0x28]
cmp dword [eax + 8], 1
je 0x48ef3f
cmp dword [eax + 8], 3
je 0x48ef3f
push dword [esp + 0x60]
push edi
call fcn.004e1ca0
pop ecx
pop ecx
jmp 0x48ef59
push dword [esp + 0x60]
call fcn.0055a920
mov esi, eax
push esi
push edi
call fcn.004e24a0
pop ecx
pop ecx
push esi
call fcn.0055a910
mov eax, dword [esp + 0x14]
cdq
push edx
push eax
push edi
call fcn.004e2500
push 0x8000
push edi
call fcn.004e2310
mov eax, dword [esp + 0x6c]
push edi
push dword [eax]
call fcn.004e2700
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x78]
add esp, 0x1c
push 0
push eax
push 0x200000
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x5c]
test eax, eax
jle 0x48efe6
mov ebx, dword [esp + 0x58]
mov edi, dword [esp + 0x10]
push eax
push esi
push dword [ebx]
call fcn.004e26c0
add esp, 0xc
cmp eax, dword [esp + 0x5c]
jne 0x48efda
add edi, dword [esp + 0x5c]
lea eax, [esp + 0x5c]
push 0
push eax
push 0x200000
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x5c]
test eax, eax
jg 0x48efa8
mov ebx, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
push 1
pop eax
push edi
cmove ebx, eax
call fcn.004e1e30
pop ecx
jmp 0x48f001
mov esi, dword [esp + 0x18]
push esi
push 0
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop esi
pop edi
mov eax, ebx
pop ebx
add esp, 0x44
ret 0xc
Function at 0x48f0d4
Capabilities:
Delete file

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
xor edi, edi
test esi, esi
je 0x48f136
cmp word [esi], di
je 0x48f136
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004e3120
push dword [esp + 0x1c]
mov ebx, eax
push ebx
call dword [esp + 0x20]
push esi
push ebx
call fcn.004e33b0
add esp, 0x10
test eax, eax
jne 0x48f135
push 0x2c
push 8
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov eax, dword [esp + 0x10]
mov dword [ecx + 0x1c], edi
mov edi, ecx
mov dword [ecx], ebx
mov dword [ecx + 0x10], 1
mov dword [ecx + 0x28], eax
mov dword [eax + 4], ecx
pop ebx
mov eax, edi
pop edi
pop esi
ret 0x10

Function at 0x48f807
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
push edi
xor edi, edi
mov ebp, edi
cmp dword [esp + 0x10], edi
je 0x48f88d
push esi
push edi
push pe_nt_image_headers32
push 3
push edi
push 1
push 0x80000000
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x48f88c
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
push ebx
push edi
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x48f884
push ebp
lea eax, [esp + 0x1c]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0x18], ebx
jne 0x48f875
push ebx
push edi
push dword [esp + 0x1c]
call fcn.0048fc17
mov ebp, eax
push edi
push 0
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
pop edi
mov eax, ebp
pop ebp
ret 8
Function at 0x4aedd0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0xffae58], 0
jne 0x4aee7d
push 0xffaa78
push 0
mov dword [0xffae58], 1
mov dword [0xffc540], 0x40
call fcn.00525d50
add esp, 8
test eax, eax
jne 0x4aee7d
push fcn.004aed30
push 0x40
push 0x68
call fcn.004ce35d
mov dword [0xffaa70], eax
imul eax, dword [0xffc540], 0x368
push eax
push 8
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0xffaa78
mov dword [0xffc544], eax
call fcn.00525d40
push eax
mov dword [0xffc53c], eax
call fcn.00524240
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x4aefc0
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4aee73
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0xffaa74], 1
mov eax, dword [0xffaa70]
pop ecx
ret

Function at 0x4af660
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
call fcn.0051a580
mov ebx, dword [esp + 0xc]
lea eax, [esp + 4]
push ebx
push eax
mov dword [esp + 0xc], 0xf7c9a8
call fcn.0051a630
add esp, 8
test eax, eax
jne 0x4af72a
push esi
push edi
push 0x20000
mov dword [ebx + 0x4c], eax
mov dword [ebx + 0x48], eax
call fcn.0055b723
push 0x20000
mov dword [ebx + 0x38], eax
call fcn.0055b723
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x20]
push esi
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x28]
push 0x20000
push dword [ebx + 0x38]
mov dword [ebx + 0x58], eax
mov eax, dword [esp + 0x34]
mov dword [ebx + 0x50], 1
mov dword [ebx + 0x5c], eax
mov dword [ebx + 0x64], edi
mov dword [ebx + 0x68], esi
call edi
push esi
push 0x20000
push dword [ebx + 0x3c]
mov dword [ebx + 0x40], eax
call edi
add esp, 0x20
mov dword [ebx + 0x44], eax
lea eax, [esp + 0x14]
push eax
push 0
push ebx
push 0x4af730
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
test eax, eax
je 0x4af72a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x60], 1
mov eax, 1
pop ebx
pop ecx
ret
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4af970
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0xffae64], 0
jne 0x4af98e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0xffae60], eax
mov dword [0xffae64], 1
push ebx
push ebp
push esi
push edi
push 0x90
push 0
push dword [0xf81030]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0xffae60]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
cmp dword [0xffae64], 0
jne 0x4af9d0
call fcn.004af970
push dword [0xffae60]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
mov edi, eax
test edi, edi
jne 0x4af9f3
call fcn.004af970
push dword [0xffae60]
call ebx
mov edi, eax
lea edx, [edi + 8]
mov ebx, 0x11
nop dword [eax + eax]
imul eax, esi, 0x53a9b4fb
lea edx, [edx + 4]
mov ecx, 1
mov esi, 1
sub ecx, eax
imul eax, ecx, 0x53a9b4fb
mov dword [edx + 0x40], ecx
sub esi, eax
mov dword [edx - 4], esi
sub ebx, 1
jne 0x4afa00
xor esi, esi
mov dword [edi], ebx
mov dword [edi + 4], 0xa
mov ebx, 0xa
lea ebp, [esi + 0x1f]
nop dword [eax + eax]
mov ecx, dword [edi + esi*4 + 8]
mov eax, dword [edi + esi*4 + 0x4c]
mov edx, dword [edi + ebx*4 + 8]
ror eax, 0xd
add eax, dword [edi + ebx*4 + 0x4c]
ror ecx, 5
add ecx, edx
mov dword [edi + esi*4 + 8], eax
mov dword [edi + esi*4 + 0x4c], ecx
mov eax, 0x10
add esi, 0xffffffff
cmovs esi, eax
add ebx, 0xffffffff
mov dword [edi], esi
cmovs ebx, eax
mov dword [edi + 4], ebx
sub ebp, 1
jne 0x4afa40
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4afa80
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, edi
cmp dword [esp + 0x10], edi
cmovbe ebx, dword [esp + 0x10]
sub edi, ebx
mov dword [esp + 0x10], ebx
cmp dword [0xffae64], 0
jne 0x4afaa5
call fcn.004af970
push ebp
push esi
push dword [0xffae60]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov ebp, eax
test ebp, ebp
jne 0x4afaca
call fcn.004af970
push dword [0xffae60]
call esi
mov ebp, eax
mov esi, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + esi*4 + 0x4c]
mov ecx, dword [ebp + edx*4 + 8]
ror eax, 0xd
add eax, dword [ebp + edx*4 + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + esi*4 + 8]
mov ebx, dword [esp + 0x14]
ror eax, 5
add eax, ecx
mov dword [ebp + esi*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + esi*4 + 0x4c], eax
sub esi, 1
mov eax, 0x10
cmovs esi, eax
sub edx, 1
mov dword [ebp], esi
cmovs edx, eax
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], edx
pop esi
pop ebp
add edi, 1
je 0x4afb28
mul edi
pop edi
lea eax, [ebx + edx]
pop ebx
ret 8
pop edi
add eax, ebx
pop ebx
ret 8
Function at 0x4b24d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push dword [esp + 8]
push dword [0xffc47c]
call fcn.004ce28b
mov ebx, eax
test ebx, ebx
je 0x4b2538
mov ecx, dword [ebx + 4]
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x4b24fd
push dword [esp + 0xc]
push ebx
call eax
jmp 0x4b2538
push esi
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push dword [esp + 0x14]
mov edi, eax
push edi
call fcn.004cecf0
mov esi, eax
lea ecx, [edi + 1]
push ecx
xor eax, eax
push esi
mov word [esi], ax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push esi
call fcn.0045ace3
pop ecx
sub edi, eax
push edi
call fcn.004ced80
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b2fde
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0xffc6f0]
call fcn.004ce04a
xor ebx, ebx
mov esi, eax
cmp dword [0xffb2b4], ebx
jne 0x4b30b0
xor ebp, ebp
inc ebp
mov dword [0xffb2b4], ebp
call fcn.004b8064
mov edi, 0xa8
push edi
push ebx
push 0xffb208
call fcn.00465b30
add esp, 0xc
mov dword [0xffb208], 0x13
lea eax, [esp + 0x10]
mov dword [0xffb20c], edi
mov dword [0xffb218], 0x4b2f29
mov dword [0xffb21c], 0x4b324e
push eax
mov dword [0xffb270], 0x4b2f01
mov dword [0xffb274], 0x4b3193
mov dword [0xffb214], 0x4b2edc
mov dword [0xffb298], 0x4b2f46
mov dword [0xffb2b8], ebp
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4b30b0
cmp dword [esp + 0x20], ebp
je 0x4b30aa
cmp dword [esp + 0x20], 2
jne 0x4b30b0
cmp dword [esp + 0x14], 5
jb 0x4b30aa
jne 0x4b30b0
cmp dword [esp + 0x18], ebx
jne 0x4b30b0
mov dword [0xffb2b8], ebx
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
lea eax, [esp + 0x138]
push eax
call fcn.004bdb1f
mov eax, dword [esp + 0x140]
push ebx
push dword [0xf81034]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebx
push 0x5c188c
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x4b3184
mov ebp, dword [esp + 0x128]
push ebp
push dword [0xffc47c]
call fcn.004ce2c9
mov esi, dword [esp + 0x13c]
mov ebx, eax
mov dword [ebx + 0x10], esi
test esi, esi
je 0x4b3155
push esi
call fcn.004c8ea3
test eax, eax
je 0x4b3155
push 0
push 0
push esi
call fcn.004c8a2f
jmp 0x4b3157
xor eax, eax
push 0x4b2c33
push 0xfffffffffffffffc
mov dword [ebx + 0x18], eax
and dword [ebx + 0x14], 0
and dword [ebx + 0x1c], 0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xffb208
push edi
push ebx
push ebp
mov dword [0xffb2b0], eax
call fcn.004b760f
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c