joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44ff3b
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push edi
mov edi, 0x105
jmp 0x44ff8d
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x44ff7f
push dword [ebp - 4]
call fcn.0044ff3b
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push edi
lea eax, [ebp - 0x10c]
push eax
push 0
push ebx
call esi
test eax, eax
je 0x44ff57
pop edi
pop esi
pop ebx
leave
ret

Function at 0x44ffa3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
push edi
push 0
call fcn.0044fa61
pop ecx
call fcn.0044b1f2
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTY
mov edi, 0x80000001
push edi
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x44ffeb
push dword [ebp - 4]
call fcn.0044ff3b
pop ecx
push dword [ebp - 4]
call ebx
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTatham
push edi
call esi
test eax, eax
jne 0x450051
push 0x45d518
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x110]
push eax
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push dword [ebp - 4]
mov dword [ebp - 8], eax
call ebx
cmp dword [ebp - 8], 0
je 0x450051
lea eax, [ebp - 4]
push eax
push str.Software
push edi
call esi
test eax, eax
jne 0x450051
push str.SimonTatham
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push dword [ebp - 4]
call ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x450b16
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
cmp dword [ebp + 0x10], 0
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, 0x104
je 0x450b49
lea eax, [ebp - 0x104]
push eax
push esi
call edi
test eax, eax
je 0x450b45
cmp eax, esi
jb 0x450b49
and dword [ebp + 0x10], 0
mov ebx, dword [ebp + 8]
test ebx, ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x4c
je 0x450b62
cmp byte [ebx], 0
je 0x450b62
mov ecx, ebx
jmp 0x450b64
xor ecx, ecx
cmp dword [ebp + 0x14], 0
mov dword [eax + 0x2c], ecx
push eax
je 0x450b76
call dword [sym.imp.comdlg32.dll_GetSaveFileNameA]
jmp 0x450b7c
call dword [sym.imp.comdlg32.dll_GetOpenFileNameA]
test ebx, ebx
mov dword [ebp + 0xc], eax
je 0x450b92
push ebx
push esi
call edi
test eax, eax
je 0x450b8f
cmp eax, esi
jb 0x450b92
mov byte [ebx], 0
cmp dword [ebp + 0x10], 0
pop edi
pop esi
pop ebx
je 0x450ba8
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [ebp + 0xc]
leave
ret
Function at 0x454e39
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x47f18c], esi
push edi
jne 0x454e59
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x47f188], esi
mov byte [0x47f184], al
jne 0x454ebf
mov ecx, dword [0x47f92c]
test ecx, ecx
je 0x454ea0
mov eax, dword [0x47f928]
sub eax, 4
cmp eax, ecx
jmp 0x454e99
mov eax, dword [eax]
test eax, eax
je 0x454e8b
call eax
mov eax, dword [0x47f928]
sub eax, 4
cmp eax, dword [0x47f92c]
mov dword [0x47f928], eax
jae 0x454e83
mov eax, 0x47b020
mov esi, 0x47b028
cmp eax, esi
mov edi, eax
jae 0x454ebf
mov eax, dword [edi]
test eax, eax
je 0x454eb8
call eax
add edi, 4
cmp edi, esi
jb 0x454eb0
mov eax, 0x47b02c
mov esi, 0x47b030
cmp eax, esi
mov edi, eax
jae 0x454ede
mov eax, dword [edi]
test eax, eax
je 0x454ed7
call eax
add edi, 4
cmp edi, esi
jb 0x454ecf
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x454ef8
push dword [ebp + 8]
mov dword [0x47f18c], 1
call fcn.00454d9f
pop ebp
ret

Function at 0x4558f5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x47f1b0], ebx
push esi
push edi
jne 0x455975
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4559b0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x47816c
push edi
call esi
test eax, eax
mov dword [0x47f1b0], eax
je 0x4559b0
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x47f1b4], eax
call esi
cmp dword [0x47f14c], 2
mov dword [0x47f1b8], eax
jne 0x455975
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x47f1c0], eax
je 0x455975
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x47f1bc], eax
mov eax, dword [0x47f1bc]
test eax, eax
je 0x4559ba
call eax
test eax, eax
je 0x4559a1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x47f1c0]
test eax, eax
je 0x4559a1
test byte [ebp - 8], 1
jne 0x4559ba
cmp dword [0x47f158], 4
jb 0x4559b4
or byte [ebp + 0x12], 0x20
jmp 0x4559d9
xor eax, eax
jmp 0x4559e9
or byte [ebp + 0x12], 4
jmp 0x4559d9
mov eax, dword [0x47f1b4]
test eax, eax
je 0x4559d9
call eax
mov ebx, eax
test ebx, ebx
je 0x4559d9
mov eax, dword [0x47f1b8]
test eax, eax
je 0x4559d9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x47f1b0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x456c1f
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x47f804]
mov eax, dword [0x47bc20]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x456de5
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x47f820]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x456de5
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x456c89
xor eax, eax
jmp 0x456df9
test al, 0x20
je 0x456c9a
push 2
push edi
push edi
push ecx
call fcn.0045b9cc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x456d6f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x456db6
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x456cfc
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x456ced
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x456ccf
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x456d3c
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x456d48
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x456cc3
jmp 0x456d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x456de0
cmp dword [ebp + 0x3a4], edi
je 0x456db6
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x456da8
mov dword [0x47f144], eax
jmp 0x456dec
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x456d9a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x456d4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x456d4a
push dword [ebp + 0x3a4]
call fcn.0045a0dd
pop ecx
jmp 0x456df6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x456dce
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x456c82
mov dword [0x47f140], 0x1c
mov dword [0x47f144], edi
jmp 0x456df6
sub eax, dword [ebp - 0x7c]
jmp 0x456df9
and dword [0x47f144], 0
mov dword [0x47f140], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.00455bc6
add ebp, 0x39c
leave
ret
Function at 0x45711e
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.00454bc0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4571b9
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 [0x47f14c]
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 0x4571b9
cmp eax, 1
je 0x4571da
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 0x4571b9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x457186
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4571b5
xor eax, eax
inc eax
jmp 0x4571f9
cmp edi, eax
jae 0x4571bd
xor eax, eax
jmp 0x4571f9
cmp eax, esi
jae 0x4571c4
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 [0x47f14c]
jmp 0x4571dd
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 0x4594af
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x47bc20]
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 + 0x47bd10]
je 0x4594e4
inc eax
cmp eax, 0x13
jb 0x4594d5
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x47bd10]
jne 0x45960a
mov eax, dword [0x47f198]
cmp eax, 1
je 0x4595e2
cmp eax, edx
jne 0x459514
cmp dword [0x47bc14], 1
je 0x4595e2
cmp ecx, 0xfc
je 0x45960a
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 0x45954a
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00453eb0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004521e0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45957e
mov eax, edi
push eax
call fcn.004521e0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x477968
push edi
call fcn.00454c70
add esp, 0x10
push edi
call fcn.004521e0
push dword [esi + 0x47bd14]
mov ebx, eax
call fcn.004521e0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00454bc0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00453eb0
push edi
push ebx
call fcn.00453ec0
push 0x477964
push ebx
call fcn.00453ec0
push dword [esi + 0x47bd14]
push ebx
call fcn.00453ec0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004558f5
add esp, 0x2c
jmp 0x45960a
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x47bd14]
push dword [esi]
call fcn.004521e0
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.00455bc6
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x45965f
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x47f804]
push edi
jae 0x459834
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x47f820]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x459834
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x45970a
test dl, 2
jne 0x45970a
test dl, 0x48
je 0x4596d4
cmp byte [eax + 5], 0xa
je 0x4596d4
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45971d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x459705
mov dword [0x47f144], ecx
jmp 0x45983b
cmp eax, 0x6d
jne 0x459711
xor eax, eax
jmp 0x459848
push eax
call fcn.0045a0dd
pop ecx
jmp 0x459845
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x45982f
test eax, eax
je 0x459744
cmp byte [ebx], 0xa
jne 0x459744
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x45974d
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x459829
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x459819
cmp al, 0xd
je 0x45977f
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x45980b
dec ecx
cmp dword [ebp - 8], ecx
jae 0x459799
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x459794
add dword [ebp - 8], 2
jmp 0x4597ed
mov dword [ebp - 8], eax
jmp 0x459807
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x4597c1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x459807
cmp dword [ebp - 0x10], 0
je 0x459807
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4597e2
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4597ed
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x45980a
cmp ebx, dword [ebp + 0xc]
jne 0x4597f2
cmp byte [ebp - 1], 0xa
jne 0x4597f2
mov byte [ebx], 0xa
jmp 0x45980a
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0045b391
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x45980b
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x459763
jmp 0x459829
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x459829
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x459848
and dword [0x47f144], 0
mov dword [0x47f140], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45bb5a
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 0x45bb88
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 0x45bb8f
cmp ebx, dword [eax + 4]
jae 0x45bb8f
xor eax, eax
jmp 0x45bd7f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x45bba0
xor eax, eax
inc eax
jmp 0x45bd7e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x45bbb6
cmp ecx, edx
jae 0x45bcfb
cmp dword [eax + 4], 0
je 0x45bbbf
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x45bba7
cmp dword [ebp + 8], 0
je 0x45bbe1
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x45bcfb
cmp eax, esi
jae 0x45bcfb
mov eax, dword [0x47f438]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x45bc06
cmp dword [esi*4 + 0x47f440], edi
je 0x45bcff
inc esi
cmp esi, eax
jl 0x45bbf4
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x45bd7b
cmp dword [ebp - 8], 0x1000000
jne 0x45bd7b
test byte [ebp - 0xc], 0xcc
je 0x45bc84
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x45bd7b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x45bd7b
cmp word [eax + 0x18], 0x10b
jne 0x45bd7b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x45bd7b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x45bc84
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x45bc84
test byte [ecx + 0x27], 0x80
jne 0x45bcfb
push 1
push 0x47f480
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x45bb98
mov ecx, dword [0x47f438]
test ecx, ecx
mov edx, ecx
jle 0x45bcb8
lea eax, [ecx*4 + 0x47f43c]
cmp dword [eax], edi
je 0x45bcb8
dec edx
sub eax, 4
test edx, edx
jg 0x45bcac
test edx, edx
jne 0x45bce9
push 0xf
pop ebx
cmp ecx, ebx
jg 0x45bcc5
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x45bcdd
lea eax, [edx*4 + 0x47f440]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x45bccb
cmp ecx, 0x10
jge 0x45bce9
inc ecx
mov dword [0x47f438], ecx
push 0
push 0x47f480
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x45bb98
xor eax, eax
jmp 0x45bd7e
test esi, esi
jle 0x45bb98
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x47f480
call ebx
test eax, eax
jne 0x45bb98
cmp dword [esi*4 + 0x47f440], edi
je 0x45bd55
mov eax, dword [0x47f438]
lea esi, [eax - 1]
test esi, esi
jl 0x45bd43
cmp dword [esi*4 + 0x47f440], edi
je 0x45bd3f
dec esi
jns 0x45bd33
test esi, esi
jge 0x45bd53
cmp eax, 0x10
jge 0x45bd4e
inc eax
mov dword [0x47f438], eax
lea esi, [eax - 1]
jmp 0x45bd55
je 0x45bd6d
xor ecx, ecx
test esi, esi
jl 0x45bd6d
lea eax, [ecx*4 + 0x47f440]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x45bd5b
push 0
push 0x47f480
call ebx
jmp 0x45bb98
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45c2fa
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x45c313
or eax, 0xffffffff
jmp 0x45c374
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x45c370
push 0x3d
push esi
call fcn.0045cd98
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x45c370
cmp esi, eax
je 0x45c370
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x47f16c]
sete cl
cmp eax, dword [0x47f170]
mov dword [ebp - 8], ecx
jne 0x45c356
mov edi, eax
call fcn.0045c299
mov dword [0x47f16c], eax
cmp eax, ebx
jne 0x45c3af
cmp dword [ebp + 0xc], ebx
je 0x45c378
cmp dword [0x47f174], ebx
je 0x45c378
call fcn.00459a14
test eax, eax
je 0x45c3af
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x45c381
xor eax, eax
jmp 0x45c373
push 4
call fcn.004541f5
cmp eax, ebx
pop ecx
mov dword [0x47f16c], eax
je 0x45c370
mov dword [eax], ebx
cmp dword [0x47f174], ebx
jne 0x45c3af
push 4
call fcn.004541f5
cmp eax, ebx
pop ecx
mov dword [0x47f174], eax
je 0x45c370
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x47f16c]
call fcn.0045c24c
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x45c410
cmp dword [esi], ebx
je 0x45c410
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00454369
cmp dword [ebp - 8], ebx
pop ecx
jne 0x45c3f3
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x45c451
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x45c3ea
mov eax, edi
shl eax, 2
push eax
push dword [0x47f16c]
call fcn.00454207
cmp eax, ebx
pop ecx
pop ecx
je 0x45c451
jmp 0x45c44c
cmp dword [ebp - 8], ebx
jne 0x45c4bc
cmp edi, ebx
jge 0x45c41f
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x47f16c]
call fcn.00454207
cmp eax, ebx
pop ecx
pop ecx
je 0x45c370
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x47f16c], eax
cmp dword [ebp + 0xc], ebx
je 0x45c4a6
push dword [ebp - 4]
call fcn.004521e0
inc eax
inc eax
push eax
call fcn.004541f5
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x45c4a6
push dword [ebp - 4]
push esi
call fcn.00453eb0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45c49f
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00454369
pop ecx
cmp dword [ebp - 8], ebx
je 0x45c4b4
push dword [ebp - 4]
call fcn.00454369
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x45c373
push dword [ebp - 4]
call fcn.00454369
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x45c37d
Function at 0x45c513
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00454bc0
mov eax, dword [0x47bc20]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x47f804]
mov dword [ebp - 4], eax
jae 0x45c656
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x47f820]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x45c656
push 1
push esi
push ebx
call fcn.0045b391
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x45c660
push 2
push esi
push ebx
call fcn.0045b391
add esp, 0xc
cmp eax, 0xffffffff
je 0x45c660
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x45c600
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00452e50
push 0x8000
push ebx
call fcn.0045cdff
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x45c5bf
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00456c1f
add esp, 0xc
cmp eax, 0xffffffff
je 0x45c5dd
sub edi, eax
test edi, edi
jg 0x45c5b4
jmp 0x45c5f3
cmp dword [0x47f144], 5
jne 0x45c5f0
mov dword [0x47f140], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0045cdff
pop ecx
pop ecx
jmp 0x45c640
jge 0x45c640
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0045b391
push ebx
call fcn.0045a2ca
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, 0xffffffff
jne 0x45c640
mov dword [0x47f140], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x47f144], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0045b391
add esp, 0xc
mov eax, esi
pop edi
jmp 0x45c663
mov dword [0x47f140], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00455bc6
leave
ret

Function at 0x484000
Capabilities:
Accept command line arguments
Packed with generic packer
Parse pe header
Terminate process

Disassembly:
pushal
push 0x484031
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x48403a
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea edx, [0x484047]
push 0
push 0
push 0
push edx
push 0
push 0
call eax
popal
jmp fcn.004550f0

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
nop
mov ecx, 0x24f82598
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x2dd1185e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x43b635
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop eax
mov ecx, ecx
call fcn.0043b66e
sub esp, 4
mov dword [esp], ecx
pop ecx
add edx, edx
xor dword [ebx], eax
sub edx, ecx
inc ebx
add edx, edx
cmp ebx, esi
jne fcn.0043b635
sub esp, 4
mov dword [esp], 0x33fde0af
mov ecx, dword [esp]
add esp, 4
ret