joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4047e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56f060
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5d8e74]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 2
call fcn.004573ae
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404826
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
fld dword [ebp + 0x14]
sub esp, 8
fstp qword [esp]
lea ecx, [ebp - 0x10]
push 0x5846e4
push ecx
mov byte [ebp - 4], 3
call fcn.00402fc0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 8]
mov edi, dword [ebp + 0x10]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 0x10
or eax, ecx
jge 0x40487d
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00401380
mov esi, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push edi
push 0x104
push esi
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esi - 8]
push eax
push esi
call fcn.00555421
add esp, 8
test eax, eax
js 0x404964
cmp eax, dword [esi - 8]
jg 0x404964
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.005559de
fstp dword [ebp - 0x10]
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4048e4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404907
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40492a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404950
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
fld dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x404e90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5d8e74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [esi + 0x10]
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
call ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
je 0x404f98
nop
push edi
call ebx
mov edx, dword [esi + 8]
lea eax, [esi + 0x40]
push eax
lea eax, [ebp - 0x1c]
push eax
push 1
lea ecx, [ebp - 0x11]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404f4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp eax, 0x3e5
je 0x404f26
push str.ReadFile__
jmp 0x404f43
mov ecx, dword [esi + 8]
push 1
lea eax, [ebp - 0x1c]
push eax
lea eax, [esi + 0x40]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x404f4a
push str.GetOverlappedResults___in_ReadFile__
mov ecx, esi
call fcn.00404d50
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [esi + 0x88]
movzx eax, byte [ebp - 0x11]
mov ecx, dword [esi + 0x84]
push edx
mov edx, dword [ecx + 0x20]
push eax
push 0x407
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
call ebx
mov edx, dword [esi + 8]
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0xc], 0
jne 0x404ef0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00555924
mov esp, ebp
pop ebp
ret
Function at 0x458183
Capabilities:
Connect socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebp
ret 8

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

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0045e0be
call fcn.00410ee0
cmp eax, esi
pop esi
jne 0x458e07
mov ecx, 0x5dc190
jmp fcn.0046ffc3
ret

