joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f4d4
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 0x44f502
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 0x44f509
cmp ebx, dword [eax + 4]
jae 0x44f509
xor eax, eax
jmp 0x44f6f9
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x44f51a
xor eax, eax
inc eax
jmp 0x44f6f8
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x44f530
cmp ecx, edx
jae 0x44f675
cmp dword [eax + 4], 0
je 0x44f539
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x44f521
cmp dword [ebp + 8], 0
je 0x44f55b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x44f675
cmp eax, esi
jae 0x44f675
mov eax, dword [0x4a1ea0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x44f580
cmp dword [esi*4 + 0x4a1ea8], edi
je 0x44f679
inc esi
cmp esi, eax
jl 0x44f56e
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x44f6f5
cmp dword [ebp - 8], 0x1000000
jne 0x44f6f5
test byte [ebp - 0xc], 0xcc
je 0x44f5fe
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x44f6f5
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x44f6f5
cmp word [eax + 0x18], 0x10b
jne 0x44f6f5
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x44f6f5
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x44f5fe
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x44f5fe
test byte [ecx + 0x27], 0x80
jne 0x44f675
push 1
push 0x4a1ee8
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x44f512
mov ecx, dword [0x4a1ea0]
test ecx, ecx
mov edx, ecx
jle 0x44f632
lea eax, [ecx*4 + 0x4a1ea4]
cmp dword [eax], edi
je 0x44f632
dec edx
sub eax, 4
test edx, edx
jg 0x44f626
test edx, edx
jne 0x44f663
push 0xf
pop ebx
cmp ecx, ebx
jg 0x44f63f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x44f657
lea eax, [edx*4 + 0x4a1ea8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x44f645
cmp ecx, 0x10
jge 0x44f663
inc ecx
mov dword [0x4a1ea0], ecx
push 0
push 0x4a1ee8
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x44f512
xor eax, eax
jmp 0x44f6f8
test esi, esi
jle 0x44f512
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0x4a1ee8
call ebx
test eax, eax
jne 0x44f512
cmp dword [esi*4 + 0x4a1ea8], edi
je 0x44f6cf
mov eax, dword [0x4a1ea0]
lea esi, [eax - 1]
test esi, esi
jl 0x44f6bd
cmp dword [esi*4 + 0x4a1ea8], edi
je 0x44f6b9
dec esi
jns 0x44f6ad
test esi, esi
jge 0x44f6cd
cmp eax, 0x10
jge 0x44f6c8
inc eax
mov dword [0x4a1ea0], eax
lea esi, [eax - 1]
jmp 0x44f6cf
je 0x44f6e7
xor ecx, ecx
test esi, esi
jl 0x44f6e7
lea eax, [ecx*4 + 0x4a1ea8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x44f6d5
push 0
push 0x4a1ee8
call ebx
jmp 0x44f512
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450e36
Capabilities:
Terminate process

Disassembly:
push 8
push 0x460f18
call fcn.0044ef00
push 8
call fcn.0044f8bb
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x4a2084], esi
jne 0x450e6a
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov dword [0x4a2080], esi
mov al, byte [ebp + 0x10]
mov byte [0x4a207c], al
cmp dword [ebp + 0xc], edi
jne 0x450eb4
cmp dword [0x4a36e8], edi
je 0x450ea4
mov eax, dword [0x4a36e4]
sub eax, 4
mov dword [0x4a36e4], eax
cmp eax, dword [0x4a36e8]
jb 0x450ea4
mov eax, dword [eax]
cmp eax, edi
je 0x450e85
call eax
jmp 0x450e85
push 0x4660f4
mov eax, 0x4660e8
call fcn.00450db4
pop ecx
push 0x466100
mov eax, 0x4660f8
call fcn.00450db4
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x450ee5
cmp dword [ebp + 0x10], edi
jne 0x450ef3
mov dword [0x4a2084], esi
push dword [ebp + 8]
call fcn.00450d72
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x450ef2
push 8
call fcn.0044f806
pop ecx
ret
call fcn.0044ef3b
ret
Function at 0x454d88
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 0x454f5e
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4a2380]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x454f5e
test cl, 0x48
je 0x454df3
cmp byte [eax + 5], 0xa
je 0x454df3
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 0x454e45
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x454e2d
call fcn.00454385
mov dword [eax], 9
call fcn.0045438e
mov dword [eax], esi
jmp 0x454e3d
cmp eax, 0x6d
je 0x454f5e
push eax
call fcn.00454397
pop ecx
or eax, 0xffffffff
jmp 0x454f60
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x454f59
test eax, eax
je 0x454e6c
cmp byte [ebx], 0xa
jne 0x454e6c
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x454e75
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 0x454f53
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x454f43
cmp al, 0xd
je 0x454ea7
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x454f35
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x454ec1
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x454ebc
add dword [ebp + 0x10], 2
jmp 0x454f15
mov dword [ebp + 0x10], eax
jmp 0x454f31
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 0x454ee9
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x454f31
cmp dword [ebp - 0xc], 0
je 0x454f31
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x454f0a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x454f15
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x454f34
cmp ebx, dword [ebp + 0xc]
jne 0x454f1a
cmp byte [ebp - 1], 0xa
jne 0x454f1a
mov byte [ebx], 0xa
jmp 0x454f34
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00457dcc
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x454f35
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x454e8b
jmp 0x454f53
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x454f53
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 0x454f60
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4551c2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x466e48]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x4551fe
xor eax, eax
jmp 0x455368
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4a2380]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x45523c
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00457dcc
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4552d6
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x455339
jmp 0x455260
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x45529b
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x45528c
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x45526c
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4552fa
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x455303
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x45525e
jmp 0x455303
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4552fa
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x455303
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x455363
cmp dword [ebp - 0x68], eax
je 0x455336
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x45532b
call fcn.00454385
mov dword [eax], 9
call fcn.0045438e
mov dword [eax], esi
jmp 0x45535e
push dword [ebp - 0x68]
call fcn.00454397
pop ecx
jmp 0x45535e
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x45534b
cmp byte [edi], 0x1a
jne 0x45534b
xor eax, eax
jmp 0x455366
call fcn.00454385
mov dword [eax], 0x1c
call fcn.0045438e
and dword [eax], 0
or eax, 0xffffffff
jmp 0x455366
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0044ee87
add ebp, 0x3a4
leave
ret
Function at 0x455688
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4556a8
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.00454397
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4556cb
test byte [esp + 8], 2
je 0x4556cb
call fcn.00454385
mov dword [eax], 0xd
call fcn.0045438e
mov dword [eax], 5
jmp 0x4556a4
xor eax, eax
ret

Function at 0x45578e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x466e48]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x467790]
je 0x4557c5
inc eax
cmp eax, 0x13
jb 0x4557b6
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x467790]
jne 0x4558e8
mov eax, dword [0x4a1e7c]
cmp eax, 1
je 0x4558c3
cmp eax, edx
jne 0x4557f5
cmp dword [0x466e44], 1
je 0x4558c3
cmp ecx, 0xfc
je 0x4558e8
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45582b
lea eax, [ebp - 0x7c]
push 0x461520
push eax
call fcn.00455590
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00451ef0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x45585f
mov eax, edi
push eax
call fcn.00451ef0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x46151c
push edi
call fcn.0044c9d0
add esp, 0x10
push edi
call fcn.00451ef0
push dword [esi + 0x467794]
mov ebx, eax
call fcn.00451ef0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0044c570
mov ebx, esp
push 0x461500
push ebx
call fcn.00455590
push edi
push ebx
call fcn.004555a0
push 0x45d680
push ebx
call fcn.004555a0
push dword [esi + 0x467794]
push ebx
call fcn.004555a0
push 0x12010
push 0x4614d8
push ebx
call fcn.00457f2d
add esp, 0x2c
jmp 0x4558e8
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x467794]
push dword [esi]
call fcn.00451ef0
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]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0044ee87
add ebp, 0x90
leave
ret
Function at 0x457f2d
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a231c], ebx
push esi
push edi
jne 0x457fad
push 0x461e60
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x457fe8
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x461e54
push edi
call esi
test eax, eax
mov dword [0x4a231c], eax
je 0x457fe8
push 0x461e44
push edi
call esi
push 0x461e30
push edi
mov dword [0x4a2320], eax
call esi
cmp dword [0x4a2044], 2
mov dword [0x4a2324], eax
jne 0x457fad
push 0x461e14
push edi
call esi
test eax, eax
mov dword [0x4a232c], eax
je 0x457fad
push 0x461dfc
push edi
call esi
mov dword [0x4a2328], eax
mov eax, dword [0x4a2328]
test eax, eax
je 0x457ff2
call eax
test eax, eax
je 0x457fd9
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a232c]
test eax, eax
je 0x457fd9
test byte [ebp - 8], 1
jne 0x457ff2
cmp dword [0x4a2050], 4
jb 0x457fec
or byte [ebp + 0x12], 0x20
jmp 0x458011
xor eax, eax
jmp 0x458021
or byte [ebp + 0x12], 4
jmp 0x458011
mov eax, dword [0x4a2320]
test eax, eax
je 0x458011
call eax
mov ebx, eax
test ebx, ebx
je 0x458011
mov eax, dword [0x4a2324]
test eax, eax
je 0x458011
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a231c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x458e0b
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044c570
mov eax, dword [0x466e48]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00455010
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x458f40
push 2
push esi
push dword [ebp + 8]
call fcn.00455010
add esp, 0xc
cmp eax, ebx
je 0x458f40
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x458ee0
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0044eea0
push 0x8000
push dword [ebp + 8]
call fcn.004598a5
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x458e96
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004551c2
add esp, 0xc
cmp eax, 0xffffffff
je 0x458eb6
sub edi, eax
test edi, edi
jg 0x458e8e
jmp 0x458ece
call fcn.0045438e
cmp dword [eax], 5
jne 0x458ecb
call fcn.00454385
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004598a5
pop ecx
pop ecx
jmp 0x458f28
jge 0x458f28
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00455010
push dword [ebp + 8]
call fcn.004576ba
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 0x458f28
call fcn.00454385
mov dword [eax], 0xd
call fcn.0045438e
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.00455010
add esp, 0xc
mov eax, esi
pop edi
jmp 0x458f42
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044ee87
leave
ret
Function at 0x4593a4
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 0x4593bd
or eax, 0xffffffff
jmp 0x45941e
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x45941a
push 0x3d
push esi
call fcn.0044d6aa
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x45941a
cmp esi, eax
je 0x45941a
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4a2064]
sete cl
cmp eax, dword [0x4a2068]
mov dword [ebp - 4], ecx
jne 0x459400
mov edi, eax
call fcn.00459343
mov dword [0x4a2064], eax
cmp eax, ebx
jne 0x459459
cmp dword [ebp + 0xc], ebx
je 0x459422
cmp dword [0x4a206c], ebx
je 0x459422
call fcn.00457e9d
test eax, eax
je 0x459459
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x45942b
xor eax, eax
jmp 0x45941d
push 4
call fcn.0044d516
cmp eax, ebx
pop ecx
mov dword [0x4a2064], eax
je 0x45941a
mov dword [eax], ebx
cmp dword [0x4a206c], ebx
jne 0x459459
push 4
call fcn.0044d516
cmp eax, ebx
pop ecx
mov dword [0x4a206c], eax
je 0x45941a
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4a2064]
sub edi, esi
push esi
call fcn.004592f6
mov edi, eax
test edi, edi
pop ecx
jl 0x4594c0
cmp dword [ebx], 0
je 0x4594c0
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0044c8e1
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4594a0
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x459501
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x459497
mov eax, edi
shl eax, 2
push eax
push dword [0x4a2064]
call fcn.0044dbf4
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x459501
jmp 0x4594fc
cmp dword [ebp - 4], 0
jne 0x459568
test edi, edi
jge 0x4594d0
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4a2064]
call fcn.0044dbf4
test eax, eax
pop ecx
pop ecx
je 0x45941a
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4a2064], eax
cmp dword [ebp + 0xc], 0
je 0x459553
push esi
call fcn.00451ef0
inc eax
inc eax
push eax
call fcn.0044d516
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x459553
push esi
push edi
call fcn.00455590
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x45954c
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.0044c8e1
pop ecx
cmp dword [ebp - 4], 0
je 0x459560
push esi
call fcn.0044c8e1
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x45941d
push esi
call fcn.0044c8e1
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x459427
Function at 0x4661ca
Capabilities:
Encode data using xor

Disassembly:
fcom dword [edi - 0x59]
scasd eax, dword es:[edi]
stosd dword es:[edi], eax
sub ebp, dword [edx]
pushfd
adc esp, 0x2011ed60
sub byte [ebp + 0x2a002c50], bl
neg byte [esi]
jge 0x466218
cmpsd dword [esi], dword es:[edi]
fist dword [esi]
push ss
rol byte [esi], cl
mov ah, 0x36
xchg ebp, eax
adc eax, 0x2d748175
xor eax, 0x56f560f9
push esi
shr byte [edx], 1
sub eax, 0x1ad0597d
stosb byte es:[edi], al
adc ebx, eax
cmp eax, 0xf2d2de8c
mov ecx, 0xd7d5d838
sal bh, 1
jecxz 0x466289
jbe 0x4661e4
push edi
sal esi, 1
sal bh, cl
mov ebp, 0x88427a51
mov al, 0x16
add cl, al
mov dword [0xf383dd01], eax
shr dword [edx + 0x1236bbad], 0xb8
in al, dx
xor ebp, esi
das
pop ecx
cli
nop
xchg esp, eax
invalid
imul ebp, dword [edi + 0x6d], 0xb6bde92b
in eax, 0x7b
push ecx
jmp 0x80913e21

Function at 0x4662f6
Capabilities:
Encode data using xor

Disassembly:
jp 0x4662f8
and dword [edx - 0x28], esp
mov ah, 0xd5
jmp 0x466356
mov ah, 0x45
les ecx, [esi]
lodsd eax, dword [esi]
in al, dx
mov ebp, dword [esi + 0x4a0a781]
inc ecx
scasb al, byte es:[edi]
push cs
sahf
inc ebp
and dword [edi - 0x51befb60], 0x34459e0e
add dword [esi], edx
xor al, 1
push ss
add byte [edi], ch
lahf
out 0x21, eax
out dx, al
and byte [ebp + 0x45a4c740], ch
jnp 0x466307
cmc
hlt
je 0x466379
jp 0x4663a4
inc esp
add byte [eax + 0xb], bl
and dword [eax + 0x6a], 0xffffffa1
stosd dword es:[edi], eax
scasb al, byte es:[edi]
test eax, 0x55f32955
jl 0x466393
div dword [eax + eax*2 + 0x1a]
stosd dword es:[edi], eax
bound ebx, qword [esi + 0x6210114d]
sub edx, dword [ebx + 0x1a]
jnp 0x4663a5
sbb bh, byte [ebx + 0x29]
mov al, byte [0x8a1a44a5]
mov edx, dword [ecx + 0x6d]
jo 0x46630f
push eax
add dword [eax - 0x505bc953], esp
rcr ah, cl
ljmp 0xaae6
shl esi, 1
stosb byte es:[edi], al
rcr dword [eax], 1
push edi
test dword [esi - 0x22], ebp
add dword [ebp + 0x77], esp
push ebx
or dword [bx + di - 0x53b6], edi
lodsb al, byte [esi]
call 0x182e65b7
mov al, 7
pop esp
add ebx, dword [edi - 0x49]
pop es
push ebx
or dl, byte [ecx]
add eax, 0xef365531
and eax, esp
sub cl, 0xbd
scasd eax, dword es:[edi]
mov dword [0x2f47aef], eax
mov ah, 0xae
cmpsd dword [esi], dword es:[edi]
fdivp st(1)
insb byte es:[edi], dx
fidivr word [esi]
pop ds
cmp eax, 0xd8dbb60c
scasb al, byte es:[edi]
imul dword [edi - 0x3a12055c]
push 0x180bbfc7
mov edx, 0x8366d304
xor ebp, ecx
pushfd
cmp eax, 0x7cd668f
mov ah, 0x4d
in eax, dx
in eax, dx
in al, dx
mov al, byte [0xdf5d50a4]
inc dword [eax + 0x19]
pop esi
test byte [eax - 0x28a8d730], 0x68
pop ecx
out 0x5a, al
ffreep st(3)
inc esp
add dword [eax + 0x7135f2d], ecx
mov byte [0xa007135f], ch
mov ah, 0x54
sbb al, byte [eax]
loope 0x4663db
Function at 0x408040
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47b06b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046fca7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4080c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046da1d
mov eax, dword [eax]
push 0x4b41c0
push eax
call fcn.0045fc24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046ff32
test bl, bl
je 0x4080c2
push 0x4b41c0
lea ecx, [esp + 0xc]
call fcn.004702c2
push 0x4b7d54
lea ecx, [esp + 0xc]
call fcn.004702c2
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x4080fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046ff32
jmp 0x4081c9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408182
lea edx, [esp + 0x7c]
push 0x4b7d50
push edx
call fcn.0045fc24
add esp, 8
test eax, eax
je 0x408182
lea eax, [esp + 0x7c]
push 0x4b7d4c
push eax
call fcn.0045fc24
add esp, 8
test eax, eax
je 0x408182
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408112
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046ff32
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4089c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408a22
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc