joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6460
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 0x4b6503
test eax, eax
jbe 0x4b6503
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4b6503
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 0x4b64ae
xor esi, esi
jmp 0x4b64b4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4b64df
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004b83d0
add esi, eax
push esi
mov ebx, esi
call fcn.004b83d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4b64c0
pop ebp
test edi, edi
pop edi
jne 0x4b6503
test ebx, ebx
je 0x4b6503
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004efa00
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4b6665
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 0x4b677d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b677d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00502138
mov esi, eax
test esi, esi
je 0x4b677d
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 0x4b677d
mov ecx, esi
call fcn.004b65f0
cmp edi, eax
jge 0x4b677d
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 0x4b6703
mov dword [esp + 0x34], 1
jmp 0x4b675e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4b677d
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.004b5bb0
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 0x4bb250
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x70c734]
xor edx, edx
cmp eax, edx
jne 0x4bb276
xor eax, eax
mov byte [eax + 0x70c634], al
inc eax
cmp eax, 0x100
jl 0x4bb25e
mov dword [0x70c734], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x70c634
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4bb307
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4bb2da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4bb2a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4bb310
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4bb363
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4bb34a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c1d20
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50f92e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004c2640
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x5cb6ec
call fcn.0050044f
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4c1db3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0050044f
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4c1dac
push 0
mov ecx, eax
call fcn.004b8e90
mov dword [esi + 0xc], eax
jmp 0x4c1db5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4c1db5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4d2d30
Capabilities:
Encode data using xor

Disassembly:
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 0x4d2e51
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 0x4d2e35
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 0x4d2d87
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 0x4d2d65
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4d3899
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4d38f0
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 0x4d38f0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4d38f0
xor eax, eax
inc eax
jmp 0x4d38f2
xor eax, eax
leave
ret 0x10
Function at 0x4d391b
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4d3989
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x5cf58c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4d3980
cmp dword [ebp - 0xc], 4
jne 0x4d3980
cmp dword [ebp - 0x10], edi
je 0x4d3980
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x6c4488], edi
xor eax, eax
jmp 0x4d39c8
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x6c4488], edi
jge 0x4d39c3
lea eax, [ebp - 0x34]
push eax
mov dword [0x6c4488], edi
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4d39c3
cmp word [ebp - 0x14], 5
jb 0x4d39c3
call fcn.004d38f6
test eax, eax
je 0x4d39c3
emms
mov dword [0x6c4488], 1
mov eax, dword [0x6c4488]
pop edi
leave
ret

Function at 0x502adc
Capabilities:
Get graphical window text

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

Function at 0x5041ca
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 0x50420c
call fcn.00509f47
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x50420c
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x504203
xor eax, eax
jmp 0x504214
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0050421a
pop edi
pop esi
pop ebx
ret 4

Function at 0x50a477
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 0x50a4a5
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x50a4c3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0050a3dd
jmp 0x50a4c3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x50a4c3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0050a3dd
test edi, edi
mov eax, edi
jne 0x50a4ad
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x47b860
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4c000]
push edi
or ebp, 0xffffffff
jmp 0x47b884
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x47b88b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b87a
mov eax, 1
add ebx, ebx
jne 0x47b89d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x47b8ae
jne 0x47b8cd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b8cd
dec eax
add ebx, ebx
jne 0x47b8ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x47b892
add ebx, ebx
jne 0x47b8c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x47b91f
xor ecx, ecx
sub eax, 3
jb 0x47b8e5
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x47b954
sar eax, 1
mov ebp, eax
jmp 0x47b8f0
add ebx, ebx
jne 0x47b8f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b8be
inc ecx
add ebx, ebx
jne 0x47b8fe
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x47b8be
add ebx, ebx
jne 0x47b90b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x47b900
jne 0x47b91c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x47b900
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x47b93e
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x47b930
jmp 0x47b880
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x47b93e
add edi, ecx
jmp 0x47b880
pop esi
mov edi, esi
mov ecx, 0x27d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x47b95c
cmp byte [edi], 0x2d
jne 0x47b95c
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x47b961
lea edi, [esi + 0x78000]
mov eax, dword [edi]
or eax, eax
je 0x47b9d9
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x7e154]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x7e26c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x47b98e
mov ecx, edi
jns 0x47b9bd
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x7e270]
or eax, eax
je 0x47b9d3
mov dword [ebx], eax
add ebx, 4
jmp 0x47b9ab
call dword [esi + 0x7e278]
mov ebp, dword [esi + 0x7e274]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x47ba0d
sub esp, 0xffffff80
jmp 0x448e62
Function at 0x100025d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x10021078]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x24]
push eax
push 0xf003f
push 0
push str.SOFTWAREMalwarebytes_Anti_Exploit_Tester
push 0x80000001
mov esi, ecx
mov dword [ebp - 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1000261a
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10007584
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.10002390
add esp, 8
cmp dword [eax + 0x14], 8
jb 0x1000263c
mov eax, dword [eax]
lea edx, [ebp - 0x28]
push edx
push esi
push 0
push 0
push eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0xc], 8
mov esi, eax
jb 0x10002664
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.10007c4e
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
sete al
xor ecx, ebp
pop esi
call fcn.10007584
mov esp, ebp
pop ebp
ret

Function at 0x10004f80
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10019a0b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x10021078]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.10014e81
push 4
mov dword [ebp - 4], 0
call fcn.10007cf7
mov edi, eax
add esp, 4
test edi, edi
je 0x10004ffc
call fcn.10014c7c
mov dword [edi], eax
call fcn.10014a3b
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.10014e42
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x10004ff2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.10014e6a
jmp 0x10004ffe
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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 4

Function at 0x10007584
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10021078]
jne 0x1000758e
repz ret
jmp fcn.10007ff4
Function at 0x1000ff95
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10021078]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10008eaa
and dword [ebp - 0x14], 0
cmp dword [0x100235a4], 0
mov dword [ebp - 0x18], eax
jne 0x10010048
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100100f0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001d894
push ebx
call edi
test eax, eax
je 0x100100f0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100235a4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100235a8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100235ac], eax
call edi
push eax
call esi
mov dword [0x100235b4], eax
test eax, eax
je 0x10010048
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100235b0], eax
mov eax, dword [0x100235b0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100100a1
cmp dword [0x100235b4], ecx
je 0x100100a1
push eax
call esi
push dword [0x100235b4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100100a1
test ebx, ebx
je 0x100100a1
call edi
test eax, eax
je 0x10010098
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10010098
test byte [ebp - 8], 1
jne 0x100100a1
or dword [ebp + 0x10], 0x200000
jmp 0x100100d4
mov eax, dword [0x100235a8]
cmp eax, dword [ebp - 0x18]
je 0x100100d4
push eax
call esi
test eax, eax
je 0x100100d4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100100d4
mov eax, dword [0x100235ac]
cmp eax, dword [ebp - 0x18]
je 0x100100d4
push eax
call esi
test eax, eax
je 0x100100d4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100235a4]
call esi
test eax, eax
je 0x100100f0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100100f2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10007584
leave
ret
Function at 0x4078d4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x407db0
call fcn.00407b88
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x407934
cmp eax, 0xffffffff
je 0x407934
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40792d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40792d
cmp edx, 0x10000000
jae 0x40792d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40792a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x407990
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4079ce
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4079c6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4079d0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4079b6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407aa0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407ad1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407ad1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407ad1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40b000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x40b175
cmp dword [esp + 0x54], 0x40
jne 0x40b175
cmp word [esp + 0x10], 0x5a4d
jne 0x40b175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x40b175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x411960
push esi
call ebx
test eax, eax
je 0x40b175
cmp dword [esp + 0x54], 0xf8
jne 0x40b175
cmp dword [0x411960], 0x4550
jne 0x40b175
mov eax, dword [0x411976]
test ah, 0x20
jne 0x40b175
mov edx, dword [0x411a80]
xor eax, eax
mov ax, word [0x411966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x411a58], eax
je 0x40b175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x411a6c], eax
xor eax, eax
mov ax, word [0x411966]
mov edx, dword [0x411a58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x40b175
cmp dword [esp + 0x54], edi
jne 0x40b175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x411a80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x4119b4]
cmp edx, eax
ja 0x40b175
mov edi, dword [0x411a58]
mov ecx, dword [0x411988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x40b175
xor eax, eax
push 2
mov ax, word [0x411966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x40b175
cmp dword [edi - 0x20], ebx
ja 0x40b175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret