joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ae50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580e13
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6236f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [esi + 4]
push ebx
mov dword [ebp - 0x24], ebx
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x28], eax
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push 0x20
push ecx
push edx
push eax
lea ecx, [esi + 0x28]
mov dword [ebp - 4], 0
call fcn.00428610
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x2c]
xor edx, edx
push 0xff
mov dword [ebp - 0x14], eax
push edx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], ecx
push eax
lea ecx, [esi + 0x28]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
call fcn.004265a0
push 0x60
call fcn.00551f1b
add esp, 4
mov dword [ebp - 0x2c], eax
xor edi, edi
mov byte [ebp - 4], 1
cmp eax, edi
je 0x42aef7
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push 0x20
push ecx
push edx
mov ecx, eax
call fcn.00427f90
jmp 0x42aef9
xor eax, eax
push eax
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 0
call fcn.00424020
mov ecx, dword [esi + 0x10]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
push 0xff
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edx
call fcn.004265a0
mov ecx, dword [ebp - 0x28]
push ecx
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00551802
mov esp, ebp
pop ebp
ret

Function at 0x432a00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
add eax, 0xffffffe4
push edi
mov esi, ecx
mov edi, 1
cmp eax, 0xe9
ja case.0x432a20.29
movzx eax, byte [eax + 0x432aa0]
jmp dword [eax*4 + 0x432a8c]
mov edx, dword [esi - 0x108]
mov eax, dword [edx + 0x1c]
lea ecx, [esi - 0x108]
call eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
push 0x12
call dword [sym.imp.USER32.dll_GetKeyState]
test al, al
mov eax, edi
js 0x432a3a
mov ecx, dword [ebp + 0xc]
pop edi
mov byte [ecx + esi - 0x104], 1
pop esi
pop ebp
ret 0xc
mov edx, dword [ebp + 0xc]
mov eax, edi
pop edi
mov byte [edx + esi - 0x104], 0
pop esi
pop ebp
ret 0xc
mov eax, dword [esi - 0x108]
mov edx, dword [eax + 0x1c]
lea ecx, [esi - 0x108]
call edx
mov eax, edi
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43a4a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x582810
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor edi, edi
mov dword [esi + 4], edi
mov dword [ebp - 4], edi
mov dword [esi + 8], vtable.IWinMsgHook.0
mov dword [esi], vtable.CWaveSoundStream.1.0
mov dword [esi + 8], vtable.CWaveSoundStream.0
mov eax, dword [0x610024]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 4
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], edi
push 4
mov byte [ebp - 4], 7
call fcn.00551f1b
add esp, 4
cmp eax, edi
je 0x43a53e
mov dword [eax], vtable.CNullSoundBuffer.0
mov ebx, eax
jmp 0x43a540
xor ebx, ebx
sub esp, 8
mov eax, esp
mov dword [ebp - 0x10], esp
push ebx
lea ecx, [eax + 4]
mov dword [ebp - 0x10], eax
mov dword [eax], ebx
call fcn.00438490
mov ecx, dword [ebp - 0x10]
push ebx
push ebx
push ecx
call fcn.00472620
add esp, 0xc
mov ecx, esi
call fcn.0043a1e0
push 0x20
call fcn.00551f1b
add esp, 4
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 8
cmp eax, edi
je 0x43a58a
push esi
mov ecx, eax
call fcn.004381a0
jmp 0x43a58c
xor eax, eax
push eax
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 7
call fcn.00438d50
lea eax, [esi + 8]
push eax
call fcn.004094f0
mov ecx, eax
call fcn.00418cd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4416d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5834f5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [0x610024]
mov dword [esi + 4], eax
xor edi, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov ecx, dword [0x610024]
mov dword [ebp - 4], edi
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov edx, dword [0x610024]
mov dword [esi + 0x58], edx
push fcn.00433fb0
push 0x43e7e0
push 5
push 0x50
lea eax, [esi + 0x60]
push eax
mov byte [ebp - 4], 2
call fcn.0055352c
mov ecx, dword [0x610024]
mov dword [esi + 0x1f0], ecx
push fcn.0043d750
push 0x40a420
push 3
push 4
lea edx, [esi + 0x1f8]
push edx
mov byte [ebp - 4], 4
call fcn.0055352c
mov dword [esi + 0x204], edi
mov dword [esi + 0x208], edi
mov dword [esi + 0x20c], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x497ff0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58cc30
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x610024]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [0x625c5c]
mov dword [ebp - 4], 0
call fcn.0040e550
mov edx, dword [eax]
push edx
lea eax, [ebp - 0x14]
push str._sSELSAVE.DAT
push eax
mov byte [ebp - 4], 1
call fcn.0040d8d0
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
add esp, 0xc
cmp ecx, dword [0x610020]
je 0x49807a
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x49807a
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff4
push edx
call fcn.00551d56
add esp, 4
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4980b9
lea eax, [esi - 0xc]
cmp eax, dword [0x610020]
je 0x4980a6
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x4980a6
push esi
call fcn.00551d56
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esi - 0xc]
cmp ecx, dword [0x610020]
je 0x4980d7
add esi, 0xfffffff4
push esi
call edi
test eax, eax
jg 0x4980d7
push esi
call fcn.00551d56
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
cmp dword [0x62bf50], 0
push esi
push edi
jne 0x4a442a
call fcn.004a4396
test eax, eax
je 0x4a446f
mov eax, dword [0x62bf50]
cmp eax, 1
jne 0x4a444b
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4a446f
jmp 0x4a44b1
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x4a44b1
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4a4473
xor eax, eax
jmp 0x4a44b1
mov eax, dword [esi]
push dword [0x62bf50]
call edi
mov edi, eax
test edi, edi
je 0x4a4495
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x4a44b1
lea edi, [esi + 0xff0]
push esi
push dword [0x62bf50]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x4a449b
mov eax, esi
pop edi
pop esi
ret
jmp 0x4a4416
Function at 0x4abe86
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push 0x5b4308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4abef6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4abeed
cmp dword [ebp - 0xc], 4
jne 0x4abeed
cmp dword [ebp - 0x10], edi
je 0x4abeed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x617e2c], edi
xor eax, eax
jmp 0x4abf35
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x617e2c], edi
jge 0x4abf30
lea eax, [ebp - 0x34]
push eax
mov dword [0x617e2c], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4abf30
cmp word [ebp - 0x14], 5
jb 0x4abf30
call fcn.004abe5e
test eax, eax
je 0x4abf30
emms
mov dword [0x617e2c], 1
mov eax, dword [0x617e2c]
pop edi
leave
ret
Function at 0x4c53bc
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x6236f8]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, esi
push edi
mov dword [ebp - 4], eax
mov edi, ecx
mov dword [ebp - 0xa0], ebx
mov dword [ebp - 0x9c], esi
jne 0x4c53f3
mov eax, 0x8876086c
jmp 0x4c5517
cmp dword [ebp + 0xc], esi
je 0x4c549a
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
je 0x4c547c
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push 0xfde9
call ebx
push eax
mov dword [ebp - 0xa4], eax
call fcn.00551f1b
cmp eax, esi
pop ecx
mov dword [ebp - 0x9c], eax
jne 0x4c5452
mov eax, 0x8007000e
jmp 0x4c5517
push esi
push esi
push dword [ebp - 0xa4]
push eax
push 0xffffffffffffffff
push dword [ebp - 0xa0]
push esi
push 0xfde9
call ebx
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], eax
mov dword [ebp + 0xc], esi
mov ebx, eax
cmp dword [ebp + 0xc], esi
je 0x4c549a
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x4c54b1
push esi
push 0x10000000
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push dword [ebp - 0x9c]
mov dword [edi], eax
call fcn.005517f7
mov eax, dword [edi]
cmp eax, 0xffffffff
pop ecx
je 0x4c5505
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x4c5505
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
je 0x4c5505
cmp eax, esi
je 0x4c5512
push esi
push esi
push esi
push 4
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
jne 0x4c5515
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x4c5517
mov dword [edi + 8], esi
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00551802
leave
ret 8

Function at 0x4cdc10
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x5b4308
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4cdc69
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4cdc69
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4cdc69
xor eax, eax
inc eax
jmp 0x4cdc6b
xor eax, eax
leave
ret 0x10
Function at 0x4cde24
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4cdf47
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4cdf2b
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4cde7d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4cde5b
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4cf826
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
push esi
lea eax, [ebp - 0x24]
mov esi, ecx
and dword [esi], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 0xc]
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and dword [esi + 0x10], 0
mov dword [esi + 4], ecx
lea eax, [ecx + eax - 1]
dec ecx
not ecx
and eax, ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [esi + 4], eax
jne 0x4cf86b
mov ecx, 0x100000
lea ecx, [eax + ecx - 1]
dec eax
not eax
and ecx, eax
mov dword [esi + 0x14], ecx
mov eax, esi
pop esi
leave
ret 8
Function at 0x4efe76
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x34]
push edi
mov ebx, ecx
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov edx, dword [ebp + 8]
mov edi, eax
mov eax, dword [edi + 0xc]
add eax, dword [edx]
xor ecx, ecx
test byte [ebx + 0x130], 1
mov dword [ebp - 8], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0xc], ecx
mov dword [ebp - 4], eax
jne 0x4efedb
cmp dword [ebp + 0x10], ecx
je 0x4efedb
push ecx
push ecx
call fcn.00555534
push 0x30000
push 0
mov dword [ebx + 0x12c], eax
call fcn.00555534
add esp, 0x10
or dword [ebx + 0x130], 1
xor edx, edx
cmp dword [esi + 0x38], edx
je 0x4effbd
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [edi + 0x10]
add ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x14]
add ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x18]
add ecx, eax
cmp word [esi + 0x4a], dx
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0xc], edx
jbe 0x4effac
movzx eax, word [ebp + 0xc]
mov ecx, dword [esi + 0x30]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*8]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
mov edx, dword [edx]
cmp edx, dword [ebx + 0x30]
jbe 0x4eff99
mov eax, dword [eax + 8]
movzx edx, word [eax + 4]
sub edx, 0
je 0x4eff77
dec edx
je 0x4eff53
dec edx
jne 0x4eff99
push 0xffffffffffffffff
lea edx, [ebp + 0x10]
push edx
movzx edx, word [eax + 8]
push eax
movzx eax, word [eax + 6]
shl eax, 5
add eax, dword [ebp - 0xc]
jmp 0x4eff68
push 0xffffffffffffffff
lea edx, [ebp + 0x10]
push edx
movzx edx, word [eax + 8]
push eax
movzx eax, word [eax + 6]
shl eax, 5
add eax, dword [ebp - 0x10]
push dword [esi + 0x38]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.004eee82
jmp 0x4eff99
push 0xffffffffffffffff
lea edx, [ebp + 0x10]
push edx
movzx edx, word [eax + 8]
push eax
push dword [esi + 0x38]
movzx eax, word [eax + 6]
push edx
mov edx, dword [ebp - 0x14]
lea eax, [edx + eax*8]
push eax
push ecx
mov ecx, ebx
call fcn.004ef21b
inc dword [ebp + 0xc]
mov ax, word [ebp + 0xc]
cmp ax, word [esi + 0x4a]
jb 0x4eff10
xor edx, edx
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp + 8]
add eax, dword [ecx]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], eax
push dword [ebp - 4]
push dword [ebp - 4]
push dword [ebp - 4]
push edx
push dword [ebp + 0xc]
push edx
push dword [ebp - 8]
push dword [ebp - 8]
push dword [ebp - 8]
push edx
push dword [ebp - 0xc]
push edx
push dword [esi + 0x40]
push dword [esi + 0x3c]
call fcn.004ce30c
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x504ede
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov edi, edx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov esi, dword [ecx + 4]
test esi, esi
je 0x504eff
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add eax, esi
jmp 0x504f01
xor eax, eax
mov dword [edx], eax
movzx eax, word [ecx + 8]
mov dword [edx + 4], eax
movzx eax, word [ecx + 0xa]
mov dword [edx + 8], eax
movzx eax, word [ecx + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax]
mov dword [edx + 0x10], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 2]
mov dword [edx + 0x14], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 4]
mov dword [edx + 0x18], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 6]
mov dword [edx + 0x1c], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ecx + 0x18]
movzx eax, word [eax + 0xa]
mov dword [edx + 0x24], eax
mov eax, dword [edx + 0x20]
imul eax, dword [edx + 0x18]
imul eax, dword [edx + 0x1c]
shl eax, 2
mov dword [edx + 0x28], eax
mov esi, dword [ecx + 0x14]
test esi, esi
je 0x504f74
mov eax, dword [ecx]
mov eax, dword [eax + 8]
add eax, esi
jmp 0x504f76
xor eax, eax
pop edi
mov dword [edx + 0x2c], eax
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x5444f7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebx + 0x24]
push esi
mov dword [ebp - 8], edx
push edi
mov ecx, dword [ebx + 0x64]
mov eax, dword [ebx + 0x34]
mov esi, dword [ebx + 0x6c]
sub eax, ecx
sub eax, esi
mov dword [ebp - 4], eax
jne 0x544525
test ecx, ecx
jne 0x54452f
test esi, esi
jne 0x54452f
mov eax, edx
jmp 0x5445a0
cmp eax, 0xffffffff
jne 0x54452f
push 0xfffffffffffffffe
pop eax
jmp 0x5445a0
mov esi, dword [ebx + 0x24]
lea esi, [edx + esi - 0x106]
cmp ecx, esi
jb 0x5445a0
mov edi, dword [ebx + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [edi + edx]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x44]
mov eax, dword [ebx + 0x3c]
sub dword [ebx + 0x68], edx
sub dword [ebx + 0x64], edx
sub dword [ebx + 0x54], edx
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx esi, word [eax]
mov edi, esi
sub edi, edx
cmp esi, edx
sbb esi, esi
not esi
and esi, edi
dec ecx
mov word [eax], si
jne 0x544565
mov eax, dword [ebx + 0x38]
mov esi, edx
lea eax, [eax + edx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edi, ecx
sub edi, edx
cmp ecx, edx
sbb ecx, ecx
not ecx
and ecx, edi
dec esi
mov word [eax], cx
jne 0x544584
mov eax, dword [ebp - 4]
add eax, edx
mov esi, dword [ebx]
cmp dword [esi + 4], 0
mov dword [ebp - 0xc], esi
je 0x54464d
mov edi, dword [ebx + 0x6c]
add edi, dword [ebx + 0x64]
mov ecx, dword [esi + 4]
add edi, dword [ebx + 0x30]
cmp ecx, eax
mov dword [ebp - 4], ecx
jbe 0x5445c5
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x5445cf
xor ecx, ecx
jmp 0x54460e
sub ecx, dword [ebp - 4]
mov eax, dword [esi + 0x1c]
mov dword [esi + 4], ecx
cmp dword [eax + 0x18], 0
jne 0x5445f1
push dword [ebp - 4]
push dword [esi]
push dword [esi + 0x30]
call fcn.0054793f
mov edx, dword [ebp - 8]
mov dword [esi + 0x30], eax
mov ecx, dword [ebp - 4]
mov esi, dword [esi]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, eax
mov eax, dword [ebp - 0xc]
add dword [eax], ecx
add dword [eax + 8], ecx
add dword [ebx + 0x6c], ecx
mov edi, dword [ebx + 0x6c]
cmp edi, 3
jb 0x544639
mov eax, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
lea esi, [eax + ecx]
movzx eax, byte [esi]
mov ecx, dword [ebx + 0x50]
mov dword [ebx + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp edi, 0x106
jae 0x54464d
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x544507
pop edi
pop esi
leave
ret
Function at 0x550360
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x58e090
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x6236f8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x62ede4]
test eax, eax
jne 0x550394
xor esi, esi
jmp 0x55039d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x30], 0
test esi, esi
je 0x5503e7
cmp dword [esi + 0x14], 0
jne 0x550429
cmp dword [esi + 0x10], 0
jne 0x550430
push 0x54e500
push 0x62eddc
call fcn.0054e990
mov eax, dword [0x62ede4]
add esp, 8
test eax, eax
je 0x5504dd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test esi, esi
je 0x550415
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x550415
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp dword [esi + 0x10], 0
je 0x550470
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x55045e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x550430
cmp dword [esi + 0x14], 0
je 0x5503b9
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x550495
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x5504c6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x5504c6
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x5504c6
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x55047a
jmp 0x5503b3
lea ecx, [esp + 0x18]
call fcn.00551d61
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], vtable.boost::thread_resource_error.0
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x34], 1
call fcn.0040e780
int3