joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fbb9c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4fbc0d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
mov eax, dword [0x6304e0]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
cmp dword [ebp - 4], 0
je 0x4fbbf7
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.004fbb8c
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x4fa03c]
call fcn.004fcca8
mov dword [0x630548], eax
mov eax, dword [ebp - 4]
call fcn.004fb9d0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fbc14
lea eax, [ebp - 8]
call fcn.004077e0
ret

Function at 0x4fcb08
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov ebx, ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fcc6b
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
mov edx, dword [ebx]
mov eax, dword [0x4f9db4]
call fcn.0041f308
test eax, eax
jl 0x4fcb6d
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
call fcn.004fbc90
and eax, 0x7f
mov eax, dword [eax*4 + 0x6304e0]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
mov esi, eax
jmp 0x4fcbf3
mov eax, dword [ebx]
call fcn.00405afc
test eax, eax
jle 0x4fcbf3
lea edx, [ebp - 0x1c]
mov eax, dword [ebx]
call fcn.0057c164
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00405874
mov eax, dword [ebx]
call fcn.00405afc
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x3a
jne 0x4fcba8
mov eax, ebx
mov edx, 0x4fcc84
call fcn.00405b04
mov eax, dword [ebx]
call fcn.00405afc
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x20]
mov eax, dword [ebx]
call fcn.0040d218
mov eax, dword [ebp - 0x20]
call fcn.00406aec
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x24]
call fcn.004fbb8c
mov eax, dword [ebp - 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x4fcc30
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebx]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea edx, [ebp - 0x2c]
xor ecx, ecx
mov eax, 0x4fcc90
call fcn.0040db50
mov eax, ebx
mov edx, edi
call fcn.00405874
mov ecx, dword [ebp - 0x18]
mov dl, 1
mov eax, dword [0x40b084]
call fcn.00410bdc
call fcn.0040516c
mov eax, dword [ebp - 0xc]
call fcn.004fca80
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4fcc48
lea eax, [ebp - 4]
call fcn.004126f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fcc72
lea eax, [ebp - 0x24]
call fcn.004077e0
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00405844
ret
Function at 0x4fe53c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4fe6ba
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 8], 0
je 0x4fe6a4
mov eax, dword [0x63f470]
mov eax, dword [eax]
mov ax, word [eax + 0x44]
mov word [ebp - 0x16], ax
mov eax, dword [0x63f470]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.0047c384
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2b4]
call fcn.0048bc3c
xor edx, edx
push ebp
push 0x4fe69d
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
push ebp
push 0x4fe603
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x10]
call fcn.004077e0
push eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x3c9]
call fcn.004fc4c8
push eax
mov eax, dword [0x63f124]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x10]
test eax, eax
je 0x4fe5f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
call fcn.00405218
jmp 0x4fe6a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4fe649
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2b4]
xor ecx, ecx
mov edx, dword [ebp - 8]
call fcn.0048b808
mov ebx, eax
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004fe3d0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4fe623
push 0
mov edx, 0x4fe368
xor ecx, ecx
mov eax, dword [ebp - 8]
call fcn.0048b200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe6a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x2b4]
call fcn.0048bc88
mov eax, dword [0x63f470]
mov eax, dword [eax]
mov dx, word [ebp - 0x16]
call fcn.0047c384
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fe6c1
lea eax, [ebp - 0x10]
call fcn.004077e0
ret
Function at 0x503250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x503384
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x370]
mov dl, 1
mov eax, dword [0x5527f0]
call fcn.00553a70
mov esi, eax
mov dl, 2
mov eax, esi
call fcn.00483614
mov edx, 0xa
mov eax, esi
call fcn.00483634
mov dl, 1
mov eax, esi
call fcn.004835e0
lea eax, [ebp - 4]
push eax
mov edi, ebx
and edi, 0x7f
mov eax, dword [0x63f1fc]
mov eax, dword [eax + edi*4]
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
push 2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
call fcn.004fbb8c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, dword [ebp - 4]
call fcn.004fc310
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.00457604
mov eax, dword [ebp - 4]
call fcn.004fca80
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
xor ecx, ecx
xor edx, edx
call fcn.004fbcac
mov ecx, eax
mov edx, 1
mov eax, esi
call fcn.005578dc
lea eax, [ebp - 8]
call fcn.004126f4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x374]
mov eax, esi
call fcn.00555640
mov dword [esi + 0xc], edi
mov dl, 1
mov eax, esi
call fcn.00456960
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dword [esi + 0x114], eax
mov dword [esi + 0x110], 0x503488
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [eax + 0x370]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, esi
call fcn.0050305c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50338b
lea eax, [ebp - 0x10]
call fcn.004077e0
lea eax, [ebp - 0xc]
call fcn.00405820
ret

Function at 0x503394
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x370]
mov edx, 0xff00000c
call fcn.00457774
cmp dword [0x630658], 0
je 0x5033cb
mov eax, dword [0x630658]
push eax
call sub.comctl32.dll_ImageList_GetImageCount
test eax, eax
jne 0x5033f0
push 0x4000
push 0x160
lea eax, [ebp - 0x164]
push eax
push 0x20000
push 0x503484
call sub.shell32.dll_SHGetFileInfoA
mov dword [0x630658], eax
cmp dword [0x630658], 0
je 0x50345a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x374]
call fcn.004c9b9c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x374]
mov edx, dword [0x630658]
call fcn.0046719c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x374]
mov byte [eax + 0xac], 1
mov byte [eax + 0x93], 0
mov edx, 0x1fffffff
call fcn.004c9700
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x374]
call fcn.004ca1fc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x374]
mov dl, 1
call fcn.004c9ba4
push ebp
xor eax, eax
call fcn.00503250
pop ecx
push ebp
mov al, 1
call fcn.00503250
pop ecx
push ebp
mov al, 0xe
call fcn.00503250
pop ecx
push ebp
mov al, 2
call fcn.00503250
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x523c9c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x28]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], 0xffffffff
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005211e8
mov ebx, eax
lea eax, [ebp - 0x28]
xor edx, edx
call fcn.0057b590
mov esi, eax
mov eax, ebx
add eax, eax
mov edx, esi
sub edx, eax
mov dword [ebp - 0x10], edx
cmp edi, dword [ebp - 0x24]
jl 0x523ddc
cmp edi, dword [ebp - 0x1c]
jge 0x523ddc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
call fcn.005217f8
mov eax, ebx
add eax, eax
cmp esi, eax
jg 0x523d18
mov ebx, esi
sar ebx, 1
jns 0x523d18
adc ebx, 0
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 8]
jg 0x523d31
add eax, ebx
cmp eax, dword [ebp - 8]
jle 0x523d31
xor eax, eax
mov dword [ebp - 0xc], eax
jmp 0x523ddc
mov eax, dword [ebp - 0x20]
mov edx, eax
sub edx, ebx
cmp edx, dword [ebp - 8]
jg 0x523d4e
cmp eax, dword [ebp - 8]
jle 0x523d4e
mov dword [ebp - 0xc], 1
jmp 0x523ddc
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jl 0x523d5f
mov dword [ebp - 0xc], 0xffffffff
jmp 0x523ddc
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jl 0x523d7b
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jle 0x523d7b
mov dword [ebp - 0xc], 5
jmp 0x523ddc
mov eax, dword [ebp - 0x28]
add eax, ebx
cmp eax, dword [ebp - 8]
jg 0x523dab
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x18]
jge 0x523dab
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x523da2
mov dword [ebp - 0xc], 4
jmp 0x523ddc
mov dword [ebp - 0xc], 2
jmp 0x523ddc
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 8]
jg 0x523ddc
mov eax, dword [ebp - 0x20]
sub eax, ebx
cmp eax, dword [ebp - 8]
jle 0x523ddc
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x523dd5
mov dword [ebp - 0xc], 4
jmp 0x523ddc
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x523de8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov esi, edx
lea edi, [ebp - 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0xffffffff
xor ecx, ecx
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.005211e8
mov ebx, eax
lea eax, [ebp - 0x24]
xor edx, edx
call fcn.0057b5a4
mov esi, eax
mov eax, ebx
add eax, eax
mov edx, esi
sub edx, eax
mov dword [ebp - 0xc], edx
cmp edi, dword [ebp - 0x24]
jl 0x523f24
cmp edi, dword [ebp - 0x1c]
jge 0x523f24
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.005217f8
mov eax, ebx
add eax, eax
cmp esi, eax
jg 0x523e60
mov ebx, esi
sar ebx, 1
jns 0x523e60
adc ebx, 0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jg 0x523e79
add eax, ebx
cmp eax, dword [ebp + 8]
jle 0x523e79
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x523f24
mov eax, dword [ebp - 0x18]
mov edx, eax
sub edx, ebx
cmp edx, dword [ebp + 8]
jg 0x523e96
cmp eax, dword [ebp + 8]
jle 0x523e96
mov dword [ebp - 8], 1
jmp 0x523f24
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xc]
jl 0x523ea7
mov dword [ebp - 8], 0xffffffff
jmp 0x523f24
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jl 0x523ec3
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jle 0x523ec3
mov dword [ebp - 8], 5
jmp 0x523f24
mov eax, dword [ebp - 0x20]
add eax, ebx
cmp eax, dword [ebp + 8]
jg 0x523ef3
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x14]
jge 0x523ef3
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x523eea
mov dword [ebp - 8], 4
jmp 0x523f24
mov dword [ebp - 8], 2
jmp 0x523f24
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jg 0x523f24
mov eax, dword [ebp - 0x18]
sub eax, ebx
cmp eax, dword [ebp + 8]
jle 0x523f24
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x523f1d
mov dword [ebp - 8], 4
jmp 0x523f24
mov dword [ebp - 8], 3
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x55e160
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x55e204
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 1
lea eax, [ebp - 8]
lea edx, [esi + esi*2]
mov ecx, dword [ebx + 0x1e4]
mov edx, dword [ecx + edx*8 + 0x14]
call fcn.004058b8
cmp word [ebx + 0x1f2], 0
je 0x55e1b7
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebx + 0x1f4]
call dword [ebx + 0x1f0]
cmp dword [ebp - 8], 0
setne al
and al, byte [ebp - 1]
je 0x55e1ee
xor eax, eax
mov al, byte [ebx + 0x1e8]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405cfc
push eax
push 0x55e214
mov eax, dword [0x63f124]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55e20b
lea eax, [ebp - 8]
call fcn.00405820
ret
Function at 0x578ba8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc10
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x3f0], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x578c62
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405f48
mov eax, dword [0x63f4ac]
cmp dword [eax], 2
jne 0x578c17
push esi
call sub.user32.dll_GetWindowTextLengthW
mov edx, eax
inc edx
mov eax, ebx
call fcn.004064ec
mov eax, dword [ebx]
call fcn.00406184
push eax
mov eax, dword [ebx]
call fcn.00406174
push eax
push esi
call sub.user32.dll_GetWindowTextW
mov eax, dword [ebx]
call fcn.00406184
mov edx, eax
dec edx
mov eax, ebx
call fcn.004064ec
jmp 0x578c49
lea eax, [ebp - 0x3e9]
push eax
push 0x3e8
push 0xd
push esi
call sub.user32.dll_SendMessageA
lea edx, [ebp - 0x3f0]
lea eax, [ebp - 0x3e9]
call fcn.0040d638
mov edx, dword [ebp - 0x3f0]
mov eax, ebx
call fcn.004060f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578c69
lea eax, [ebp - 0x3f0]
call fcn.00405820
ret

Function at 0x57c528
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405cfc
push eax
call sub.KERNEL32.DLL_RemoveDirectoryA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x57c5b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00405cfc
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
jne 0x57c5df
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x5a522c
Capabilities:
Find taskbar

Disassembly:
push 0
push 0x5a523c
call sub.user32.dll_FindWindowA
ret
Function at 0x5c8478
Capabilities:
Allocate or change rwx memory
Find taskbar
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffa0
mov ebx, eax
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.00403fe0
lea eax, [esp + 0x28]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
call sub.user32.dll_GetDesktopWindow
test eax, eax
je 0x5c8681
push 0
push 0x5c868c
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x5c8681
push 0
push 0x5c869c
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x5c8681
push 0
push 0x5c86ac
push 0
push eax
call sub.user32.dll_FindWindowExA
test eax, eax
je 0x5c8681
push 0
push 0x5c86bc
push 0
push eax
call sub.user32.dll_FindWindowExA
mov esi, eax
test esi, esi
je 0x5c8681
push 0
push 0
push 0x418
push esi
call sub.user32.dll_SendMessageA
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jle 0x5c8681
xor eax, eax
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push esi
call sub.user32.dll_GetWindowThreadProcessId
cmp dword [esp + 8], 0
je 0x5c8681
mov eax, dword [esp + 8]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov ebp, eax
test ebp, ebp
je 0x5c8681
push 0x40
push 0x1000
push 0x1000
push 0
push ebp
call sub.KERNEL32.DLL_VirtualAllocEx
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x5c8681
or edi, 0xffffffff
cmp edi, dword [esp + 4]
jge 0x5c8669
inc edi
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x417
push esi
call sub.user32.dll_SendMessageA
test eax, eax
je 0x5c865f
lea eax, [esp + 0x14]
push eax
push 0x18
lea eax, [esp + 0x54]
push eax
mov eax, dword [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.DLL_ReadProcessMemory
test eax, eax
je 0x5c865f
test byte [esp + 0x55], 0xd
jne 0x5c865f
mov al, byte [esp + 0x54]
and al, 8
cmp al, 8
je 0x5c865f
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x64]
push eax
push ebp
call sub.KERNEL32.DLL_ReadProcessMemory
test eax, eax
je 0x5c865f
cmp dword [esp + 0x14], 0
je 0x5c865f
mov eax, dword [0x63f124]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp]
cmp eax, dword [esp + 0x10]
jne 0x5c865f
mov eax, dword [esp + 0xc]
push eax
push edi
push 0x41d
push esi
call sub.user32.dll_SendMessageA
test eax, eax
je 0x5c863c
lea eax, [esp + 0x14]
push eax
push 0x10
push ebx
mov eax, dword [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.DLL_ReadProcessMemory
cmp dword [esp + 0x14], 0
je 0x5c8669
lea eax, [esp + 0x18]
push eax
push esi
call sub.user32.dll_GetWindowRect
mov eax, ebx
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
call fcn.00408100
jmp 0x5c8669
cmp edi, dword [esp + 4]
jl 0x5c8589
push 0x8000
push 0
mov eax, dword [esp + 0x14]
push eax
push ebp
call sub.KERNEL32.DLL_VirtualFreeEx
push ebp
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x60
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5e6214
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffff8c
mov ebp, ecx
mov edi, edx
mov ebx, eax
lea esi, [esp + 4]
lea eax, [esp + 0x20]
xor ecx, ecx
mov edx, 0x44
call fcn.00403fe0
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x4c], 0x41
mov word [esp + 0x50], di
lea eax, [esp + 0x64]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push 0
push 0x20
push 0
push 0
push 0
push ebx
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x5e62e1
call sub.KERNEL32.DLL_GetCurrentThreadId
mov edx, dword [0x63f4bc]
cmp eax, dword [edx]
setne bl
test bl, bl
jne 0x5e62ad
jmp 0x5e629b
cmp dword [esi + 4], 0x12
jne 0x5e628f
mov eax, dword [esi + 8]
call fcn.00405738
push esi
call sub.user32.dll_TranslateMessage
push esi
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push esi
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x5e6281
push 1
call sub.KERNEL32.DLL_Sleep
push esp
mov eax, dword [esp + 0x68]
push eax
call sub.KERNEL32.DLL_GetExitCodeProcess
cmp dword [esp], 0x103
je 0x5e627b
mov eax, dword [esp + 0x68]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp + 0x64]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [esp]
jmp 0x5e62e6
call sub.KERNEL32.DLL_GetLastError
add esp, 0x74
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x5e68a8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
cmp dword [ebx], 0
jne 0x5e68be
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebx], eax
mov dl, 1
jmp 0x5e68e4
call sub.KERNEL32.DLL_GetTickCount
cmp eax, dword [ebx]
jae 0x5e68d5
or edx, 0xffffffff
sub edx, dword [ebx]
add edx, eax
cmp esi, edx
setb dl
jmp 0x5e68de
mov edx, eax
sub edx, dword [ebx]
cmp esi, edx
setb dl
test dl, dl
je 0x5e68e4
mov dword [ebx], eax
mov eax, edx
pop esi
pop ebx
ret
Function at 0x5e68ec
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x5e69d8
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
mov eax, edi
call fcn.00405cfc
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5e6961
push 0
push 0x8000000
push 3
push 0
push 3
push 0x80000000
lea edx, [ebp - 0xc]
mov eax, edi
call fcn.00407c14
mov eax, dword [ebp - 0xc]
call fcn.00406174
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5e69ba
test esi, esi
jne 0x5e6974
push 0
push ebx
call sub.KERNEL32.DLL_GetFileSize
mov esi, eax
test esi, esi
jbe 0x5e69aa
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.00405e88
push 0
lea eax, [ebp - 8]
push eax
push esi
mov eax, dword [ebp - 4]
call fcn.00405d54
push eax
push ebx
call sub.KERNEL32.DLL_ReadFile
cmp esi, dword [ebp - 8]
je 0x5e69b2
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00405e88
jmp 0x5e69b2
mov eax, dword [ebp - 4]
call fcn.00405820
push ebx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x5e69c2
mov eax, dword [ebp - 4]
call fcn.00405820
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e69df
lea eax, [ebp - 0xc]
call fcn.00405f48
ret

Function at 0x5e69e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x5e6b10
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 1], 0
je 0x5e6a34
push 0
push 0x80
push 4
push 0
push 3
push 4
mov eax, esi
call fcn.00405cfc
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
jmp 0x5e6a55
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00405cfc
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5e6ab7
cmp byte [ebp - 1], 0
je 0x5e6a8b
push 0
push 0x80
push 4
push 0
push 3
push 4
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00407c14
mov eax, dword [ebp - 0xc]
call fcn.00406174
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
jmp 0x5e6ab7
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.00407c14
mov eax, dword [ebp - 0x10]
call fcn.00406174
push eax
call sub.KERNEL32.DLL_CreateFileW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5e6af3
mov eax, edi
call fcn.00405afc
mov esi, eax
test esi, esi
jbe 0x5e6ae0
push 0
lea eax, [ebp - 8]
push eax
push esi
mov eax, edi
call fcn.00405cfc
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x5e6ae5
xor eax, eax
mov dword [ebp - 8], eax
push ebx
call sub.KERNEL32.DLL_CloseHandle
cmp esi, dword [ebp - 8]
sete bl
jmp 0x5e6af5
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5e6b17
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405f60
ret