joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x53549a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x553e90
lea ecx, [esi + 0xe88]
mov dword [esp + 0x10], 0x27
call fcn.00520807
lea ecx, [esi + 0xe38]
mov byte [esp + 0x10], 0x26
call fcn.00520807
lea ecx, [esi + 0xde8]
mov byte [esp + 0x10], 0x25
call fcn.00520807
lea ecx, [esi + 0xd98]
mov byte [esp + 0x10], 0x24
call fcn.004ff28f
lea ecx, [esi + 0xd48]
mov byte [esp + 0x10], 0x23
call fcn.00520aa8
lea ecx, [esi + 0xcf8]
mov byte [esp + 0x10], 0x22
call fcn.00520789
lea ecx, [esi + 0xca8]
mov byte [esp + 0x10], 0x21
call fcn.00520807
lea ecx, [esi + 0xc58]
mov byte [esp + 0x10], 0x20
call fcn.00520807
lea ecx, [esi + 0xc08]
mov byte [esp + 0x10], 0x1f
call fcn.00520807
lea ecx, [esi + 0xb24]
mov byte [esp + 0x10], 0x1e
call fcn.00496290
lea ecx, [esi + 0xa70]
mov byte [esp + 0x10], 0x1d
call fcn.00455520
lea ecx, [esi + 0x9c4]
mov byte [esp + 0x10], 0x1c
call fcn.00455520
mov byte [esp + 0x10], 0x1b
lea ecx, [esi + 0x970]
call fcn.004ca790
lea ecx, [esi + 0x8e0]
mov byte [esp + 0x10], 0x1a
call fcn.0046d160
lea ecx, [esi + 0x854]
mov byte [esp + 0x10], 0x19
call fcn.004d7f70
lea ecx, [esi + 0x804]
mov byte [esp + 0x10], 0x18
call fcn.00520807
lea ecx, [esi + 0x7b4]
mov byte [esp + 0x10], 0x17
call fcn.00520807
lea ecx, [esi + 0x764]
mov byte [esp + 0x10], 0x16
call fcn.00520807
lea ecx, [esi + 0x714]
mov byte [esp + 0x10], 0x15
call fcn.00520aa8
lea ecx, [esi + 0x6c4]
mov byte [esp + 0x10], 0x14
call fcn.00520aa8
lea ecx, [esi + 0x674]
mov byte [esp + 0x10], 0x13
call fcn.00520aa8
lea ecx, [esi + 0x624]
mov byte [esp + 0x10], 0x12
call fcn.00520aa8
lea ecx, [esi + 0x5d4]
mov byte [esp + 0x10], 0x11
call fcn.00520aa8
lea ecx, [esi + 0x584]
mov byte [esp + 0x10], 0x10
call fcn.00520aa8
lea ecx, [esi + 0x534]
mov byte [esp + 0x10], 0xf
call fcn.004ff35b
lea ecx, [esi + 0x4e4]
mov byte [esp + 0x10], 0xe
call fcn.004ff35b
lea ecx, [esi + 0x494]
mov byte [esp + 0x10], 0xd
call fcn.004ff28f
lea ecx, [esi + 0x444]
mov byte [esp + 0x10], 0xc
call fcn.004ff28f
lea ecx, [esi + 0x3f4]
mov byte [esp + 0x10], 0xb
call fcn.004ff28f
lea ecx, [esi + 0x3a4]
mov byte [esp + 0x10], 0xa
call fcn.004ff28f
lea ecx, [esi + 0x354]
mov byte [esp + 0x10], 9
call fcn.004ff28f
lea ecx, [esi + 0x304]
mov byte [esp + 0x10], 8
call fcn.004ff28f
lea ecx, [esi + 0x2b4]
mov byte [esp + 0x10], 7
call fcn.00520789
lea ecx, [esi + 0x264]
mov byte [esp + 0x10], 6
call fcn.00520807
lea ecx, [esi + 0x214]
mov byte [esp + 0x10], 5
call fcn.00520807
lea ecx, [esi + 0x1c4]
mov byte [esp + 0x10], 4
call fcn.00520807
lea ecx, [esi + 0x174]
mov byte [esp + 0x10], 3
call fcn.00520807
lea ecx, [esi + 0x124]
mov byte [esp + 0x10], 2
call fcn.00520807
lea ecx, [esi + 0xd4]
mov byte [esp + 0x10], 1
call fcn.00520807
mov byte [esp + 0x10], 0
lea ecx, [esi + 0x84]
call fcn.00520789
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00521954
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x44f5e0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x180]
test eax, eax
je 0x44f64c
push edi
mov edi, dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [esi + 0x180]
mov eax, dword [eax + 0x28]
push eax
call edi
cmp eax, 1
jg 0x44f5f4
mov ecx, dword [esi + 0x180]
mov eax, dword [ecx + 0x28]
push 0x7d0
push eax
mov dword [esi + 0x154], 1
mov dword [esi + 0xa4], 1
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
pop edi
jne 0x44f642
push 0
push 0
push 0x554408
call fcn.00515e6f
mov dword [esi + 0x180], 0
pop esi
ret

Function at 0x44f820
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.00527fd7
mov edi, dword [eax + 4]
mov eax, dword [edi + 0x244]
test eax, eax
jne 0x44f8c8
mov eax, dword [esi + 0x180]
test eax, eax
je 0x44f8c8
mov eax, dword [edi + 0x27c]
test eax, eax
jne 0x44f88a
call fcn.0050a0d4
test eax, eax
je 0x44f864
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x74]
jmp 0x44f866
xor eax, eax
mov ecx, dword [eax + 0x474]
add ecx, 0xdc
call fcn.00496d20
push 0
mov ecx, edi
call fcn.0049f150
mov dword [edi + 0x27c], 1
mov ecx, esi
call fcn.0044f650
mov eax, dword [esi + 0x14c]
mov edi, dword [sym.imp.kernel32.dll_ResumeThread]
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0x180]
mov ecx, dword [eax + 0x28]
push ecx
call edi
cmp eax, 1
jg 0x44f8a3
mov dword [esi + 0x158], 0
mov dword [esi + 0xbc], 0
pop edi
pop esi
ret

Function at 0x44f8d0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x158]
test eax, eax
jne 0x44f904
mov eax, dword [esi + 0x180]
test eax, eax
je 0x44f904
mov eax, dword [eax + 0x28]
push eax
call dword [sym.imp.kernel32.dll_SuspendThread]
mov eax, 1
mov dword [esi + 0x158], eax
mov dword [esi + 0xbc], eax
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x451760
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x535ac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x1c]
mov ebp, dword [esp + 0x5c]
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
lea eax, [esp + 0x20]
push eax
push 0
push 0x110c
push ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], 0x72
call ebx
push ebp
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00500367
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.00402e60
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451800
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [edi - 4]
cmp ecx, 1
lea eax, [edi - 0x10]
mov dword [esp + 0x5c], eax
jle 0x451832
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401390
mov edi, dword [esp + 0x10]
lea eax, [edi - 0x10]
mov dword [esp + 0x5c], eax
dec dword [eax + 0xc]
jne 0x45183e
mov dword [eax + 0xc], 0xffffffff
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x1c]
push 0x1100
push edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x23
call ebx
test edi, edi
mov ebx, eax
jne 0x451876
xor eax, eax
jmp 0x45188f
mov eax, edi
lea edx, [eax + 1]
jmp 0x451880
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451880
sub eax, edx
js 0x45191b
cmp eax, dword [edi - 8]
jg 0x45191b
mov dword [edi - 0xc], eax
push ebp
mov ecx, esi
mov byte [eax + edi], 0
call fcn.004ff07c
push eax
push 0
push 0
push 0
push 0
push 0
push 4
push ebx
mov ecx, esi
call fcn.004ff0d8
push 0xf000
push ebp
mov ecx, esi
call fcn.004ff044
push 0
push 0xf000
push eax
push 0
push 0
push 0
push 8
push ebx
mov ecx, esi
call fcn.004ff0d8
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x451904
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 0xc
push 0x80070057
call fcn.00401120
int3
Function at 0x454a20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x535d9c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
mov dword [esi], 0x554840
lea ebp, [esi + 0x48]
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp], eax
lea ecx, [esi + 0x4c]
mov dword [esp + 0x1c], 0
call fcn.0050207d
lea ecx, [esi + 0x60]
mov byte [esp + 0x1c], 1
call fcn.0050207d
lea ecx, [esi + 0x74]
mov byte [esp + 0x1c], 2
call fcn.0050207d
lea ecx, [esi + 0x88]
mov byte [esp + 0x1c], 3
call fcn.0050207d
lea ecx, [esi + 0x9c]
mov byte [esp + 0x1c], 4
call fcn.0050207d
lea ecx, [esi + 0xb0]
mov byte [esp + 0x1c], 5
call fcn.0050207d
lea ecx, [esi + 0xc4]
mov byte [esp + 0x1c], 6
call fcn.0050207d
lea ecx, [esi + 0xd8]
mov byte [esp + 0x1c], 7
call fcn.0050207d
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov dword [esi + 0xc], ecx
mov edx, dword [edi + 0x10]
mov dword [esi + 0x10], edx
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x28]
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x1c]
mov dword [esi + 0x1c], edx
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x2c]
mov dword [esi + 0x2c], ecx
mov edx, dword [edi + 0x30]
mov dword [esi + 0x30], edx
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov ecx, dword [edi + 0x38]
mov dword [esi + 0x38], ecx
mov edx, dword [edi + 4]
lea eax, [edi + 0x48]
push eax
mov ecx, ebp
mov byte [esp + 0x20], 8
mov dword [esi + 4], edx
call fcn.00402e60
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x44], ecx
mov eax, dword [edi + 0x54]
xor ebp, ebp
test eax, eax
jle 0x454b8f
test ebp, ebp
jl 0x454bae
cmp ebp, dword [edi + 0x54]
jge 0x454bae
mov edx, dword [edi + 0x50]
mov ebx, dword [edx + ebp*4]
lea eax, [edx + ebp*4]
push 0x28
call fcn.005043b5
add esp, 4
mov dword [esp + 0x24], eax
test eax, eax
mov byte [esp + 0x1c], 9
je 0x454b73
push ebx
mov ecx, eax
call fcn.00471a40
jmp 0x454b75
xor eax, eax
push eax
mov eax, dword [esi + 0x54]
lea ecx, [esi + 0x4c]
push eax
mov byte [esp + 0x24], 8
call fcn.00501f70
mov eax, dword [edi + 0x54]
inc ebp
cmp ebp, eax
jl 0x454b40
push edi
mov ecx, esi
call fcn.004547c0
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
call fcn.004fd76e
int3
Function at 0x46efc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x590f68]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x46f034
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.advapi32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.kernel32.dll_lstrcpy]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.004e9911
add esp, 0x110
ret 0xc

