joyce8/EMBER2024-capa huggingface dataset:
Function at 0x473288
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, esi
mov eax, dword [edi]
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x18], eax
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, 4
call fcn.004032a8
mov eax, dword [edi]
mov dword [ebx + 0x1c], eax
mov eax, dword [edi + 4]
mov dword [ebx + 0x20], eax
cmp dword [ebx + 0xc], 1
jne 0x4732f8
cmp dword [ebx + 8], 0
jne 0x4732f8
cmp byte [ebx + 0x60], 0
je 0x4732e1
mov ecx, 8
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x61]
call fcn.0046dc60
mov edx, dword [ebx + 0x10]
dec edx
test edx, edx
jl 0x4732f8
inc edx
xor eax, eax
mov cl, byte [ebx + eax + 0x2c]
xor byte [ebx + eax + 0x14], cl
inc eax
dec edx
jne 0x4732ec
cmp dword [ebp + 8], 0
jge 0x473306
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
jmp 0x47330c
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, 3
je 0x473319
cmp eax, 4
jne 0x47332b
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x65]
call fcn.00472e1c
cmp dword [ebx + 0xc], 1
jne 0x473388
cmp dword [ebx + 8], 0
jne 0x473345
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov dword [ebx + 0x2c], edx
mov edx, dword [eax + 4]
mov dword [ebx + 0x30], edx
cmp dword [ebx + 8], 1
jne 0x473388
mov edx, dword [ebx + 0x10]
dec edx
test edx, edx
jl 0x473366
inc edx
xor eax, eax
mov ecx, dword [ebp - 4]
lea esi, [ecx + eax]
mov cl, byte [ebx + eax + 0x2c]
xor byte [esi], cl
inc eax
dec edx
jne 0x473356
cmp byte [ebx + 0x60], 0
je 0x47337c
mov ecx, 8
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x61]
call fcn.0046dc60
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 0x20]
mov dword [ebx + 0x30], eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x476d58
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x476ec2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x49ff5c]
cmp byte [eax], 0
jne 0x476db3
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404c08
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, ebx
call fcn.0045f2b8
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040522c
jmp 0x476e9a
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.004052a8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x476de5
mov eax, esi
call fcn.00405080
jmp 0x476e9a
mov eax, dword [ebp - 4]
dec eax
sub eax, 2
jb 0x476e1c
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x1c]
mov eax, dword [0x4a0064]
call fcn.00406db0
mov ecx, dword [ebp - 0x1c]
mov dl, 1
mov eax, dword [0x45e9b8]
call fcn.0040d790
call fcn.00404344
cmp dword [ebp - 8], 1
jne 0x476e29
mov dword [ebp - 8], 2
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, esi
call fcn.004054a8
lea eax, [ebp - 8]
push eax
mov eax, dword [esi]
call fcn.004052a8
push eax
lea eax, [ebp - 4]
push eax
push 0
mov eax, edi
call fcn.004052a8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x476e8a
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], 0xf
lea eax, [ebp - 0x18]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x4a035c]
call fcn.00406db0
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x45e9b8]
call fcn.0040d790
call fcn.00404344
mov eax, dword [esi]
call fcn.004052a8
mov edx, eax
mov eax, esi
call fcn.004051d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476ec9
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004049ac
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004049ac
ret
Function at 0x476ed0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov edi, dword [ebp + 8]
xor eax, eax
push ebp
push 0x476ff8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
dec eax
sub eax, 2
jb 0x476f1a
mov ecx, 0x7d
mov edx, 0x477010
mov eax, 0x477044
call fcn.004048e4
mov eax, dword [0x49ff5c]
cmp byte [eax], 0
jne 0x476f78
cmp esi, 1
jne 0x476f52
lea eax, [ebp - 8]
mov edx, edi
call fcn.00404c08
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404c08
mov edx, dword [ebp - 0xc]
mov eax, ebx
pop ecx
call fcn.0045f260
jmp 0x476fd5
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404c08
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.00404c08
mov edx, dword [ebp - 0x14]
mov eax, ebx
pop ecx
call fcn.0045f28c
jmp 0x476fd5
mov eax, edi
call fcn.004052b8
inc eax
add eax, eax
push eax
mov eax, edi
call fcn.004052a8
push eax
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.004052a8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
je 0x476fd5
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xf
lea eax, [ebp - 0x1c]
push eax
push 0
lea edx, [ebp - 0x20]
mov eax, dword [0x4a0128]
call fcn.00406db0
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x45e9b8]
call fcn.0040d790
call fcn.00404344
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476fff
lea eax, [ebp - 0x20]
call fcn.00404988
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.004049ac
ret
Function at 0x47bb78
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47bce3
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebx], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0x10]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov byte [eax], 0
or esi, 0xffffffff
or edi, 0xffffffff
lea eax, [ebp - 0x20]
mov ecx, 0x47bd00
mov edx, dword [ebp - 4]
call fcn.00404c8c
mov eax, dword [ebp - 0x20]
call fcn.0040990c
test al, al
jne 0x47bc01
lea eax, [ebp - 0x20]
mov ecx, 0x47bd14
mov edx, dword [ebp - 4]
call fcn.00404c8c
mov eax, dword [ebp - 0x20]
call fcn.0040990c
test al, al
je 0x47bccd
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404e38
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47bccd
mov eax, dword [ebp - 0x10]
call fcn.00402748
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404e38
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x47bd20
mov eax, dword [ebp - 0x14]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47bc76
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0xfeef04bd
jne 0x47bc76
mov eax, dword [ebp - 0x18]
mov esi, dword [eax + 8]
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 0xc]
mov eax, dword [ebp - 0x14]
call fcn.00402768
cmp esi, 0xffffffff
je 0x47bccd
cmp edi, 0xffffffff
je 0x47bccd
movzx eax, di
mov dword [ebx], eax
cmp dword [ebx], 0
je 0x47bccd
cmp dword [ebx], 0x834
jle 0x47bca3
sub dword [ebx], 0x64
mov eax, dword [ebp + 8]
mov byte [eax], 1
mov eax, esi
call fcn.00407c5c
movzx eax, ax
mov edx, dword [ebp - 8]
mov dword [edx], eax
movzx eax, si
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, edi
call fcn.00407c5c
movzx eax, ax
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47bcea
lea eax, [ebp - 0x20]
call fcn.00404988
ret
Function at 0x480568
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x480666
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
xor ecx, ecx
mov edx, 0xc
call fcn.004032a8
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x14
call fcn.004032a8
lea edi, [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], eax
mov eax, esi
call fcn.0040991c
test al, al
je 0x4805bf
mov bl, 1
jmp 0x480650
xor ebx, ebx
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 8]
mov edx, 0x480680
call fcn.00404a20
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.00404e38
push eax
call fcn.004804b0
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x480629
lea eax, [ebp - 8]
mov edx, 0x4806f0
call fcn.00404a20
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 1
mov eax, dword [ebp - 8]
call fcn.00404e38
push eax
call fcn.004804b0
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x480650
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
push edi
mov eax, esi
call fcn.00404e38
push eax
call sub.kernel32.dll_CreateDirectoryA
test eax, eax
je 0x480647
mov bl, 1
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LocalFree_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48066d
lea eax, [ebp - 8]
call fcn.00404988
ret

Function at 0x480780
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x480800
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x104
call fcn.0040a140
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push esi
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
test eax, eax
jne 0x4807da
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404b78
jmp 0x4807e1
mov eax, ebx
call fcn.00404988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480807
mov eax, dword [ebp - 4]
push eax
call sub.ole32.dll_CoTaskMemFree
mov eax, dword [ebp - 8]
call fcn.0040a18c
ret

Function at 0x483e28
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
and edx, edx
je 0x483e46
and ecx, ecx
jle 0x483e46
push ebx
xor al, byte [edx]
imul eax, eax, 0x8088405
inc eax
mov ebx, eax
shr ebx, 0x18
mov byte [edx], bl
inc edx
dec ecx
jne 0x483e31
pop ebx
ret
Function at 0x485ec0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov edx, dword [edx + 0x28]
shr edx, 1
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x28]
shr ecx, 1
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x38]
call fcn.00402a04
add dword [ebp - 8], 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x40]
shl eax, 2
sub eax, 5
test eax, eax
jl 0x485f9f
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 8
and eax, 0xff
mov eax, dword [eax*4 + 0x49f6cc]
mov edx, 8
call fcn.00483940
mov ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
and eax, 0xff
xor ebx, dword [eax*4 + 0x49f6cc]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x10
and eax, 0xff
mov eax, dword [eax*4 + 0x49f6cc]
mov edx, 0x10
call fcn.00483940
xor ebx, eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
shr eax, 0x18
mov eax, dword [eax*4 + 0x49f6cc]
mov edx, 0x18
call fcn.00483940
xor ebx, eax
mov eax, dword [ebp - 8]
mov dword [eax], ebx
add dword [ebp - 8], 4
inc dword [ebp - 4]
dec dword [ebp - 0xc]
jne 0x485f22
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x486784
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov ecx, 8
mov edx, 0x3020100
mov dword [eax], edx
add edx, 0x4040404
mov dword [eax + 4], edx
add edx, 0x4040404
mov dword [eax + 8], edx
add edx, 0x4040404
mov dword [eax + 0xc], edx
add edx, 0x4040404
mov dword [eax + 0x10], edx
add edx, 0x4040404
mov dword [eax + 0x14], edx
add edx, 0x4040404
mov dword [eax + 0x18], edx
add edx, 0x4040404
mov dword [eax + 0x1c], edx
add edx, 0x4040404
add eax, 0x20
dec ecx
jne 0x48678e
ret

Function at 0x4870c4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48712e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040a12c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0048707c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487135
lea eax, [ebp - 0x10c]
call fcn.00404988
ret
Function at 0x4873e8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
test dl, dl
je 0x4873fb
add esp, 0xfffffff0
call fcn.00403edc
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x487472
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x41ae60]
call fcn.00403b60
mov dword [esi + 0x27], eax
mov dl, 1
mov eax, dword [0x41ae60]
call fcn.00403b60
mov dword [esi + 0x2b], eax
mov byte [esi + 0x1d], 0
lea eax, [esi + 0x1e]
mov edx, 0x4874a0
call fcn.004049dc
lea eax, [ebp - 4]
call fcn.004870c4
mov edx, dword [ebp - 4]
lea eax, [esi + 0x22]
call fcn.004049dc
xor eax, eax
mov dword [esi + 4], eax
mov byte [esi + 0xc], 0
mov byte [esi + 0x30], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x487479
lea eax, [ebp - 4]
call fcn.00404988
ret
Function at 0x48a3b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x48a3ca
add esp, 0xfffffff0
call fcn.00403edc
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x48a488
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 8]
mov edx, edi
call fcn.00404a20
cmp dword [ebp - 8], 0
jne 0x48a3f9
lea eax, [ebp - 8]
call fcn.00409eb0
lea eax, [ebx + 8]
mov edx, 0x104
call fcn.00404fc4
mov eax, dword [ebx + 8]
call fcn.00404e38
push eax
push 0
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402b90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.00409d80
mov eax, dword [ebp - 0xc]
call fcn.00404e38
push eax
mov eax, dword [ebp - 8]
call fcn.00404e38
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x48a462
mov eax, dword [ebx + 8]
call fcn.00404e38
call fcn.00409ef0
mov edx, eax
lea eax, [ebx + 8]
call fcn.00404fc4
mov eax, dword [ebx + 8]
call fcn.004097e0
mov esi, eax
mov ecx, esi
xor edx, edx
mov eax, ebx
call fcn.0041fb88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48a48f
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004049ac
ret

Function at 0x48ba70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x48bada
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x105]
call fcn.0040a12c
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0048ba28
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bae1
lea eax, [ebp - 0x10c]
call fcn.00404988
ret

Function at 0x48c1b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x48c24d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, 0x104
call fcn.00404fc4
mov eax, dword [ebx]
call fcn.00404e38
push eax
push 0
push 0x48c25c
mov eax, dword [esi + 0x30]
call fcn.00404e38
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
jne 0x48c21b
lea edx, [ebp - 4]
mov eax, 0x48b9f8
call fcn.00406db0
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48b7b8]
call fcn.0040d754
call fcn.00404344
mov eax, dword [ebx]
call fcn.00404e38
call fcn.00409ef0
mov edx, eax
mov eax, ebx
call fcn.00404fc4
mov eax, dword [ebx]
call fcn.00409bfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c254
lea eax, [ebp - 4]
call fcn.00404988
ret
Function at 0x48c4bc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48c772
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x48c623
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 8]
call fcn.00409d4c
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0048c368
mov eax, esi
call fcn.0041f73c
mov ebx, dword [ebp + 0xc]
mov ebx, dword [ebx + 0x114]
add eax, ebx
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
cmp word [eax + 0x62], 0
je 0x48c554
push 0
push ebx
mov edi, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x64]
call dword [edi + 0x60]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0048c1b4
xor eax, eax
push ebp
push 0x48c612
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x41b060]
call fcn.0041fc4c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x114]
cdq
push edx
push eax
mov edx, esi
mov eax, dword [ebp - 0xc]
call fcn.0041f9d8
mov eax, dword [ebp - 4]
cmp word [eax + 0x62], 0
je 0x48c5be
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x114]
push eax
push ebx
mov ebx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx + 0x118]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
call fcn.00409a74
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [ebp - 0x14], eax
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.0041f75c
mov eax, dword [ebp - 0xc]
call fcn.0048a524
mov dword [ebp - 0x1c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c619
mov eax, dword [ebp - 0xc]
call fcn.00403b90
ret

Function at 0x48e3b0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
test eax, eax
je 0x48e3d6
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0048e398
dec esi
jne 0x48e3d6
mov byte [ebx + 0xd], 0
pop esi
pop ebx
ret
Function at 0x48fb2c
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, eax
mov byte [esp], 1
cmp byte [esi + 0xaa], 0
jne 0x48fcc3
mov eax, dword [esi + 0xbc]
call fcn.0041fe1c
push 0
push 0x1000
mov eax, dword [esi + 0xc0]
call fcn.0041f7c0
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0xc0]
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x48fcb0
lea eax, [esi + 0x81]
push eax
lea eax, [esp + 8]
push eax
mov ebx, dword [esi + 0xc0]
mov eax, ebx
call fcn.0041f770
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esi + 0xef]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
call sub.kernel32.dll_GetLastError_1
mov edx, eax
mov eax, esi
call fcn.0048f1ac
test bl, bl
je 0x48fc0a
mov eax, dword [esi + 0x91]
push eax
call sub.kernel32.dll_ResetEvent
mov eax, dword [esi + 0xc0]
mov edx, dword [eax + 4]
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0xbc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, esi
call fcn.00490160
push 0
push 0x1000
mov eax, dword [esi + 0xc0]
call fcn.0041f7c0
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0xc0]
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x48fcb0
mov eax, esi
call fcn.0048f158
cmp eax, 0xea
jne 0x48fc8a
mov ebx, dword [esi + 0xc0]
mov eax, ebx
call fcn.0041f770
mov ecx, eax
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0xbc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0xef]
push eax
call sub.kernel32.dll_PeekNamedPipe
test eax, eax
je 0x48fc76
mov eax, dword [esp + 4]
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0xc0]
call fcn.0041f7c0
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0xc0]
mov ebx, dword [eax]
call dword [ebx + 0x10]
jmp 0x48fcb0
call sub.kernel32.dll_GetLastError_1
mov edx, eax
mov eax, esi
call fcn.0048f1ac
mov byte [esp], 0
jmp 0x48fcb0
mov eax, esi
call fcn.0048f158
cmp eax, 0x3e5
je 0x48fca3
mov eax, esi
call fcn.0048f158
test eax, eax
jne 0x48fcac
mov byte [esi + 0xaa], 1
jmp 0x48fcb0
mov byte [esp], 0
cmp byte [esp], 0
je 0x48fcc3
cmp byte [esi + 0xaa], 0
je 0x48fb75
mov al, byte [esp]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x48fccc
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, eax
mov eax, dword [esi + 0x91]
push eax
call sub.kernel32.dll_ResetEvent
push 0xffffffffffffffff
lea eax, [esp + 4]
push eax
lea eax, [esi + 0x81]
push eax
mov eax, dword [esi + 0xef]
push eax
call sub.kernel32.dll_GetOverlappedResult
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x48fde7
call sub.kernel32.dll_GetLastError_1
mov edx, eax
mov eax, esi
call fcn.0048f1ac
mov eax, esi
call fcn.0048f158
cmp eax, 0xea
jne 0x48fde7
mov ebx, dword [esi + 0xc0]
mov eax, ebx
call fcn.0041f770
mov ecx, eax
mov edx, dword [ebx + 4]
mov eax, dword [esi + 0xbc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esp
push 0
push 0
push 0
push 0
mov eax, dword [esi + 0xef]
push eax
call sub.kernel32.dll_PeekNamedPipe
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x48fdd9
mov eax, dword [esp]
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0xc0]
call fcn.0041f7c0
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0xc0]
mov ebx, dword [eax]
call dword [ebx + 0x10]
lea eax, [esi + 0x81]
push eax
lea eax, [esp + 4]
push eax
mov ebx, dword [esi + 0xc0]
mov eax, ebx
call fcn.0041f770
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [esi + 0xef]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
jne 0x48fde7
call sub.kernel32.dll_GetLastError_1
mov edx, eax
mov eax, esi
call fcn.0048f1ac
mov eax, esi
call fcn.0048f158
cmp eax, 0x3e5
jne 0x48fde7
mov bl, 1
jmp 0x48fe10
call sub.kernel32.dll_GetLastError_1
mov edx, eax
mov eax, esi
call fcn.0048f1ac
mov byte [esi + 0xaa], 0
test bl, bl
je 0x48fe10
mov eax, dword [esi + 0xc0]
mov edx, dword [eax + 4]
mov ecx, dword [esp]
mov eax, dword [esi + 0xbc]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, esi
call fcn.00490160
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret