joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
push edi
push esi
mov eax, dword fs:[0x30]
pop esi
pop edi
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x10], eax
jmp 0x401e36
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x18], 0
je 0x401e5d
cmp dword [ebp - 0xc], 0
jne 0x401e5d
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x18]
push eax
call fcn.00401e80
add esp, 8
mov dword [ebp - 0xc], eax
jmp 0x401e2e
mov eax, dword [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401e80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x3c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401e70
add esp, 8
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 0x78
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [edx]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x401ec7
xor eax, eax
jmp 0x401f7c
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401e70
add esp, 8
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0xc], 0
jbe 0x401f79
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + edx*4 - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401e70
add esp, 8
mov dword [ebp - 0x18], eax
push 0x37
mov eax, dword [ebp - 0x18]
push eax
push 0x14
call fcn.00401fa0
add esp, 0xc
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [ebp + 0xc]
jne 0x401f68
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax + edx*2 - 2]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401e70
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x401f7c
mov edx, dword [ebp - 0xc]
sub edx, 1
mov dword [ebp - 0xc], edx
je 0x401f79
cmp dword [ebp - 0x10], 0
je 0x401f0d
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40241a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b110]
jne 0x402424
repz ret
jmp fcn.004028e9
Function at 0x4049b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00403897
and dword [ebp - 4], 0
cmp dword [0x40c690], 0
mov ebx, eax
jne 0x404a64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404b15
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404b15
push eax
call fcn.00403825
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40c690], eax
call esi
push eax
call fcn.00403825
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40c694], eax
call esi
push eax
call fcn.00403825
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40c698], eax
call esi
push eax
call fcn.00403825
pop ecx
mov dword [0x40c6a0], eax
test eax, eax
je 0x404a64
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403825
pop ecx
mov dword [0x40c69c], eax
mov eax, dword [0x40c69c]
cmp eax, ebx
je 0x404abc
cmp dword [0x40c6a0], ebx
je 0x404abc
push eax
call fcn.004038a0
push dword [0x40c6a0]
mov esi, eax
call fcn.004038a0
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404abc
test edi, edi
je 0x404abc
call esi
test eax, eax
je 0x404ab3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404ab3
test byte [ebp - 0xc], 1
jne 0x404abc
or dword [ebp + 0x10], 0x200000
jmp 0x404af5
mov eax, dword [0x40c694]
cmp eax, ebx
je 0x404af5
push eax
call fcn.004038a0
pop ecx
test eax, eax
je 0x404af5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404af5
mov eax, dword [0x40c698]
cmp eax, ebx
je 0x404af5
push eax
call fcn.004038a0
pop ecx
test eax, eax
je 0x404af5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40c690]
call fcn.004038a0
pop ecx
test eax, eax
je 0x404b15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404b17
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x495cc2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5858d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x495d0d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00496184
test al, al
jne 0x495d07
sub edx, 2
cmp edx, edi
jne 0x495ced
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x495d2f
lea eax, [edi + 2]
cmp edx, eax
je 0x495d2f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004958bb
add esp, 0x10
jmp 0x495e29
push esi
lea ecx, [ebp - 0x255]
call fcn.00496184
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x495d72
push dword [ebp - 0x25c]
jmp 0x495d1f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x495daf
cmp word [ebp - 0x226], 0
je 0x495dd0
cmp word [ebp - 0x226], ax
jne 0x495daf
cmp word [ebp - 0x224], 0
je 0x495dd0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004958bb
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x495e1c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x495d89
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x495e04
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x495e29
push 0x4952a3
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405754
add esp, 0x10
jmp 0x495df9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a18d8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ded
mov eax, dword [0x5858d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004060f0
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a191a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a1a76
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406258
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x589530]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403355
mov ecx, dword [esi*4 + 0x589530]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a1a6f
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1a6f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1a6f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403355
add esp, 0x14
test edx, edx
jl 0x4a1a6f
jg 0x4a19e5
test eax, eax
jb 0x4a1a6f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1a6f
jl 0x4a19ff
cmp dword [ebp - 0x1008], eax
ja 0x4a1a6f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a1a1d
test ebx, ebx
je 0x4a1a56
cmp ecx, edi
jae 0x4a1a56
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a1a37
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a1a43
cmp byte [ecx + 1], 0xa
jne 0x4a1a43
inc ecx
jmp 0x4a1a43
movzx eax, al
movsx eax, byte [eax + 0x586210]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a1a1d
cmp edx, ebx
jne 0x4a1a1d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1a74
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040312a
leave
ret
Function at 0x4a21b5
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 + 0x589530]
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 0x4a21f5
cmp byte [ebx], 0xa
jne 0x4a21f5
or byte [eax + edi + 0x28], 4
jmp 0x4a21fa
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a22f8
mov al, byte [edx]
cmp al, 0x1a
je 0x4a22da
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a2229
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a224e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a2258
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 0x4a220b
jmp 0x4a22f8
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 0x4a22d5
cmp dword [ebp - 0xc], 0
je 0x4a22d5
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x589530]
test byte [eax + edi + 0x28], 0x48
je 0x4a22af
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a229a
mov byte [esi], dl
jmp 0x4a22ab
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x589530]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a22f8
cmp byte [ebp - 1], 0xa
jne 0x4a22be
cmp esi, ebx
jne 0x4a22be
mov byte [esi], 0xa
jmp 0x4a22f7
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a22f8
mov byte [esi], 0xd
jmp 0x4a22f7
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x589530]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a22f4
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a22f8
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a2354
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 + 0x589530]
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 0x4a2397
cmp word [esi], dx
jne 0x4a2397
or byte [edi + eax + 0x28], 4
jmp 0x4a239c
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 0x4a24ef
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 0x4a24cf
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a23de
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2414
cmp eax, edx
jae 0x4a2420
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 0x4a23b6
jmp 0x4a24ef
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 0x4a24cb
cmp dword [ebp - 0x14], 0
je 0x4a24cb
mov eax, dword [ebx*4 + 0x589530]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a24a3
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a246c
mov word [esi], cx
jmp 0x4a249f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x589530]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x589530]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x589530]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a24ef
pop ebx
cmp word [ebp - 4], bx
jne 0x4a24b4
cmp esi, dword [ebp + 0xc]
jne 0x4a24b4
mov word [esi], bx
jmp 0x4a24ec
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401983
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a24ef
push 0xd
jmp 0x4a24e8
mov ecx, dword [ebx*4 + 0x589530]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a24e6
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a24ef
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 0x406320
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x47b26b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x40422c
call fcn.0040750b
push 4
mov dword [esp + 0x18], 0
call fcn.004084f8
mov edi, eax
add esp, 4
test edi, edi
je 0x406394
push ebx
call fcn.00407306
mov dword [edi], eax
call fcn.004070c5
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.004074cc
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406388
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.004074f4
pop ebx
jmp 0x406396
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x4090cb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47e354]
jne 0x4090d5
repz ret
jmp fcn.0040d36c
Function at 0x411682
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47e354]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b8df
and dword [ebp - 0x14], 0
cmp dword [0x483aa0], 0
mov dword [ebp - 0x18], eax
jne 0x411735
push 0x403e78
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4117dd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403e6c
push ebx
call edi
test eax, eax
je 0x4117dd
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403e5c
push ebx
mov dword [0x483aa0], eax
call edi
push eax
call esi
push 0x403e48
push ebx
mov dword [0x483aa4], eax
call edi
push eax
call esi
push 0x403e2c
push ebx
mov dword [0x483aa8], eax
call edi
push eax
call esi
mov dword [0x483ab0], eax
test eax, eax
je 0x411735
push 0x403e14
push ebx
call edi
push eax
call esi
mov dword [0x483aac], eax
mov eax, dword [0x483aac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41178e
cmp dword [0x483ab0], ecx
je 0x41178e
push eax
call esi
push dword [0x483ab0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41178e
test ebx, ebx
je 0x41178e
call edi
test eax, eax
je 0x411785
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411785
test byte [ebp - 8], 1
jne 0x41178e
or dword [ebp + 0x10], 0x200000
jmp 0x4117c1
mov eax, dword [0x483aa4]
cmp eax, dword [ebp - 0x18]
je 0x4117c1
push eax
call esi
test eax, eax
je 0x4117c1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4117c1
mov eax, dword [0x483aa8]
cmp eax, dword [ebp - 0x18]
je 0x4117c1
push eax
call esi
test eax, eax
je 0x4117c1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x483aa0]
call esi
test eax, eax
je 0x4117dd
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4117df
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004090cb
leave
ret
Function at 0x475f30
Capabilities:
Accept command line arguments
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x807804]
sub esp, 0x57c
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x80776c]
cmp eax, ebx
jbe 0x47612e
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], eax
jmp 0x475f66
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x807804], 0x1c
jne 0x475f7d
lea eax, [esp + 0x40]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputW]
mov ecx, dword [edi + 4]
mov edx, dword [str._I_5]
mov eax, dword [0x47f2d4]
mov esi, dword [edi]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x47f2d8]
mov dword [esp + 0x28], edx
mov edx, dword [0x47f2dc]
mov edi, 0xc6ef3720
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov ebp, 0x20
jmp 0x475fc2
xor ebx, ebx
mov ecx, esi
shl ecx, 4
add ecx, dword [esp + 0x30]
mov eax, esi
shr eax, 5
add eax, dword [esp + 0x2c]
lea edx, [edi + esi]
xor ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov dword [0x807770], ebx
mov eax, dword [esp + 0x18]
add dword [0x807770], eax
mov eax, dword [0x807770]
mov dword [esp + 0x24], eax
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, eax
shl ecx, 4
add ecx, dword [esp + 0x28]
cmp dword [0x807804], 0x1be
mov dword [esp + 0x10], ecx
lea ebx, [edi + eax]
jne 0x476097
push 0
lea edx, [esp + 0x18c]
push edx
push 0
push 0x403f04
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x44]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
xor eax, eax
lea ecx, [esp + 0x38]
push ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
call dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
shr eax, 5
add eax, dword [esp + 0x34]
xor ecx, ebx
mov dword [0x807778], 0xff6b3619
mov dword [0x80777c], 0xffffffff
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
sub esi, dword [esp + 0x10]
add edi, 0x61c88647
dec ebp
jne 0x475fc0
cmp dword [0x807804], 0x8d4
jne 0x4760e7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], edx
cmp dword [0x807804], 0x17
jne 0x47611d
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressW]
lea eax, [esp + 0x48]
push eax
push 0x403f08
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add edi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x1c], edi
jne 0x475f60
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x57c
ret
Function at 0x4015f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x5c
cmp ecx, 0x3e7
jg 0x401640
test ecx, ecx
js 0x4016f0
mov eax, 0x51eb851f
imul ecx
mov eax, ecx
sar eax, 0x1f
sar edx, 5
sub edx, eax
imul eax, edx, 0x64
mov edi, edx
sub ecx, eax
mov ebp, ecx
mov eax, 0x66666667
imul ebp
sar ebp, 0x1f
sar edx, 2
sub edx, ebp
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
jmp 0x40164f
mov edi, 0xa
mov edx, 0xa
mov ecx, 0xa
mov eax, dword [0x408038]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x4c], ecx
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.gdi32.dll_SelectObject]
mov dword [esp + 0x3c], eax
call eax
sub esp, 8
mov ebp, dword [esp + 0x70]
mov dword [esp + 0x38], eax
lea edi, [esp + 0x44]
mov dword [esp + 0x20], 0xcc0020
add edi, 4
imul eax, dword [edi - 4], 0x17
mov dword [esp + 4], ebp
add ebp, 0xc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x10], 0x17
mov dword [esp + 0xc], 0xc
mov dword [esp], esi
mov dword [esp + 8], eax
call dword [sym.imp.gdi32.dll_BitBlt]
sub esp, 0x24
lea eax, [esp + 0x50]
cmp eax, edi
jne 0x401681
mov eax, dword [esp + 0x38]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
call eax
sub esp, 8
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
neg ecx
mov edi, 0xa
mov ebp, ecx
jmp 0x401625