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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x404bc2
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4acaa0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x404bc2
test cl, 0x48
je 0x404a59
cmp byte [eax + 5], 0xa
je 0x404a59
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404aab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x404a93
call fcn.00405337
mov dword [eax], 9
call fcn.00405340
mov dword [eax], esi
jmp 0x404aa3
cmp eax, 0x6d
je 0x404bc2
push eax
call fcn.00405349
pop ecx
or eax, 0xffffffff
jmp 0x404bc4
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x404bbd
test eax, eax
je 0x404ad2
cmp byte [ebx], 0xa
jne 0x404ad2
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x404adb
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x404bb7
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x404ba7
cmp al, 0xd
je 0x404b0d
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x404b99
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x404b27
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x404b22
add dword [ebp + 0x10], 2
jmp 0x404b7b
mov dword [ebp + 0x10], eax
jmp 0x404b95
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404b4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x404b95
cmp dword [ebp - 0xc], 0
je 0x404b95
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x404b70
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x404b7b
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x404b98
cmp ebx, dword [ebp + 0xc]
jne 0x404b80
cmp byte [ebp - 1], 0xa
jne 0x404b80
mov byte [ebx], 0xa
jmp 0x404b98
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00408a1a
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x404b99
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x404af1
jmp 0x404bb7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x404bb7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x404bc4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406268
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x4abfb4]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x406299
xor eax, eax
jmp 0x406422
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4acaa0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4062d5
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004053bc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4063b0
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4063ee
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x406339
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40632a
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x40630a
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x406379
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x406382
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4062fb
jmp 0x406384
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x40641d
cmp dword [ebp - 0x6c], edi
je 0x4063ee
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4063e3
call fcn.00405337
mov dword [eax], 9
call fcn.00405340
mov dword [eax], esi
jmp 0x406418
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4063d8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x406384
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x406384
push dword [ebp - 0x6c]
call fcn.00405349
pop ecx
jmp 0x406418
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x406406
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x406406
xor eax, eax
jmp 0x406420
call fcn.00405337
mov dword [eax], 0x1c
call fcn.00405340
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x406420
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00407a8a
add ebp, 0x3a0
leave
ret
Function at 0x4068ba
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x4068e8
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x4068ef
cmp ebx, dword [eax + 4]
jae 0x4068ef
xor eax, eax
jmp 0x406adf
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x406900
xor eax, eax
inc eax
jmp 0x406ade
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x406916
cmp ecx, edx
jae 0x406a5b
cmp dword [eax + 4], 0
je 0x40691f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x406907
cmp dword [ebp + 8], 0
je 0x406941
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x406a5b
cmp eax, esi
jae 0x406a5b
mov eax, dword [0x4ac5e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x406966
cmp dword [esi*4 + 0x4ac5e8], edi
je 0x406a5f
inc esi
cmp esi, eax
jl 0x406954
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x406adb
cmp dword [ebp - 8], 0x1000000
jne 0x406adb
test byte [ebp - 0xc], 0xcc
je 0x4069e4
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x406adb
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406adb
cmp word [eax + 0x18], 0x10b
jne 0x406adb
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x406adb
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4069e4
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4069e4
test byte [ecx + 0x27], 0x80
jne 0x406a5b
push 1
push 0x4ac628
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4068f8
mov ecx, dword [0x4ac5e0]
test ecx, ecx
mov edx, ecx
jle 0x406a18
lea eax, [ecx*4 + 0x4ac5e4]
cmp dword [eax], edi
je 0x406a18
dec edx
sub eax, 4
test edx, edx
jg 0x406a0c
test edx, edx
jne 0x406a49
push 0xf
pop ebx
cmp ecx, ebx
jg 0x406a25
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x406a3d
lea eax, [edx*4 + 0x4ac5e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x406a2b
cmp ecx, 0x10
jge 0x406a49
inc ecx
mov dword [0x4ac5e0], ecx
push 0
push 0x4ac628
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4068f8
xor eax, eax
jmp 0x406ade
test esi, esi
jle 0x4068f8
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4ac628
call ebx
test eax, eax
jne 0x4068f8
cmp dword [esi*4 + 0x4ac5e8], edi
je 0x406ab5
mov eax, dword [0x4ac5e0]
lea esi, [eax - 1]
test esi, esi
jl 0x406aa3
cmp dword [esi*4 + 0x4ac5e8], edi
je 0x406a9f
dec esi
jns 0x406a93
test esi, esi
jge 0x406ab3
cmp eax, 0x10
jge 0x406aae
inc eax
mov dword [0x4ac5e0], eax
lea esi, [eax - 1]
jmp 0x406ab5
je 0x406acd
xor ecx, ecx
test esi, esi
jl 0x406acd
lea eax, [ecx*4 + 0x4ac5e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x406abb
push 0
push 0x4ac628
call ebx
jmp 0x4068f8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406ba7
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40be08
call fcn.00403404
push 8
call fcn.00407beb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4ac670], esi
jne 0x406bdb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x4ac66c], esi
mov al, byte [ebp + 0x10]
mov byte [0x4ac668], al
cmp dword [ebp + 0xc], edi
jne 0x406c25
cmp dword [0x4aca7c], edi
je 0x406c15
mov eax, dword [0x4aca78]
sub eax, 4
mov dword [0x4aca78], eax
cmp eax, dword [0x4aca7c]
jb 0x406c15
mov eax, dword [eax]
cmp eax, edi
je 0x406bf6
call eax
jmp 0x406bf6
push 0x40e028
mov eax, 0x40e020
call fcn.00406b25
pop ecx
push 0x40e030
mov eax, 0x40e02c
call fcn.00406b25
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x406c56
cmp dword [ebp + 0x10], edi
jne 0x406c64
mov dword [0x4ac670], esi
push dword [ebp + 8]
call fcn.00406ae3
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x406c63
push 8
call fcn.00407b36
pop ecx
ret
call fcn.0040343f
ret

Function at 0x406caa
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4abfb4]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4abe88]
je 0x406cdf
inc eax
cmp eax, 0x13
jb 0x406cd0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4abe88]
jne 0x406e05
mov eax, dword [0x4ac5b0]
cmp eax, 1
je 0x406ddd
cmp eax, edx
jne 0x406d0f
cmp dword [0x4ab7bc], 1
je 0x406ddd
cmp ecx, 0xfc
je 0x406e05
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406d45
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00409440
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00408f40
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x406d79
mov eax, edi
push eax
call fcn.00408f40
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40c200
push edi
call fcn.00409590
add esp, 0x10
push edi
call fcn.00408f40
push dword [esi + 0x4abe8c]
mov ebx, eax
call fcn.00408f40
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407510
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00409440
push edi
push ebx
call fcn.00409450
push 0x40c1e0
push ebx
call fcn.00409450
push dword [esi + 0x4abe8c]
push ebx
call fcn.00409450
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00409982
add esp, 0x2c
jmp 0x406e05
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x4abe8c]
push dword [esi]
call fcn.00408f40
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.00407a8a
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x4077bc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407510
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407857
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4ac630]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x407857
cmp eax, 1
je 0x407878
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x407857
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x407824
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x407853
xor eax, eax
inc eax
jmp 0x407897
cmp edi, eax
jae 0x40785b
xor eax, eax
jmp 0x407897
cmp eax, esi
jae 0x407862
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4ac630]
jmp 0x40787b
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409982
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4ac95c], ebx
push esi
push edi
jne 0x409a02
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409a3d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40c99c
push edi
call esi
test eax, eax
mov dword [0x4ac95c], eax
je 0x409a3d
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4ac960], eax
call esi
cmp dword [0x4ac630], 2
mov dword [0x4ac964], eax
jne 0x409a02
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4ac96c], eax
je 0x409a02
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4ac968], eax
mov eax, dword [0x4ac968]
test eax, eax
je 0x409a47
call eax
test eax, eax
je 0x409a2e
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4ac96c]
test eax, eax
je 0x409a2e
test byte [ebp - 8], 1
jne 0x409a47
cmp dword [0x4ac63c], 4
jb 0x409a41
or byte [ebp + 0x12], 0x20
jmp 0x409a66
xor eax, eax
jmp 0x409a76
or byte [ebp + 0x12], 4
jmp 0x409a66
mov eax, dword [0x4ac960]
test eax, eax
je 0x409a66
call eax
mov ebx, eax
test ebx, ebx
je 0x409a66
mov eax, dword [0x4ac964]
test eax, eax
je 0x409a66
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4ac95c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a03d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00407510
mov eax, dword [0x4abfb4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00408a1a
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x40a170
push 2
push esi
push dword [ebp + 8]
call fcn.00408a1a
add esp, 0xc
cmp eax, ebx
je 0x40a170
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40a110
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00407550
push 0x8000
push dword [ebp + 8]
call fcn.0040a3e4
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x40a0c6
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00406268
add esp, 0xc
cmp eax, 0xffffffff
je 0x40a0e6
sub edi, eax
test edi, edi
jg 0x40a0be
jmp 0x40a0fe
call fcn.00405340
cmp dword [eax], 5
jne 0x40a0fb
call fcn.00405337
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0040a3e4
pop ecx
pop ecx
jmp 0x40a158
jge 0x40a158
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00408a1a
push dword [ebp + 8]
call fcn.004050b8
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x40a158
call fcn.00405337
mov dword [eax], 0xd
call fcn.00405340
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00408a1a
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40a172
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00407a8a
leave
ret
Function at 0x452804
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov edi, dword [edi*4 + reloc.MSVCRT.dll_malloc]
and edi, ecx
mov edi, dword [edi*4 + reloc.MSVCRT.dll_malloc]
jmp 0x452605
shr edi, 0x18
pushal
pop dword [esp + 8]
push dword [esp + 0x12]
jmp 0x4525bf
lea esp, [esp + 0x44]
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_malloc]
jmp 0x45264e
and ebx, ecx
jmp 0x4525ee
mov edi, edx
sub esp, 0x10
push dword [esp + 8]
mov dword [esp + 0xd], ecx
dec esp
and al, 0xd
stc
jmp 0x4525e0
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_malloc]
clc
pushal
sub esp, 4
sub esp, 2
jmp 0x45269e
movzx ebx, byte [esi + 2]
jmp 0x45262c
mov edx, dword [esi]
neg edi
bsf di, ax
neg di
inc di
jmp 0x45261c
mov bx, word [esp]
mov bl, 0xc2
bt ebx, edi
movzx ebx, byte [esi + 5]
push esp
jmp 0x452688
pushal
sub esp, 2
call fcn.004527c2
cld
imul edi, ecx, 0x1edf6b98
mov bl, byte [eax]
jg 0x452626
aas
stosd dword es:[edi], eax
lea esp, [esp + 2]
and ebx, ecx
lea esp, [esp + 0x24]
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_malloc]
jmp 0x452674
lea esp, [esp + 4]
add esi, 0x10
mov edi, dword [esp]
mov dl, 0x4c
sub esp, 0x10
xchg word [esp + 5], di
jmp 0x452665
mov dx, word [esp]
mov ebx, dword [ebx*4 + reloc.MSVCRT.dll_malloc]
jmp 0x4526c1

Function at 0x45289e
Capabilities:
Encrypt data using aes

Disassembly:
pop word [esp]
mov word [esp], sp
lea esp, [esp + 2]
jmp 0x4528e3
and ebx, ecx
pushal
mov dword [esp + 0x1b], eax
add esp, 0x15
lea esp, [esp + 3]
jmp 0x4528c7

Function at 0x452a64
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
popal
lea ecx, [ecx*4]
lea ecx, reloc.MSVCRT.dll_malloc
mov edi, dword [ecx]
pop ecx
push ecx
pushal
not ebp
mov dword [esp + 0x18], edi
jmp 0x4529f6
and edi, ecx
clc
stc
jmp 0x452a1f
jmp 0x452a4c

Function at 0x452c94
Capabilities:
Encrypt data using aes

Disassembly:
stc
push esp
pushal
pop word [esp + 0x15]
lea esp, [esp + 2]
jmp 0x452c6c
lea esp, [esp + 1]
and edx, ecx
pushal
stc
mov dword [esp + 7], esi
jmp 0x452cc2
push word [esp + 1]
mov word [esp], bx
pushal
lea esp, [esp + 2]
and ebx, ecx
jmp 0x452c31
lea esp, [esp + 0x44]
xor edi, dword [ebx*4 + reloc.MSVCRT.dll_malloc]
clc
sub esp, 4
lea esp, [esp + 3]
add esp, 0
jmp 0x452c3f
jmp 0x452c5a
mov dword [esp + 0x19], ebp
pop dword [esp + 6]
lea esp, [esp + 0x1c]
dec dword [ebp - 4]
push esp
jmp 0x452cac
mov dword [esi + 0xc], edi
push esp
pop word [esp]
push esp
lea esp, [esp + 2]
jmp 0x452d20
lea esp, [esp + 0x19]
lea esp, [esp + 3]
lea esp, [esp + 4]
xor edi, dword [edx*4 + reloc.MSVCRT.dll_malloc]
pushal
jmp 0x452c96
lea esp, [esp + 8]
jne 0x425fe3
je 0x425ffa
mov al, 0x3b
stosd dword es:[edi], eax
into
cmp eax, 0xb21c9688
aad 0x24
xchg ecx, eax
jmp 0x7e07d849
Function at 0x5071f3
Capabilities:
Execute anti-debugging instructions

Disassembly:
bsr bp, cx
xchg si, bx
rol si, cl
xchg ch, dl
mov al, ah
jmp 0x507254
pushal
jmp 0x5071dc
xchg word [esp + 0x20], si
add esp, 0x21
mov byte [esp], bh
xchg cx, dx
xchg ah, bl
mov cl, ch
jmp 0x507281
mov ebp, 0x64e0d77a
mov dword [esp + 0x1a], ecx
xchg bx, ax
inc cx
mov byte [esp + 0x21], dh
and cl, bh
jmp 0x50723c
mov eax, ebp
neg edi
mov ah, byte [esp + 1]
rdtsc
call fcn.00507337
ret
mov ax, bx
xchg word [esp + 1], cx
rdtsc
mov ecx, ebp
pop dx
mov edx, 0x638ce8c2
jmp 0x50726a

Function at 0x507532
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor dl, ch
jmp 0x50753a
rdtsc
lea esp, [esp + 1]
xchg ecx, eax
mov bx, 0xfa9d
xchg ebx, ecx
not bh
jmp 0x507588
btr eax, esp
mov ecx, 0x8b4c26d6
rdtsc
add esp, 3
mov esi, 0x66c71ac8
mov ch, byte [esp]
jmp 0x50756a

Function at 0x50796e
Capabilities:
Execute anti-debugging instructions

