joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437fd0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476ec8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.004328d0
test eax, eax
je 0x4380d8
lea ecx, [esp + 0xc]
call fcn.00409f80
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.004328d0
mov ecx, eax
call fcn.00430080
test eax, eax
je 0x4380bf
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x4380bf
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x4380bf
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0040a180
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x4380a1
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x4380bf
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x4a8e30]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x47cd90
call fcn.0040a180
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x438120
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004328d0
test eax, eax
je 0x43820f
mov ecx, edi
call fcn.004328d0
mov ecx, eax
call fcn.0042ff30
test eax, eax
jne 0x43820f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x43820f
mov eax, dword [0x4a8e30]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x438182
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.004328d0
mov ecx, eax
call fcn.00430160
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x43820f
cmp ebx, eax
jne 0x43820f
cmp dword [esp + 0x10], eax
jne 0x4381f5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x43ae30
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x477158
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x43ae69
inc eax
mov dword [esi + 0x10], eax
jmp 0x43af7c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43ae7d
mov eax, 0xffffffc7
jmp 0x43af7e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43ae8e
cmp dword [esi + 8], eax
jne 0x43ae7d
cmp dword [esi + 8], eax
jne 0x43aea7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x43aea7
mov eax, 0xffffffc7
jmp 0x43af7e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43aebb
push eax
mov ecx, ebx
call fcn.0043a660
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00409f80
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43aeec
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00409fa0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00439dd0
test eax, eax
mov dword [esp + 0x38], eax
je 0x43af1f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47cd90
call fcn.0040a180
mov eax, dword [esp + 0x38]
jmp 0x43af7e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0043ac90
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x43af63
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0043acb0
mov esi, eax
test esi, esi
jne 0x43af93
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0043ac90
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x43af35
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47cd90
call fcn.0040a180
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x47cd90
call fcn.0040a180
mov eax, esi
jmp 0x43af7e

Function at 0x43e0a0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43e100
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43e100
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43e100
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43e100
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43e140
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x444290
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004702cc
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00443c30
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004701fa
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046cabb
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046cabb
push 1
push 0
push 0
mov ecx, esi
call fcn.0046ca63
push 1
push 0
push 1
mov ecx, esi
call fcn.0046ca63
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047033e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x444410
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4777a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004702cc
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00443c30
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004701fa
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4444d4
cmp dword [esp + 0x40], 1
jne 0x4444d2
cmp ecx, eax
jge 0x4444d4
mov eax, ecx
cmp eax, 0xc8
jge 0x4444e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00444290
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047033e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x444c60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477813
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046aedb
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00470574
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00471a90
test eax, eax
je 0x444d7c
mov ecx, dword [esp + 0x3c]
call fcn.004705a1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x444d40
push edi
mov ecx, esi
call fcn.0046dc02
mov ecx, esi
call fcn.00444ee0
cmp dword [esp + 0x38], 1
jne 0x444d75
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046dd3d
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4477a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4477d3
push esi
call fcn.0044a8b0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4477cc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x447859
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x447842
mov eax, dword [esi + 8]
test eax, eax
je 0x4477f7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44783e
cmp eax, 2
je 0x447842
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4477ea
cmp eax, 3
je 0x44781d
cmp eax, 1
jne 0x4477ea
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4477ea
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4477ea
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00447880
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x447868
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00447880
add esp, 4
pop esi
ret

Function at 0x4538e0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x453983
test eax, eax
jbe 0x453983
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x453983
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45392e
xor esi, esi
jmp 0x453934
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45395f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040a980
add esi, eax
push esi
mov ebx, esi
call fcn.0040a980
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x453940
pop ebp
test edi, edi
pop edi
jne 0x453983
test ebx, ebx
je 0x453983
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045a470
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x453ac5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x453bdd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x453bdd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046b32d
mov esi, eax
test esi, esi
je 0x453bdd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x453bdd
mov ecx, esi
call fcn.00453a30
cmp edi, eax
jge 0x453bdd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x453b63
mov dword [esp + 0x34], 1
jmp 0x453bbe
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x453bdd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00452f90
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46bcd1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46bd09
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00469d88
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00469d60
jmp 0x46bd15
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46d3bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46d401
call fcn.00472e80
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46d401
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46d3f8
xor eax, eax
jmp 0x46d409
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046d40f
pop edi
pop esi
pop ebx
ret 4
Function at 0x4733b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4733de
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4733fc
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00473316
jmp 0x4733fc
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4733fc
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00473316
test edi, edi
mov eax, edi
jne 0x4733e6
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x405bf2
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
lea eax, [ebp - 4]
push esi
push eax
lea eax, [ebp - 0x194]
push eax
mov dword [ebp - 4], 0x190
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x194]
push ecx
push str.Username
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x28]
mov eax, dword [ebp + 8]
cmp eax, 3
jne 0x405c3b
mov eax, dword [esi]
push str.ActiveX
jmp 0x405c65
cmp eax, 1
jne 0x405c49
mov eax, dword [esi]
push str..NET_1.
jmp 0x405c65
cmp eax, 2
jne 0x405c57
mov eax, dword [esi]
push str..NET_2.0
jmp 0x405c65
cmp eax, 0x108
jne 0x405c6f
mov eax, dword [esi]
push str..NET_2.0___x64
push str.Component
mov ecx, esi
call dword [eax + 0x28]
pop esi
leave
ret 8

Function at 0x409e6d
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x46c86c
call fcn.0045d0a0
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0043ba60
xor edi, edi
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
mov dword [esi + 8], edi
call fcn.00406635
lea ecx, [esi + 0x30]
mov dword [esi + 0x2c], edi
call fcn.004065c5
lea ecx, [esi + 0x60]
call fcn.004146b0
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x7c], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov word [esi + 0x8c], di
mov dword [esi + 0x90], edi
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
mov dword [esi], vtable.ZipWalkEntry.0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x409ff2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov esi, ecx
push dword [ebp + 8]
push 0x51
call fcn.00418db0
mov ebx, eax
add esp, 0xc
cmp ebx, 0xffffffff
je 0x40a087
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x40a07e
mov eax, dword [esi + 0x28]
test eax, eax
je 0x40a07e
and dword [ebp + 0xc], 0
lea edx, [ebp + 0xc]
push 0
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 0xc]
cmp eax, dword [esi + 0x2c]
je 0x40a07e
test edi, edi
je 0x40a07e
mov eax, dword [edi]
push str.Failed_to_write_data_to_file
mov ecx, edi
call dword [eax + 0x10]
mov ecx, dword [ebp + 8]
call fcn.00417fe0
push eax
push str.filename
mov ecx, edi
call fcn.0043f3b0
push dword [esi + 0x2c]
mov eax, dword [edi]
mov ecx, edi
push str.data_size
call dword [eax + 0x2c]
push dword [ebp + 0xc]
mov eax, dword [edi]
mov ecx, edi
push str.bytes_written
call dword [eax + 0x2c]
push edi
push ebx
call fcn.0043ca40
pop ecx
pop ecx
cmp dword [ebp + 0x10], 0
je 0x40a0a5
and byte [ebp + 0xb], 0
lea eax, [ebp + 0xb]
push eax
mov ecx, esi
call fcn.00409fee
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00421510
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40bcae
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
push dword [esi + 4]
call fcn.0040bcef
mov dword [esi + 4], eax
and eax, 0xff
add eax, dword [esi + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 8], eax
shr eax, 0x18
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push dword [esi + 0xc]
call fcn.0040bcef
add esp, 0x10
mov dword [esi + 0xc], eax
pop esi
ret 4

Function at 0x4118ab
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x1c]
mov eax, dword [esi + 0x64]
mov ebx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x6c]
sub ebx, eax
sub ebx, ecx
mov dword [ebp - 4], ebx
jne 0x4118d5
test eax, eax
jne 0x4118df
test ecx, ecx
jne 0x4118df
mov ebx, edi
jmp 0x41194b
cmp ebx, 0xffffffff
jne 0x4118df
push 0xfffffffffffffffe
pop ebx
jmp 0x41194b
mov ecx, dword [esi + 0x1c]
lea ecx, [edi + ecx - 0x106]
cmp eax, ecx
jb 0x41194b
mov eax, dword [esi + 0x28]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.0045db40
mov ecx, dword [esi + 0x44]
mov eax, dword [esi + 0x38]
sub dword [esi + 0x68], edi
sub dword [esi + 0x64], edi
add esp, 0xc
sub dword [esi + 0x54], edi
lea eax, [eax + ecx*2]
dec eax
dec eax
movzx edx, word [eax]
mov ebx, edx
sub ebx, edi
cmp edx, edi
sbb edx, edx
not edx
and edx, ebx
dec ecx
mov word [eax], dx
jne 0x411910
mov eax, dword [esi + 0x30]
mov edx, edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov ebx, ecx
sub ebx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, ebx
dec edx
mov word [eax], cx
jne 0x41192f
mov ebx, dword [ebp - 4]
add ebx, edi
mov ecx, dword [esi + 4]
call fcn.0040d826
test eax, eax
je 0x4119ad
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 4]
add eax, dword [esi + 0x64]
push ebx
add eax, dword [esi + 0x28]
push eax
call fcn.0040da71
add dword [esi + 0x6c], eax
mov ebx, dword [esi + 0x6c]
cmp ebx, 3
jb 0x411995
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x28]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x50]
movzx eax, byte [edx]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp ebx, 0x106
jae 0x4119ad
mov ecx, dword [esi + 4]
call fcn.0040d826
test eax, eax
jne 0x4118b7
pop edi
pop esi
pop ebx
leave
ret