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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4799c8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.00424e90
test eax, eax
je 0x42a758
lea ecx, [esp + 0xc]
call fcn.00402570
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.00424e90
mov ecx, eax
call fcn.00422580
test eax, eax
je 0x42a73f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42a73f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42a73f
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.00402770
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42a721
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42a73f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x599138]
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], 0x56be08
call fcn.00402770
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42a7b0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.00424e90
test eax, eax
je 0x42a89f
mov ecx, edi
call fcn.00424e90
mov ecx, eax
call fcn.00422420
test eax, eax
jne 0x42a89f
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42a89f
mov eax, dword [0x599138]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42a812
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.00424e90
mov ecx, eax
call fcn.00422660
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 0x42a89f
cmp ebx, eax
jne 0x42a89f
cmp dword [esp + 0x10], eax
jne 0x42a885
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 0x42d620
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x479c58
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 0x42d659
inc eax
mov dword [esi + 0x10], eax
jmp 0x42d76c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42d66d
mov eax, 0xffffffc7
jmp 0x42d76e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42d67e
cmp dword [esi + 8], eax
jne 0x42d66d
cmp dword [esi + 8], eax
jne 0x42d697
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42d697
mov eax, 0xffffffc7
jmp 0x42d76e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42d6ab
push eax
mov ecx, ebx
call fcn.0042ce50
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.00402570
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42d6dc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00402590
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042c5c0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42d70f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x56be38
call fcn.00402770
mov eax, dword [esp + 0x38]
jmp 0x42d76e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042d480
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42d753
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042d4a0
mov esi, eax
test esi, esi
jne 0x42d783
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042d480
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42d725
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x56be38
call fcn.00402770
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], 0x56be38
call fcn.00402770
mov eax, esi
jmp 0x42d76e

Function at 0x432120
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x432180
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x432180
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x432180
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x432180
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 0x4321c0
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 0x43dcc0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a548
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.00473629
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043d620
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.00473557
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.0046fe49
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.0046fe49
push 1
push 0
push 0
mov ecx, esi
call fcn.0046fdf1
push 1
push 0
push 1
mov ecx, esi
call fcn.0046fdf1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047369b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43de40
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a568
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.00473629
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043d620
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.00473557
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 0x43df04
cmp dword [esp + 0x40], 1
jne 0x43df02
cmp ecx, eax
jge 0x43df04
mov eax, ecx
cmp eax, 0xc8
jge 0x43df10
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043dcc0
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.0047369b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43e710
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a613
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.0046e283
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.004738d1
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00474ded
test eax, eax
je 0x43e82c
mov ecx, dword [esp + 0x3c]
call fcn.004738fe
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 0x43e7f0
push edi
mov ecx, esi
call fcn.00470f5f
mov ecx, esi
call fcn.0043e9d0
cmp dword [esp + 0x38], 1
jne 0x43e825
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.0047109a
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 0x440a20
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x440a53
push esi
call fcn.0044edc0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x440a4c
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 0x440ad9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x440ac2
mov eax, dword [esi + 8]
test eax, eax
je 0x440a77
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 0x440abe
cmp eax, 2
je 0x440ac2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x440a6a
cmp eax, 3
je 0x440a9d
cmp eax, 1
jne 0x440a6a
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 0x440a6a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x440a6a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00440b00
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x440ae8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00440b00
add esp, 4
pop esi
ret