Function at 0x4599af
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0046a271
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4599e8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004595f1
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x459a46
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x459a6a
cmp dword [edi + 0x74], 0
jne 0x459a6a
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.0046a271
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00459a07
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x45fd06
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x45fd4d
call fcn.0046a271
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45fd4d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x45fd69
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0045f80b
mov esi, eax
test edi, edi
je 0x45fd67
test ebx, ebx
je 0x45fd67
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x462b70
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x57ede7
call fcn.0055769b
mov esi, ecx
cmp dword [esi + 0x6c], 0
jne 0x462b95
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x462be7
call fcn.004573ae
push eax
lea ecx, [ebp - 0x10]
call fcn.00401350
mov ecx, dword [esi + 0x6c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005574cd
push eax
call fcn.00403a30
add esp, 0x14
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004010d0
mov eax, esi
call fcn.00557773
ret 8

Function at 0x464d65
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00464810
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x464daf
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004572a8
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404470
jmp 0x464dba
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0047100a
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x464dc0
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 4]
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00462462
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x464dfd
call fcn.00464810
mov dword [esi + 0xc], 1
jmp 0x464e02
call fcn.00464810
cmp dword [esi], 0
je 0x464e4b
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
test eax, eax
jle 0x464e23
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.004572a8
jmp 0x464e35
mov ecx, dword [ebp + 0x10]
push 0xff
call fcn.00401510
push 0x100
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404470
jmp 0x464e6f
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x464e6f
push dword [esi]
push dword [ebp + 8]
call fcn.0047100a
pop esi
pop ebp
ret 0xc
Function at 0x466bb5
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5d8e74]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x11c], eax
mov esi, ecx
lea eax, [ebp - 0x120]
jne 0x466bfd
push 0x58ca78
push 4
push eax
call fcn.0055aeef
push eax
call fcn.00403a30
add esp, 0x10
jmp 0x466c13
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x466c96
push edi
call fcn.00557b3e
mov edi, dword [eax]
call fcn.00557b3e
and dword [eax], 0
lea eax, [ebp - 0x120]
push eax
push dword [ebp - 0x11c]
lea eax, [ebp - 0x118]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.005562f9
add esp, 0x18
mov dword [ebp - 0x11c], eax
call fcn.00557b3e
cmp dword [eax], 0
je 0x466c6a
call fcn.00557b3e
push dword [eax]
call fcn.00455f8c
pop ecx
jmp 0x466c71
call fcn.00557b3e
mov dword [eax], edi
cmp dword [ebp - 0x11c], 0xffffffff
pop edi
je 0x466c96
cmp dword [ebp - 0x11c], esi
jae 0x466c96
push 0
push 0
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
jmp 0x466c98
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00555924
leave
ret
Function at 0x466ca5
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5d8e74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0045b1a5
pop ecx
cmp eax, esi
je 0x466d8f
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x466d8f
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00555b00
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x466d8f
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x466d8f
cmp esi, 0x14
jge 0x466d8f
push 0x10
push 0
push edi
call fcn.0055b110
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x466d7e
call fcn.00557b3e
cmp dword [eax], 0x22
je 0x466d7e
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005574ea
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x466d54
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x5dc07c], 0
jne 0x466e1a
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x466e43
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.00466bb5
pop ecx
pop ecx
test eax, eax
jne 0x466e45
inc edi
cmp edi, esi
jl 0x466e20
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00555924
leave
ret 8
Function at 0x468ed5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x468f1d
call fcn.0046a271
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x468f1d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x468f60
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x468f49
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x468f49
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x468f5d
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4bfb27
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4bfb41
call fcn.0046a271
mov esi, dword [eax + 0xc]
push dword [0x5dde24]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4bfb5f
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4bfb57
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4bfb8c
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4bfb59
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004bfa55
mov esi, eax
jmp 0x4bfb7e
Function at 0x53beec
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x53bf04
mov edi, dword [esi + 0xc]
jmp 0x53bf44
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x53bf1d
call fcn.00460381
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x53bf32
call fcn.00460381
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x53bf44
call fcn.00460381
call fcn.0046a271
cmp dword [eax + 0x3c], 0
je 0x53bf59
push edi
mov ecx, ebx
call fcn.0053ad28
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0053be06
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x53bf77
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x53bf83
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x555924
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5d8e74]
jne 0x55592e
repz ret
jmp fcn.0055f58c
Function at 0x56b82d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5d8e74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0055dd01
and dword [ebp - 0x14], 0
cmp dword [0x5e0734], 0
mov dword [ebp - 0x18], eax
jne 0x56b8e0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x56b988
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x56b988
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5b15e0
push ebx
mov dword [0x5e0734], eax
call edi
push eax
call esi
push 0x5b15cc
push ebx
mov dword [0x5e0738], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5e073c], eax
call edi
push eax
call esi
mov dword [0x5e0744], eax
test eax, eax
je 0x56b8e0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5e0740], eax
mov eax, dword [0x5e0740]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x56b939
cmp dword [0x5e0744], ecx
je 0x56b939
push eax
call esi
push dword [0x5e0744]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x56b939
test ebx, ebx
je 0x56b939
call edi
test eax, eax
je 0x56b930
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x56b930
test byte [ebp - 8], 1
jne 0x56b939
or dword [ebp + 0x10], 0x200000
jmp 0x56b96c
mov eax, dword [0x5e0738]
cmp eax, dword [ebp - 0x18]
je 0x56b96c
push eax
call esi
test eax, eax
je 0x56b96c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x56b96c
mov eax, dword [0x5e073c]
cmp eax, dword [ebp - 0x18]
je 0x56b96c
push eax
call esi
test eax, eax
je 0x56b96c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5e0734]
call esi
test eax, eax
je 0x56b988
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x56b98a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00555924
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x10001100
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov eax, edi
shr eax, 0x16
mov dword [esp + 0x20], eax
and eax, 0xf
mov dword [esp + 0x24], edx
mov edx, edi
and edx, 0xffc00000
mov dword [esp + 0x1c], edx
lea esi, [ecx + eax*8]
mov dword [esp + 0x2c], esi
cmp dword [esi], edx
jne 0x1000114c
mov eax, dword [esi + 4]
shr edi, 0xc
and edi, 0x3ff
lea edx, [eax + edi*8]
jmp 0x10001256
mov eax, ecx
lea ecx, [eax + 0x80]
mov dword [esp + 0x14], ecx
cmp dword [ecx], edx
jne 0x10001181
mov ecx, dword [eax + 0x84]
mov eax, dword [esp + 0x14]
mov edi, dword [esi]
mov dword [eax], edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [edi + 0x84], eax
mov edi, dword [ebp + 0x10]
mov dword [esi + 4], ecx
jmp 0x10001248
add eax, 0x88
mov ecx, 1
mov dword [esp + 0x28], eax
nop
cmp dword [eax], edx
je 0x100011ea
inc ecx
add eax, 8
cmp ecx, 8
jb 0x10001190
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push 0x38
push dword [esp + 0x18]
push dword [esp + 0x30]
mov esi, dword [eax + esi*4 + 0x50]
call fcn.10036c90
mov ecx, dword [esp + 0x38]
add esp, 0xc
mov edx, dword [esp + 0x14]
shr edi, 0xc
and edi, 0x3ff
mov eax, dword [ecx]
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov dword [edx + 0x84], eax
lea edx, [esi + edi*8]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
mov dword [ecx + 4], esi
jmp 0x10001256
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + ecx*8 + 0x84]
mov dword [esp + 0x2c], edx
test ecx, ecx
je 0x10001227
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + ecx*8 + 0x78]
mov dword [edi + ecx*8 + 0x80], eax
mov eax, dword [edi + ecx*8 + 0x7c]
mov dword [edi + ecx*8 + 0x84], eax
mov eax, dword [esi]
mov dword [edi + ecx*8 + 0x78], eax
mov eax, dword [esi + 4]
mov dword [edi + ecx*8 + 0x7c], eax
mov edi, dword [ebp + 0x10]
jmp 0x1000123b
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esi + 4]
mov dword [ecx + 0x84], eax
mov ecx, dword [esp + 0x2c]
lea eax, [esi + 4]
mov edx, dword [esp + 0x1c]
mov dword [eax], ecx
shr edi, 0xc
and edi, 0x3ff
mov dword [esi], edx
lea edx, [ecx + edi*8]
mov ecx, dword [edx + 4]
mov al, cl
and al, 1
mov byte [esp + 0x3d], al
mov eax, ecx
shr eax, 1
and al, 1
mov byte [esp + 0x3c], al
mov eax, ecx
shr eax, 2
and eax, 7
shr ecx, 5
mov dword [esp + 0x38], eax
mov eax, dword [edx]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x34], ecx
movups xmm0, xmmword [esp + 0x30]
pop edi
pop esi
movups xmmword [eax], xmm0
mov esp, ebp
pop ebp
ret
Function at 0x10006450
Capabilities:
Get thread local storage value
Resolve function by parsing pe exports
Set thread local storage value

