joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e792f
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push str.start
push dword [0x6d5adc]
mov esi, ecx
lea ecx, [ebp - 8]
call fcn.0056862d
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x5e7978
lea ecx, [ebp - 4]
call fcn.005e780f
lea ecx, [ebp - 8]
call fcn.005672a3
xor al, al
pop esi
pop ebx
leave
ret
cmp dword [esi + 0x38], 0x10
jb 0x5e7983
mov esi, dword [esi + 0x24]
jmp 0x5e7986
add esi, 0x24
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x5e79a4
lea ecx, [ebp - 0xc]
call fcn.005e780f
jmp 0x5e7962
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x5e79da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x5e79da
lea ecx, [ebp - 0xc]
call fcn.005e780f
lea ecx, [ebp - 4]
call fcn.005e780f
lea ecx, [ebp - 8]
call fcn.005672a3
mov al, bl
jmp 0x5e7974
mov bl, 1
jmp 0x5e79be

Function at 0x5e79de
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push str.stop
push dword [0x6d5adc]
mov esi, ecx
lea ecx, [ebp - 8]
call fcn.0056862d
push 0xf003f
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x5e7a27
lea ecx, [ebp - 4]
call fcn.005e780f
lea ecx, [ebp - 8]
call fcn.005672a3
xor al, al
pop esi
pop ebx
leave
ret
cmp dword [esi + 0x38], 0x10
jb 0x5e7a32
mov esi, dword [esi + 0x24]
jmp 0x5e7a35
add esi, 0x24
push 0xf01ff
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x5e7a65
lea ecx, [ebp - 0xc]
call fcn.005e780f
lea ecx, [ebp - 4]
call fcn.005e780f
lea ecx, [ebp - 8]
call fcn.005672a3
mov al, bl
jmp 0x5e7a23
lea ecx, [ebp - 0x28]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
jmp 0x5e7a49
Function at 0x5e7ed8
Capabilities:
Get disk information

Disassembly:
push 0x10
mov eax, 0x623a12
call fcn.00579aba
push str.isValidFileName
push dword [0x6d5adc]
lea ecx, [ebp - 0x10]
call fcn.0056862d
mov ebx, dword [ebp + 8]
xor esi, esi
push esi
push 0x80
push 3
push esi
push esi
push SysReAllocString
lea eax, [ebp - 0x1c]
push ebx
push eax
mov dword [ebp - 4], esi
call fcn.0057260f
add esp, 0x20
cmp dword [ebp - 0x1c], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
jne 0x5e7f31
call fcn.0052357c
jmp 0x5e7fe9
call fcn.0052357c
cmp dword [ebx + 0x18], 0x10
lea eax, [ebx + 4]
mov dword [ebp + 8], eax
jb 0x5e7f44
mov eax, dword [eax]
push esi
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
push eax
call esi
mov edi, eax
cmp edi, 3
jb 0x5e7fe9
push edi
call fcn.0040101b
pop ecx
push eax
lea ecx, [ebp - 0x1c]
call fcn.0047bf18
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 2
jb 0x5e7f7a
mov eax, dword [eax]
push 0
push dword [ebp - 0x1c]
lea ecx, [edi + 1]
push ecx
push eax
call esi
inc eax
cmp eax, edi
jne 0x5e7fe1
mov esi, dword [ebp - 0x1c]
cmp byte [esi + 1], 0x3a
jne 0x5e7fe1
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00415303
push esi
mov byte [esi + 3], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x5e7fe1
cmp dword [ebx + 0x18], 0x10
mov eax, dword [ebp + 8]
jb 0x5e7fb8
mov eax, dword [eax]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetBinaryTypeA]
test eax, eax
je 0x5e7fe1
cmp dword [ebp - 0x14], 0
jne 0x5e7fe1
lea ecx, [ebp - 0x1c]
call fcn.00475eaa
lea ecx, [ebp - 0x10]
call fcn.005672a3
mov al, 1
jmp 0x5e7ff3
lea ecx, [ebp - 0x1c]
call fcn.00475eaa
lea ecx, [ebp - 0x10]
call fcn.005672a3
xor al, al
call fcn.00579b92
ret 8
Function at 0x5e80e2
Capabilities:
Create service