Function at 0x46f050
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x590f68]
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
mov dword [esp + 0x220], eax
mov eax, dword [esp + 0x228]
push eax
push 0x54eb38
push 0
mov edi, ecx
call dword [sym.imp.shell32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x46f15c
lea ecx, [esp + 0xc]
push ecx
push 0x5568d8
push 0x80000000
mov ecx, edi
call fcn.0046efc0
test eax, eax
jne 0x46f15c
push ebx
mov ebx, dword [sym.imp.kernel32.dll_lstrcat]
push 0x5568c4
lea edx, [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x10]
push eax
mov ecx, eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.0046efc0
test eax, eax
jne 0x46f158
lea edx, [esp + 0x10]
push 0x5568bc
push edx
call fcn.004ea9d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46f11d
lea eax, [esp + 0x10]
push 0x5568b8
push eax
call fcn.004ea9d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x46f11d
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.kernel32.dll_lstrlen]
lea esi, [esp + eax + 0xf]
jmp 0x46f120
mov byte [esi], 0
push 0x54f018
push esi
call ebx
mov edx, dword [esp + 0x220]
push edx
push esi
call ebx
push ebp
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_WinExec]
pop ebx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x208]
call fcn.004e9911
add esp, 0x20c
ret 8
mov eax, esi
jmp 0x46f13f
mov ecx, dword [esp + 0x214]
pop edi
mov eax, esi
pop esi
pop ebp
call fcn.004e9911
add esp, 0x20c
ret 8
Function at 0x473980
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
push 1
mov esi, ecx
mov dword [esp + 0x14], 0
call fcn.004727a0
fild dword [esp + 0x14]
mov edi, eax
fld dword [edi + 8]
fsub dword [esi + 0x160]
fld dword [esi + 0x150]
call fcn.004eaa58
mov dword [esp + 0xc], eax
fiadd dword [esp + 0xc]
fsubp st(1)
call fcn.004eaa58
fild dword [esp + 0x18]
fld dword [edi + 0xc]
mov ebx, eax
fsub dword [esi + 0x164]
fld dword [esi + 0x154]
call fcn.004eaa58
mov dword [esp + 0x14], eax
fiadd dword [esp + 0x14]
fsubp st(1)
call fcn.004eaa58
mov ecx, eax
mov edx, ebx
imul ecx, eax
imul edx, ebx
add ecx, edx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fsqrt
call fcn.004eaa58
cmp eax, 9
pop edi
pop esi
pop ebx
jge 0x473a2a
push 0x12
call dword [sym.imp.user32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
setge cl
dec ecx
and ecx, 5
inc ecx
mov eax, ecx
pop ecx
ret 8
xor eax, eax
pop ecx
ret 8
Function at 0x48d180
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x539238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0
call fcn.0050bf9b
mov eax, dword [esi + 0x538]
push 0x55964c
add eax, 0x680
push eax
lea ecx, [esp + 0xc]
push ecx
mov byte [esp + 0x30], 1
call fcn.00402f80
add esp, 0xc
mov eax, dword [eax]
push 0
push 0x1001
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 2
call fcn.0050c003
mov esi, eax
mov eax, dword [esp + 4]
add eax, 0xfffffff0
mov byte [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x48d20c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
mov esi, dword [esp + 0x2c]
je 0x48d21e
push esi
lea ecx, [esp + 0xc]
call fcn.0050c1c0
lea ecx, [esp + 8]
mov byte [esp + 0x24], 0
call fcn.0050c3c8
lea eax, [esi - 0x10]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop esi
jg 0x48d24f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x4940f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x539ab7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esp + 4], esi
mov dword [esi + 0x2c], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x90], 0x55a358
mov byte [esp + 0x10], 4
mov dword [esi], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
call fcn.00527fd7
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x3a4]
mov dword [esi + 0x8c], ecx
mov edx, dword [eax + 0x378]
mov ecx, dword [esp + 8]
mov dword [esi + 0x88], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4994d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x53a5a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 0x1c]
mov ebp, dword [esp + 0x5c]
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
lea eax, [esp + 0x20]
push eax
push 0
push 0x110c
push ecx
mov dword [esp + 0x64], 0
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], 0x72
call ebx
push ebp
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.00500367
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 1
call fcn.00402e60
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x54], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499570
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov edi, dword [esp + 0x10]
mov eax, dword [edi - 0xc]
mov dword [esp + 0x34], eax
mov ecx, dword [edi - 4]
cmp ecx, 1
lea eax, [edi - 0x10]
mov dword [esp + 0x5c], eax
jle 0x4995a2
mov ecx, dword [eax + 4]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401390
mov edi, dword [esp + 0x10]
lea eax, [edi - 0x10]
mov dword [esp + 0x5c], eax
dec dword [eax + 0xc]
jne 0x4995ae
mov dword [eax + 0xc], 0xffffffff
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x18]
push ecx
push 0
mov dword [esp + 0x20], edx
mov edx, dword [esi + 0x1c]
push 0x1100
push edx
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0x23
call ebx
test edi, edi
mov ebx, eax
jne 0x4995e6
xor eax, eax
jmp 0x4995ff
mov eax, edi
lea edx, [eax + 1]
jmp 0x4995f0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4995f0
sub eax, edx
js 0x49968b
cmp eax, dword [edi - 8]
jg 0x49968b
mov dword [edi - 0xc], eax
push ebp
mov ecx, esi
mov byte [eax + edi], 0
call fcn.004ff07c
push eax
push 0
push 0
push 0
push 0
push 0
push 4
push ebx
mov ecx, esi
call fcn.004ff0d8
push 0xf000
push ebp
mov ecx, esi
call fcn.004ff044
push 0
push 0xf000
push eax
push 0
push 0
push 0
push 8
push ebx
mov ecx, esi
call fcn.004ff0d8
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x54], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x499674
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x48
ret 0xc
push 0x80070057
call fcn.00401120
int3
Function at 0x49c666
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x53a906
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x3c]
mov dword [esp + 8], esi
call fcn.0050fa8d
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], 0x56aa08
lea ecx, [esi + 0x54]
mov byte [esp + 0x14], 1
call fcn.0050fa8d
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x68], edi
mov dword [esi + 0x64], 0x56aa08
mov dword [esi + 0x70], edi
mov dword [esi + 0x6c], 0x56abd4
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x49c950
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x53a958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x44]
push ebp
mov ebp, dword [esp + 0x4c]
push esi
mov esi, ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 4]
push edi
mov edi, dword [esi]
mov dword [esi + 0x24], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 8]
sub edx, eax
sub edi, ecx
neg eax
neg ecx
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x5c]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x20], ebx
add ebx, edx
lea ecx, [esp + 0x20]
push ecx
mov dword [esi + 0x20], ebp
mov dword [esp + 0x28], ebp
add ebp, eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x44], edi
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebp
call dword [sym.imp.user32.dll_UnionRect]
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
sub eax, ebx
add eax, 0x1f
and eax, 0xffffffe0
mov edi, eax
cmp edi, 0x20
jle 0x49ca02
mov edi, 0x20
sub ecx, ebp
cmp ecx, 0x20
mov dword [esp + 0x58], ecx
jle 0x49ca19
mov dword [esp + 0x58], 0x20
mov ecx, dword [esp + 0x58]
mov edx, dword [esi + 0x68]
xor eax, eax
cmp edx, eax
je 0x49ca30
cmp dword [esi + 0x2c], edi
jne 0x49ca30
cmp dword [esi + 0x30], ecx
je 0x49caea
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x56aa08
push eax
push 1
push 1
add ecx, ecx
push ecx
push edi
mov dword [esp + 0x5c], eax
call dword [sym.imp.gdi32.dll_CreateBitmap]
push eax
lea ecx, [esp + 0x14]
call fcn.00510468
test eax, eax
jne 0x49ca8d
lea ecx, [esp + 0x10]
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x10], 0x56a400
call fcn.005104bf
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov eax, dword [esi + 0x68]
test eax, eax
je 0x49caaa
mov edx, dword [esi + 0x78]
mov eax, dword [esi + 0x58]
push edx
push eax
call dword [sym.imp.gdi32.dll_SelectObject]
lea ecx, [esi + 0x64]
call fcn.005104bf
lea ecx, [esp + 0x10]
call fcn.00510495
push eax
lea ecx, [esi + 0x64]
call fcn.00510468
mov ecx, dword [esi + 0x68]
mov edx, dword [esi + 0x58]
push ecx
push edx
call dword [sym.imp.gdi32.dll_SelectObject]
lea ecx, [esp + 0x10]
mov dword [esi + 0x78], eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x10], 0x56a400
call fcn.005104bf
mov ecx, dword [esp + 0x58]
neg ebx
mov dword [esi + 0x2c], edi
neg ebp
pop edi
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebp
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10