joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d4e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x38
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push edi
mov esi, ecx
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x14]
call fcn.004d4a30
mov edi, dword [esi + 0x1c]
sub edi, 0x18
cmp dword [esi + 0x24], 0
je 0x4d4ee8
mov ecx, dword [esi + 8]
mov dword [edi], ecx
mov edx, dword [esi + 0xc]
mov dword [edi + 4], edx
mov eax, 0x7f000000
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], eax
push 0x18
lea eax, [esp + 0x24]
push eax
mov ecx, esi
mov dword [esp + 0x28], 0x46464952
mov dword [esp + 0x30], 0x58495641
mov dword [esp + 0x34], 0x5453494c
mov dword [esp + 0x3c], 0x69766f6d
call fcn.004d31e0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
sub ecx, 0xc
sbb edx, 0
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
pop edi
pop esi
add esp, 0x38
ret
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov ecx, dword [esi + 0xc]
mov dword [edi + 0xc], ecx
push 0xc
lea edx, [esp + 0x24]
push edx
mov ecx, esi
mov dword [esp + 0x28], 0x5453494c
mov dword [esp + 0x2c], CreateStatusWindowA
mov dword [esp + 0x30], 0x69766f6d
call fcn.004d31e0
pop edi
pop esi
add esp, 0x38
ret