Disassembly:
rdtsc
mov cl, ch
add bp, 0xc8be
rcr edi, 0x1d
mov word [esp], bx
sub esp, 0xa
jmp 0x507904
mov word [esp], sp
add bp, 0x1c9e
xchg ch, dl
sub ebp, eax
rdtsc
cpuid
jmp 0x5078b7
lea ebp, [ebx*4]
pop word [esp + 1]
neg bh
inc bp
setno ah
xchg dword [esp], ebx
jmp 0x5078d2
mov dword [esp + 1], esi
mov ax, 0x7ced
pop si
mov dword [esp + 5], ecx
xchg dword [esp + 6], ebp
ror bh, 3
jmp 0x507943
shr bh, 3
mov cx, word [esp + 1]
sub esp, 0x12
push esp
add esp, 0xe
add esp, 9
jmp 0x5078ec
xchg byte [esp + 1], dl
shl cx, cl
setns ch
sub bl, ah
mov bx, sp
mov edx, eax
jmp 0x507a17
bswap esi
push word [esp + 4]
jmp 0x50792f
xor edi, esi
lea edi, [edi*4]
xchg bh, cl
rcr ah, 1
mov ch, byte [esp]
jmp 0x5079f5
add esp, 1
mov si, word [esp]
mov edi, dword [esp]
lea edx, [edx + ebp]
rcr dh, 7
xchg byte [esp], bl
jmp 0x507977
not dx
pop word [esp + 1]
cmc
setne dh
setno bh
pop edi
jmp 0x50798e
pop dword [esp + 0x10]
setge ch
not ch
mov al, 0xae
cpuid
mov dword [esp + 9], ecx
jmp 0x507a49
bsr dx, bp
rdtsc
sub esp, 0x1c
mov byte [esp + 9], dh
pop ebx
cpuid
jmp 0x5079c4
rdtsc
stc
mov edi, ecx
cpuid
lea esi, [eax - 0x49]
lea esp, [esp]
jmp 0x5079dc
pop dword [esp + 2]
btc edi, ebx
mov ah, byte [esp + 1]
lea ebx, [esi + 0x2d]
mov word [esp + 2], bx
mov ax, di
jmp 0x5079b2
push dword [esp + 0xb]
bswap ebp
mov word [esp + 0xb], dx
inc dx
lea ebp, reloc.MSVCRT.dll_malloc
jmp 0x507b36
pop eax
xchg ch, dl
mov bx, di
lea ecx, [edx*4]
rdtsc
mov bh, byte [esp + 0xd]
jmp 0x507a2f
xchg byte [esp + 8], dl
lea edi, [ecx + edi]
push dword [esp + 8]
setle ch
mov al, ah
mov cl, 0x32
jmp 0x507a80
bsr cx, bp
mov bp, 0xfca5
push edx
add esp, 0xe
mov di, 0xb26f
xchg ah, bl
jmp 0x507a97

Function at 0x507ccc
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp], edi
not ch
push esp
mov ebp, eax
inc cl
xchg word [esp + 4], cx
jmp 0x507d52
not ax
mov al, ah
xchg edx, ebp
jmp 0x507cb5
sub esp, 0x1e
mov dx, 0x37f
popal
shr edi, 7
push word [esp + 2]
xchg dword [esp], edi
jmp 0x507cf4
pop word [esp]
neg dh
mov edi, ebp
bswap ebx
pop bx
bswap esi
jmp 0x507d0f