joyce8/EMBER2024-capa huggingface dataset:
Function at 0x772b125e
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x772b12a8
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x772b124f
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x772b125e
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x776b6f01
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x772b12af
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.77298125
cmp eax, dword [ebp + 0xc]
pop eax
je 0x772b134e
add edi, 4
add eax, 2
dec ecx
jne 0x772b1294
call 0x772b12fb
loope 0x772b12f1
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x772b134b
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x772b135c
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x772b130f
cmp eax, ecx
ja 0x772b130f
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x772b1399
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x772b138f
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.77298604
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4bdcd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb8000]
push edi
jmp 0x4bdcea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4bdcf1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4bdce0
mov eax, 1
add ebx, ebx
jne 0x4bdd03
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4bdcf8
jne 0x4bdd14
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bdcf8
xor ecx, ecx
sub eax, 3
jb 0x4bdd28
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4bdd9a
mov ebp, eax
add ebx, ebx
jne 0x4bdd33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4bdd40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4bdd64
inc ecx
add ebx, ebx
jne 0x4bdd50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4bdd45
jne 0x4bdd61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4bdd45
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4bdd84
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4bdd75
jmp 0x4bdce6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4bdd84
add edi, ecx
jmp 0x4bdce6
pop esi
mov edi, esi
mov ecx, 0x6600
jmp 0x4bddd5
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x4bddb5
cmp al, 0x8f
ja 0x4bddb5
cmp byte [edi - 2], 0xf
je 0x4bddbb
sub al, 0xe8
cmp al, 1
ja 0x4bdddf
cmp ecx, 4
jb 0x4bdde4
mov eax, dword [edi]
sub al, 1
jne 0x4bdddf
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x4bdde4
mov al, byte [edi]
inc edi
jmp 0x4bddb5
sub ecx, 1
jae 0x4bdda4
lea edi, [esi + 0xbb000]
mov eax, dword [edi]
or eax, eax
je 0x4bde35
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12eba0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12ec58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4bddea
mov ecx, edi
jns 0x4bde19
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 + 0x12ec60]
or eax, eax
je 0x4bde2f
mov dword [ebx], eax
add ebx, 4
jmp 0x4bde07
call dword [esi + 0x12ec5c]
mov ebp, dword [esi + 0x12ec64]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x4bde69
sub esp, 0xffffff80
jmp 0x4034a5

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x407316
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407351
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40732a
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x407325
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40737e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40735f
not eax
pop ebp
ret 0xc

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x408db0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
pop es
pop edi
js 0x408deb
leave
test eax, eax
setne cl
mov dword [edi - 0x77b25e04], edi
stosd dword es:[edi], eax
stc
inc eax
sbb al, 0xef
invalid
inc eax
popfd
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, dword [esi - 0x61]
add eax, 2
cmp dh, 0x76
sete dl
cmp eax, edx
je 0x408e31
mov ecx, dword [esi + 4]
lea eax, [ebp - 4]
push 4
push eax
push 0xffffffffffffff8e
xor al, 0xff
inc dword [eax]
loop 0x408e56
call dword [sym.imp.WSOCK32.dll_setsockopt]
adc dword [edx], 0xffffffff
je 0x1319065
add byte [ebx - 0x3f7aefbb], cl
mov eax, dword [ebp + 0x10]
test eax, eax
mov eax, dword [esi + 0x38]
je 0x408e70
or al, 2
mov dword [edx + 0x38], ebx
xor eax, eax
pop esi
mov esp, ebp
push ebp
ret 0xdd0c
sete cl
cmp eax, ecx
imul edx, esp, 0xffffff8b
inc esi
sub cl, byte [ebp + 0x46a3355]
push edx
push 1
push 0xffff
mov gs, word [esi + 0x40c1dc15]
fadd st(1), st(0)
inc eax
add byte [esi], dl
clc
dec dword [edi]
test al, ch
add dword [eax], eax
lcall 0x8bc0, 0x1b10c0ad
inc esi
inc edx
je 0x408e21
or al, 4
mov dword [esi + 0x38], eax
xor eax, eax
pop esi
add ch, ah
pop ebp
ret 0xc

Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
inc eax
mov esi, dword [ebp + 0x3e]
mov al, byte [esi + 0x2c]
test al, al
je 0x40b3a1
mov ecx, dword [esi + 0x48]
xor eax, eax
scasd eax, dword es:[edi]
cmp ecx, 1
push edi
mov dword [ebp + 0x48], eax
mov dword [ebp + 8], eax
jne 0x40b3f8
mov edi, dword [esi + 0x3c]
push esp
clc
rol dword [ecx + edx*4 - 0x74eeda00], 0x5e
cmp byte [ebx + 0x576ffff], al
or eax, 0xffffffff
jmp 0x40b313
mov edx, dword [esi + 4]
lea ecx, [ebp - 4]
push 0
push ecx
push eax
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40b358
mov eax, dword [ebp - 4]
sbb byte [esi + 0x50], dl
mov ecx, dword [esi + 0x54]
add edx, eax
adc ecx, 0
sub edi, eax
add ebx, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test ebx, ecx
jne 0x40b369
mov dword [eax + ecx - 0x15], ebx
or cl, cl
leave
xchg edx, eax
add eax, 0xafc79
mov dword [ebp + 8], eax
xchg ebx, eax
inc ebp
cld
mov edx, dword [esi + 0x50]
mov ecx, dword [esi + 0x54]
add edx, eax
mov esp, dword [ecx + 0x50568908]
adc ecx, 0
cwde
ror byte [ecx + 0x775544e], 0xc7
inc esi
cmp al, 0
add byte [eax], al
add byte [ebp + 0x5ba70845], dl
pop esi
mov esp, ebp
aam 0xc2
pop eax
aam 0x33
rcr byte [esi - 0x75], 0xe5
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x1f
dec ebp
or al, 0x8b
push ebp
or byte [eax + 0x51], dl
push edx
call 0x4114b0
pop ebp
ret 0x440c
nop
nop
mov eax, 0x712390ae
nop
push ebp
mov ebx, dword [esi]
mov eax, dword [ecx + 0x10]
mov edx, dword [edi - 0x72a9acf8]
dec edx
mov cl, 0x33
div byte [ebp - 0x75]
jge 0x40b483
test dword [eax - 0x2dcc9482], ecx
xor ebx, dword [ecx - 0x76]
out 0x37, eax
loope 0x40b3e7
add eax, ecx
ljmp 0x33f2
cmp esi, edx
jge 0x40b4e6
xor ecx, dword [edx - 0x3ec1f376]
jmp 0x8a8af494
mov edx, dword [ebp - 0x45]
mov byte [eax], 0
Function at 0x401130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401148
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40117a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401176
cmp esi, eax
jae 0x40117a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401168
cmp esi, eax
jb 0x401180
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4012e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f6878
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], edi
mov dword [ebp - 0x68], ebx
mov word [ebx], ax
mov dword [ebp - 4], edi
push edi
mov eax, 0x517384
mov esi, ebx
call fcn.004027c0
call fcn.004014a0
cmp dword [0x539c30], edi
je 0x401475
xor ecx, ecx
push edi
mov eax, 0x517384
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
call fcn.004027c0
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00401a10
push 0x504a74
mov edx, esi
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004030a0
add esp, 0xc
mov byte [ebp - 4], 2
push str.AEEngine.Log
push eax
lea ecx, [ebp - 0x64]
push ecx
call fcn.00403180
add esp, 0xc
mov byte [ebp - 4], 3
mov edi, eax
mov esi, ebx
call fcn.00402140
mov byte [ebp - 4], 2
mov esi, 8
cmp dword [ebp - 0x50], esi
jb 0x4013b9
mov edx, dword [ebp - 0x64]
push edx
call fcn.004d5559
add esp, 4
mov edi, 7
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ecx
mov word [ebp - 0x64], ax
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], esi
jb 0x4013e3
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004d5559
add esp, 4
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ecx
mov word [ebp - 0x48], dx
cmp dword [ebx + 0x14], esi
jb 0x4013f8
mov eax, dword [ebx]
jmp 0x4013fa
mov eax, ebx
sub esp, 0x1c
mov esi, esp
mov dword [esi + 0x10], ecx
xor ecx, ecx
mov dword [esi + 0x14], edi
mov word [esi], cx
mov ecx, eax
mov dword [ebp - 0x6c], esp
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401412
sub ecx, edi
sar ecx, 1
push ecx
call fcn.004027c0
mov byte [ebp - 4], 4
mov byte [ebp - 4], 1
call fcn.00401b90
test al, al
je 0x40144b
cmp dword [ebx + 0x14], 8
jb 0x401442
mov eax, dword [ebx]
jmp 0x401444
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x401461
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004d5559
add esp, 4
xor eax, eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x4014a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea ecx, [ebp - 4]
push ecx
xor eax, eax
push 1
push eax
push str.SoftwareFaronicsAETracing
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [0x539c2c], eax
mov dword [0x539c30], eax
call esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x401503
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x539c2c
push 0
push 0
push str.Tracing
push eax
mov dword [ebp - 8], 4
call edi
mov ecx, dword [ebp - 4]
push ecx
call ebx
lea edx, [ebp - 4]
push edx
push 1
push 0
push str.SoftwareFaronicsAETracingLogFile
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x401540
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push 0x539c30
push 0
push 0
push str.Tracing
push ecx
mov dword [ebp - 8], 4
call edi
mov edx, dword [ebp - 4]
push edx
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4015d0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f681b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x20f4
call fcn.004ea5a0
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
cmp dword [0x539c2c], ebx
je 0x401707
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20ec], 7
mov dword [ebp - 0x20f0], ebx
xor eax, eax
mov word [ebp - 0x2100], ax
mov byte [ebp - 4], 1
xor ecx, ecx
mov word [ebp - 0xe4], cx
push 0xc6
push ebx
lea edx, [ebp - 0xe2]
push edx
call fcn.004da450
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.Log_in_AE__Tid_4d__::
lea edx, [ebp - 0xe4]
call fcn.00401000
add esp, 8
lea eax, [ebp - 0x2100]
push eax
lea eax, [ebp - 0xe4]
call fcn.00401cd0
lea ecx, [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0xffffffffffffffff
push 0x1000
lea eax, [ebp - 0x20e4]
push eax
call fcn.004d630b
add esp, 0x14
lea ecx, [ebp - 0x2100]
push ecx
lea eax, [ebp - 0x20e4]
call fcn.00401d00
mov esi, 8
cmp dword [ebp - 0x20ec], esi
mov eax, dword [ebp - 0x2100]
jae 0x4016c9
lea eax, [ebp - 0x2100]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [0x539c30], ebx
je 0x4016f2
cmp dword [ebp - 0x20ec], esi
mov ecx, dword [ebp - 0x2100]
jae 0x4016ec
lea ecx, [ebp - 0x2100]
push edi
call fcn.00401740
mov byte [ebp - 4], bl
lea esi, [ebp - 0x2100]
call fcn.00401ca0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x401740
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f67e0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x4c], ecx
jb 0x401779
mov eax, dword [eax]
push str.a__ccsUTF_8
push eax
call fcn.004d6007
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401798
push str._File_LOging_Failed_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [ebp - 0x2c]
call fcn.004018c0
mov dword [ebp - 4], 0
push 0x504ca4
lea edx, [ebp - 0x2c]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004030a0
add esp, 0xc
mov byte [ebp - 4], 1
mov edi, eax
lea esi, [ebp - 0x2c]
call fcn.00402140
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 8
jb 0x4017e0
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004d5559
add esp, 4
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], dx
mov eax, edi
cmp esi, 8
jae 0x401804
lea eax, [ebp - 0x2c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401807
sub eax, edx
sar eax, 1
mov ecx, edi
cmp esi, 8
jae 0x401820
lea ecx, [ebp - 0x2c]
push ebx
push eax
push 2
push ecx
call fcn.004d6502
mov esi, dword [ebp - 0x4c]
mov eax, esi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401835
sub eax, edx
push ebx
sar eax, 1
push eax
push 2
push esi
call fcn.004d6502
push ebx
push 2
push 2
push 0x504b64
call fcn.004d6502
push ebx
call fcn.004d673c
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 8
jb 0x40187f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004d5559
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret 4
Function at 0x401a10
Capabilities:
Create directory
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004ea5a0
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x7fe
mov esi, ecx
push eax
lea ecx, [ebp - 0x802]
push ecx
xor edi, edi
mov word [ebp - 0x804], ax
call fcn.004da450
add esp, 0xc
push edi
push 0x23
lea edx, [ebp - 0x804]
push edx
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x401b1e
push str.FaronicsStorageSpaceAEE
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.004d65c3
add esp, 0xc
push edi
lea ecx, [ebp - 0x804]
push ecx
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test eax, eax
je 0x401af5
cmp eax, 0xb7
je 0x401af5
cmp eax, 0x50
je 0x401af5
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1002]
push eax
mov word [ebp - 0x1004], dx
call fcn.004da450
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x1004]
push str._ERROR:_Failed_SHCreateDirectoryEx._GetlastError:__d
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x1004]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x804]
mov edi, 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401b03
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x804]
call fcn.004027c0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x4032f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f47f0
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5365f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], eax
lea ebx, [ebp - 0x14]
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], eax
call fcn.00403440
mov esi, eax
test esi, esi
je 0x4033f8
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp - 0x14]
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0
push 1
push 0
lea esi, [eax + eax + 2]
push edx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4033f6
mov edi, dword [ebp - 0x10]
cmp esi, edi
jbe 0x403377
mov edi, esi
push edi
call fcn.004d4853
push edi
mov ebx, eax
push 0
push ebx
call fcn.004da450
mov eax, dword [ebp + 8]
push esi
push eax
push edi
push ebx
call fcn.004d6336
add esp, 0x20
test eax, eax
jne 0x4033e8
mov edx, dword [ebp - 0x14]
push edi
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push 1
push eax
push edx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x4033e8
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 0xc]
mov esi, edi
mov dword [ebp - 0x1c], eax
call fcn.00402e60
xor esi, esi
cmp dword [ebp - 0x1c], esi
jbe 0x4033e8
movzx ecx, byte [esi + ebx]
push ecx
push str._02X
call fcn.00403510
inc esi
add esp, 8
cmp esi, dword [ebp - 0x1c]
jb 0x4033d0
push ebx
call fcn.004d632b
mov esi, dword [ebp - 0x18]
add esp, 4
jmp 0x4033f8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40341e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403440
Capabilities:
Encrypt data using des via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x403479
mov eax, dword [esi]
push edi
push 0
push 0
push 0x8004
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov cl, 0x33
mov dword [ebp - 0x2c], 0x13f342d
mov dword [ebp - 0x28], 0x6778c27e
mov dword [ebp - 0x24], 0xc80c1460
mov dword [ebp - 0x20], 0x1df8b054
mov dword [ebp - 0x1c], 0x7533fb4d
mov dword [ebp - 0x18], 0x14dc259e
mov word [ebp - 0x14], 0x36c2
mov byte [ebp - 0x12], cl
mov dword [ebp - 0x11], 0x98bb3bfd
mov dword [ebp - 0xd], 0xfdd52623
mov dword [ebp - 9], 0x882fdb03
mov byte [ebp - 5], 0xf6
test eax, eax
je 0x4034f4
mov edx, dword [edi]
push 0
push 0x28
lea ecx, [ebp - 0x2c]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4034f4
mov eax, dword [edi]
mov ecx, dword [esi]
push ebx
push 0
push eax
push 0x6601
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
Function at 0x404a20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
test edi, edi
jle 0x404a67
push ebx
lea ebx, [ebx]
mov eax, dword [ebp + 8]
mov dx, word [eax + 0x14]
add dx, cx
movzx eax, dx
cwde
cdq
mov ebx, 0xb1
idiv ebx
inc ecx
imul edx, edx, 0x7f55
lea eax, [edx + eax*2]
movzx eax, ax
mov edx, eax
sar edx, 8
xor dl, byte [ecx + esi - 1]
xor dl, al
mov byte [ecx + esi - 1], dl
cmp ecx, edi
jl 0x404a30
pop ebx
pop ebp
ret 4