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

Disassembly:
sub esp, 0x118
push ebx
push ebp
push esi
push edi
push dword [0x7311e4]
call fcn.005417c1
cmp dword [0x72c790], 0
mov edi, eax
mov esi, 0x50010000
jne 0x5301fe
mov ebx, 0xa4
push ebx
push 0
push 0x72c798
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x72c798], 0x1b
mov dword [0x72c79c], ebx
mov dword [0x72c7a0], 0x52fa10
mov dword [0x72c7a4], 0x52fd4b
mov dword [0x72c7bc], 0x52f78d
mov dword [0x72c7cc], 0x52fd41
mov dword [0x72c7c4], 0x52fcec
mov dword [0x72c7c0], 0x530390
mov dword [0x72c7ac], 0x530877
mov dword [0x72c7a8], 0x52ff92
mov dword [0x72c7b0], 0x52ffdc
mov dword [0x72c7b4], 0x5308a8
mov dword [0x72c7d8], 0x52ff09
mov dword [0x72c7dc], 0x530830
mov dword [0x72c7d0], 0x52fe78
mov dword [0x72c7d4], 0x5306dd
mov dword [0x72c810], 0x53052a
mov dword [0x72c814], 0x52fd90
mov dword [0x72c818], 0x53057d
mov dword [0x72c81c], 0x52fe1c
mov dword [0x72c820], 0x5305ef
mov dword [0x72c824], 0x52fe56
mov dword [0x72c808], 0x52fdeb
mov dword [0x72c838], 0x530611
call fcn.0053188f
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5301f4
cmp dword [esp + 0x24], 2
jne 0x5301f4
cmp dword [esp + 0x18], 6
jb 0x5301f4
mov eax, dword [0x72bb98]
mov dword [0x72c794], eax
mov dword [0x72c790], 1
test byte [esp + 0x140], 2
jne 0x53020d
mov esi, 0x50010002
test byte [esp + 0x140], 1
jne 0x53021a
or esi, 5
test byte [esp + 0x140], 0x20
je 0x530227
or esi, 0x20
push 0x1f4
push 0
push dword [0x72a684]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
lea eax, [esp + 0x13c]
push eax
call fcn.00535df8
test ebp, ebp
je 0x530360
push 0
push dword [0x72a688]
push 0xffffffffffffffff
push dword [edi]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push dword [esp + 0x14c]
push esi
push 0
push str.SysTreeView32
push 0x200
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x530364
push dword [esp + 0x12c]
push dword [0x7311d4]
call fcn.00541e40
push 0x5308f1
push 0xfffffffffffffffc
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 4
push 4
push 0x112c
push ebx
mov dword [0x72c83c], eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x72c798
push ebx
push edi
push dword [esp + 0x138]
mov dword [edi + 0x14], ebp
mov dword [edi + 0x18], 0x19
call fcn.00531a5d
mov ebx, eax
mov eax, 0x100
test dword [esp + 0x140], eax
je 0x530364
or esi, eax
push esi
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
test dword [esp + 0x140], 0x10000
je 0x530364
push edi
call fcn.0052fc28
pop ecx
push 0
push 2
push 0x1108
push dword [edi]
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x530350
push eax
push dword [edi]
call fcn.00532b76
push edi
push str.PB_3State
push dword [edi]
call dword [sym.imp.USER32.dll_SetPropW]
jmp 0x530364
mov ebx, dword [esp + 0x10]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x118
ret 0x18
Function at 0x53156b
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0x7311e4]
call fcn.005417c1
xor ebp, ebp
mov esi, eax
cmp dword [0x72c8f0], ebp
jne 0x531647
xor ebx, ebx
inc ebx
mov dword [0x72c8f0], ebx
call fcn.0053188f
mov edi, 0xa4
push edi
push ebp
push 0x72c8f8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0x72c8f8], 0x13
lea eax, [esp + 0x10]
mov dword [0x72c8fc], edi
mov dword [0x72c908], 0x5314b6
mov dword [0x72c90c], 0x5317e1
push eax
mov dword [0x72c960], 0x531491
mov dword [0x72c964], 0x53172c
mov dword [0x72c904], 0x53146c
mov dword [0x72c988], 0x5314d1
mov dword [0x72c99c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x531647
cmp dword [esp + 0x20], ebx
je 0x53162f
cmp dword [esp + 0x20], 2
jne 0x531647
cmp dword [esp + 0x14], 5
jae 0x531637
mov dword [0x72c99c], ebp
jmp 0x531647
jne 0x531647
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0x72c99c], eax
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.00535df8
mov eax, dword [esp + 0x140]
push ebp
push dword [0x72a688]
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 ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
je 0x53171d
push dword [esp + 0x128]
push dword [0x7311d4]
call fcn.00541e40
mov edi, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], edi
test edi, edi
je 0x5316ec
push edi
call fcn.0053b9a8
test eax, eax
je 0x5316ec
push ebp
push ebp
push edi
call fcn.0053b51d
mov dword [esi + 0x18], eax
jmp 0x5316ef
mov dword [esi + 0x18], ebp
push 0x5311bb
push 0xfffffffffffffffc
push ebx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x72c8f8
push ebx
push esi
push dword [esp + 0x134]
mov dword [0x72c8f4], eax
call fcn.00531a5d
mov ebx, eax
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x532e8b
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x533001
mov eax, dword [esp + 0x24]
dec eax
je 0x532fe4
dec eax
jne 0x533001
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00532e44
pop ecx
test eax, eax
je 0x532f42
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x532f05
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x532fe0
dec ebx
je 0x532fdc
dec ebx
je 0x532fbb
dec ebx
je 0x532f75
sub ebx, 4
jne 0x533001
test edi, edi
jne 0x533001
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x533001
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x532f05
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x532f00
sub edi, 0
je 0x532fad
dec edi
je 0x532f9f
dec edi
je 0x532f91
dec edi
jne 0x533001
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x533001
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x533001
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x533001
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x533001
sub edi, 0
je 0x532fd8
dec edi
je 0x532fd4
dec edi
jne 0x533001
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x533001
push 0x3c
jmp 0x533000
push 0x32
jmp 0x533000
push 0x14
jmp 0x533000
push 5
jmp 0x533000
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x532ffe
cmp eax, 0xa
je 0x532ffa
cmp eax, 0x5a
jne 0x533001
push 0x28
jmp 0x533000
push 0x1e
jmp 0x533000
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret

Function at 0x533a56
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor esi, esi
push dword [0x7311d8]
call fcn.00541e01
mov edi, eax
test edi, edi
je 0x533a79
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
push dword [esp + 0x10]
push esi
call fcn.00542650
test esi, esi
je 0x533a96
lea ecx, [esi + 1]
push ecx
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x533a9b
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
ret 8
Function at 0x534a36
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x534ace
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x534acb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x534acb
lea eax, [esi - 1]
push eax
push dword [0x7311d8]
call fcn.00541e01
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x534acd
mov edx, dword [edi + 4]
xor ecx, ecx
pop esi
cmp word [ecx + edx + 2], si
jne 0x534ac2
mov esi, 0xfa01
push 9
cmp word [ecx + edx + 4], si
je 0x534bb5
pop esi
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x534aa8
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x534b74
push eax
call esi
test al, al
jns 0x534b74
push 0x11
call esi
test al, al
js 0x534b74
push 0x10
call esi
test al, al
js 0x534b74
push 0x12
call esi
test al, al
js 0x534b74
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x534b74
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
je 0x534b48
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x534b5f
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x534bbf
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call sub.MSVCRT.dll_wcscmp
pop ecx
pop ecx
test eax, eax
je 0x534bbf
test ebp, ebp
je 0x534b98
push 0x11
call esi
test al, al
js 0x534b90
push 0x10
call esi
test al, al
js 0x534b90
push 0x12
call esi
test al, al
jns 0x534b98
push 1
push ebp
call fcn.00534bcb
test ebx, ebx
je 0x534bac
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x534bbf
test edi, edi
je 0x534bbf
mov eax, dword [edi + 8]
jmp 0x534bc1
and dword [esp + 0x14], 0
jmp 0x534acd
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x5375ca
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
push edi
push dword [esp + 0xc]
xor esi, esi
push dword [0x7312cc]
call fcn.00541e01
mov edi, eax
test edi, edi
je 0x53761e
push esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x53761e
push esi
push dword [edi]
call fcn.00537660
mov edi, eax
test edi, edi
je 0x537618
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 8
call dword [sym.imp.USER32.dll_SetClipboardData]
mov esi, eax
test esi, esi
jne 0x537618
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
mov eax, esi
pop esi
ret 4
Function at 0x5379ea
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
xor edi, edi
push edi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x537a5f
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x537a08
mov esi, 0x5ecbe8
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
lea ebp, [eax*2 + 2]
push ebp
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x537a56
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x537a56
push ebp
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
mov edi, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebp
pop ebx
mov eax, edi
pop edi
ret 4

Function at 0x537a65
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
xor esi, esi
push esi
mov ebx, esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x537aa6
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x537a9e
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x537a9e
push esi
call sub.MSVCRT.dll_wcslen
pop ecx
mov ebx, eax
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x537aa9
mov edi, dword [ebp + 8]
push dword [ebp + 8]
push ebx
call fcn.00542650
test esi, esi
je 0x537ad1
lea ecx, [ebx*2 + 2]
push ecx
push esi
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x537ad6
xor ecx, ecx
mov word [eax], cx
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x537edc
Capabilities:
Set thread local storage value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
push edi
mov edi, ebx
test esi, esi
je 0x537f39
push esi
call dword [esi + 0x58]
mov ecx, dword [esi + 0x80]
mov edi, eax
mov dword [esi + 0x94], ecx
mov ecx, dword [esi + 0x84]
mov dword [esi + 0x98], ecx
test edi, edi
jne 0x537f39
mov eax, dword [esi + 0x70]
test eax, eax
je 0x537f18
push ebx
push esi
call eax
push esi
push ebx
push dword [0x72a684]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x7312d4], ebx
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x537fdf
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x538007
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
push dword [ebp + 0x14]
mov eax, dword [esi + 0x90]
push dword [ebp + 0x10]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 4]
pop esi
pop ebp
ret 0x14
Function at 0x53802a
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax + 0x90]
add ecx, dword [esp + 0xc]
push ecx
mov ecx, dword [eax + 0x8c]
add ecx, dword [esp + 0xc]
push ecx
push dword [esp + 0xc]
push eax
call dword [eax + 0x24]
ret 0xc

Function at 0x538057
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 0xac]
je 0x53807f
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xb0]
je 0x538094
push eax
push esi
mov dword [esi + 0xb0], eax
call dword [esi]
push dword [ebp + 0x10]
mov eax, dword [esi + 0x90]
add eax, dword [ebp + 0xc]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 0x30]
pop esi
pop ebp
ret 0x14

Function at 0x5380b4
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push edi
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
add ecx, dword [ebx + 0x90]
add ebp, dword [ebx + 0x8c]
mov dword [esp + 0x14], ecx
test edi, edi
je 0x538128
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x538127
test edi, edi
jns 0x5380f5
inc edi
jmp 0x5380f6
dec edi
test esi, esi
jns 0x5380fd
inc esi
jmp 0x5380fe
dec esi
mov eax, dword [esp + 0x24]
cmp eax, dword [ebx + 0xac]
je 0x538119
push eax
push ebx
mov dword [ebx + 0xac], eax
call dword [ebx + 0x40]
mov ecx, dword [esp + 0x18]
lea eax, [ecx + esi]
push eax
lea eax, [edi + ebp]
push eax
push ecx
push ebp
push ebx
call dword [ebx + 0x48]
pop esi
pop edi
pop ebp
pop ebx
ret 0x14

Function at 0x53812e
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x538156
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0x34]
add eax, dword [ebp + 0xc]
test ecx, ecx
je 0x538180
fld dword [ebp + 0x14]
push ecx
fstp dword [esp]
push dword [ebp + 0x10]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call ecx
jmp 0x538192
push dword [ebp + 0x10]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 0x30]
pop esi
pop ebp
ret 0x14
Function at 0x538197
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x18]
cmp eax, dword [esi + 0xac]
je 0x5381bf
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov ecx, dword [esi + 0x90]
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x8c]
add eax, ecx
push eax
mov eax, dword [ebp + 0x10]
add eax, edx
push eax
mov eax, dword [ebp + 0xc]
add eax, ecx
push eax
mov eax, dword [ebp + 8]
add eax, edx
push eax
push esi
call dword [esi + 0x48]
pop esi
pop ebp
ret 0x14

Function at 0x53821a
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push edi
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 0x14]
mov ebx, eax
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
add ecx, dword [ebx + 0x90]
add ebp, dword [ebx + 0x8c]
mov dword [esp + 0x14], ecx
test edi, edi
je 0x538290
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x53828f
test edi, edi
jns 0x53825b
inc edi
jmp 0x53825c
dec edi
test esi, esi
jns 0x538263
inc esi
jmp 0x538264
dec esi
mov eax, dword [ebx + 0xa4]
cmp eax, dword [ebx + 0xac]
je 0x538281
push eax
push ebx
mov dword [ebx + 0xac], eax
call dword [ebx + 0x40]
mov ecx, dword [esp + 0x18]
lea eax, [ecx + esi]
push eax
lea eax, [edi + ebp]
push eax
push ecx
push ebp
push ebx
call dword [ebx + 0x48]
pop esi
pop edi
pop ebp
pop ebx
ret 0x10

