joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42524b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x482708]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42528b
cmp byte [ebx], 0xa
jne 0x42528b
or byte [eax + edi + 0x28], 4
jmp 0x425290
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x42538e
mov al, byte [edx]
cmp al, 0x1a
je 0x425370
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4252bf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4252e4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4252ee
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4252a1
jmp 0x42538e
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42536b
cmp dword [ebp - 0xc], 0
je 0x42536b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x482708]
test byte [eax + edi + 0x28], 0x48
je 0x425345
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x425330
mov byte [esi], dl
jmp 0x425341
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x482708]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42538e
cmp byte [ebp - 1], 0xa
jne 0x425354
cmp esi, ebx
jne 0x425354
mov byte [esi], 0xa
jmp 0x42538d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00425dcb
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42538e
mov byte [esi], 0xd
jmp 0x42538d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x482708]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42538a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42538e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425397
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x482708]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4253da
cmp word [esi], dx
jne 0x4253da
or byte [edi + eax + 0x28], 4
jmp 0x4253df
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x425532
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x425512
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x425421
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x425457
cmp eax, edx
jae 0x425463
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4253f9
jmp 0x425532
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42550e
cmp dword [ebp - 0x14], 0
je 0x42550e
mov eax, dword [ebx*4 + 0x482708]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4254e6
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4254af
mov word [esi], cx
jmp 0x4254e2
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x482708]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x482708]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x482708]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x425532
pop ebx
cmp word [ebp - 4], bx
jne 0x4254f7
cmp esi, dword [ebp + 0xc]
jne 0x4254f7
mov word [esi], bx
jmp 0x42552f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00425dcb
add esp, 0x10
cmp word [ebp - 4], bx
je 0x425532
push 0xd
jmp 0x42552b
mov ecx, dword [ebx*4 + 0x482708]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x425529
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x425532
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42874c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4287e9
push ebx
push esi
call fcn.00428715
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0042739a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x428796
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4287e8
push edi
push eax
call fcn.004224fd
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4287b6
call fcn.004217b6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4287e7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0042739a
add esp, 0x20
test eax, eax
jne 0x4287d5
push edi
call fcn.004217b6
jmp 0x4287dd
push ebx
call fcn.004217b6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x42f245
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042f1c1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42f3bd
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42f3bd
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42f36c
jg 0x42f29e
test eax, eax
je 0x42f362
push 1
push 0x1000
call fcn.00421759
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42f2c4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42f359
push 0x8000
push ebx
call fcn.0041e2e7
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42f2f0
jg 0x42f2eb
cmp ecx, 0x1000
jb 0x42f2f0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0042427a
add esp, 0x10
cmp eax, 0xffffffff
je 0x42f335
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42f2eb
jl 0x42f31c
test ecx, ecx
jne 0x42f2dd
push dword [ebp - 0xc]
push ebx
call fcn.0041e2e7
push esi
call fcn.004217b6
add esp, 0xc
xor edi, edi
jmp 0x42f3ce
cmp byte [edi + 0x24], 0
je 0x42f34c
cmp dword [edi + 0x20], 5
jne 0x42f34c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42f357
mov edi, dword [edi + 0x18]
jmp 0x42f359
xor edi, edi
push esi
call fcn.004217b6
pop ecx
jmp 0x42f3ce
test ecx, ecx
jg 0x42f32e
jl 0x42f36c
test eax, eax
jae 0x42f32e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00425dcb
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42f38f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42f32e
jmp 0x42f3c6
push ebx
call fcn.00428f3e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42f32e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42f3ce
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42f3cb
mov edi, dword [edi + 0x18]
jmp 0x42f3ce
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00425dcb
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43074d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43074d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10044290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100442e9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x100442e9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x100442da
cmp esi, edx
jae 0x100442e9
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x100442c8
cmp esi, edx
jae 0x100442e9
cmp word [esi], 0
je 0x100442e9
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10044520
Capabilities:
Get number of processors

Disassembly:
add ecx, 0xc
jmp 0x1008ad30
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x74]
test esi, esi
je 0x1008ad4d
mov ecx, esi
call fcn.1008bf50
push 0x1c
push esi
call fcn.1012659a
add esp, 8
lea ecx, [edi + 0x70]
call fcn.10044a10
lea ecx, [edi + 0x64]
call fcn.1008abf0
mov ecx, edi
pop edi
pop esi
jmp fcn.10075200
Function at 0x1004ae60
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017d1a8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x101ed40c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.1012656a
mov edi, eax
add esp, 4
test edi, edi
je 0x1004af03
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.100a3c06
add esp, 4
mov dword [edi + 4], eax
jmp 0x1004af05
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.10045b30
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x1004af65
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x1004af65
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x1004af89
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x1004afab
cmp byte [ebp + 0xc], 0
je 0x1004af98
push esi
call fcn.100a43c4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x1004afb7
mov esi, str.ios_base::badbit_set
jmp 0x1004afc7
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.1004b000
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.100468a0
push 0x101ce780
lea eax, [ebp - 0x30]
push eax
call fcn.1014cf09
int3
Function at 0x10057900
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x10057969
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x10057985
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
pop esi
test eax, eax
je 0x10057969
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x10057985
cmp dword [edi + 4], 0
je 0x10057985
cmp dword [edi + 0xc], 0
je 0x10057985
mov eax, 1
pop edi
pop ebp
ret 4
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x10058730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x101ed40c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 8], 0
jne 0x1005881a
mov eax, dword [esi]
test eax, eax
jne 0x10058805
push edi
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1014de30
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call edi
lea ecx, [ebp - 0x20d]
call fcn.10058460
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100587f1
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call edi
lea eax, [ebp - 0x20c]
push eax
call edi
lea ecx, [ebp - 0x20d]
call fcn.10058640
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
pop edi
test eax, eax
je 0x1005881a
push str.CreateIdentify2
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005881a
call eax
mov dword [esi + 8], eax
mov ecx, dword [esi + 8]
pop esi
test ecx, ecx
jne 0x10058832
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10126919
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10126919
mov esp, ebp
pop ebp
ret
Function at 0x100596d0
Capabilities:
Check for peb ntglobalflag flag
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10181525
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101ed40c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], 0
call fcn.100db31b
lea esi, [edi + 0x10]
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
push 0x53
mov dword [esi], vtable.DuiLib::CNotifyPump.0
call fcn.100da592
mov dword [edi + 0x20], vtable.DuiLib::INotifyUI.0
lea ecx, [edi + 0x30]
mov dword [edi + 0x24], vtable.DuiLib::IMessageFilterUI.0
mov dword [edi + 0x28], vtable.DuiLib::IDialogBuilderCallback.0
mov dword [edi + 0x2c], vtable.DuiLib::IQueryControlText.0
mov byte [ebp - 4], 1
mov dword [edi], vtable.DuiLib::WindowImplBase.0
mov dword [esi], vtable.DuiLib::WindowImplBase.1.0
mov dword [edi + 0x20], vtable.DuiLib::WindowImplBase.2.0
mov dword [edi + 0x24], vtable.DuiLib::WindowImplBase.3.0
mov dword [edi + 0x28], vtable.DuiLib::WindowImplBase.4.0
mov dword [edi + 0x2c], vtable.DuiLib::WindowImplBase.5.0
call fcn.100d341b
lea ecx, [edi + 0x79c]
mov byte [ebp - 4], 2
mov dword [edi], vtable.Rights::CInstallPopWnd.0
mov dword [esi], vtable.Rights::CInstallPopWnd.1.0
mov dword [edi + 0x20], vtable.Rights::CInstallPopWnd.2.0
mov dword [edi + 0x24], vtable.Rights::CInstallPopWnd.3.0
mov dword [edi + 0x28], vtable.Rights::CInstallPopWnd.4.0
mov dword [edi + 0x2c], vtable.Rights::CInstallPopWnd.5.0
mov dword [edi + 0x77c], 0
mov dword [edi + 0x780], 0
mov dword [edi + 0x784], 0
mov dword [edi + 0x788], 0
mov dword [edi + 0x78c], 0
mov dword [edi + 0x790], 0
mov dword [edi + 0x794], 0
mov dword [edi + 0x798], 0
call fcn.100da4fd
lea esi, [edi + 0x820]
mov byte [ebp - 4], 3
lea eax, [ebp + 8]
mov dword [ebp - 0x10], esi
push eax
mov ecx, esi
call fcn.10042000
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x18]
call fcn.10042000
mov al, byte [ebp + 0x38]
lea ecx, [esi + 0x34]
mov byte [esi + 0x30], al
mov al, byte [ebp + 0x39]
mov byte [esi + 0x31], al
mov al, byte [ebp + 0x3a]
mov byte [esi + 0x32], al
lea eax, [ebp + 0x3c]
push eax
mov byte [ebp - 4], 5
call fcn.10059640
lea eax, [ebp + 0x54]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x4c]
call fcn.10059640
mov eax, dword [ebp + 0x6c]
mov ecx, dword [ebp + 0x74]
mov dword [esi + 0x64], eax
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
test ecx, ecx
je 0x10059875
lock inc dword [ecx + 4]
mov ecx, dword [ebp + 0x74]
mov eax, dword [ebp + 0x70]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
movzx edx, byte [edi + 0x851]
lea ecx, [edi + 0x79c]
mov al, byte [edi + 0x850]
mov byte [edi + 0x891], dl
movzx edx, byte [edi + 0x852]
push 0x1019f888
mov byte [ebp - 4], 7
mov dword [edi + 0x894], 0
mov byte [edi + 0x890], al
mov byte [edi + 0x892], dl
call fcn.100da67d
lea ecx, [ebp + 8]
call fcn.100427f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x70
Function at 0x1005ae80
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101828e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x101ed40c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], 0
push eax
push 0x1005ad10
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
test eax, eax
jne 0x1005af17
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x1005b055
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x34]
push 0
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x4c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x1005aefe
push 4
push 0x1000
push 0x10
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1005af7e
push 0
push 0
push 0x1004
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x44], eax
test eax, eax
jne 0x1005af97
push 0x8000
push eax
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x1005b04e
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x1005b017
mov edi, dword [ebp - 0x18]
push 0
push 0x10
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
push eax
push dword [ebp - 0x38]
movups xmmword [ebp - 0x2c], xmm0
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 0x100e
push dword [ebp - 0x40]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0x10
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp dword [ebp - 0x14], edi
je 0x1005aff8
movups xmm0, xmmword [ebp - 0x2c]
movups xmmword [edi], xmm0
add edi, 0x10
mov dword [ebp - 0x18], edi
jmp 0x1005b008
lea eax, [ebp - 0x2c]
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.1005a7c0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp eax, dword [ebp - 0x44]
jb 0x1005afa5
mov edi, dword [ebp - 0x48]
push 0x8000
push 0
push dword [ebp - 0x38]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, dword [ebp - 0x1c]
mov dword [edi], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1c]
call fcn.1005aa30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10126919
mov esp, ebp
pop ebp
ret
Function at 0x10069a10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101859d1
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x101ed40c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x44]
call fcn.10041f60
mov eax, dword [ebp - 0x44]
mov dword [ebp - 4], 0
mov esi, dword [eax - 0xc]
test esi, esi
js 0x10069c04
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x10069a89
push esi
lea ecx, [ebp - 0x44]
call fcn.100430f0
mov eax, dword [ebp - 0x44]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.10155875
mov eax, dword [ebp - 0x44]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x10069c04
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x44]
push 0x30
push ecx
mov word [eax + esi*2], cx
lea eax, [ebp - 0x40]
push eax
call fcn.1014de30
add esp, 0xc
lea ecx, [ebp - 0x40]
call fcn.100c1f30
xor eax, eax
mov byte [ebp - 4], 1
mov word [ebp - 0x5c], ax
mov eax, dword [ebp - 0x44]
mov edx, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
lea esi, [edx + 2]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x10069ae5
sub edx, esi
lea ecx, [ebp - 0x5c]
sar edx, 1
push edx
push eax
call fcn.10044c60
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x40]
call fcn.100c2540
mov edx, dword [ebp - 0x48]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x10069b4c
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10069b42
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10069c0e
push edx
push ecx
call fcn.1012659a
add esp, 8
push 8
xor eax, eax
mov dword [ebp - 0x4c], 0
push 0x101a1580
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
call fcn.10044c60
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x60], 1
call fcn.100c24a0
test eax, eax
jne 0x10069bb3
mov eax, dword [ebp - 0x44]
cmp dword [eax - 0xc], 0
jl 0x10069baf
push 0x101a1580
push eax
call fcn.1014e03d
add esp, 8
test eax, eax
je 0x10069baf
sub eax, dword [ebp - 0x44]
sar eax, 1
cmp eax, 0xffffffff
jne 0x10069bb3
xor bl, bl
jmp 0x10069bb5
mov bl, 1
lea ecx, [ebp - 0x5c]
call fcn.100424a0
lea ecx, [ebp - 0x40]
call fcn.100c1f90
mov esi, dword [ebp - 0x44]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x10069be7
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10126919
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.10042d10
call fcn.101513dc
int3