joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5916440c
Capabilities:
Identify system language via api

Disassembly:
push 0x270
mov eax, 0x591c40b0
call fcn.5911c57f
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
cmp esi, edi
mov dword [ebp - 0x270], esi
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x26c], edi
je 0x591645d8
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x59174cd7
mov dword [ebp - 0x274], edi
lea eax, [ebp - 0x274]
push eax
push 0x591645e8
push 1
push edi
push 0x591645f8
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jl 0x5916457b
push 0x4c
lea eax, [ebp - 0x264]
push edi
push eax
mov dword [ebp - 0x268], edi
call sub.MSVCR80.dll_memset
mov eax, dword [ebp - 0x274]
mov esi, dword [eax]
mov dword [ebp - 0x27c], eax
add esp, 0xc
lea eax, [ebp - 0x268]
push eax
add esi, 0x40
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
push eax
push dword [ebp - 0x27c]
call dword [esi]
test eax, eax
jl 0x5916450a
push dword [ebp - 0x278]
lea eax, [ebp - 0x264]
push dword [0x591e8cf8]
push dword [ebp - 0x270]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.591642b2
test al, al
je 0x5916450a
push edi
push edi
lea eax, [ebp - 0x218]
push eax
call ebx
cmp eax, edi
mov dword [ebp - 0x26c], eax
jne 0x5916457b
mov eax, dword [ebp - 0x274]
mov esi, dword [eax]
mov dword [ebp - 0x27c], eax
lea eax, [ebp - 0x268]
push eax
add esi, 0x40
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push eax
push dword [ebp - 0x27c]
call dword [esi]
test eax, eax
jl 0x5916457b
push dword [ebp - 0x278]
lea eax, [ebp - 0x264]
push dword [0x591e8cf8]
push dword [ebp - 0x270]
push eax
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.591642b2
test al, al
je 0x5916457b
push edi
push edi
lea eax, [ebp - 0x218]
push eax
call ebx
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp - 0x274]
or dword [ebp - 4], 0xffffffff
cmp eax, edi
je 0x5916458f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x26c], edi
jne 0x591645d8
push edi
push dword [0x591e8cf8]
mov esi, 0x104
push dword [ebp - 0x270]
lea eax, [ebp - 0x218]
push edi
push esi
push eax
call fcn.591642b2
test al, al
je 0x59174ced
push edi
push edi
lea eax, [ebp - 0x218]
push eax
call ebx
cmp eax, edi
mov dword [ebp - 0x26c], eax
je 0x59174ced
mov eax, dword [ebp - 0x26c]
call fcn.5911c573
ret 8
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
push edi
push esi
call ebx
mov dword [ebp - 0x26c], eax
jmp 0x5916458f
push dword [ebp - 0x278]
lea eax, [ebp - 0x218]
push dword [0x591e8cf8]
push dword [ebp - 0x270]
push edi
push esi
push eax
call fcn.591642b2
test al, al
je 0x591645d8
push edi
push edi
lea eax, [ebp - 0x218]
push eax
call ebx
mov dword [ebp - 0x26c], eax
jmp 0x591645d8
Function at 0x59166933
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x591d4f78]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.59166904
mov eax, 0x59100000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x591669b4
cmp dword [ebp - 0x1c], 5
jb 0x59166984
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x591669c8
call fcn.5914e14e
test eax, eax
jl 0x5917669f
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.5911c55f
add ebp, 0x78
leave
ret
cmp dword [ebp - 0x10], 1
je 0x5917668a
jmp 0x59166984
cmp dword [ebp - 0x18], 0
jbe 0x59166984
jmp 0x59166980
cmp dword [ebp - 0x1c], 4
ja 0x59166980
je 0x591669c0
jmp 0x59166984
mov byte [0x591eb130], 1
jmp 0x591669a2

Function at 0x591673a9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
push esi
mov esi, ecx
je 0x591673d7
mov ecx, dword [esi + 0x1000]
mov dword [esi + ecx*4], eax
inc dword [esi + 0x1000]
cmp dword [esi + 0x1000], 0x400
jge 0x591719ac
pop esi
pop ebp
ret 4
push dword [0x591d52c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push 0x80
lea ecx, [esi + 0x800]
push ecx
push 0x200
mov ecx, eax
call dword [edx + 0x14]
add dword [esi + 0x1000], 0xfffffe00
jmp 0x591673d7

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

Disassembly:
mov eax, dword [sym.MSNCore.dll_unsigned_long_int_DirectUI::g_dwElSlot]
cmp eax, 0xffffffff
je 0x5916c73d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x5916c743
dec dword [esi + 4]
cmp dword [esi + 4], 0
jg 0x591687d3
push dword [esi]
call sym.MSNCore.dll_DeleteHandle
cmp byte [esi + 0x14], 0
jne 0x5916c74a
mov ecx, dword [esi + 0x10]
call sym.MSNCore.dll_public:_void___thiscall_DirectUI::FontCache::Destroy_void_
push dword [esi + 0xc]
call fcn.5911c8d9
mov ecx, dword [esi + 8]
call sym.MSNCore.dll_public:_void___thiscall_DirectUI::FontCache::Destroy_void_
push esi
call fcn.5911c89e
push 0
push dword [sym.MSNCore.dll_unsigned_long_int_DirectUI::g_dwElSlot]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call fcn.591687d7
xor eax, eax
pop esi
ret
mov eax, 0x80004005
ret
mov eax, 0x8004000a
pop esi
ret
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x591687a2
Function at 0x59168b73
Capabilities:
Get thread local storage value

Disassembly:
push 4
mov eax, 0x591c30d7
call fcn.5911c518
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x59120288
push 2
mov dword [ebp - 4], 1
lea edi, [esi + 0x44]
pop ebx
mov eax, dword [edi]
test eax, eax
je 0x59168ba6
push eax
call fcn.59167ee1
and dword [edi], 0
add edi, 4
dec ebx
jne 0x59168b97
mov eax, dword [esi + 0x28]
test eax, eax
je 0x59168bb9
push eax
call fcn.591673ed
push dword [0x591d4f7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and dword [eax + 0x1194], 0
lea eax, [esi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.5912eba3
call fcn.5911c54b
ret

Function at 0x59169260
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ecx + 0x28]
xor eax, eax
push edi
mov edi, dword [ebp + 8]
inc eax
push eax
mov dword [ecx + 0x30], eax
mov dword [ecx + 0x2c], edi
call fcn.5915067c
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
pop edi
pop esi
pop ebp
ret 4

Function at 0x591693ab
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
push edi
je 0x591693eb
mov edi, dword [eax - 4]
dec edi
test edi, edi
jg 0x5917026b
push dword [0x591d52c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esi]
mov edx, dword [eax]
sub ecx, 4
push ecx
mov ecx, eax
call dword [edx + 0x10]
and dword [esi], 0
xor eax, eax
pop edi
inc eax
pop esi
pop ebp
ret 4
xor edi, edi
jmp 0x591693bd
mov ecx, dword [ebp + 8]
cmp ecx, edi
jge 0x5917028b
mov edx, edi
sub edx, ecx
lea eax, [eax + ecx*4]
shl edx, 2
push edx
lea ecx, [eax + 4]
push ecx
push eax
call dword [sym.imp.MSVCR80.dll_memmove]
add esp, 0xc
push ebx
push dword [0x591d52c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [esi]
mov ebx, dword [eax]
lea ecx, [edi*4 + 4]
push ecx
sub edx, 4
push edx
mov ecx, eax
call dword [ebx + 8]
test eax, eax
pop ebx
je 0x591702b7
add eax, 4
mov dword [esi], eax
push edi
mov ecx, esi
call fcn.5912f83c
jmp 0x591693e2

Function at 0x5917ab27
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x5917ab37
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x5917d05c
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call fcn.59125e86
mov ecx, eax
mov dword [ebp - 0xc], ecx
call sym.MSNCore.dll_public:_void____thiscall_DirectUI::SBAlloc::Alloc_void_
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x5917d084
xor eax, eax
jmp 0x5917d10b
push ebx
push 0x80
push 3
push ebx
push 1
push 1
push dword [ebp + 8]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x5917d0fb
push edi
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
je 0x5917d0f0
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
je 0x5917d0eb
or byte [esi + 0x14], 1
mov word [esi + 4], 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 8], 1
mov byte [ebp - 1], 1
push dword [ebp + 8]
call edi
push dword [ebp - 8]
call edi
cmp byte [ebp - 1], bl
pop edi
jne 0x5917d109
mov ecx, dword [ebp - 0xc]
push esi
call sym.MSNCore.dll_public:_void___thiscall_DirectUI::SBAlloc::Free_void__
jmp 0x5917d07d
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x591802b0
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x591d4f78]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x591eb854]
cmp ax, 0xffff
jne 0x591802fa
push 5
lea eax, [ebp - 0xc]
push eax
push 1
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0x10
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.MSVCR80.dll_strtol]
add esp, 0xc
mov word [0x591eb854], ax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.5911c55f
leave
ret

Function at 0x59180306
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x591d4f78]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x591eb858], 0xffffffff
jne 0x5918035d
call fcn.591802b0
and dword [0x591eb858], 0
movzx eax, ax
test ax, ax
je 0x5918035d
push 0x10
lea ecx, [ebp - 0x24]
push ecx
movzx eax, ax
push 0x58
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x5918035d
test word [ebp - 0x16], 0x800
je 0x5918035d
mov dword [0x591eb858], 1
mov ecx, dword [ebp - 4]
mov eax, dword [0x591eb858]
xor ecx, ebp
call fcn.5911c55f
leave
ret
Function at 0x59180815
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 8
mov eax, 0x591c20b0
call fcn.5911c518
mov dword [ebp - 0x14], ecx
and dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
and dword [ebp - 4], 0
test ecx, ecx
jne 0x5918083d
mov esi, 0x80070057
jmp 0x5918096a
cmp dword [ebp + 0xc], 0
je 0x59180833
push 1
push dword [ebp + 0xc]
call sym.MSNCore.dll_public:_class_DirectUI::Value____thiscall_DirectUI::Element::GetValue_struct_DirectUI::PropertyInfo_const___int_const
push eax
lea ecx, [ebp - 0x10]
call fcn.5912813b
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x59180867
mov esi, 0x80004005
jmp 0x5918096a
cmp word [eax + 4], 5
jne 0x5918085d
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp + 8], eax
je 0x5918085d
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x5918087b
sub eax, edx
sar eax, 1
mov esi, eax
lea eax, [esi + esi + 2]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [ebp + 0xc], eax
jne 0x591808c9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x591808b4
call esi
mov esi, eax
jmp 0x5918095b
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x5918095b
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x591808f2
push dword [ebp + 8]
inc esi
push esi
push ebx
call fcn.59126a3a
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
jmp 0x5918090e
call edi
test eax, eax
jg 0x591808fe
call edi
mov esi, eax
jmp 0x5918090e
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
test esi, esi
jl 0x5918095b
mov eax, dword [ebp - 0x14]
push dword [eax + 0x40]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push dword [ebp + 0xc]
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x59180939
and dword [ebp + 0xc], 0
jmp 0x59180955
call edi
test eax, eax
jg 0x59180945
call edi
mov esi, eax
jmp 0x59180955
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
call dword [sym.imp.USER32.dll_CloseClipboard]
cmp dword [ebp + 0xc], 0
je 0x5918096a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
test ecx, ecx
je 0x5918097a
call fcn.5911cf70
mov eax, esi
call fcn.5911c54b
ret 8
Function at 0x59182948
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 8]
test ecx, ecx
push edi
je 0x59182961
lea eax, [esi + 0x14]
push eax
call sym.MSNCore.dll_public:_void___thiscall_DirectUI::Element::RemoveListener_struct_DirectUI::IElementListener__
cmp byte [esi + 0x24], 0
mov edi, dword [ebp + 8]
mov dword [esi + 0x28], edi
je 0x5918299d
push 0
push dword [esi + 0x18]
call sym.MSNCore.dll_struct_HWND______stdcall_DirectUI::GetTopHWNDParent_struct_HWND_____int_
test eax, eax
je 0x59182984
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
jmp 0x591829a4
mov ecx, esi
call sym.MSNCore.dll_public:_void___thiscall_DirectUI::NativeHWNDHost::DestroyWindow_void_
pop edi
pop esi
pop ebp
ret 4

Function at 0x5918501b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0x40
je 0x59185064
mov eax, dword [esi + 0x18]
test eax, eax
je 0x5918503c
cmp byte [esi + 0x39], 0
je 0x5918503c
push 1
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, dword [esi + 4]
test eax, eax
je 0x5918504c
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x59185064
push 1
call fcn.5918485b
mov ecx, dword [esi + 0x24]
push 0
call fcn.59124515
xor eax, eax
pop esi
ret

Function at 0x5918d84e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xd0
mov eax, dword [0x591d4f78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push edi
push esi
push 0x5918d8bc
lea eax, [ebp - 0xd0]
push 0x65
push eax
mov ebx, ecx
call fcn.5914bed9
and word [ebp - 8], 0
add esp, 0x18
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x5918d8a9
push dword [ebp + 0x10]
push edi
push esi
call eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5911c55f
leave
ret 0xc
Function at 0x5918dada
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x591d4f78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, ecx
and word [esi + 0x34], 0
and word [esi + 0x23c], 0
push 0x5918db90
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x58]
push 0x29
push eax
mov byte [esi + 0xc], 0
call fcn.5914bed9
add esp, 0x10
push 0x5918db80
lea eax, [ebp - 0x58]
push eax
push edi
mov dword [ebp - 0x5c], 0x80004005
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x5918db69
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x5918db69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [ebp - 0x5c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 0x5c]
mov ecx, esi
call fcn.59146f68
jmp 0x5918db6c
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5911c55f
leave
ret 0xc
Function at 0x5918db98
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x591d4f78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push 1
mov edi, ecx
push SysReAllocString
push ebx
mov byte [edi + 0xc], 0
mov dword [edi + 0x10], eax
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x5918dbf8
push eax
push ebx
push 0x5918dd2c
mov ecx, edi
call fcn.5918d84e
mov eax, 0x80004005
jmp 0x5918dd1b
push ebx
lea eax, [edi + 0x34]
mov ebx, 0x104
push ebx
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], eax
call fcn.59126a01
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx]
test ax, ax
je 0x5918dc6e
cmp dword [ebp - 8], 0
jne 0x5918dc2a
cmp ax, 0x3a
jne 0x5918dc2a
mov dword [ebp - 8], ecx
jmp 0x5918dc38
cmp ax, 0x5c
je 0x5918dc36
cmp ax, 0x2f
jne 0x5918dc38
mov esi, ecx
inc ecx
inc ecx
movzx eax, word [ecx]
test ax, ax
jne 0x5918dc19
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x5918dc6e
add ecx, 2
push ecx
lea eax, [edi + 0x23c]
push ebx
push eax
call fcn.59126a01
sub esi, dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, 2
xor ebx, ebx
dec esi
dec esi
mov word [eax], bx
sar esi, 1
jmp 0x5918dc8d
lea ecx, [edi + 0x34]
push ecx
lea eax, [edi + 0x23c]
push ebx
push eax
call fcn.59126a01
and word [edi + 0x34], 0
sub esi, edi
sub esi, 0x34
sar esi, 1
xor ebx, ebx
cmp esi, ebx
jl 0x5918dc9b
mov word [edi + esi*2 + 0x23e], bx
jmp 0x5918dca2
mov word [edi + 0x23c], bx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x10], eax
call fcn.5911c83b
cmp eax, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
jne 0x5918dcc9
mov edi, 0x8007000e
jmp 0x5918dcf6
push ebx
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0xc]
call esi
push dword [ebp - 0x10]
mov ecx, edi
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call fcn.59146f68
mov edi, eax
cmp edi, ebx
jge 0x5918dd11
cmp dword [ebp - 0xc], ebx
je 0x5918dd00
push dword [ebp - 0xc]
call esi
cmp dword [ebp - 8], ebx
je 0x5918dd0d
push dword [ebp - 8]
call fcn.5911c89e
mov eax, edi
jmp 0x5918dd1b
push dword [ebp - 8]
call fcn.5911c89e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.5911c55f
leave
ret 8

Function at 0x5919395f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
test eax, eax
jle 0x591939a4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 4], eax
mov esi, dword [edi + 0x1c]
push dword [0x591d52c4]
add esi, ebx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esi + 4]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x10]
add esi, 8
push esi
call fcn.5919172a
add ebx, 0xc
dec dword [ebp - 4]
jne 0x59193976
pop esi
pop ebx
lea ecx, [edi + 0x1c]
call fcn.5911c9d4
pop edi
leave
ret
Function at 0x5919487d
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
sub esp, 0x20
cmp dword [0x591e8d3c], eax
je 0x591948e2
mov ecx, dword [0x591e8f04]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x591e8f00]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 8], ecx
call sym.MSNCore.dll_DUserSendEvent
cmp eax, 0x40001
jne 0x591948d3
mov eax, dword [ebp - 4]
jmp 0x591948f1
push 0x591948f8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jmp 0x591948f1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
leave
ret 0xc

Function at 0x59194f1e
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x591d52c4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
push 1
push 0x1c
mov ecx, eax
call dword [edx + 4]
mov ecx, eax
test ecx, ecx
je 0x59194f45
push edi
xor eax, eax
lea edi, [ecx + 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop edi
mov eax, ecx
ret

Function at 0x59195a57
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push 0x20a
call fcn.5911c86f
mov ebx, eax
test ebx, ebx
pop ecx
je 0x59195ae0
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, 0x105
push esi
push ebx
call edi
test eax, eax
mov dword [ebp - 4], eax
jbe 0x59195ad7
cmp eax, esi
jbe 0x59195abf
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.5911c86f
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x59195ade
push dword [ebp - 4]
push ebx
call edi
test eax, eax
jbe 0x59195ad7
push dword [ebp + 8]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x59195ad7
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 8], eax
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
pop ecx
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret 4