Disassembly:
sub esp, 8
cmp dword [0x10050928], 0
je 0x10006464
add esp, 8
jmp fcn.10005930
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x10056a08]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [edi + 8]
neg edi
sbb edi, edi
and edi, ecx
mov ecx, dword [esp + 0x14]
cmp ecx, 0x1000
ja 0x10006554
test edi, edi
je 0x10006554
lea eax, [ecx + 7]
shr eax, 3
push ebp
xor ebp, ebp
movzx eax, byte [eax + 0x10056040]
mov esi, dword [eax*4 + 0x10055e80]
add esi, dword [edi + 0x240]
adc ebp, dword [edi + 0x244]
cmp ebp, dword [edi + 0x24c]
jb 0x100064e8
ja 0x100064d9
cmp esi, dword [edi + 0x248]
jb 0x100064e8
pop ebp
pop edi
pop esi
add esp, 8
mov dword [esp + 4], ecx
jmp fcn.10005930
lea eax, [eax + eax*2]
lea eax, [eax + 0x4d]
lea edx, [edi + eax*8]
push ebx
mov ebx, dword [edx]
mov eax, dword [ebx]
lea ecx, [ebx + 4]
mov dword [esp + 0x14], eax
movzx eax, bx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1c]
cmp ax, word [edx + 0x10]
je 0x10006514
mov eax, dword [esp + 0x10]
jmp 0x1000652a
mov eax, dword [ebx]
mov dword [esp + 0x14], eax
movzx eax, bx
cmp ax, word [edx + 0x14]
je 0x10006544
lea eax, [ebx + 4]
mov word [edx + 0x10], ax
mov dword [edx], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x240], esi
pop ebx
mov dword [edi + 0x244], ebp
pop ebp
pop edi
pop esi
add esp, 8
ret
pop ebx
pop ebp
pop edi
pop esi
add esp, 8
mov dword [esp + 4], ecx
jmp fcn.10005930
pop edi
pop esi
add esp, 8
mov dword [esp + 4], ecx
jmp fcn.10005930