joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5913c3b2
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x44], ebx
push edi
je 0x5913dd2a
mov edi, dword [esi + 0x44]
cmp edi, ebx
je 0x5913c470
test byte [ebp + 0xc], 1
jne 0x5913c9df
push 0x2c
lea eax, [ebp - 0x34]
push ebx
push eax
mov dword [ebp - 0x38], 0x30
call sub.MSVCR80.dll_memset
mov eax, dword [esi + 0x40]
add esp, 0xc
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x411
push edi
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x434
push dword [esi + 0x44]
call edi
lea eax, [ebp - 0x38]
push eax
push ebx
push 0x411
push dword [esi + 0x44]
mov dword [ebp - 0x2c], 1
call edi
mov eax, dword [ebp + 8]
cmp eax, dword [esi + 0x50]
jne 0x5913c467
push ebx
mov ecx, esi
call fcn.59123ecf
mov edi, dword [sym.imp.USER32.dll_KillTimer]
push 1
push dword [esi + 0x40]
call edi
push 2
push dword [esi + 0x40]
call edi
cmp byte [esi + 0x69], bl
jne 0x5913dbb7
pop edi
pop esi
pop ebx
leave
ret 8
push dword [ebp + 8]
mov ecx, esi
call fcn.59123ecf
mov eax, dword [ebp + 0xc]
shr eax, 1
and al, 1
mov byte [esi + 0x68], al
je 0x5913ca07
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esi + 0x6c]
cmp eax, 0xa
jbe 0x5913cbbb
push ebx
push 3
push 0x415
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_SendMessageW]
push ebx
push eax
push 1
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x5913c470
push 0x14
pop eax
jmp 0x5913ca18
mov byte [esi + 0x69], bl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x6c], eax
jmp 0x5913c470
push 8
pop edi
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], 0xff
mov dword [ebp - 8], edi
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push SysStringLen
push ebx
push 0x5913ddb8
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
cmp eax, ebx
mov dword [esi + 0x44], eax
je 0x5913dd9f
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push eax
call edi
and eax, 0xffafcfff
push eax
push 0xffffffffffffffec
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, esi
call fcn.5911cfc0
cmp eax, 1
je 0x5916b34c
push 0x13
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0xc8
push ebx
push 0x418
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x5913c3ca
push 0xffffffffffffffec
push dword [esi + 0x44]
call edi
or eax, 0x400000
push eax
push 0xffffffffffffffec
push dword [esi + 0x44]
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x5913dd8e
Function at 0x5913cc42
Capabilities:
Log keystrokes via polling

Disassembly:
lea eax, [edi + 0xa4]
cmp dword [eax], esi
jne 0x5913cc79
cmp byte [ebx + 0x20], 1
jne 0x5913cc79
push esi
mov dword [eax], 1
call sym.MSNCore.dll_protected:_long_int___thiscall_WLEditT::SetPinBottomEnabled_bool_
jmp 0x5913cc79
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
push esi
xor esi, esi
cmp eax, esi
push edi
mov edi, ecx
mov byte [ebp - 1], 0
jne 0x59158321
mov eax, dword [ebx + 0xc]
sub eax, esi
je 0x5913cf5a
dec eax
jne 0x5913cc79
call sym.MSNCore.dll_public:_bool___thiscall_WLEditT::GetPinBottom_void_const
mov byte [ebp - 1], al
lea eax, [ebp + 8]
push eax
push esi
push esi
mov dword [ebp + 8], esi
call fcn.5913cf1b
test eax, eax
jl 0x5913cd2f
push dword [ebp + 8]
lea ecx, [edi + 0x4c]
push ebx
call sym.MSNCore.dll_protected:_long_int___thiscall_CDUI2WindowMsg::DUI2Win32Message_struct_DirectUI::InputEvent___class_DirectUI::DynamicArray_struct_CDUI2WindowMsg::CWinMsg___
test eax, eax
jl 0x5913cd27
mov eax, dword [ebp + 8]
cmp dword [eax + 8], esi
mov dword [ebp - 0xc], esi
jle 0x5913cd27
mov dword [ebp - 8], esi
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x10]
add esi, dword [ebp - 8]
je 0x5913cd13
mov eax, dword [esi]
cmp eax, 0x207
je 0x59158359
cmp eax, 0x208
je 0x59158359
cmp eax, 0x209
je 0x59158359
cmp eax, 0x102
je 0x5913d3d7
and dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
push dword [esi + 8]
lea ecx, [edi + 0x48]
push dword [esi + 4]
mov eax, dword [ecx]
push dword [esi]
call dword [eax]
xor ecx, ecx
inc ecx
cmp dword [ebx + 0xc], ecx
je 0x5913cd10
xor ecx, ecx
test eax, eax
sete cl
mov byte [ebx + 4], cl
inc dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
add dword [ebp - 8], 0xc
cmp ecx, dword [eax + 8]
jl 0x5913ccb1
xor esi, esi
push dword [ebp + 8]
call fcn.5911c8d9
cmp byte [ebp - 1], 0
jne 0x5917392f
cmp byte [ebx + 4], 0
je 0x5915832f
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [ebx + 0x10]
dec eax
je 0x5913cbc3
dec eax
jne 0x5913cc79
lea eax, [edi + 0xa4]
cmp dword [eax], esi
je 0x5913cc79
mov cl, byte [ebx + 0x20]
cmp cl, 1
jne 0x5915833d
or dword [edi + 0xac], 1
mov ecx, edi
mov dword [eax], esi
call fcn.5912c398
jmp 0x5913cc79
cmp dword [esi + 4], 9
jne 0x5913ccea
jmp 0x59173922
cmp eax, 2
je 0x5913cc63
jmp 0x5913cc79
push ebx
mov ecx, edi
call dword [fcn.5913befc]
jmp 0x5913cd43
cmp cl, 2
je 0x5913cf85
jmp 0x5913cc79
test ax, ax
js 0x5913ccea
jmp 0x5913cd13
mov byte [ebx + 4], 1
jmp 0x5913cd13
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
jmp 0x5915834b
test byte [edi + 0xac], 1
je 0x5913cd39
push esi
mov ecx, edi
call sym.MSNCore.dll_protected:_long_int___thiscall_WLEditT::SetPinBottomEnabled_bool_
jmp 0x5913cd39
Function at 0x5913f935
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1000]
mov eax, dword [esi]
test eax, eax
jle 0x59140b94
dec eax
push 0x50
mov dword [esi], eax
mov edi, dword [edi + eax*4]
push 0
push edi
call sub.MSVCR80.dll_memset
add esp, 0xc
test edi, edi
je 0x5913f969
mov ecx, edi
call fcn.5912e5a0
mov eax, edi
pop edi
pop esi
ret
push dword [0x591d52c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push 0x50
push 0x200
push edi
push esi
mov ecx, eax
call dword [edx + 0xc]
mov eax, dword [esi]
test eax, eax
jne 0x5913f94b
jmp 0x591701e7
xor edi, edi
jmp 0x5913f969
Function at 0x59149f82
Capabilities:
Get graphical window text

Disassembly:
sbb ecx, ecx
sbb ecx, 0xffffffff
jmp 0x59149fee
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
test byte [edi + 0x38], 1
jne 0x5914a00c
test byte [edi + 0x64], 8
je 0x5914a00c
push ebx
push esi
push dword [edi + 0x48]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
inc esi
lea eax, [esi + esi]
push eax
call fcn.5911c83b
mov ebx, eax
test ebx, ebx
je 0x5914a00a
push esi
push ebx
push dword [edi + 0x48]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 4]
push eax
mov ecx, edi
call fcn.59149f64
test eax, eax
jne 0x59149fd3
mov eax, 0x591019f8
mov edx, eax
mov ecx, ebx
mov si, word [ecx]
cmp si, word [edx]
jne 0x5914324b
test si, si
jne 0x5916cd69
xor ecx, ecx
test ecx, ecx
je 0x59149ffc
push eax
push dword [edi + 0x48]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
call fcn.5911cf70
push ebx
call fcn.5911c89e
pop esi
pop ebx
pop edi
leave
ret
mov si, word [ecx + 2]
cmp si, word [edx + 2]
jne 0x5914324b
add ecx, 4
add edx, 4
test si, si
je 0x59149fec
jmp 0x59149fd7

Function at 0x5914bc36
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x591d84a4], 0
push esi
je 0x5914e363
mov eax, dword [0x591d84a4]
cmp eax, 1
jne 0x59178a41
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5914e370
pop esi
ret
call fcn.5914e34a
test eax, eax
jne 0x5914bc44
xor eax, eax
pop esi
ret
push eax
call dword [0x591ecb9c]
test eax, eax
jne 0x59178aab
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x5914e370
mov eax, dword [esi]
push edi
push dword [0x591d84a4]
call dword [0x591ecb9c]
mov edi, eax
test edi, edi
je 0x59178a8e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x59178aaa
lea edi, [esi + 0xff0]
push esi
push dword [0x591d84a4]
call dword [0x591ecb98]
add esi, 0x10
cmp esi, edi
jb 0x59178a94
mov eax, esi
pop edi
pop esi
ret
Function at 0x5914fd31
Capabilities:
Copy file

Disassembly:
push 0x20
mov eax, 0x591c4c58
call fcn.5911c518
mov dword [ebp - 0x14], ecx
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
mov dword [ebp - 0x10], 0x80004005
je 0x5914fdf6
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.5914fe2a
mov edi, eax
cmp edi, ebx
je 0x5914fdf6
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x5914fe01
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea eax, [edi + 0x28]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, ebx
setge al
cmp al, bl
jne 0x5914fde6
mov dword [ebp - 0x2c], 0x59135e18
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
push 0x5914bde4
push dword [edi + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.5914da74
cmp eax, ebx
mov dword [ebp - 0x10], eax
jl 0x5914fdda
lea ecx, [esi + 0x2c]
call fcn.59135ef2
lea eax, [ebp - 0x2c]
push eax
lea ecx, [esi + 0x2c]
call fcn.5914c998
cmp dword [esi + 0x30], ebx
je 0x5914fdda
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.59135d53
cmp byte [ebp + 0xc], bl
jne 0x59176150
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x10]
call fcn.5911c54b
ret 8
cmp eax, 1
jne 0x5914fde6
jmp 0x59176129
mov ecx, dword [edi + 8]
cmp ecx, ebx
je 0x5914fde6
mov eax, dword [esi + 0xc]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x5914fde6
mov dword [ebp - 0x10], ebx
jmp 0x5914fde6
cmp dword [ebp - 0x10], ebx
jl 0x5914fdef
cmp dword [esi + 0x20], ebx
jne 0x5914fdef
mov ecx, dword [ebp - 0x14]
push edi
push esi
call fcn.591a2d00
mov dword [ebp - 0x10], eax
jmp 0x5914fdef

Function at 0x59152de8
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x591d4f7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add eax, 0x1190
ret
Function at 0x59155522
Capabilities:
Inspect load icon resource

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
push esi
mov esi, ecx
call dword [fcn.5911c750]
test eax, eax
je 0x5915560a
push 0x59155610
call dword [fcn.5911d304]
mov ecx, esi
push eax
call dword [fcn.5911c750]
mov ecx, eax
call dword [fcn.5911d300]
mov ecx, eax
test ecx, ecx
mov dword [ebp - 8], ecx
je 0x5915560a
call fcn.59123653
test al, al
jne 0x5915560a
mov byte [ebp - 1], al
push ebx
lea eax, [ebp - 0x74]
push eax
mov ecx, esi
mov dword [ebp - 0x74], 0x3c
call dword [fcn.5911d210]
push eax
call dword [sym.imp.USER32.dll_GetWindowInfo]
test eax, eax
je 0x59172575
lea eax, [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x3c]
push eax
push 0
mov dword [ebp - 0x38], 0x30
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
je 0x59172575
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x5917256a
mov eax, dword [0x591d79e0]
push edi
push 0x4000
push eax
push eax
push 1
push ebx
call dword [sym.imp.USER32.dll_CopyImage]
mov edi, dword [sym.imp.USER32.dll_DestroyIcon]
mov esi, eax
test esi, esi
je 0x591555fe
mov eax, dword [sym.MSNCore.dll_struct_DirectUI::PropertyInfo__DirectUI::Element::ContentProp]
push dword [eax]
push esi
push dword [ebp - 8]
call fcn.59155715
push esi
call edi
cmp byte [ebp - 1], 0
jne 0x5917259a
pop edi
pop ebx
pop esi
leave
ret
mov ebx, dword [ebp - 0x20]
test ebx, ebx
jne 0x591555c9
push 1
push 0
push 8
call sym.MSNCore.dll_struct_HINSTANCE______stdcall_RMFindModule_unsigned_long_int__wchar_t_const__
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov ebx, eax
test ebx, ebx
mov byte [ebp - 1], 1
jne 0x591555c9
jmp 0x59155609
push ebx
call edi
jmp 0x59155608

Function at 0x59157118
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov esi, ecx
je 0x5915714f
mov eax, dword [edi]
push 0
mov ecx, edi
call dword [eax]
mov eax, dword [esi + 0x1000]
mov dword [esi + eax*4], edi
inc dword [esi + 0x1000]
cmp dword [esi + 0x1000], 0x400
jge 0x591593f9
pop edi
pop esi
pop ebp
ret 4
push dword [0x591d52c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push 0x50
lea ecx, [esi + 0x800]
push ecx
push 0x200
mov ecx, eax
call dword [edx + 0x14]
add dword [esi + 0x1000], 0xfffffe00
jmp 0x5915714f
Function at 0x5915b8de
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [sym.MSNCore.dll_unsigned_long_int_DirectUI::g_dwElSlot]
sub esp, 0x14
cmp eax, 0xffffffff
push ebx
push esi
push edi
je 0x5916c6d8
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebx, ebx
cmp eax, ebx
jne 0x5916c6df
push 0x1c
call fcn.5911c855
mov esi, eax
cmp esi, ebx
je 0x5916c6e7
push esi
push dword [sym.MSNCore.dll_unsigned_long_int_DirectUI::g_dwElSlot]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea eax, [esi + 8]
push eax
push ebx
push 0x30
push 0x1c
call sym.MSNCore.dll_public:_static_long_int___stdcall_DirectUI::SBAlloc::Create_unsigned_int__unsigned_int__struct_DirectUI::ISBLeak___class_DirectUI::SBAlloc___
mov edi, eax
cmp edi, ebx
jl 0x5915b9ad
lea eax, [esi + 0xc]
push eax
call fcn.59163137
mov edi, eax
cmp edi, ebx
jl 0x5915b9ad
lea eax, [esi + 0x10]
push eax
push 8
call sym.MSNCore.dll_public:_static_long_int___stdcall_DirectUI::FontCache::Create_unsigned_int__class_DirectUI::FontCache___
mov edi, eax
cmp edi, ebx
jl 0x5915b9ad
xor eax, eax
mov dword [esi + 4], 1
mov byte [esi + 0x14], bl
mov dword [esi + 0x18], ebx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
xor eax, eax
cmp dword [0x591e8d10], ebx
mov dword [ebp - 0x14], 0x14
setne al
mov dword [ebp - 8], ebx
inc eax
inc eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
call sym.MSNCore.dll_InitGadgets
cmp eax, ebx
mov dword [esi], eax
je 0x5916c6f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp esi, ebx
jne 0x5916c6fe
jmp 0x5916c736
mov edi, 0x80004005
jmp 0x5916c736
inc dword [eax + 4]
jmp 0x5915b9a4
mov edi, 0x8007000e
jmp 0x5915b9ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x5915b9ad
mov ecx, dword [esi + 0x10]
cmp ecx, ebx
je 0x5916c70a
call sym.MSNCore.dll_public:_void___thiscall_DirectUI::FontCache::Destroy_void_
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x5916c717
push eax
call fcn.5911c8d9
mov eax, dword [esi]
cmp eax, ebx
je 0x5916c723
push eax
call sym.MSNCore.dll_DeleteHandle
push esi
call fcn.5911c89e
push ebx
push dword [sym.MSNCore.dll_unsigned_long_int_DirectUI::g_dwElSlot]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, edi
jmp 0x5915b9a6

Function at 0x5915ba9f
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x591d52c4], eax
je 0x5916fdcd
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x10
push 0
push eax
mov dword [0x591e8d00], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x5916fdcd
and dword [eax + 0xc], 0xfffffffe
mov ecx, dword [eax + 0xc]
and dword [eax + 8], 0
and ecx, 0xfffffffd
mov dword [eax + 0xc], ecx
mov dword [eax + 4], 1
mov dword [eax], 0x5911d6e4
mov edx, dword [0x591e8d00]
and ecx, 0xfffffffe
or ecx, 2
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
mov dword [0x591d50f8], eax
xor eax, eax
ret
mov eax, 0x8007000e
ret
Function at 0x5916272a
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x591d4f7c], eax
je 0x5917165f
push 0
push 1
push 0x591eb020
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x59171665
and dword [0x591e8d04], 0
and dword [0x591eb020], 0
and dword [0x591e8d08], 0
call fcn.591627e8
test eax, eax
jl 0x5916278c
call fcn.591626f0
mov dword [0x591e8dd8], eax
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
add eax, 0x8007000e
ret
mov eax, 0x8007000e
ret
xor eax, eax
ret

Function at 0x591627e8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x591d4f78]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 5
sbb eax, eax
and dword [0x591d5018], 0
and dword [0x591d501c], 0
inc eax
mov dword [0x591d5020], eax
call fcn.5916278d
mov ecx, dword [ebp - 4]
mov dword [0x591d5028], eax
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
xor ecx, ebp
add eax, 0x8007000e
call fcn.5911c55f
leave
ret

Function at 0x59162c19
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [0x591e8d04], esi
jne 0x5917186e
cmp dword [0x591e8d08], esi
jne 0x59162c4c
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, esi
mov dword [0x591e8d08], eax
je 0x59162c9f
lea eax, [ebp - 8]
push eax
push esi
push esi
push 0x5915965f
push esi
push esi
call dword [sym.imp.MSVCR80.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [0x591e8d04], eax
je 0x59162c9f
mov ecx, dword [0x591e8d08]
push 0xffffffffffffffff
mov dword [ebp - 0xc], eax
push esi
lea eax, [ebp - 0x10]
push eax
push 2
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
sub eax, esi
jne 0x59171875
push dword [0x591e8d08]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, esi
pop esi
leave
ret
mov esi, 0x8007000e
jmp 0x59162c9a
xor eax, eax
jmp 0x59162c9c
dec eax
je 0x59171882
mov esi, 0x80004005
jmp 0x59162c8e
lea eax, [ebp - 4]
push eax
push dword [0x591e8d04]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov esi, dword [ebp - 4]
jne 0x5917189e
mov esi, 0x80004005
push 1
call fcn.59167469
jmp 0x59162c8e
Function at 0x591635d2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
push dword [0x591d4f7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
xor edi, edi
cmp eax, edi
jne 0x59171a28
push ebx
push esi
mov dword [ebp - 4], 0x80070057
call fcn.59163595
mov esi, eax
cmp esi, edi
je 0x59171a34
push edi
push edi
push edi
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
cmp eax, edi
mov dword [esi + 8], eax
je 0x59171a3d
lea eax, [esi + 0x11ac]
mov ecx, dword [eax]
xor ecx, dword [ebp + 8]
mov ebx, 0x591e8f34
and ecx, 1
xor dword [eax], ecx
lea edi, [esi + 0x11a0]
mov ecx, dword [ebx]
test ecx, ecx
je 0x59171a49
mov eax, dword [ecx]
push esi
call dword [eax]
test eax, eax
mov dword [edi], eax
je 0x59163683
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 4]
test eax, eax
mov dword [ebp - 4], eax
jl 0x59163683
add ebx, 4
add edi, 4
cmp ebx, 0x591e8f38
jl 0x59163637
push esi
push dword [0x591d4f7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret 8
mov eax, dword [esi + 8]
xor edi, edi
cmp eax, edi
jne 0x59171a55
jmp 0x59171a5c
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
xor eax, eax
jmp 0x5916367e
mov dword [ebp - 4], 0x8007000e
jmp 0x59171a62
mov dword [ebp - 4], 0x8007000e
jmp 0x59163683
mov dword [ebp - 4], 0x80004003
jmp 0x59163683
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push esi
call fcn.59168271
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov eax, dword [ebp - 4]
jmp 0x5916367c
Function at 0x59163783
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x59163796
mov dword [edi], ebx
push dword [0x591d52c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
jne 0x59163832
mov esi, dword [ebp + 8]
cmp esi, ebx
jne 0x5916fe1d
cmp dword [ebp + 0x10], ebx
jl 0x5916fdd3
xor edi, edi
inc edi
cmp dword [ebp + 0x10], edi
jg 0x5916fdd3
push 0x10
push ebx
push dword [0x591e8d00]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x5916fdd3
mov eax, dword [ebp + 0x10]
xor ecx, ecx
sub eax, ecx
mov ebx, 0x80004005
je 0x5916fddd
dec eax
jne 0x5916fe0f
push dword [ebp + 0xc]
and dword [esi + 0xc], 0xfffffffc
mov dword [esi + 8], ecx
mov ecx, esi
mov dword [esi + 4], edi
mov dword [esi], 0x5911d6e4
call fcn.59163735
mov ebx, eax
test ebx, ebx
jl 0x5916fe0f
mov edi, dword [ebp + 0x14]
push esi
push dword [0x591d52c4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test edi, edi
je 0x59163838
mov dword [edi], esi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
mov eax, 0x8007000e
jmp 0x5916383a
and dword [esi + 0xc], 0xfffffffe
mov eax, dword [esi + 0xc]
and eax, 0xfffffffd
mov dword [esi + 0xc], eax
and eax, 0xfffffffe
mov dword [esi + 8], ecx
mov dword [esi + 4], edi
mov dword [esi], 0x5911d6e4
mov edx, dword [0x591e8d00]
or eax, 2
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
xor ebx, ebx
jmp 0x5916381a
mov ecx, esi
call fcn.591685c8
mov eax, ebx
jmp 0x5916383a
xor ecx, ecx
lea eax, [esi + 4]
inc ecx
lock xadd dword [eax], ecx
jmp 0x59163825

Function at 0x59163e75
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x591c2a68
call fcn.5911c518
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 1
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
mov dword [esi], 0x59120288
call fcn.5915b34f
push dword [0x591d4f7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [eax + 0x1194], esi
mov eax, esi
call fcn.5911c54b
ret

Function at 0x59163f61
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x591e8d3c], 0
je 0x5917153f
mov eax, dword [0x591e8f08]
mov dword [ebp - 0xc], eax
mov eax, dword [0x591e8f00]
mov dword [ebp - 8], eax
push 0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0x10
call sym.MSNCore.dll_DUserSendEvent
cmp eax, 0x40001
jne 0x59171532
leave
ret
push 0x59171550
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret
push 0x591e8f18
call dword [0x591e8ef4]
jmp 0x59163fa3