Function at 0x538296
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp eax, dword [esi + 0xac]
je 0x5382be
push eax
push esi
mov dword [esi + 0xac], eax
call dword [esi + 0x40]
mov eax, dword [esi + 0x90]
mov ecx, dword [esi + 0xc]
add eax, dword [ebp + 0xc]
push dword [ebp + 0x10]
test ecx, ecx
je 0x5382e1
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call ecx
jmp 0x5382f3
push dword [ebp + 0x10]
push eax
mov eax, dword [esi + 0x8c]
add eax, dword [ebp + 8]
push eax
push esi
call dword [esi + 0x38]
pop esi
pop ebp
ret 0x10
Function at 0x5393aa
Capabilities:
Set thread local storage value

Disassembly:
push esi
push 0x10c
push 8
push dword [0x72a684]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push dword [0x7312d0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x7312d4], esi
mov eax, esi
and dword [esi + 0xa8], 0
or dword [esi + 0xac], 0xffffffff
or dword [esi + 0xb0], 0xffffffff
mov dword [esi + 0xa4], 0xffffff
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 7
mov dword [esi], 0x538456
mov dword [esi + 4], 0x538476
mov dword [esi + 8], 0x5391a6
mov dword [esi + 0xc], 0x53850e
mov dword [esi + 0x10], 0x538a24
mov dword [esi + 0x14], 0x5389b6
mov dword [esi + 0x18], 0x5389f4
mov dword [esi + 0x1c], 0x538a0c
mov dword [esi + 0x20], fcn.00538a80
mov dword [esi + 0x24], 0x538885
mov dword [esi + 0x28], fcn.005386da
mov dword [esi + 0x2c], 0x5385f1
mov dword [esi + 0x30], 0x53894c
mov dword [esi + 0x34], 0x5388a1
mov dword [esi + 0x38], 0x538afd
mov dword [esi + 0x3c], 0x538c0e
mov dword [esi + 0x40], 0x538cb2
mov dword [esi + 0x44], 0x538d49
mov dword [esi + 0x48], 0x538e47
mov dword [esi + 0x4c], 0x539028
mov dword [esi + 0x50], 0x538e98
mov dword [esi + 0x54], 0x5390ea
mov dword [esi + 0x58], 0x5391e5
mov dword [esi + 0x5c], 0x5392a0
mov dword [esi + 0x60], 0x539318
mov dword [esi + 0x64], 0x53935e
pop esi
ret

Function at 0x53a2c3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x5c]
push ebp
xor ebp, ebp
push esi
test ebx, ebx
je 0x53a2d7
mov esi, ebx
jmp 0x53a2e1
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, eax
test esi, esi
je 0x53a3d2
lea eax, [esp + 0x18]
push eax
push 0x18
pop eax
push eax
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x53a3c7
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push edi
mov edi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], edi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x18
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x53a3c6
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push edi
push 0
push dword [esp + 0x78]
push esi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul edi, dword [esp + 0x14]
test edi, edi
jle 0x53a3c6
mov ebx, dword [esp + 0x10]
push 3
pop ebp
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
add eax, ecx
movzx ecx, byte [ebx]
add eax, ecx
cdq
idiv ebp
mov byte [ebx], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 1], al
mov ecx, dword [esp + 0x10]
mov byte [ecx + 2], al
mov ebx, dword [esp + 0x10]
add ebx, ebp
mov dword [esp + 0x10], ebx
dec edi
jne 0x53a38f
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
pop edi
test ebx, ebx
jne 0x53a3d2
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x50
ret 8
Function at 0x53bb06
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push 0x601940
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x730bfc], eax
test eax, eax
je 0x53bb34
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x730bf8], eax
lea eax, [ebp - 0x114]
mov dword [0x730c00], 1
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x53bb96
cmp dword [ebp - 0x104], 1
jne 0x53bb6b
and dword [0x730c00], 0
jmp 0x53bbae
cmp dword [ebp - 0x104], 2
jne 0x53bb96
cmp dword [ebp - 0x110], 5
jb 0x53bb62
jne 0x53bb96
mov eax, dword [ebp - 0x10c]
neg eax
sbb eax, eax
and eax, dword [0x730c00]
mov dword [0x730c00], eax
jmp 0x53bb9b
mov eax, dword [0x730c00]
test eax, eax
je 0x53bbae
call fcn.0053b30c
neg eax
sbb eax, eax
and dword [0x730c00], eax
mov esp, ebp
pop ebp
ret

Function at 0x53cc10
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x53cc42
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x53cc3d
cmp dword [esp + 0xc], esi
je 0x53cc59
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret