joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bfa82
Capabilities:
Encrypt data using aes

Disassembly:
push esi
jmp 0x481547
push bp
mov word [esp], si
lea esp, [esp + 2]
jmp 0x4814a9
lea esp, [esp + 1]
lea esp, [esp + 3]
jmp 0x4bf682
jmp 0x4bf852
or ebp, eax
mov ebx, fs
add eax, dword [eax]
call fcn.004bf911
bound edi, qword [ecx + 0x3b88938f]
add ah, al
sbb edi, dword [eax - 0x4f]
fidiv word [ecx - 0x3a]
jno 0x481605
jae 0x48157f
call 0x4bf96a
add byte [esi + 0x15], dh
test eax, 0x1f4c220c
mov esi, 0xc2e449a5
pop ebp
cmp dword [eax], ebx
jnp 0x481595
iretd
call 0x4bf8a3
lahf
loop 0x4815b3
add byte [esi], ah
lahf
and edx, esi
mov bl, byte [edx - 0x33ed8c03]
dec edi
cld
test byte [eax], bh
sbb esi, dword [edx - 0x17]
dec edx
in al, 3
add byte [edx + edi*2], bl
mov ch, ch
fstp xword [edx + 0x1d]
arpl word [esp + ebp*4], bp
mov ch, 0x13
mov dword [eax], ebp
and eax, 0xdda3262a
add edi, dword [edx + 0x4a060495]
out 0xe0, eax
jmp 0x4bf828
jmp 0x4bf828
sahf
jl 0x481682
aam 0x84
jbe 0x481590
cmp dl, byte [0x2bfa80be]
jmp 0x4814bf
push ebp
rcl bp, 0xb
sub esp, 0xd
pop ebp
lea esp, [esp + 1]
jmp 0x4bf6c4
lea esp, [esp + 8]
mov ebp, esp
clc
pushfd
jmp 0x4bf6ae
cmp bl, 0x5a
call 0x4bf80a
cmp bl, 0x61
jmp 0x4bf949
lea esp, [esp + 4]
mov byte [ebp - 1], bl
cmp bl, 0x41
jb 0x4815e4
jae 0x4bf820
cmp bl, 0x30
jmp 0x4bf87d
pushal
pop dword [esp + 5]
inc esp
and al, 5
lea esp, [esp + 0x1c]
jbe 0x481580
ja 0x481555
jb 0x4815ac
jae 0x4bf8c6
cmp dword [edi + 0x79b94a2f], edi
adc dword [eax + 0x20906106], edx
lea ebx, [edi + ebp*2]
jbe 0x4bf8f7
mov word [esp], ax
lea esp, [esp + 4]
cmp bl, 0x7a
jmp 0x4bf868
cmp bl, 0x2f
pushfd
lea esp, [esp + 1]
lea esp, [esp + 3]
jmp 0x4bf8d5
cmp bl, 0x39
jbe 0x481580
ja 0x4815ac
jne 0x481527
je 0x481580
sti
jl 0x4bf8f6
jne 0x4bf86a
inc eax
leave
push 0xfb80228b
sub edx, dword [esi - 0x73]
and al, 4
je 0x481580
sbb al, 0xfc
cld
push dword [ebp - 0x4e]
jne 0x4bf8ad
cmp dl, 0x41
jmp 0x4bf930
cmp dl, 0x5a
jmp 0x4bf996
jb 0x481596
jae 0x4bf91a
rcr dword [edi - 0x31], 1
stosb byte es:[edi], al
pop ecx
movsd dword es:[edi], dword [esi]
cmp dword [eax + 0x73b04126], esi
sub eax, 0x1960f3c
jb 0x481555
call 0x4bf896
jbe 0x4815c2
ja 0x481596
lea esp, [esp + 4]
mov bl, byte [ecx + 1]
push ecx
jmp 0x4bf840
Function at 0x4bfeba
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
cmp cl, 0x2f
push 0x3e
jmp 0x4bf5db
lea esp, [esp + 4]
jne 0x4bf5f9
je 0x4bfea4

Function at 0x4c0688
Capabilities:
Encrypt data using aes

Disassembly:
cmp dword [ebp + 0xc], 3
call 0x4c028a
popfd
in al, dx
inc esi
xor dword [ebp - 0x56], esp
cmpsd dword [esi], dword es:[edi]
retf
push ebx
dec dx
lea edx, [esp - 0x39c13df2]
jmp 0x4c0404
invalid
je fcn.004c0161
invalid
pushal
call fcn.004c06b7
outsb dx, byte [esi]
add al, 0x97
pop es
bound edx, qword [ecx - 0x61f76da2]
stc
or byte [eax - 0x1c38abdb], bh
outsb dx, byte [esi]
cld
wait
jbe 0x4c016d
out dx, eax
adc dword [ebx], 0x76
test dword [edx - 0x3a], eax
jno 0x4c0222
jae 0x4c013d
adc dword [edi], ecx
mov dh, 0x50
add al, 0x66
sub ebp, ebp
in al, dx
push cs
push dword [esp + 4]
lea esp, [esp + 2]
jmp 0x4c02d1
lea esp, [esp + 0x10]
cmp dword [ebp + 0xc], 2
jb 0x481687
call fcn.004c0262
lea esp, [esp + 4]
jmp 0x4816ff
mov esi, eax
shr ecx, 0x12
pop edx
jmp 0x4c033b
shr esi, 0xc
call 0x4c037b
ljmp 0xfcc3
bts edx, edx
push 0x3f
mov dx, word [esp]
mov edx, esi
mov esi, 0x9cbc0b2c
jmp 0x4c032f
push edi
mov dh, 0x42
mov esi, dword [esp]
mov ecx, eax
jmp 0x4c0353
push sp
lea esp, [esp + 2]
push esi
lea edx, [ebp - 0x51]
clc
jmp 0x4c039e
mov dword [esp], ebx
jmp 0x4c0691
mov dword [esp], esi
lea esp, [esp + 8]
jae 0x4c018d
lea ecx, [edi - 0x1b93]
jmp 0x4c06cd
lea ecx, [edi - 4]
jmp 0x481845

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402782
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x46fb40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.004021d0
mov ebx, eax
cmp ebx, esi
je 0x4027f3
lea ecx, [ebp - 0x214]
call fcn.0040214d
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00438fdb
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x402811
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402782
cmp eax, esi
jne 0x402858
lea eax, [ebp - 0x220]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call ebx
test eax, eax
je 0x4027fb
lea ecx, [ebp - 0x214]
call fcn.0040214d
push dword [ebp - 0x218]
mov ecx, edi
call fcn.004020dd
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.0040214d
mov eax, esi
jmp 0x4027e2
Function at 0x407fe3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x453190
call fcn.00439089
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x40803c
call fcn.00401eee
mov esi, eax
jmp 0x408112
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x408055
call fcn.00401eee
jmp 0x408104
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
cmp eax, esi
je 0x40804b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x424], edi
cmp eax, edi
jae 0x40808f
mov esi, 0x8007000e
jmp 0x408106
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00402ed4
mov dword [ebp - 4], 1
jmp 0x4080bd
cmp dword [ebp - 0x418], esi
je 0x408088
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40804b
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.00403ded
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40812b
lea ecx, [ebp - 0x418]
call fcn.0040272b
mov eax, esi
call fcn.004390e5
ret 0x10

Function at 0x40bf20
Capabilities:
Create process memory minidump

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x14
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x40bfaa
cmp esi, 0xffffffff
je 0x40bfaa
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
neg eax
lea ecx, [ebp - 8]
push ecx
push 0
sbb eax, eax
lea edx, [ebp - 0x14]
and eax, edx
push eax
push 0x7ffff
push esi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x40bed0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40c150
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453716
mov eax, dword fs:[0]
push eax
sub esp, 0x260
mov eax, dword [0x46fb40]
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]
push eax
lea ecx, [ebp - 0x264]
call fcn.00408e6f
push str..dmp
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x26c]
push ecx
mov dword [ebp - 4], 0
call fcn.0040a070
add esp, 0xc
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x260]
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40c282
lea ecx, [ebp - 0x234]
push ecx
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x268]
push eax
call fcn.0040a070
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
push eax
call esi
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c21c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea ecx, [ebp - 0x260]
push ecx
push edi
call ebx
test eax, eax
je 0x40c282
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x268]
push ecx
call fcn.0040a070
mov eax, dword [eax]
add esp, 0xc
push eax
call esi
mov eax, dword [ebp - 0x268]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c274
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x260]
push ecx
push edi
call ebx
test eax, eax
jne 0x40c230
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x26c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c2af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x264]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c2d8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00438fdb
mov esp, ebp
pop ebp
ret
Function at 0x40cb60
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
lea eax, [ebp - 8]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
push eax
xor ebx, ebx
push ecx
mov dword [ebp - 8], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
cmp edi, ebx
jne 0x40cb8d
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
push esi
lea edx, [ebp - 1]
push edx
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 1], bl
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040cb00
mov esi, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
push esi
push edi
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40cbdd
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 0x45a3d8
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40cbf5
cmp esi, ebx
je 0x40cbea
push esi
call fcn.00438188
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 0xc]
movzx edx, word [eax + 0xa]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
movzx edx, word [eax + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
movzx edx, word [eax + 0xe]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edx
movzx edx, word [eax + 0xc]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax], edx
mov dword [ecx + 0x14], 1
cmp esi, ebx
je 0x40cc33
push esi
call fcn.00438188
add esp, 4
pop esi
pop edi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40cc50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4537d6
mov eax, dword fs:[0]
push eax
sub esp, 0x64c
mov eax, dword [0x46fb40]
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 + 0xc]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x64c], ecx
mov dword [ebp - 0x644], eax
mov eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x228]
push ecx
mov dword [ebp - 0x650], edx
lea edx, [ebp - 0x628]
push edx
mov dword [ebp - 0x648], eax
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x28]
push ecx
push esi
call fcn.0043b1f5
add esp, 0x14
lea edx, [ebp - 0x228]
push edx
lea ecx, [ebp - 0x654]
call fcn.00408e6f
mov eax, dword [eax]
push 0x45a3e4
push eax
call fcn.0043adc0
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x654]
sete byte [ebp - 0x63d]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd1d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp - 0x63d], 0
je 0x40ce18
xor edi, edi
mov dword [ebp - method.CLibLoader.virtual_0], vtable.CLibLoader.0
mov dword [ebp - 0x654], edi
test esi, esi
je 0x40cd4f
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x654], edi
mov dword [ebp - 4], 1
test edi, edi
je 0x40ce06
lea ecx, [ebp - 0x20]
push ecx
push edi
mov dword [ebp - 0x20], 0x476c6c44
mov dword [ebp - 0x1c], 0x65567465
mov dword [ebp - 0x18], 0x6f697372
mov word [ebp - 0x14], 0x6e
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ce06
xor ecx, ecx
lea edx, [ebp - 0x63c]
push edx
mov dword [ebp - 0x638], ecx
mov dword [ebp - 0x634], ecx
mov dword [ebp - 0x630], ecx
mov dword [ebp - 0x62c], ecx
mov dword [ebp - 0x63c], 0x14
call eax
test eax, eax
js 0x40ce06
mov eax, dword [ebp - 0x638]
mov ecx, dword [ebp - 0x644]
mov edx, dword [ebp - 0x634]
mov dword [ecx], eax
mov eax, dword [ebp - 0x64c]
mov ecx, dword [ebp - 0x630]
mov dword [eax], edx
mov edx, dword [ebp - 0x650]
mov eax, dword [ebp - 0x62c]
mov dword [edx], ecx
mov ecx, dword [ebp - 0x648]
mov dword [ecx], eax
push edi
mov dword [ebx + 0x14], 1
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x40ce3c
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40ce18
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 0x648]
mov eax, dword [ebp - 0x650]
mov ecx, dword [ebp - 0x64c]
push edx
mov edx, dword [ebp - 0x644]
push eax
push ecx
push edx
push esi
mov ecx, ebx
call fcn.0040cb60
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.00438fdb
mov esp, ebp
pop ebp
ret 0x14
Function at 0x40d0d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453858
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x46fb40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [0x46fa80]
mov edi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
mov eax, dword [edx + 0xc]
mov ecx, 0x46fa80
call eax
lea esi, [eax + 0x10]
mov dword [ebp - 0x1c], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
mov dword [ebp - 4], 0
jge 0x40d147
push 0x100
lea ecx, [ebp - 0x1c]
call fcn.00402f89
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
lea ecx, [ebp - 0x18]
push ecx
push edi
call fcn.0043b1f5
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0043ac16
add esp, 0x1c
test eax, eax
js 0x40d1fb
cmp eax, dword [esi - 8]
jg 0x40d1fb
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0040a150
mov eax, dword [eax]
add esp, 0xc
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d1e0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00438fdb
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00401074
int3
Function at 0x40d210
Capabilities:
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453898
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x46fb40]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x40d385
push 0x4712bc
lea ecx, [ebp - 0x24]
call fcn.0040d470
mov esi, dword [ebp + 8]
push esi
mov dword [ebp - 4], 0
call fcn.0040d0d0
add esp, 4
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40d376
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x40d2b5
push 0
push 0
push 0
push esi
call edi
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
push 0x45a498
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push esi
call edi
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x18]
push edx
call fcn.0040cf80
mov ecx, dword [ebp + 0xc]
push ecx
push eax
lea edx, [ebp - 0x14]
push edx
mov byte [ebp - 4], 1
call fcn.0040a070
push 0x45a490
push eax
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.0040a070
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x20
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d316
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40d339
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax - 0xc]
push 0
lea edx, [ebp - 0x1c]
push edx
add ecx, ecx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40d376
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d4a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ee90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
lea esi, [edx + 4]
mov eax, esi
push edi
mov edi, ecx
lea ecx, [ebp + 8]
cmp eax, edx
je 0x40eebb
lea ebx, [ebx]
mov bl, byte [eax - 1]
dec eax
mov byte [ecx], bl
inc ecx
cmp eax, edx
jne 0x40eeb0
mov edx, dword [ebp + 8]
lea eax, [esi + 4]
lea ecx, [ebp + 8]
cmp eax, esi
je 0x40eed3
mov bl, byte [eax - 1]
dec eax
mov byte [ecx], bl
inc ecx
cmp eax, esi
jne 0x40eec8
mov ecx, dword [edi + 4]
mov eax, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [edi + 8]
mov dword [ebp + 8], ecx
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + 0x10]
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], 8
mov edi, eax
shr edi, 5
add edi, dword [ebp + 8]
lea ecx, [esi + eax - 0x61c88647]
xor ecx, edi
mov edi, eax
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
add edx, ecx
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
lea ecx, [esi + edx - 0x61c88647]
xor ecx, edi
mov edi, edx
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
add eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp + 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
lea edi, [esi + eax + 0x3c6ef372]
xor ecx, edi
add edx, ecx
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp - 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
lea edi, [esi + edx + 0x3c6ef372]
xor ecx, edi
add eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp + 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
lea edi, [esi + eax - 0x255992d5]
xor ecx, edi
add edx, ecx
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp - 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
lea edi, [esi + edx - 0x255992d5]
xor ecx, edi
add eax, ecx
mov ecx, eax
shr ecx, 5
add ecx, dword [ebp + 8]
mov edi, eax
shl edi, 4
add edi, dword [ebp - 4]
xor ecx, edi
lea edi, [esi + eax + 0x78dde6e4]
xor ecx, edi
add edx, ecx
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp - 8]
mov edi, edx
shl edi, 4
add edi, dword [ebp - 0xc]
xor ecx, edi
lea edi, [esi + edx + 0x78dde6e4]
xor ecx, edi
add eax, ecx
add esi, 0x78dde6e4
dec dword [ebp - 0x10]
jne 0x40eef7
mov dword [ebp + 8], edx
lea ecx, [ebp + 0xc]
lea esi, [ebp - 0x10]
mov dl, byte [ecx - 1]
dec ecx
mov byte [esi], dl
lea edx, [ebp + 8]
inc esi
cmp ecx, edx
jne 0x40eff7
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
mov dword [esi], ecx
mov dword [ebp + 8], eax
lea eax, [ebp + 0xc]
lea ecx, [ebp + 0xc]
mov dl, byte [eax - 1]
dec eax
mov byte [ecx], dl
lea edx, [ebp + 8]
inc ecx
cmp eax, edx
jne 0x40f016
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8