Disassembly:
push 0x30
mov eax, 0x623a93
call fcn.00579b23
push str.install
push dword [0x6d5adc]
mov esi, ecx
lea ecx, [ebp - 0x38]
call fcn.0056862d
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], 0xf
call fcn.00415e5a
lea eax, [ebp - 0x2c]
push eax
lea eax, [esi + 4]
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.005e7ed8
test al, al
jne 0x5e814a
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00415386
lea ecx, [ebp - 0x38]
call fcn.005672a3
xor al, al
call fcn.00579ba6
ret
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp eax, ebx
mov dword [ebp - 0x3c], eax
jne 0x5e8181
mov byte [ebp - 0x2d], bl
lea ecx, [ebp - 0x3c]
call fcn.005e780f
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00415386
lea ecx, [ebp - 0x38]
call fcn.005672a3
mov al, byte [ebp - 0x2d]
jmp 0x5e8144
cmp dword [ebp - 0x14], 0x10
mov ecx, dword [ebp - 0x28]
jae 0x5e818d
lea ecx, [ebp - 0x28]
cmp dword [esi + 0x38], 0x10
jb 0x5e8198
mov eax, dword [esi + 0x24]
jmp 0x5e819b
lea eax, [esi + 0x24]
cmp dword [esi + 0x38], 0x10
jb 0x5e81a6
mov esi, dword [esi + 0x24]
jmp 0x5e81a9
add esi, 0x24
push ebx
push ebx
push ebx
push ebx
push ebx
push ecx
push 1
push 3
push 1
push 0xf01ff
push eax
push esi
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
cmp eax, ebx
mov dword [ebp - 0x34], eax
jne 0x5e81d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x5e81ea
lea ecx, [ebp - 0x34]
call fcn.005e780f
mov byte [ebp - 0x2d], 1
jmp 0x5e8161
lea ecx, [ebp - 0x34]
call fcn.005e780f
jmp 0x5e815e

Function at 0x5e8c4a
Capabilities:
Get file version info

Disassembly:
push 0xc
mov eax, 0x623b9b
call fcn.00579aba
xor ebx, ebx
push str.make
mov dword [ebp - 0x10], ebx
push dword [0x6d5b14]
lea ecx, [ebp - 0x10]
call fcn.0056862d
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 4], ebx
lea edi, [esi + 4]
jb 0x5e8c81
mov eax, dword [edi]
jmp 0x5e8c83
mov eax, edi
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x5e8ca7
mov esi, dword [ebp + 8]
and dword [esi], eax
and dword [esi + 4], eax
lea ecx, [ebp - 0x10]
call fcn.005672a3
mov eax, esi
jmp 0x5e8d28
push ebx
call fcn.0040101b
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.0047c3bb
cmp dword [esi + 0x18], 0x10
mov byte [ebp - 4], 1
jb 0x5e8cc3
mov edi, dword [edi]
push dword [ebp - 0x18]
push ebx
xor ebx, ebx
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x5e8ce6
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.0047c3ea
jmp 0x5e8c98
push 0xc
call fcn.00401012
pop ecx
mov dword [ebp + 0xc], eax
cmp eax, ebx
mov byte [ebp - 4], 2
je 0x5e8d06
lea ecx, [ebp - 0x18]
push ecx
mov ecx, eax
call fcn.005e8bb3
jmp 0x5e8d08
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 1
call fcn.005e8521
lea ecx, [ebp - 0x18]
call fcn.0047c3ea
lea ecx, [ebp - 0x10]
call fcn.005672a3
mov eax, dword [ebp + 8]
call fcn.00579b92
ret
Function at 0x5ed530
Capabilities:
Get file attributes

Disassembly:
push 0x24
mov eax, 0x6244a2
call fcn.00579b23
mov esi, dword [ebp + 8]
mov eax, 0x8001
push eax
push eax
lea ecx, [ebp - 0x30]
call fcn.00574d97
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.005adb71
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
pop ecx
pop ecx
jae 0x5ed56a
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 0
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.00415386
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00574ddb
mov eax, esi
call fcn.00579ba6
ret

Function at 0x5edbfa
Capabilities:
Get disk information

Disassembly:
push ebp
sub esp, 0x240
lea ebp, [esp - 4]
mov eax, dword [0x6d25dc]
xor eax, ebp
mov dword [ebp + 0x240], eax
push 0x48
mov eax, 0x6246eb
call fcn.00579aba
mov esi, dword [ebp + 0x24c]
push str.determineFilesystemType
push dword [0x6d5ccc]
lea ecx, [ebp - 0x10]
call fcn.0056862d
lea eax, [ebp]
push esi
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.005adb71
pop ecx
pop ecx
cmp dword [ebp + 0x18], 0x10
mov ecx, dword [ebp + 4]
mov byte [ebp - 4], 1
jae 0x5edc58
lea ecx, [ebp + 4]
mov eax, 0x104
push eax
lea edx, [ebp + 0x13c]
push edx
lea edx, [ebp - 0x1c]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x18]
push edx
push eax
lea eax, [ebp + 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x5edcbc
push 2
pop esi
push edi
push 1
lea ecx, [ebp]
call fcn.00415386
lea ecx, [ebp - 0x10]
call fcn.005672a3
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x240]
xor ecx, ebp
call fcn.00579aab
add ebp, 0x244
leave
ret
lea eax, [ebp + 0x13c]
push eax
lea ecx, [ebp - 0x38]
call fcn.00414b61
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp + 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.005a9389
pop ecx
pop ecx
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 4
call fcn.00415386
push str.NTFS
lea ecx, [ebp + 0x1c]
call fcn.00419a0d
test eax, eax
lea ecx, [ebp + 0x1c]
jne 0x5edd0f
push edi
push esi
call fcn.00418fcc
jmp 0x5edc84
push 3
push edi
lea eax, [ebp - 0x54]
push eax
call fcn.00418d95
push 0x6541b4
mov ecx, eax
mov byte [ebp - 4], 5
call fcn.00419a0d
mov ebx, eax
neg ebx
push edi
sbb bl, bl
push esi
lea ecx, [ebp - 0x54]
inc bl
call fcn.00418fcc
push edi
lea ecx, [ebp + 0x1c]
push esi
call fcn.00418fcc
test bl, bl
je 0x5edc81
xor esi, esi
jmp 0x5edc84
Function at 0x5edf21
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0x6247a9
call fcn.00579b23
mov ebx, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x38], esi
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [esi], vtable.Ghost::Filesystem::Win32LfoFilesystem.0
call fcn.0041f77c
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00418d08
push str.constructor
push dword [0x6d5ccc]
lea ecx, [ebp - 0x30]
call fcn.0056862d
lea eax, [ebp - 0x2c]
push edi
push eax
mov byte [ebp - 4], 3
call fcn.005adb71
pop ecx
pop ecx
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
mov byte [ebp - 4], 4
jae 0x5edf8c
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 4
sete al
push edi
mov byte [esi + 0x28], al
call fcn.005edbfa
cmp dword [ebp - 0x14], 0x10
mov dword [esi + 0x2c], eax
mov eax, dword [ebp - 0x28]
pop ecx
mov byte [esi + 0x29], 0
jae 0x5edfb6
lea eax, [ebp - 0x28]
xor edi, edi
push edi
push edi
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x3c]
push ecx
push edi
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x5edfde
cmp dword [esi + 0x2c], 2
jne 0x5edfde
mov al, byte [ebp - 0x34]
and al, 1
mov byte [esi + 0x29], al
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.00415386
lea ecx, [ebp - 0x30]
call fcn.005672a3
mov eax, esi
call fcn.00579ba6
ret 8

Function at 0x10001000
Capabilities:
Accept command line arguments

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
inc esi
cmp al, 0x22
jne 0x1000104f
call fcn.100010f0
test eax, eax
push 0x22
push esi
je 0x10001024
call fcn.100017a0
jmp 0x10001029
call fcn.100016e0
mov edx, eax
add esp, 8
test edx, edx
je 0x10001076
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
ja 0x1000104a
mov esi, 0x100084b0
jmp 0x10001076
lea esi, [edx + 2]
jmp 0x10001076
call fcn.100010f0
test eax, eax
push 0x20
push esi
je 0x10001062
call fcn.100017a0
jmp 0x10001067
call fcn.100016e0
add esp, 8
mov esi, 0x100084b4
test eax, eax
je 0x10001076
lea esi, [eax + 1]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 0
push 0x3e8
push ecx
push esi
push edx
push eax
call sub.PBVM90.dll_Ordinal_137
pop edi
pop esi
ret 0x10
Function at 0x448f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x21000]
push edi
or ebp, 0xffffffff
jmp 0x448f72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x448f79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448f68
mov eax, 1
add ebx, ebx
jne 0x448f8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x448f80
jne 0x448f9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x448f80
xor ecx, ecx
sub eax, 3
jb 0x448fb0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x449022
mov ebp, eax
add ebx, ebx
jne 0x448fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x448fc8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x448fec
inc ecx
add ebx, ebx
jne 0x448fd8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x448fcd
jne 0x448fe9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x448fcd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x44900c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x448ffd
jmp 0x448f6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x44900c
add edi, ecx
jmp 0x448f6e
pop esi
mov edi, esi
mov ecx, 0x321
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x44902a
cmp byte [edi], 2
jne 0x44902a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x44902f
lea edi, [esi + 0x3f000]
mov eax, dword [edi]
or eax, eax
je 0x4490a7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x491dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x49358]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x44905c
mov ecx, edi
jns 0x44908b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x49360]
or eax, eax
je 0x4490a1
mov dword [ebx], eax
add ebx, 4
jmp 0x449079
call dword [esi + 0x4935c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4490d8
cmp al, 0xef
ja 0x4490cb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4490ad
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4490ba
mov ebp, dword [esi + 0x49364]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x44910c
sub esp, 0xffffff80
jmp 0x40ea98
Function at 0x40bfb3
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.00406dfb
and dword [ebp - 4], 0
cmp dword [0x413a8c], 0
mov ebx, eax
jne 0x40c064
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40c115
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40c115
push eax
call fcn.00406d89
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x413a8c], eax
call esi
push eax
call fcn.00406d89
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x413a90], eax
call esi
push eax
call fcn.00406d89
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x413a94], eax
call esi
push eax
call fcn.00406d89
pop ecx
mov dword [0x413a9c], eax
test eax, eax
je 0x40c064
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406d89
pop ecx
mov dword [0x413a98], eax
mov eax, dword [0x413a98]
cmp eax, ebx
je 0x40c0bc
cmp dword [0x413a9c], ebx
je 0x40c0bc
push eax
call fcn.00406e04
push dword [0x413a9c]
mov esi, eax
call fcn.00406e04
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40c0bc
test edi, edi
je 0x40c0bc
call esi
test eax, eax
je 0x40c0b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40c0b3
test byte [ebp - 0xc], 1
jne 0x40c0bc
or dword [ebp + 0x10], 0x200000
jmp 0x40c0f5
mov eax, dword [0x413a90]
cmp eax, ebx
je 0x40c0f5
push eax
call fcn.00406e04
pop ecx
test eax, eax
je 0x40c0f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40c0f5
mov eax, dword [0x413a94]
cmp eax, ebx
je 0x40c0f5
push eax
call fcn.00406e04
pop ecx
test eax, eax
je 0x40c0f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x413a8c]
call fcn.00406e04
pop ecx
test eax, eax
je 0x40c115
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40c117
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x430030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x404118
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
mov eax, dword [0x4188a0]
push edi
push 0xf0000000
xor edi, edi
push 0x18
push edi
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x428]
push eax
mov dword [ebp - 0x430], 0x20
mov dword [ebp - 0x428], edi
mov dword [ebp - 0x424], edi
mov byte [ebp - 0x20], 0x4f
mov byte [ebp - 0x1f], 0xe0
mov byte [ebp - 0x1e], 0x73
mov byte [ebp - 0x1d], 0x56
mov byte [ebp - 0x1c], 4
mov byte [ebp - 0x1b], 0x59
mov byte [ebp - 0x1a], 0x94
mov byte [ebp - 0x19], 0xc3
mov byte [ebp - 0x18], 0x29
mov byte [ebp - 0x17], 0xd2
mov byte [ebp - 0x16], 0xbb
mov byte [ebp - 0x15], 0x31
mov byte [ebp - 0x14], 0xc0
mov byte [ebp - 0x13], 0x27
mov byte [ebp - 0x12], 0x6e
mov byte [ebp - 0x11], 0x46
mov byte [ebp - 0x10], 0x87
mov byte [ebp - 0xf], 0x76
mov byte [ebp - 0xe], 0x84
mov byte [ebp - 0xd], 0x5a
mov byte [ebp - 0xc], 0x9c
mov byte [ebp - 0xb], 0x11
mov byte [ebp - 0xa], 0xe6
mov byte [ebp - 9], 0xfe
mov byte [ebp - 8], 0xa7
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4042af
push ebx
push esi
lea eax, [ebp - 0x424]
push eax
push edi
push edi
push 0x800c
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x4041eb
xor esi, esi
jmp 0x40429e
mov esi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push edi
push 0x19
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x424]
call esi
test eax, eax
jne 0x40420b
xor esi, esi
jmp 0x404292
push 0x401530
push dword [ebp + 8]
mov dword [ebp - 0x42c], edi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, edi
pop ecx
pop ecx
je 0x404272
push ebx
push 0x400
lea eax, [ebp - 0x420]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, edi
jbe 0x40426a
add dword [ebp - 0x42c], eax
push edi
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x424]
call esi
test eax, eax
je 0x4042bc
cmp dword [ebp - 0x42c], 0x3400
jb 0x404227
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push edi
lea eax, [ebp - 0x430]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor esi, esi
test eax, eax
je 0x404292
inc esi
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.004140ea
leave
ret 8
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push edi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x4042ad
Function at 0x4042e1
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x4188a0]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
push 0xf0000000
push 0x18
push 0x401538
xor ebx, ebx
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x3c]
mov byte [ebp - 0x30], cl
mov byte [ebp - 0x2f], 2
mov word [ebp - 0x2e], bx
mov dword [ebp - 0x2c], 0x6610
mov dword [ebp - 0x28], 0x20
lea edi, [ebp - 0x24]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4043ce
lea eax, [ebp + 0xc]
push eax
push ebx
push ebx
push 0x2c
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
xor edi, edi
test eax, eax
je 0x4043c2
mov esi, dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
push ebx
lea eax, [ebp - 0x34]
push eax
push 4
push dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x34], edi
call esi
test eax, eax
jne 0x404370
xor edi, edi
jmp 0x4043b9
push ebx
lea eax, [ebp - 0x34]
push eax
push 3
push dword [ebp + 0xc]
mov dword [ebp - 0x34], edi
call esi
test eax, eax
je 0x40436c
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCP60.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::data_void_const]
push eax
push ebx
push edi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x40436c
push dword [ebp - 0x38]
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP60.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::resize_unsigned_int_]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push ebx
push dword [ebp - 0x3c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.004140ea
leave
ret 8