joyce8/EMBER2024-capa huggingface dataset:
Function at 0x509be0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e811
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58df2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.005067f0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x509c96
mov byte [ebp - 0x21], 0
lea eax, [ebp - 0x21]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 2
push ecx
lea ecx, [ebp - 0x20]
call fcn.004daa50
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
push 0
lea ecx, [ebp - 0x20]
call fcn.004dab30
push eax
mov ecx, dword [ebp + 0xc]
call fcn.005067f0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push 0
lea ecx, [ebp - 0x20]
call fcn.004dab30
push eax
mov ecx, dword [ebp + 8]
call fcn.004bc350
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004daad0
mov eax, dword [ebp + 8]
jmp 0x509cb5
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004d1650
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x50a100
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56e911
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58df2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x50a1a8
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.004daa50
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0
lea ecx, [ebp - 0x20]
call fcn.004dab30
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0
lea ecx, [ebp - 0x20]
call fcn.004dab30
push eax
mov ecx, dword [ebp + 8]
call fcn.004bc350
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004daad0
mov eax, dword [ebp + 8]
jmp 0x50a1c3
mov ecx, dword [ebp + 8]
call fcn.004d0b30
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
or eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x50ac20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56eba1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x58df2c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
push 0
push 0
push 0xe
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x21]
push ecx
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
lea ecx, [ebp - 0x20]
call fcn.004daa50
mov dword [ebp - 4], 1
push 0
lea ecx, [ebp - 0x20]
call fcn.004dab30
push eax
mov eax, dword [ebp - 0x10]
add eax, 1
push eax
push 0xd
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push 0
lea ecx, [ebp - 0x20]
call fcn.004dab30
push eax
mov ecx, dword [ebp + 8]
call fcn.004bc350
mov edx, dword [ebp - 0x28]
or edx, 1
mov dword [ebp - 0x28], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.004daad0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x51c0a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x570ac0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x58df2c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x591c50
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], 0x591d30
call fcn.004d37d0
mov byte [esp + 0x38], 1
call fcn.0051b24e
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.004d38a0
mov dword [esi], 0x591d54
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret
Function at 0x524220
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x571b20
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x58df2c]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
push esi
push edi
mov eax, dword [0x58df2c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x54]
cmp dword [edi + 0x14], 8
mov ebx, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
jb 0x52426f
mov eax, dword [edi]
jmp 0x524271
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x524291
push esi
push edi
push ebx
call fcn.00522290
add esp, 0xc
jmp 0x5243c5
test eax, 0x400
je 0x524393
cmp dword [edi + 0x14], 8
jb 0x5242a6
mov edx, dword [edi]
jmp 0x5242a8
mov edx, edi
xor eax, eax
mov word [esp + 0x20], ax
mov ebx, 7
mov eax, edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x30], 0
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5242c5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.004ddbb0
cmp dword [esp + 0x34], 8
mov eax, dword [esp + 0x20]
mov dword [esp + 0x48], 0
jae 0x5242f6
lea eax, [esp + 0x20]
push 0
push 0x2000000
push 3
push 0
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp dword [esp + 0x34], 8
mov byte [esp + 0x48], 2
jb 0x52432a
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00527c51
add esp, 4
mov dword [esp + 0x34], ebx
xor edx, edx
or ebx, 0xffffffff
mov dword [esp + 0x30], 0
mov word [esp + 0x20], dx
cmp esi, ebx
jne 0x52435b
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
push eax
push edi
push esi
call fcn.00522290
add esp, 0xc
mov eax, esi
jmp 0x5243c7
push edi
call fcn.00520520
add esp, 4
mov dword [esp + 0x48], ebx
push esi
test al, al
jne 0x524381
mov edi, dword [esp + 0x18]
mov dword [edi], 9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x5243c7
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
test esi, esi
je 0x5243a9
mov dword [esi], 0
call fcn.005265c0
mov dword [esi + 4], eax
mov eax, dword [esp + 0x10]
test al, 0x10
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 3
jne 0x5243c1
mov dword [esp + 0x10], 2
mov ecx, dword [eax]
mov dword [ebx], ecx
mov eax, ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00527843
add esp, 0x3c
ret
Function at 0x5243f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
cmp dword [edi + 0x14], 8
jb 0x524401
mov eax, dword [edi]
jmp 0x524403
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x52442a
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
push eax
push edi
push esi
call fcn.00522290
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov esi, dword [esp + 0x18]
test esi, esi
je 0x524440
mov dword [esi], 0
call fcn.005265c0
mov dword [esi + 4], eax
test ebx, 0x400
je 0x524475
push edi
call fcn.00520520
add esp, 4
test al, al
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 4
jne 0x524469
mov dword [esp + 0x14], 9
mov ecx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 3
test bl, 0x10
jne 0x52448e
mov dword [esp + 0x14], 2
mov edx, dword [eax]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword [eax], edx
pop ebx
ret

