joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022c2
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x403f18
call fcn.0040281c
push 1
call fcn.00402599
pop ecx
test al, al
jne 0x402179
push 7
call fcn.00402a30
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00402564
mov byte [ebp - 0x24], al
mov eax, dword [0x405338]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x402172
test eax, eax
jne 0x4021e3
mov dword [0x405338], ecx
push 0x4032a4
push 0x40328c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x4021c6
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4022bc
push 0x403288
push 0x403274
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x405338], 2
jmp 0x4021e8
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00402706
pop ecx
call fcn.00402a24
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x402218
push esi
call fcn.0040267c
pop ecx
test al, al
je 0x402218
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.004027cc
call esi
call fcn.00402a2a
mov esi, eax
cmp dword [esi], edi
je 0x402236
push esi
call fcn.0040267c
pop ecx
test al, al
je 0x402236
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call fcn.00402b46
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_wide_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00402b79
test al, al
jne 0x402261
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x40226a
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00402723
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4022bc
call fcn.00402861
ret
call fcn.0040200b
jmp 0x40215a

Function at 0xd4c930
Capabilities:
Encode data using xor

Disassembly:
jmp 0xd4c93a
pushal
call 0xd4c940
pop ebp
sub ebp, 0x10
sub ebp, 0x94c930
jmp 0xd4c956
mov eax, 0x94c930
add eax, ebp
add eax, 0x4c
mov ecx, 0x5ca
mov edx, 0x1c24dec
xor byte [eax], dl
inc eax
dec ecx
jne 0xd4c96d
jmp 0xd4c980
and dword [bx + 0x65], esp
shr ah, 1
in al, dx
in al, dx
insd dword es:[edi], dx
sub eax, 0xececec14
out dx, eax
and dword [edx + ebp*8 - 0x14], edx
in al, dx
in al, dx
push esi
invalid
Function at 0x10007c1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
pushal
call 0x10007c2e
pop dword [ebp - 0x4c]
mov eax, 0x10007c2e
sub dword [ebp - 0x4c], eax
mov dword [ebp - 0x5c], 0xc020f862
sub dword [ebp - 0x5c], 0x71ceb317
mov dword [ebp - 0x58], 0x961351e0
add dword [ebp - 0x58], 0x9c1ffa65
mov dword [ebp - 0x54], 0x409cf38e
add dword [ebp - 0x54], 0xbaf50a0
mov dword [ebp - 0x50], 0x9a14314c
sub dword [ebp - 0x50], 0x9a14314c
lea eax, [ebp - 0x5c]
push eax
mov eax, 0x8b6d60eb
add eax, 0x84931f69
add eax, dword [ebp - 0x4c]
call dword [eax]
mov dword [ebp - 0x5c], 0x4e0b40f0
sub dword [ebp - 0x5c], 0xd998d79a
mov dword [ebp - 0x58], 0xca16e481
add dword [ebp - 0x58], 0x77557cf4
mov dword [ebp - 0x54], 0xa50b1d7
sub dword [ebp - 0x54], 0xa6e1456b
mov dword [ebp - 0x50], 0xb568daad
add dword [ebp - 0x50], 0x4a972553
lea ebx, [ebp - 0x5c]
push ebx
push eax
mov eax, 0x7e33fb39
add eax, 0x91cc8517
add eax, dword [ebp - 0x4c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ce6e
push 0
call eax
mov ecx, 0x1759b800
sub ecx, 0x17595710
mov edi, eax
mov ebx, 0x1a8809b5
sub ebx, 0xa870fb5
add ebx, dword [ebp - 0x4c]
mov esi, 0x45a9fc2d
add dword [ebp - 0x44], ecx
mov edx, dword [ebx]
xor dword [ebp - 4], 0x4883ac66
sub edx, esi
add dword [ebp - 0x3c], 0xc723eb4a
mov dword [edi], edx
xor dword [ebp - 0x14], 0xf776373b
add edi, 4
add ebx, 0x93170cb
add ebx, 0xf6ce8f39
loop 0x10007d45
add eax, 0xb49487b0
add eax, 0x4b6ceee3
mov ebx, eax
add eax, 5
mov ecx, 0xfbf66133
add ecx, 0x14099ecd
add ecx, dword [ebp - 0x4c]
call ebx
leave
ret
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x42a1a4
Capabilities:
Encode data using xor

Disassembly:
stc
adc eax, 0xddf959b9
into
and edx, ebx
outsb dx, byte [esi]
das
imul ecx, dword [edi], 0x30e078e9
jbe 0x42a1c7
femms
ror byte [ebx - 0x36b78b4e], cl
mov ecx, 0x2ee037c7
int3
and dh, byte [ecx - 0x64490388]
js 0x42a1a2
mov dh, 0x9b
pop esp
dec eax
add byte [esi + 0x6c525278], 0xb3
jbe 0x42a174
dec ebp
add dl, dl
push eax
shr bl, 0x9d
sahf
inc ebp
stc
push 0xffffffffffffffac
cmp al, bl
movsd dword es:[edi], dword [esi]
xchg edx, eax
lahf
xchg dword [edx + edi*4 - 0x3909ec2b], edi
ror dword [edx + eax*4], 1
in al, dx
adc dword [0x678c4ec4], ebx
or al, 0x3c
mov eax, dword [0x832bacf7]
jb 0x42a1f7
mov esp, 0xf613d5ba
invalid
pop es
arpl word [eax], cx
test al, 0x19
je 0x42a1ef
or byte [eax], bl
xchg byte [ecx - 0x5281a404], al
shr byte [ebp - 0x64e341d0], 0xd2
fbstp tbyte [esi]
test byte [eax + ecx*8 - 0x5f], 7
test byte ss:[eax + ecx*8 - 0x5f], 7
jnp 0x42a256
push eax
add cl, dh
jbe 0x42a1c4
inc ecx
test al, 0x66
mov edi, 0x6b233e66
imul edi, edi, 0x7ef2af19
lodsb al, byte [esi]
ljmp 0x7cfa
fidivr dword [esi]
mov dh, byte [esi + edx - 1]
sub cl, bh
dec ebp
xor al, 0x88
cld
cmp al, ch
cwde
jecxz 0x42a258
mov word [eax], ds
clc
push edx
pop ecx
pop ebp
invalid

Function at 0x5bf4a4
Capabilities:
Encode data using xor

Disassembly:
add byte [ebx], al
insd dword es:[edi], dx
test byte [eax - 0x4748f193], dl
out 0xb8, al
out dx, eax
xor dword [esi], esi
adc al, 0xb9
in eax, dx
pop ds
dec ebp
popfd
outsd dx, dword [esi]
jns 0x5bf470
cld
pop ebx
cmp dword [esi - 0x19], ebx
loope 0x5bf4f7
hlt
sbb eax, ebx
adc ah, byte [ebx + 0x189dd49]
xchg ebp, eax
adc cl, byte [ebp + ebx - 0x71266005]
jge 0x5bf470
mov dword [ebp - 0x35ad0958], 0xe672cabf
push 0xacde423f
out 0x16, al
push 0x493b5de5
lds esi, [edx + 0x78]
push es
sbb byte [ecx - 0x38], 0xa1
aam 0xec
mov eax, 0xd296c82e
invalid
std
pop edi
cmc
sub ah, ah
add byte [ebx + 0x17], cl
and al, 0x37
sbb al, 0xca
invalid
pop ss
mov edx, 0x19d5c5f
jmp 0x5bf53d
dec ecx
call 0x808ed5c7
jl 0x5bf545
mov bh, 9
out dx, eax
lahf
in al, dx
jecxz 0x5bf4df
add byte [eax + ecx*2 - 0x64], 0xfc
fiadd word [esi - 0x517172f2]
stc
cmpsb byte [esi], byte es:[edi]
xchg edi, eax
aas
mov gs, word [esi - 0xd685907]
aas
pop edi
push ecx
insb byte es:[edi], dx
and eax, dword [0xf7482e7f]
xchg ecx, eax
pop eax
out 0xfc, al
dec eax
jge 0x5bf4e2
in eax, dx
xchg ecx, eax
enter 0xffffffffffffa4a5, 0x77
jns 0x5bf525
sub dword [esi + 0x3a20aa88], eax
pop ds
sbb byte [esi + 0x62a06d91], dl
rcl byte [ebx]
cmp edi, dword [edx - 0x5ee59e7a]
ret

Function at 0x60ec54
Capabilities:
Encode data using xor

Disassembly:
sti
dec esp
scasb al, byte es:[edi]
dec ecx
or dword [ebp + 0x11a996f6], eax
les eax, [ebx + 0x616c7220]
lodsd eax, dword [esi]
mov word gs:[eax], ss
mov byte [edi], bl
mov dl, 0xd7
stosd dword es:[edi], eax
pop edi
push ecx
pop esp
pop ss
js 0x60ece2
jmp [ecx + eax]
xchg edx, eax
daa
in eax, 0x47
mov ss, word [edx]
mov dh, bh
or byte ss:[edi - 0x19], cl
mov edi, 0x9d034716
pop es
outsb dx, byte [esi]
inc ebx
invalid
Function at 0x63ff84
Capabilities:
Packed with generic packer

Disassembly:
xor eax, 0x6ef7bb47
add byte [edi - 0x46], bl
imul edx, dword [esi - 0x41], 0xa39f8c1b
out 0x6f, al
or al, 0x62
fnstenv [ebx]
cmpsb byte [esi], byte es:[edi]
mov dh, 0xbb
loope 0x63ffda
clc
dec edi
add ch, byte [ebx - 0x63]
mov esp, 0x67e96f2
iretd
cmp al, 0x5a
lcall 0xd396, 0x16879424
bound edx, qword [edx]
jge 0x63ffef
dec ebx
mov es, ecx
add eax, 0x12f19717
rol dword [0x12f19717], 0xf8
clc
ja 0x63ffe9
mov eax, dword [0xc3552d4f]
inc ecx
push ds
mov dl, 0x2a
clc
or al, 0xc7
cmp al, 0xb5
pushfd
lds ecx, [ebp - 0x502a420b]
invalid

Function at 0x640014
Capabilities:
Packed with generic packer

Disassembly:
jle 0x63ffae
sti
lcall 0xaa72, 0xf24b368a
iretd
outsd dx, dword [esi]
mov gs, esp
xchg ebx, eax
cld
jle 0x63ffa6
pop ecx
mov bh, 0x88
xlatb
xor ebx, ebx
sal dword [edi + 0x51], 0x40
mov byte [esi + 0x41f8344f], bl
lds esp, [edi + 0x69]
aaa
mov esp, 0x3614c252
in al, 0x2d
or byte [edi + 0xa], ah
js 0x63ffd7
mov byte [0x6508b10e], al
inc esi
nop
push ds
push ebp
cmc
cmp ebp, esi
pop ebx
inc byte [edi + 0x672af232]
sahf
sbb eax, 0x9372d37f
and bl, bl
cmc
invalid
Function at 0x40566c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jbe 0x405699
test cl, 7
je 0x405699
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4315a0]
dec esi
inc ecx
jmp 0x40567a
cmp esi, 8
jb 0x40573c
mov edx, esi
shr edx, 3
mov dword [ebp + 8], edx
push ebx
mov edx, dword [ecx + 4]
xor eax, dword [ecx]
mov ebx, edx
shr ebx, 0x10
movzx edi, bl
mov edi, dword [edi*4 + 0x4319a0]
mov ebx, edx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4315a0]
mov ebx, edx
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x431da0]
mov ebx, eax
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x4325a0]
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
xor edi, dword [ebx*4 + 0x4329a0]
mov ebx, eax
shr ebx, 8
movzx ebx, bl
xor edi, dword [ebx*4 + 0x432da0]
movzx edx, dl
xor edi, dword [edx*4 + 0x4321a0]
movzx eax, al
xor edi, dword [eax*4 + 0x4331a0]
sub esi, 8
add ecx, 8
dec dword [ebp + 8]
mov eax, edi
jne 0x4056ab
pop ebx
jmp 0x40573c
movzx edx, byte [ecx]
movzx edi, al
xor edx, edi
shr eax, 8
xor eax, dword [edx*4 + 0x4315a0]
dec esi
inc ecx
test esi, esi
ja 0x405728
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4059fd
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
push ebx
push esi
mov esi, dword [ebp + 0xc]
push 0x40
pop ebx
cmp esi, ebx
jbe 0x405a47
lea eax, [ebp - 0x1d0]
push eax
call fcn.004106f4
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1d0]
push eax
call fcn.004109f6
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x1d0]
push eax
call fcn.00410a6f
lea eax, [ebp - 0x80]
push 0x20
mov dword [ebp + 8], eax
pop esi
xor ecx, ecx
push edi
test esi, esi
jbe 0x405a67
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x36
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405a56
cmp esi, ebx
jae 0x405a7f
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x36
push eax
call fcn.0041a8a0
add esp, 0xc
lea eax, [ebp - 0xf0]
push eax
call fcn.004106f4
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.004109f6
push dword [ebp + 0x14]
lea eax, [ebp - 0xf0]
push dword [ebp + 0x10]
push eax
call fcn.004109f6
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0xf0]
push eax
call fcn.00410a6f
lea eax, [ebp - 0x160]
push eax
call fcn.004106f4
xor ecx, ecx
test esi, esi
jbe 0x405ae9
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x40]
sub edi, eax
lea eax, [ebp + ecx - 0x40]
mov dl, byte [edi + eax]
xor dl, 0x5c
inc ecx
mov byte [eax], dl
cmp ecx, esi
jb 0x405ad8
pop edi
cmp esi, ebx
jae 0x405b02
mov ecx, ebx
sub ecx, esi
push ecx
lea eax, [ebp + esi - 0x40]
push 0x5c
push eax
call fcn.0041a8a0
add esp, 0xc
push ebx
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004109f6
push 0x20
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.004109f6
push dword [ebp + 0x18]
lea eax, [ebp - 0x160]
push eax
call fcn.00410a6f
pop esi
pop ebx
leave
ret 0x14
Function at 0x405b3a
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x58]
sub esp, 0xbc
push esi
mov esi, dword [ebp + 0x6c]
push edi
push 0x40
pop eax
cmp esi, eax
jae 0x405b53
mov eax, esi
push eax
push dword [ebp + 0x68]
lea eax, [ebp - 0x44]
push eax
call fcn.0041c310
add esp, 0xc
lea eax, [ebp + 0x20]
push eax
mov byte [ebp + esi - 0x44], 0
mov byte [ebp + esi - 0x43], 0
mov byte [ebp + esi - 0x42], 0
mov byte [ebp + esi - 0x41], 1
add esi, 4
push esi
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004059fd
push 0x20
pop esi
push esi
lea eax, [ebp + 0x20]
push eax
lea eax, [ebp]
push eax
call fcn.0041c310
mov eax, dword [ebp + 0x7c]
add esp, 0xc
dec eax
mov dword [ebp + 0x4c], eax
push 0x10
pop eax
mov dword [ebp + 0x50], eax
mov dword [ebp + 0x54], eax
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x44], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x48], eax
xor edi, edi
mov eax, dword [ebp + edi + 0x4c]
test eax, eax
jbe 0x405c0a
mov dword [ebp + 0x6c], eax
lea eax, [ebp - 0x64]
push eax
push esi
lea eax, [ebp + 0x20]
push eax
push dword [ebp + 0x64]
push dword [ebp + 0x60]
call fcn.004059fd
push esi
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp + 0x20]
push eax
call fcn.0041c310
add esp, 0xc
xor eax, eax
mov cl, byte [ebp + eax + 0x20]
xor byte [ebp + eax], cl
inc eax
cmp eax, esi
jb 0x405bf8
dec dword [ebp + 0x6c]
jne 0x405bd1
push esi
lea eax, [ebp]
push eax
push dword [ebp + edi + 0x40]
call fcn.0041c310
add edi, 4
add esp, 0xc
cmp edi, 0xc
jb 0x405bc6
push 0x44
lea eax, [ebp - 0x44]
push eax
call fcn.0040cfd9
push esi
lea eax, [ebp]
push eax
call fcn.0040cfd9
push esi
lea eax, [ebp + 0x20]
push eax
call fcn.0040cfd9
push esi
lea eax, [ebp - 0x64]
push eax
call fcn.0040cfd9
pop edi
pop esi
add ebp, 0x58
leave
ret 0x20
Function at 0x405c55
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
cmp dword [ebp + 0x1c], 0x18
push edi
mov edi, ecx
mov dword [ebp - 8], edi
ja 0x405e0f
and dword [ebp - 4], 0
push ebx
push esi
lea ebx, [edi + 0x4b4]
mov eax, dword [ebp + 0x1c]
lea esi, [ebx + 0x102]
cmp dword [esi + 0x32], eax
jne 0x405cac
push dword [ebp + 0xc]
mov ecx, ebx
call fcn.0040d0b4
test al, al
je 0x405cac
push 0x10
push dword [ebp + 0x14]
push esi
call fcn.0041ac84
add esp, 0xc
test eax, eax
je 0x405e14
inc dword [ebp - 4]
add ebx, 0x178
cmp dword [ebp - 4], 4
jb 0x405c7a
mov esi, 0x200
push esi
lea eax, [ebp - 0x268]
push eax
push dword [ebp + 0x10]
call fcn.00411c6f
mov ecx, dword [ebp + 0x1c]
xor eax, eax
inc eax
shl eax, cl
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x48]
push eax
push 0x10
push dword [ebp + 0x14]
lea eax, [ebp - 0x268]
push eax
call fcn.0041aae0
pop ecx
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.00405b3a
push esi
lea eax, [ebp - 0x268]
push eax
call fcn.0040cfd9
mov esi, dword [ebp + 0xc]
lea eax, [edi + 0xa94]
mov ecx, dword [eax]
mov edx, ecx
and edx, 3
imul edx, edx, 0x178
lea ebx, [edx + edi + 0x4b4]
inc ecx
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
push 0x40
pop ecx
mov dword [ebx + 0x134], eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push 0x10
push dword [ebp + 0x14]
lea eax, [ebx + 0x102]
push eax
movsw word es:[edi], word [esi]
call fcn.0041c310
push 0x20
pop esi
push esi
lea eax, [ebp - 0x48]
push eax
lea edi, [ebx + 0x112]
push edi
call fcn.0041c310
push esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebx + 0x138]
push eax
call fcn.0041c310
push esi
lea eax, [ebp - 0x68]
push eax
add ebx, 0x158
push ebx
call fcn.0041c310
add esp, 0x30
push 0
push 1
push esi
push edi
call fcn.0040cf2b
mov edi, dword [ebp - 8]
cmp dword [ebp + 0x20], 0
je 0x405db1
push esi
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0x20]
call fcn.0041c310
add esp, 0xc
mov ebx, dword [ebp + 0x24]
test ebx, ebx
je 0x405de3
push 8
push 0
push ebx
call fcn.0041a8a0
add esp, 0xc
xor ecx, ecx
mov dl, byte [ebp + ecx - 0x28]
mov eax, ecx
and eax, 7
add eax, ebx
xor byte [eax], dl
inc ecx
cmp ecx, esi
jb 0x405dc7
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.0040cfd9
cmp dword [ebp + 0x18], 0
je 0x405e03
push dword [ebp + 0x18]
lea eax, [ebp - 0x48]
push 0x100
push eax
push dword [ebp + 8]
lea ecx, [edi + 0xa9c]
call fcn.0040ca88
push esi
lea eax, [ebp - 0x48]
push eax
call fcn.0040cfd9
pop esi
pop ebx
pop edi
leave
ret 0x20
push 0
push 0
push 0x20
pop esi
lea eax, [ebx + 0x112]
push esi
push eax
call fcn.0040cf2b
push esi
lea eax, [ebx + 0x112]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0041c310
add esp, 0xc
push 0
push 1
push esi
lea eax, [ebx + 0x112]
push eax
call fcn.0040cf2b
push esi
lea eax, [ebx + 0x138]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0041c310
push esi
add ebx, 0x158
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0041c310
add esp, 0x18
jmp 0x405d9b
Function at 0x405f1f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
cmp dword [esi], 2
jne 0x405f6b
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp + 8]
push eax
push 0x20
push dword [ebp + 0xc]
call fcn.004059fd
xor edx, edx
mov dword [esi + 4], edx
xor eax, eax
push ebx
movzx ebx, byte [ebp + eax - 0x20]
mov ecx, eax
and ecx, 3
shl ecx, 3
shl ebx, cl
xor edx, ebx
inc eax
cmp eax, 0x20
jb 0x405f50
mov dword [esi + 4], edx
pop ebx
cmp dword [esi], 3
jne 0x405f93
lea eax, [ebp - 0x20]
push eax
push 0x20
add esi, 4
push esi
push 0x20
push dword [ebp + 0xc]
call fcn.004059fd
push 0x20
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.0041c310
add esp, 0xc
pop esi
leave
ret 8
Function at 0x408524
Capabilities:
Move file

Disassembly:
mov eax, 0x429773
call fcn.0041a564
mov eax, 0x5028
call fcn.0041ab70
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, 0x800
push esi
lea eax, [ebp - 0x5034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x4086e1
cmp eax, esi
jae 0x4086e1
push esi
lea eax, [ebp - 0x4034]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x4086e1
cmp eax, esi
jae 0x4086e1
lea eax, [ebp - 0x5034]
push eax
call fcn.0040a62d
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x4034]
push eax
call fcn.0040a62d
mov edi, eax
cmp word [edi], 0
je 0x4086e1
push edi
push dword [ebp - 0x10]
call fcn.00411ee8
test eax, eax
je 0x4086e1
push edi
push ebx
call fcn.0040a62d
push eax
call fcn.00411ee8
test eax, eax
jne 0x4086e1
mov word [ebp - 0x1010], ax
xor edi, edi
cmp word [ebp - 0x1010], 0
jne 0x40863d
push esi
push ebx
lea eax, [ebp - 0x1010]
push eax
call fcn.00410bf3
push edi
push str.rtmp_d
push esi
lea eax, [ebp - 0x1010]
push eax
call fcn.0040a62d
push eax
call fcn.0040a611
add esp, 0x10
lea eax, [ebp - 0x1010]
push eax
call fcn.004092db
test al, al
je 0x408624
xor eax, eax
mov word [ebp - 0x1010], ax
add edi, 0x7b
cmp edi, 0x2710
jl 0x4085d7
cmp word [ebp - 0x1010], 0
je 0x4086e1
push esi
push ebx
lea eax, [ebp - 0x3034]
push eax
call fcn.00410bf3
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x3034]
push eax
call fcn.0040a797
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x1010]
push eax
lea eax, [ebp - 0x3034]
push eax
call esi
test eax, eax
je 0x4086e1
lea ecx, [ebp - 0x2034]
call fcn.004087bc
push dword [ebp + 8]
and dword [ebp - 4], 0
xor bl, bl
call fcn.004092db
test al, al
jne 0x4086a4
push 0x12
push dword [ebp + 8]
lea ecx, [ebp - 0x2034]
call fcn.00408959
mov bl, al
lea eax, [ebp - 0x3034]
push eax
lea eax, [ebp - 0x1010]
push eax
call esi
test bl, bl
je 0x4086ce
lea ecx, [ebp - 0x2034]
call fcn.00408a68
lea ecx, [ebp - 0x2034]
call fcn.00408ab6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2034]
call fcn.00408cb3
mov al, 1
jmp 0x4086e3
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4090c3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041ab70
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call esi
test eax, eax
setne bl
test bl, bl
jne 0x409112
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.0040a412
test al, al
je 0x409112
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
setne bl
pop esi
mov al, bl
pop ebx
leave
ret 8

Function at 0x4092ff
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.0041ab70
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0040a0c0
movzx eax, word [eax]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp ax, 0x2e
je 0x409335
cmp ax, 0x20
je 0x409335
push 0
push edi
call esi
test eax, eax
jne 0x409364
push edi
call fcn.004092db
test al, al
jne 0x409377
push 0x800
lea eax, [ebp - 0x1000]
push eax
push edi
call fcn.0040a412
test al, al
je 0x409377
push 0
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x409377
cmp byte [ebp + 0xc], 0
je 0x409373
push dword [ebp + 0x10]
push edi
call fcn.004090c3
xor eax, eax
jmp 0x40938f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40938c
cmp eax, 3
je 0x40938c
xor eax, eax
inc eax
jmp 0x40938f
push 2
pop eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4094ac
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1250
call fcn.0041ab70
cmp dword [ebp + 8], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 0x250]
mov edi, 0x800
push eax
jne 0x40953b
push dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x409568
push edi
lea eax, [ebp - 0x1250]
push eax
push dword [ebp + 0xc]
call fcn.0040a412
test al, al
je 0x409514
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x1250]
push eax
call ebx
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x409568
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40952e
cmp eax, 3
je 0x40952e
cmp eax, 0x12
je 0x40952e
xor eax, eax
inc eax
jmp 0x409530
xor eax, eax
mov byte [esi + 0x1044], al
jmp 0x409633
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40955e
or dword [ebp + 8], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [esi + 0x1044], al
cmp dword [ebp + 8], 0xffffffff
je 0x409633
push edi
push dword [ebp + 0xc]
push esi
call fcn.00410bf3
push edi
lea eax, [ebp - 0x224]
push eax
push esi
call fcn.0040a797
push 1
push 0
push 0
push dword [ebp - 0x234]
call fcn.0041ac50
mov ecx, dword [ebp - 0x230]
xor edi, edi
add eax, ecx
mov dword [esi + 0x1000], eax
mov eax, dword [ebp - 0x250]
mov dword [esi + 0x1008], eax
mov eax, dword [ebp - 0x24c]
mov dword [esi + 0x1028], eax
mov eax, dword [ebp - 0x248]
mov dword [esi + 0x102c], eax
mov eax, dword [ebp - 0x244]
mov dword [esi + 0x1030], eax
mov eax, dword [ebp - 0x240]
mov dword [esi + 0x1034], eax
mov eax, dword [ebp - 0x23c]
mov dword [esi + 0x1038], eax
mov eax, dword [ebp - 0x238]
mov dword [esi + 0x103c], eax
lea eax, [ebp - 0x23c]
adc edx, edi
push eax
lea ecx, [esi + 0x1010]
mov dword [esi + 0x1004], edx
call fcn.004113bb
lea eax, [ebp - 0x24c]
push eax
lea ecx, [esi + 0x1018]
call fcn.004113bb
lea eax, [ebp - 0x244]
push eax
lea ecx, [esi + 0x1020]
call fcn.004113bb
and dword [esi + 0x1040], 0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0xc