Function at 0x4dd7d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61d7b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
shl edi, 4
push edi
lea ecx, [esi + 0x10]
mov dword [esp + 0x14], esi
call fcn.00458560
lea ebx, [esi + 0x20]
xor ebp, ebp
mov ecx, ebx
mov dword [esp + 0x1c], ebp
call fcn.004dd600
mov dword [ebx + 4], eax
mov dword [ebx + 8], ebp
lea ebx, [esi + 0x2c]
mov ecx, ebx
mov byte [esp + 0x1c], 1
call fcn.004dd600
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 8], ebp
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0xc], eax
pop edi
mov dword [esi + 0x40], ebp
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
mov dword [esi], ebp
mov dword [esi + 0x48], edx
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x4e14f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x61d886
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 0x5c]
mov ecx, edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x64720c
mov dword [esi + 4], 0x647200
mov byte [esi + 0x49], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
call fcn.004dade0
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
lea ecx, [esi + 0x68]
mov dword [esp + 0x18], ebx
call fcn.0051a01e
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x84], ebx
mov eax, 1
mov byte [esp + 0x18], al
mov dword [esi + 8], eax
mov dword [esi + 0x38], eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
mov dword [esi + 0x18], ebx
mov dword [esi + 0x28], ebx
mov byte [esi + 0x48], bl
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x34], bl
mov dword [esi + 0x44], ebx
call fcn.004e0e20
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4e6396
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61e748
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [esi], 0x627cd0
mov dword [esp + 8], esi
mov dword [esi + 4], edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
mov dword [esi], 0x63efbc
call fcn.0051a01e
mov ecx, dword [esp + 0xc]
mov dword [esi], 0x647bb0
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4e9557
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61ddab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x627cd0
mov dword [esp + 8], esi
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
mov dword [esp + 0x14], ebx
mov dword [esi], 0x63efbc
call fcn.0051a01e
mov dword [esi], 0x6485b0
mov dword [esp + 0x14], 1
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
lea eax, [esi + 0x44]
mov dword [eax + 4], eax
mov dword [eax], eax
mov byte [esp + 0x14], 2
mov byte [esi + 0x1c], bl
mov byte [esi + 0x21], bl
call fcn.0046cf10
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x1f], al
mov byte [esi + 0x20], bl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x1e], bl
mov byte [esi + 0x1d], bl
mov byte [esi + 0x22], bl
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4ecce0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x61e823
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004e2bb0
mov edi, dword [esp + 0x20]
xor ebx, ebx
cmp edi, ebx
mov dword [esi], 0x648eb8
mov dword [esp + 0x18], ebx
mov dword [esi + 0x60], edi
je 0x4ecd23
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
mov al, byte [edi + 0x64]
cmp al, bl
mov byte [esp + 0x18], 1
mov byte [esi + 0x64], al
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
je 0x4ecd49
mov ecx, dword [edi + 0x6c]
sub ecx, dword [edi + 0x68]
mov dword [esi + 0x1c], ebx
sar ecx, 4
mov dword [esi + 0x18], ecx
jmp 0x4ecd55
mov edx, dword [edi + 0x58]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x7c]
push ebp
push eax
push ecx
push eax
mov ecx, esi
call fcn.004e2a60
push eax
call fcn.005f7b00
push 0x3c
lea ebp, [esi + 0x20]
push ebx
push ebp
call fcn.005f7e70
mov dword [ebp], 0x73647561
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov word [esi + 0x30], bx
mov word [esi + 0x32], bx
mov dword [esi + 0x44], ebx
mov ecx, dword [edi + 0x7c]
movzx edx, word [ecx + 0xc]
mov cl, byte [esi + 0x64]
add esp, 0x18
cmp cl, bl
mov dword [esi + 0x34], edx
pop ebp
je 0x4ecdba
mov edx, dword [edi + 0x7c]
movzx eax, word [edx + 0xc]
imul eax, dword [edx + 4]
xor edx, edx
div dword [edi + 0x60]
mov dword [esi + 0x38], eax
jmp 0x4ecdc3
mov eax, dword [edi + 0x7c]
mov edx, dword [eax + 8]
mov dword [esi + 0x38], edx
mov eax, dword [esi + 0x1c]
cmp eax, ebx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x3c], ebx
je 0x4ecdd7
sar eax, 0x1f
not eax
jmp 0x4ecdd9
mov eax, edx
cmp cl, bl
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0xffffffff
je 0x4ecdef
mov dword [esi + 0x50], ebx
jmp 0x4ecdf9
mov eax, dword [edi + 0x7c]
movzx eax, word [eax + 0xc]
mov dword [esi + 0x50], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x4eccf7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x61e823
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004e2bb0
mov edi, dword [esp + 0x20]
xor ebx, ebx
cmp edi, ebx
mov dword [esi], 0x648eb8
mov dword [esp + 0x18], ebx
mov dword [esi + 0x60], edi
je 0x4ecd23
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
mov al, byte [edi + 0x64]
cmp al, bl
mov byte [esp + 0x18], 1
mov byte [esi + 0x64], al
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
je 0x4ecd49
mov ecx, dword [edi + 0x6c]
sub ecx, dword [edi + 0x68]
mov dword [esi + 0x1c], ebx
sar ecx, 4
mov dword [esi + 0x18], ecx
jmp 0x4ecd55
mov edx, dword [edi + 0x58]
mov dword [esi + 0x18], edx
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x78]
mov ecx, dword [edi + 0x7c]
push ebp
push eax
push ecx
push eax
mov ecx, esi
call fcn.004e2a60
push eax
call fcn.005f7b00
push 0x3c
lea ebp, [esi + 0x20]
push ebx
push ebp
call fcn.005f7e70
mov dword [ebp], 0x73647561
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov word [esi + 0x30], bx
mov word [esi + 0x32], bx
mov dword [esi + 0x44], ebx
mov ecx, dword [edi + 0x7c]
movzx edx, word [ecx + 0xc]
mov cl, byte [esi + 0x64]
add esp, 0x18
cmp cl, bl
mov dword [esi + 0x34], edx
pop ebp
je 0x4ecdba
mov edx, dword [edi + 0x7c]
movzx eax, word [edx + 0xc]
imul eax, dword [edx + 4]
xor edx, edx
div dword [edi + 0x60]
mov dword [esi + 0x38], eax
jmp 0x4ecdc3
mov eax, dword [edi + 0x7c]
mov edx, dword [eax + 8]
mov dword [esi + 0x38], edx
mov eax, dword [esi + 0x1c]
cmp eax, ebx
mov edx, dword [esi + 0x18]
mov dword [esi + 0x3c], ebx
je 0x4ecdd7
sar eax, 0x1f
not eax
jmp 0x4ecdd9
mov eax, edx
cmp cl, bl
mov dword [esi + 0x40], eax
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], 0xffffffff
je 0x4ecdef
mov dword [esi + 0x50], ebx
jmp 0x4ecdf9
mov eax, dword [edi + 0x7c]
movzx eax, word [eax + 0xc]
mov dword [esi + 0x50], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4ed337
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61e84b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x627cd0
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
mov dword [esp + 0x18], ebx
mov dword [esi], 0x63efbc
call fcn.0051a01e
lea edi, [esi + 0x18]
mov dword [esi], 0x648f18
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x18], 1
mov dword [edi], 0x62d0f4
mov byte [esp + 0x18], 2
call fcn.0046cf50
mov eax, dword [eax]
push eax
push edi
lea ecx, [esi + 0x30]
call fcn.00521dc1
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x68], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x78], ebx
mov dword [esi + 0x7c], ebx
mov dword [esi + 0x80], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4f70e7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x61e84b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esi], 0x627cd0
push edi
mov dword [esp + 0xc], esi
mov dword [esi + 4], ebx
lea ecx, [esi + 8]
mov dword [esp + 0x18], ebx
mov dword [esi], 0x63efbc
call fcn.0051a01e
lea edi, [esi + 0x18]
mov dword [esi], 0x64a780
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [esp + 0x18], 1
mov dword [edi], 0x62d0f4
mov byte [esp + 0x18], 2
call fcn.0046cf50
mov eax, dword [eax]
push eax
push edi
lea ecx, [esi + 0x30]
call fcn.00521dc1
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4feda0
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0xd38], 0
push edi
mov edi, dword [esi + 0xd34]
jge 0x4fedc8
push 0
push 0x523
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
mov dword [esi + 0xd38], eax
lea eax, [edi + 0xc]
mov edx, 0x33
jmp 0x4fede0
mov ecx, dword [eax - 8]
cmp ecx, dword [esi + 0xd38]
jle 0x4fedf1
mov dword [esi + 0xd38], ecx
mov ecx, dword [eax - 4]
cmp ecx, dword [esi + 0xd38]
jle 0x4fee02
mov dword [esi + 0xd38], ecx
mov ecx, dword [eax]
cmp ecx, dword [esi + 0xd38]
jle 0x4fee12
mov dword [esi + 0xd38], ecx
mov ecx, dword [eax + 4]
cmp ecx, dword [esi + 0xd38]
jle 0x4fee23
mov dword [esi + 0xd38], ecx
mov ecx, dword [eax + 8]
cmp ecx, dword [esi + 0xd38]
jle 0x4fee34
mov dword [esi + 0xd38], ecx
add eax, 0x14
sub edx, 1
jne 0x4fede0
push edx
add esi, 0xd24
push esi
push ebx
call dword [sym.imp.USER32.dll_InvalidateRect]
push ebx
call dword [sym.imp.USER32.dll_UpdateWindow]
pop edi
pop esi
ret
Function at 0x5193fb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x519422
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x519422
xor al, al
jmp 0x519442
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.005f8550
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret

Function at 0x5195b9
Capabilities:
Allocate or change rwx memory
Resolve function by parsing pe exports

Disassembly:
push 0x10
push 0x6a3d20
call fcn.005fcb58
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x5196cf
cmp word [eax + 0x14], 0x68
jb 0x5196cf
cmp word [eax + 0x18], 0x10b
jne 0x5196cf
cmp dword [eax + 0x74], 1
jb 0x5196cf
mov eax, dword [eax + 0x78]
test eax, eax
je 0x5196cf
add eax, esi
mov ecx, dword [eax + 0x20]
mov dword [ebp + 8], ecx
mov edi, dword [eax + 0x24]
add edi, esi
mov ebx, dword [eax + 0x1c]
add ebx, esi
and dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x1c]
cmp edx, ecx
jae 0x5196cf
lea eax, [ecx + esi]
mov eax, dword [eax + edx*4]
add eax, esi
push dword [ebp + 0xc]
push eax
call fcn.005fc620
pop ecx
pop ecx
test eax, eax
jne 0x5196ad
mov eax, dword [ebp - 0x1c]
movzx eax, word [edi + eax*2]
movzx eax, ax
lea ebx, [ebx + eax*4]
mov edi, dword [ebp + 0x14]
sub edi, esi
lea eax, [ebp + 8]
push eax
push 0x40
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x5196cf
cmp dword [ebp + 0x18], 0
je 0x519693
mov eax, dword [ebx]
mov dword [ebp - 0x20], eax
lea ecx, [eax + esi]
cmp dword [ebp + 0x10], 0
je 0x51967f
cmp dword [ebp + 0x10], ecx
jne 0x5196cf
mov edx, dword [ebp + 0x18]
mov dword [edx], ecx
mov ecx, edi
mov edx, ebx
lock cmpxchg dword [edx], ecx
cmp dword [ebp - 0x20], eax
je 0x519695
jmp 0x51966c
mov dword [ebx], edi
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
or dword [ebp - 4], 0xffffffff
mov al, 1
jmp 0x5196d5
inc dword [ebp - 0x1c]
mov ecx, dword [ebp + 8]
jmp 0x51961f
or dword [ebp - 4], 0xffffffff
xor al, al
call fcn.005fcb93
ret
Function at 0x5197d8
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x61ef58
call fcn.005f77f4
sub esp, 0x220
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], edi
call fcn.00412df0
test al, al
push dword [ebp + 0xc]
je 0x5198c4
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
cmp eax, 0xff
jle 0x519871
lea esi, [eax + 1]
push edi
push esi
lea ecx, [ebp - 0x14]
call fcn.004bd820
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
push esi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x20]
call fcn.004e8350
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
call fcn.00403c10
cmp dword [ebp - 0x20], 0x6575cc
je 0x51985b
push dword [ebp - 0x20]
call fcn.005f7371
pop ecx
cmp dword [ebp - 0x14], edi
je 0x519869
push dword [ebp - 0x14]
call fcn.005f7a6f
pop ecx
mov eax, dword [ebp + 8]
jmp 0x519974
cmp eax, edi
jle 0x519964
push 0x100
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push eax
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x20]
call fcn.004e8350
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], 2
call fcn.00403c10
cmp dword [ebp - 0x20], 0x6575cc
je 0x519869
push dword [ebp - 0x20]
call fcn.005f7371
jmp 0x519868
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
cmp eax, 0x1ff
jle 0x51990f
lea esi, [eax + 1]
push edi
push esi
lea ecx, [ebp - 0x14]
call fcn.004099c0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], esi
push esi
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 3
call dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push eax
call fcn.0051b593
add esp, 0xc
mov byte [ebp - 4], 4
jmp 0x51983d
cmp eax, edi
jle 0x519964
push 0x200
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.0051b593
add esp, 0xc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], 5
call fcn.00403c10
cmp dword [ebp - 0x2c], 0x6575cc
je 0x519869
push dword [ebp - 0x2c]
jmp 0x5198bd
mov eax, dword [ebp + 8]
mov ecx, 0x6575cc
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x519c5e
Capabilities:
Get common file path

Disassembly:
mov eax, 0x61efc5
call fcn.005f77f4
sub esp, 0x28
push ebx
push esi
push edi
call fcn.00412df0
test al, al
mov esi, 0x104
je 0x519d5f
and dword [ebp - 0x12], 0
lea eax, [ebp - 0x12]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.00519a21
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
and dword [ebp - 4], 0
push esi
push dword [ebp - 0x34]
call ebx
mov edi, eax
test edi, edi
jne 0x519cbd
cmp dword [ebp - 0x34], 0
je 0x519cb6
push dword [ebp - 0x34]
call fcn.005f7a6f
pop ecx
xor eax, eax
jmp 0x519e33
cmp edi, esi
jbe 0x519ced
and dword [ebp - 0x12], 0
lea eax, [ebp - 0x12]
push eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x34]
call fcn.004c0440
push edi
push dword [ebp - 0x34]
call ebx
mov edi, eax
test edi, edi
je 0x519ca7
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x34]
sar eax, 1
cmp edi, eax
jae 0x519ca7
push edi
lea ecx, [ebp - 0x34]
call fcn.004ec640
mov eax, dword [ebp - 0x30]
cmp word [eax - 2], 0x5c
je 0x519d13
lea eax, [ebp - 0x12]
push eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x12], 0x5c
call fcn.00519a74
mov esi, dword [ebp + 8]
jmp 0x519d2b
movsx ax, al
movzx eax, ax
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0x12]
push eax
call fcn.00519a74
mov al, byte [esi]
inc esi
test al, al
lea ecx, [ebp - 0x34]
jne 0x519d18
and dword [ebp - 0x12], 0
lea eax, [ebp - 0x12]
push eax
call fcn.00519a74
push dword [ebp - 0x34]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp dword [ebp - 0x34], 0
mov esi, eax
je 0x519e31
push dword [ebp - 0x34]
jmp 0x519e2b
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp - 0x24]
mov byte [ebp - 0xd], 0
call fcn.004a4820
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push dword [ebp - 0x24]
mov dword [ebp - 4], 1
call ebx
mov edi, eax
test edi, edi
jne 0x519d9b
cmp dword [ebp - 0x24], 0
je 0x519cb6
push dword [ebp - 0x24]
jmp 0x519cb0
cmp edi, esi
jbe 0x519dc9
lea eax, [ebp - 0xd]
push eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 0xd], 0
call fcn.0048e1f0
push edi
push dword [ebp - 0x24]
call ebx
mov edi, eax
test edi, edi
je 0x519d89
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp edi, eax
jae 0x519d89
push edi
lea ecx, [ebp - 0x24]
call fcn.0043ba10
mov eax, dword [ebp - 0x20]
cmp byte [eax - 1], 0x5c
je 0x519deb
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 0xd], 0x5c
call fcn.00411610
push dword [ebp + 8]
mov esi, dword [ebp - 0x20]
call fcn.005fc590
add eax, dword [ebp + 8]
pop ecx
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x24]
push esi
call fcn.004d24c0
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 0xd], 0
call fcn.00411610
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp dword [ebp - 0x24], 0
mov esi, eax
je 0x519e31
push dword [ebp - 0x24]
call fcn.005f7a6f
pop ecx
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x51a235
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2cc
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x51a278
push eax
mov dword [ebp - 0x2cc], 0x10001
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2cc]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [ebp - 0x214]
pop esi
leave
ret

Function at 0x51a32e
Capabilities:
Create thread

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 8], edi
jne 0x51a368
lea eax, [esi + 0xc]
push eax
push edi
push esi
push 0x51a27b
push edi
push edi
call fcn.005fccb4
add esp, 0x18
cmp eax, edi
mov dword [esi + 8], eax
je 0x51a368
mov ecx, dword [esi + 0x10]
cmp ecx, 0x80000000
je 0x51a368
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
cmp dword [esi + 8], edi
pop edi
setne al
pop esi
ret

Function at 0x51e3cd
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.005f9f10
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push 0x1000
push eax
call fcn.005fae0f
add esp, 0x10
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x51e6f4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
js 0x51e716
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
jmp 0x51e747
push 0xffffffffffffffff
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0051b523
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
setne bl
cmp dword [ebp - 0xc], 0x6575c8
je 0x51e747
push dword [ebp - 0xc]
call fcn.005f7371
pop ecx
mov al, bl
pop ebx
leave
ret

Function at 0x51e8b9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
and dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x51e902
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 8]
push str.Cannot_locate_system_directory:___s
push eax
call fcn.0051d61a
add esp, 0xc
push 0x697a88
lea eax, [ebp - 8]
push eax
call fcn.005f8355
push 0xffffffffffffffff
lea eax, [ebp - 0x10c]
push eax
push dword [ebp + 8]
call fcn.0051b593
mov eax, dword [ebp + 8]
add esp, 0xc
leave
ret