Function at 0x441370
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441391
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441391
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441391
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46f05f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46f097
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.0046d130
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046d108
jmp 0x46f0a3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47074d
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 0x47078f
call fcn.004760cd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47078f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x470786
xor eax, eax
jmp 0x470797
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047079d
pop edi
pop esi
pop ebx
ret 4
Function at 0x4765fd
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 0x47662b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x476649
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476563
jmp 0x476649
mov eax, dword [esi + 0x14]
test eax, eax
je 0x476649
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00476563
test edi, edi
mov eax, edi
jne 0x476633
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x431003
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x1002722
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x1006050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x10012a8
push dword [ebp + 0x14]
mov dword [ebp - 0x2c4], eax
mov eax, dword [ebp + 0x10]
push eax
mov dword [ebp - 0x2bc], eax
mov dword [ebp - 0x2c0], 1
call fcn.01001cf3
mov edi, eax
test edi, edi
jl 0x1002909
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
jmp 0x1002800
cmp word [esi], 0x5c
jne 0x10027fe
push 0x200
xor eax, eax
push 0x2b4
mov word [esi], ax
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp - 0x2c4]
call ebx
test eax, eax
je 0x100287e
cmp dword [ebp - 0x2c0], 0
push 0x5c
pop eax
mov word [esi], ax
je 0x10027c2
and dword [ebp - 0x2c0], 0
jmp 0x10027df
push 0x100121c
push dword [ebp + 0x14]
push dword [ebp - 0x2bc]
call fcn.01001d2d
mov edi, eax
test edi, edi
jl 0x1002909
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x2bc]
call fcn.01001d2d
mov edi, eax
test edi, edi
jl 0x1002909
inc esi
inc esi
cmp word [esi], 0
jne 0x100277c
push 0x200
push 0x2b4
lea eax, [ebp - 0x2b8]
push eax
push 0
push dword [ebp - 0x2c4]
call ebx
test eax, eax
jne 0x10028ca
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jle 0x1002843
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002900
test byte [eax + 0x1c], 4
je 0x1002900
call esi
push eax
mov eax, dword [section..data]
push 0x1001240
push 0x42
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010018a2
jmp 0x1002900
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
jle 0x1002894
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
mov eax, dword [section..data]
cmp eax, section..data
je 0x10028c2
test byte [eax + 0x1c], 4
je 0x10028c2
call ebx
push eax
mov eax, dword [section..data]
push 0x1001240
push 0x41
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010018a2
push 0x5c
pop eax
mov word [esi], ax
jmp 0x1002900
push 0x100121c
push dword [ebp + 0x14]
push dword [ebp - 0x2bc]
call fcn.01001d2d
mov edi, eax
test edi, edi
jl 0x1002909
lea eax, [ebp - 0x2ac]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x2bc]
call fcn.01001d2d
mov edi, eax
test edi, edi
jl 0x1002909
xor edi, edi
test edi, edi
jl 0x1002909
xor eax, eax
inc eax
jmp 0x1002915
movzx eax, di
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004666
leave
ret 0x10
Function at 0x10033b3
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x1006050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov word [ebp - 0x414], ax
push 0x104
lea eax, [ebp - 0x414]
push eax
xor edi, edi
push 0x1001504
mov dword [ebp - 0x41c], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push edi
cmp word [ebp - 0x414], di
jne 0x1003406
call dword [sym.imp.KERNEL32.dll_ExitThread]
push 0x208
lea eax, [ebp - 0x414]
push eax
call fcn.01001bcc
mov dword [ebp - 0x420], eax
cmp eax, edi
jne 0x1003424
push edi
jmp 0x1003400
push 0x10060c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
cmp ebx, edi
je 0x1003443
push edi
push edi
push 0x1009
push ebx
call esi
mov eax, dword [0x1006158]
mov dword [0x1006154], edi
cmp eax, edi
je 0x1003467
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.0100246a
mov dword [ebp - 0x418], eax
jmp 0x100346d
mov dword [ebp - 0x418], edi
push dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push ebx
push dword [ebp - 0x420]
push 0x208
push eax
call fcn.01002f59
test eax, eax
jne 0x1003499
push edi
push 1
push 0xb
push ebx
call esi
jmp 0x1003510
mov eax, dword [0x1006154]
push 0x1001ccd
push 1
push 0x1030
push ebx
mov dword [0x1006150], eax
call esi
push 3
pop eax
mov dword [ebp - 0x450], eax
mov dword [ebp - 0x44c], eax
lea eax, [ebp - 0x45c]
push eax
push edi
push 0x102b
push ebx
mov dword [ebp - 0x45c], 8
mov dword [ebp - 0x458], edi
mov dword [ebp - 0x454], edi
call esi
cmp dword [0x1006150], 0x400
jae 0x10034ff
mov dword [0x1006150], 1
jmp 0x1003506
shr dword [0x1006150], 0xa
mov dword [ebp - 0x41c], 1
push 0x10060c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x418], edi
jne 0x100352a
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x41c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01004666
leave
ret 4
Function at 0x1004657
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x1004b08
call fcn.01004688
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x10064c8
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x100440e
cmp eax, esi
jne 0x1004401
xor esi, esi
inc esi
mov ebx, esi
jmp 0x1004411
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10043e8
xor esi, esi
inc esi
mov eax, dword [0x10064c4]
cmp eax, esi
jne 0x1004424
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1004453
mov eax, dword [0x10064c4]
test eax, eax
jne 0x100444d
mov dword [0x10064c4], esi
push 0x10011f8
push 0x10011ec
call fcn.0100434d
pop ecx
pop ecx
test eax, eax
je 0x1004453
jmp 0x100457b
mov dword [0x100618c], esi
mov eax, dword [0x10064c4]
cmp eax, esi
jne 0x1004477
push 0x10011e8
push 0x10011e0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10064c4], 2
test ebx, ebx
jne 0x1004483
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10064cc], 0
je 0x10044a7
push 0x10064cc
call fcn.01004809
pop ecx
test eax, eax
je 0x10044a7
push 0
push 2
push 0
call dword [0x10064cc]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x1004503
test al, al
je 0x10044c1
cmp dword [ebp - 0x1c], 0
jne 0x1004503
mov al, byte [esi]
test al, al
je 0x10044d1
cmp al, 0x20
ja 0x10044d1
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10044c1
test byte [ebp - 0x3c], 1
je 0x10044dd
movzx eax, word [ebp - 0x38]
jmp 0x10044e0
push 0xa
pop eax
push eax
push esi
push 0
push 0x1000000
call main
mov dword [0x1006188], eax
cmp dword [0x100617c], 0
jne 0x1004557
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x1004512
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x1004525
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x10044ae
cmp dword [0x100618c], 0
jne 0x1004566
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1006188]
jmp 0x1004587
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.010046cd
ret
call fcn.01004956
jmp 0x10043ae