Function at 0x527843
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x58df2c]
jne 0x52784d
repz ret
jmp fcn.00531c8c
Function at 0x53fbda
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x58df2c]
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.0053167c
and dword [ebp - 0x14], 0
cmp dword [0x5aa290], 0
mov dword [ebp - 0x18], eax
jne 0x53fc8d
push 0x595260
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x53fd35
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5916c0
push ebx
call edi
test eax, eax
je 0x53fd35
mov esi, dword [0x58f380]
push eax
call esi
push 0x595250
push ebx
mov dword [0x5aa290], eax
call edi
push eax
call esi
push 0x59523c
push ebx
mov dword [0x5aa294], eax
call edi
push eax
call esi
push 0x595220
push ebx
mov dword [0x5aa298], eax
call edi
push eax
call esi
mov dword [0x5aa2a0], eax
test eax, eax
je 0x53fc8d
push 0x595208
push ebx
call edi
push eax
call esi
mov dword [0x5aa29c], eax
mov eax, dword [0x5aa29c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [0x58f384]
cmp eax, ecx
je 0x53fce6
cmp dword [0x5aa2a0], ecx
je 0x53fce6
push eax
call esi
push dword [0x5aa2a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x53fce6
test ebx, ebx
je 0x53fce6
call edi
test eax, eax
je 0x53fcdd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x53fcdd
test byte [ebp - 8], 1
jne 0x53fce6
or dword [ebp + 0x10], 0x200000
jmp 0x53fd19
mov eax, dword [0x5aa294]
cmp eax, dword [ebp - 0x18]
je 0x53fd19
push eax
call esi
test eax, eax
je 0x53fd19
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x53fd19
mov eax, dword [0x5aa298]
cmp eax, dword [ebp - 0x18]
je 0x53fd19
push eax
call esi
test eax, eax
je 0x53fd19
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5aa290]
call esi
test eax, eax
je 0x53fd35
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x53fd37
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00527843
leave
ret
Function at 0x54d128
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x54d1ad
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00527c60
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x54d170
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x54d192
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x54d208
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.0054ce78
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x54d1f4
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x54d208
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x54d131
pop esi
pop ebx
leave
ret
Function at 0x10001000
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [0x1001a2b8]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
test ebx, ebx
je 0x100010ae
mov ebp, dword [esp + 0x24]
test ebp, ebp
je 0x100010ae
mov eax, ebp
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, eax
add eax, eax
and ebp, 0x80000003
push edi
jns 0x10001048
dec ebp
or ebp, 0xfffffffc
inc ebp
mov edi, dword [esp + 0x2c]
xor edx, edx
test eax, eax
jle 0x1000106b
mov ecx, dword [ebx + edx]
sub ecx, esi
sub ecx, edi
xor ecx, edi
add esi, ecx
xor esi, edx
mov dword [ebx + edx], ecx
add edx, 4
xor esi, edi
cmp edx, eax
jl 0x10001052
test ebp, ebp
je 0x10001092
mov dword [esp + 0x10], 0
jle 0x1000108a
add eax, ebx
push ebp
push eax
lea eax, [esp + 0x18]
push eax
call fcn.100042b0
add esp, 0xc
mov ecx, dword [esp + 0x10]
add esi, ecx
xor esi, edi
test esi, esi
pop edi
jne 0x1000109a
or esi, 0xffffffff
mov eax, esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10004225
add esp, 0x10
ret
mov ecx, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10004225
add esp, 0x10
ret

Function at 0x10001210
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x6c
mov eax, dword [0x1001a2b8]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
mov ebx, dword [esp + 0x74]
push ebp
push 0x63
lea eax, [esp + 0x11]
push 0
push eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0x18], 0
call fcn.10004710
add esp, 0xc
test ebx, ebx
je 0x1000132f
mov ebp, dword [esp + 0x7c]
test ebp, ebp
je 0x1000132f
cmp ebp, 0x1000000
ja 0x1000132f
push esi
push edi
push ebx
lea ecx, [esp + 0x18]
push str.KDataMap_Data__s
push ecx
call fcn.1000478f
add esp, 0xc
lea edx, [esp + 0x14]
push edx
lea esi, [ebp + 0x10]
push esi
push 0
push 4
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x100012ab
push esi
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x100012c2
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10004225
add esp, 0x6c
ret 8
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push ebx
lea eax, [esp + 0x18]
push str.KDataMap_Lock__s
push eax
mov dword [esi], ebp
call fcn.1000478f
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
test ebx, ebx
jne 0x10001305
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov dword [eax + 4], edi
pop edi
mov dword [eax + 8], esi
pop esi
mov dword [eax + 0xc], ebp
mov dword [eax + 0x10], ebx
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.10004225
add esp, 0x6c
ret 8
mov ecx, dword [esp + 0x70]
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10004225
add esp, 0x6c
ret 8
Function at 0x100028a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x404
mov eax, dword [0x1001a2b8]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x3ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.10004710
mov eax, dword [0x100130b0]
add esp, 0xc
test eax, eax
jne 0x100028eb
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.10004225
add esp, 0x404
ret
push esi
mov esi, dword [0x100130b4]
push eax
push 0x71f8
push 0x100130b8
call section..text
add esp, 0xc
cmp esi, eax
je 0x10002921
xor eax, eax
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.10004225
add esp, 0x404
ret
push edi
mov edi, dword [0x100130bc]
cmp edi, 0x7200
mov dword [0x100130b0], 0
jae 0x100029b9
cmp byte [edi + 0x100130b0], 0x60
jne 0x100029b9
push 0x400
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x100029b9
push str._windows_
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
jne 0x100029b9
push 0x40
push 0x3000
push 0x7200
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x100029b9
push 0x7200
push 0x100130b0
push esi
call fcn.10004fc0
add esp, 0xc
add edi, esi
call edi
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.10004225
add esp, 0x404
ret
mov ecx, dword [esp + 0x408]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.10004225
add esp, 0x404
ret

Function at 0x10002b10
Capabilities:
Find taskbar
Set global application hook

Disassembly:
cmp dword [esp + 4], 1
jne 0x10002b55
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
push 0
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [0x1001b3a8], 0
jne 0x10002b6c
mov eax, dword [0x1001b3ac]
push 0
push eax
push 0x10002a00
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
test eax, eax
mov dword [0x1001b3a8], eax
jne 0x10002b6c
ret
mov ecx, dword [0x1001b3a8]
push ecx
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov dword [0x1001b3a8], 0
mov eax, 1
ret

Function at 0x10002c00
Capabilities:
Find taskbar

Disassembly:
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10002c2b
mov ecx, dword [0x1001b3c0]
test ecx, ecx
je 0x10002c25
push ecx
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, 1
ret
xor eax, eax
ret

Function at 0x10002c70
Capabilities:
Find taskbar

Disassembly:
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x10002cbf
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call edi
mov esi, eax
test esi, esi
je 0x10002cbd
push 0
push str.SysPager
push 0
push esi
call edi
test eax, eax
push 0
push str.ToolbarWindow32
push 0
jne 0x10002cba
push esi
call edi
pop edi
pop esi
ret
push eax
call edi
pop edi
pop esi
ret
Function at 0x10003f00
Capabilities:
Find taskbar

Disassembly:
push esi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
test esi, esi
je 0x10003f3e
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_GetWindowLongA]
cmp eax, 0x100037b0
mov dword [0x1001b3c0], eax
je 0x10003f37
push 0x100037b0
push 0xfffffffffffffffc
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10004225
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001a2b8]
jne 0x1000422f
repz ret
jmp fcn.100064aa

Function at 0x1000c3df
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1001af68]
je 0x1000c3fa
inc edi
cmp edi, 0x17
jb 0x1000c3eb
cmp edi, 0x17
jae 0x1000c57a
push ebp
push 3
call fcn.1000d9ee
cmp eax, 1
pop ecx
je 0x1000c546
push 3
call fcn.1000d9ee
test eax, eax
pop ecx
jne 0x1000c42e
cmp dword [0x1001b548], 1
je 0x1000c546
cmp ebx, 0xfc
je 0x1000c579
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1001bbd8
push ebp
call fcn.10007871
add esp, 0xc
test eax, eax
je 0x1000c464
push esi
push esi
push esi
push esi
push esi
call fcn.100049f8
add esp, 0x14
push 0x104
mov esi, 0x1001bbf1
push esi
push 0
mov byte [0x1001bcf5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1000c4a8
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10007871
add esp, 0xc
test eax, eax
je 0x1000c4a8
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.100049f8
add esp, 0x14
push esi
call fcn.100079f0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1000c4ed
push esi
call fcn.100079f0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1001beec
push 0x1000fcd8
sub ecx, eax
push ecx
push eax
call fcn.1000d5e6
add esp, 0x14
test eax, eax
je 0x1000c4ed
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.100049f8
add esp, 0x14
jmp 0x1000c4ef
xor esi, esi
push 0x10010288
push ebx
push ebp
call fcn.1000d52d
add esp, 0xc
test eax, eax
je 0x1000c50f
push esi
push esi
push esi
push esi
push esi
call fcn.100049f8
add esp, 0x14
push dword [edi*8 + 0x1001af6c]
push ebx
push ebp
call fcn.1000d52d
add esp, 0xc
test eax, eax
je 0x1000c531
push esi
push esi
push esi
push esi
push esi
call fcn.100049f8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.1000d831
add esp, 0xc
jmp 0x1000c579
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1000c579
cmp ebp, 0xffffffff
je 0x1000c579
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1001af6c]
push dword [esi]
call fcn.100079f0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x1000d831
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10007b5d
xor ebx, ebx
cmp dword [0x1001bf28], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1000d907
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1000d9e7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1000d9e7
push eax
call fcn.10007aef
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1001bf28], eax
call esi
push eax
call fcn.10007aef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1001bf2c], eax
call esi
push eax
call fcn.10007aef
mov dword [0x1001bf30], eax
lea eax, [ebp - 0xc]
push eax
call fcn.1000906b
test eax, eax
pop ecx
pop ecx
je 0x1000d8d5
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100049f8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x1000d907
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10007aef
cmp eax, ebx
pop ecx
mov dword [0x1001bf38], eax
je 0x1000d907
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10007aef
pop ecx
mov dword [0x1001bf34], eax
mov eax, dword [0x1001bf34]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x1000d98c
cmp dword [0x1001bf38], ecx
je 0x1000d98c
push eax
call fcn.10007b66
push dword [0x1001bf38]
mov esi, eax
call fcn.10007b66
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x1000d98c
cmp edi, ebx
je 0x1000d98c
call esi
cmp eax, ebx
je 0x1000d959
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000d959
test byte [ebp - 0x18], 1
jne 0x1000d98c
lea eax, [ebp - 0x10]
push eax
call fcn.100090a2
test eax, eax
pop ecx
je 0x1000d974
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100049f8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x1000d983
or dword [ebp + 0x10], 0x200000
jmp 0x1000d9c7
or dword [ebp + 0x10], 0x40000
jmp 0x1000d9c7
mov eax, dword [0x1001bf2c]
cmp eax, dword [ebp - 8]
je 0x1000d9c7
push eax
call fcn.10007b66
cmp eax, ebx
pop ecx
je 0x1000d9c7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1000d9c7
mov eax, dword [0x1001bf30]
cmp eax, dword [ebp - 8]
je 0x1000d9c7
push eax
call fcn.10007b66
cmp eax, ebx
pop ecx
je 0x1000d9c7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1001bf28]
call fcn.10007b66
cmp eax, ebx
pop ecx
je 0x1000d9e7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000d9e9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret