joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4553a0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0xf40b4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4554a3
sub esp, 0x28
mov eax, dword [esp + 0x2c]
mov dword [eax + 0xe8], 0
mov dword [eax + 0xec], 0
mov ecx, dword [0xf40b4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov ecx, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x58]
mov dword [eax + 0xf0], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp], ecx
call fcn.00455ad0
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
lea ecx, [0x4b9ae0]
mov dword [esp], ecx
call fcn.0040b7a0
mov eax, dword [esp + 4]
mov dword [eax], 0xffffffff
mov ecx, dword [esp + 0x14]
inc ecx
mov dword [eax + 4], ecx
lea ecx, [0xf2511c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 2
mov dword [esp + 0xc], 2
call fcn.00454cb0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov byte [esp], 0xd
mov dword [esp + 4], 2
lea eax, [esp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov dword [esp + 0x10], 2
call fcn.00454100
add esp, 0x28
ret
call fcn.004617c0
jmp fcn.004553a0

Function at 0x4586c0
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0xf40b4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45875b
sub esp, 0x30
lea ecx, [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [0xf40b4c]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov dword [esp + 8], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.00462d67
lea ecx, [0x458770]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call fcn.004616d0
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call fcn.004617c0
jmp fcn.004586c0
Function at 0x45f650
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0xf40b4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45f7b0
sub esp, 0x1c
mov eax, dword [esp + 0x20]
test byte [eax], al
lea ecx, [eax + 0x18]
mov dword [esp + 0x18], ecx
nop
mov dword [esp], ecx
call fcn.00409600
mov eax, dword [esp + 0x20]
movzx ecx, byte [eax + 0x1c]
test cl, cl
jne 0x45f799
mov byte [eax + 0x1c], 1
inc dword [eax + 0x24]
inc dword [eax + 0x60]
mov dword [esp], eax
call fcn.00430f70
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0x72
mov byte [esp + 8], 0
call fcn.00431650
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], 0x77
mov byte [esp + 8], 0
call fcn.00431650
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x45f720
lea ecx, [eax + 0x28]
mov dword [esp], ecx
call fcn.00451da0
mov eax, dword [0xf40c80]
test eax, eax
jne 0x45f707
mov eax, dword [esp + 0x20]
jmp 0x45f715
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
call fcn.00462bc0
mov dword [edi], ecx
mov dword [eax + 0x3c], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x45f757
lea ecx, [eax + 0x64]
mov dword [esp], ecx
call fcn.00451da0
mov eax, dword [0xf40c80]
test eax, eax
jne 0x45f742
mov eax, dword [esp + 0x20]
jmp 0x45f750
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x78]
call fcn.00462bc0
mov dword [edi], ecx
mov dword [eax + 0x78], 0
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call fcn.00409800
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45f77d
mov dword [esp], eax
mov dword [esp + 4], 3
call fcn.00431430
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45f795
mov dword [esp], eax
mov dword [esp + 4], 3
call fcn.00431430
add esp, 0x1c
ret
lea eax, [0x4d608a]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call fcn.00436aa0
nop
call fcn.004617c0
jmp fcn.0045f650
Function at 0x462a70
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movd xmm0, dword [esp + 8]
pinsrw xmm0, ebx, 4
pshufhw xmm0, xmm0, 0
movdqa xmm1, xmm0
pxor xmm0, xmmword [0xf40d80]
aesenc xmm0, xmm0
cmp ebx, 0x10
jb 0x4611fb
je 0x46124e
cmp ebx, 0x20
jbe 0x461254
cmp ebx, 0x40
jbe 0x46129a
jmp 0x46133b
test ebx, ebx
je 0x461244
add eax, 0x10
test ax, 0xff0
je 0x461230
movdqu xmm1, xmmword [eax - 0x10]
add ebx, ebx
pand xmm1, xmmword [ebx*8 + 0xe97a60]
pxor xmm1, xmm0
aesenc xmm1, xmm1
aesenc xmm1, xmm1
aesenc xmm1, xmm1
movd dword [edx], xmm1
ret
movdqu xmm1, xmmword [eax + ebx - 0x20]
add ebx, ebx
pshufb xmm1, xmmword [ebx*8 + 0xe97b60]
jmp 0x461218
aesenc xmm0, xmm0
movd dword [edx], xmm0
ret
movdqu xmm1, xmmword [eax]
jmp 0x461218
pxor xmm1, xmmword [0xf40d90]
aesenc xmm1, xmm1
movdqu xmm2, xmmword [eax]
movdqu xmm3, xmmword [eax + ebx - 0x10]
pxor xmm2, xmm0
pxor xmm3, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
aesenc xmm2, xmm2
aesenc xmm3, xmm3
pxor xmm2, xmm3
movd dword [edx], xmm2
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xf40d90]
pxor xmm2, xmmword [0xf40da0]
pxor xmm3, xmmword [0xf40db0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax]
movdqu xmm5, xmmword [eax + 0x10]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
pxor xmm4, xmm0
pxor xmm5, xmm1
pxor xmm6, xmm2
pxor xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
movdqa xmm2, xmm1
movdqa xmm3, xmm1
pxor xmm1, xmmword [0xf40d90]
pxor xmm2, xmmword [0xf40da0]
pxor xmm3, xmmword [0xf40db0]
aesenc xmm1, xmm1
aesenc xmm2, xmm2
aesenc xmm3, xmm3
movdqu xmm4, xmmword [eax + ebx - 0x40]
movdqu xmm5, xmmword [eax + ebx - 0x30]
movdqu xmm6, xmmword [eax + ebx - 0x20]
movdqu xmm7, xmmword [eax + ebx - 0x10]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
dec ebx
shr ebx, 6
movdqu xmm0, xmmword [eax]
movdqu xmm1, xmmword [eax + 0x10]
movdqu xmm2, xmmword [eax + 0x20]
movdqu xmm3, xmmword [eax + 0x30]
aesenc xmm4, xmm0
aesenc xmm5, xmm1
aesenc xmm6, xmm2
aesenc xmm7, xmm3
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
add eax, 0x40
dec ebx
jne 0x46139a
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
aesenc xmm4, xmm4
aesenc xmm5, xmm5
aesenc xmm6, xmm6
aesenc xmm7, xmm7
pxor xmm4, xmm6
pxor xmm5, xmm7
pxor xmm4, xmm5
movd dword [edx], xmm4
ret
cmp byte [0xf40a26], 0
je 0x462a8a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp 0x4611c0
jmp fcn.00407f70
Function at 0x462a90
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov ecx, dword [0xf40b4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x402f8c
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
call fcn.00407f70
mov eax, dword [esp + 0xc]
mov dword [esp + 0x1c], eax
add esp, 0x10
ret
call fcn.004617c0
jmp 0x402f50
cmp byte [0xf40a26], 0
je 0x462aab
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp 0x4611c0
jmp 0x402f50

Function at 0x463900
Capabilities:
Allocate thread local storage

Disassembly:
mov ebp, esp
mov eax, dword [sym.imp.kernel32.dll_TlsAlloc]
call eax
mov esp, ebp
mov ecx, eax
cmp ecx, 0x40
jb 0x46391a
mov ecx, 0x14
jmp 0x463923
shl ecx, 2
add ecx, 0xe10
mov dword [0xf40b4c], ecx
ret
Function at 0x48c720
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0xf40b4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x48c90a
sub esp, 0x48
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 0xa]
mov edx, dword [0xf145dc]
movzx ebx, word [eax + 0xc]
movzx ebp, word [eax + 8]
movzx esi, word [eax + 2]
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], esi
mov dword [esp + 8], 1
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], edx
call fcn.00489410
lea edi, [esp + 0x34]
lea esi, [esp + 0x20]
call fcn.0046324e
lea edi, [esp]
lea esi, [esp + 0x34]
call fcn.0046324e
call fcn.004889e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x15180
adc ecx, 0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x93a80
call fcn.0045bc70
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 4]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, 0xc22e4507
mov ebp, edx
imul edx
lea eax, [ebp + edx]
sar eax, 0x10
sar ebp, 0x1f
sub eax, ebp
sub ecx, eax
test ecx, ecx
jge 0x48c7f7
add ecx, 7
movzx edx, word [ebx + 6]
lea ebp, [edx - 1]
cmp ebp, 4
jge 0x48c811
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*2]
lea ecx, [ecx + edx - 6]
mov edx, ecx
jmp 0x48c888
movzx eax, word [ebx + 2]
cmp eax, 2
jne 0x48c85e
mov edx, dword [esp + 0x4c]
test edx, 3
jne 0x48c85a
mov ebx, edx
sar edx, 0x1f
mov ebp, eax
mov eax, 0x51eb851f
mov esi, edx
imul ebx
mov edi, edx
sar edx, 5
sub edx, esi
imul edx, edx, 0x64
cmp ebx, edx
jne 0x48c853
sar edi, 7
sub edi, esi
imul edx, edi, 0x190
cmp ebx, edx
jne 0x48c860
mov ebx, 0x1d
jmp 0x48c87e
mov ebp, eax
jmp 0x48c860
mov ebp, eax
cmp ebp, 0xd
jae 0x48c8fd
lea eax, [ebp - 1]
lea edx, [0xf0d6e0]
mov ebx, dword [edx + ebp*4]
cmp eax, 0xd
jae 0x48c8f3
sub ebx, dword [edx + ebp*4 - 4]
lea edx, [ecx + 0x1d]
cmp ebx, edx
jge 0x48c888
lea edx, [ecx + 0x16]
mov ecx, dword [esp + 0x38]
test ecx, 0x80000000
je 0x48c8ba
mov ebx, dword [esp + 0x34]
shl ecx, 1
mov ebp, ebx
shl ebx, 1
shr ebp, 0x1f
or ebp, ecx
mov ecx, ebp
shl ebp, 1
shr ecx, 0x1f
shr ebx, 0x1f
or ebp, ebx
add ebp, 0xd7b17f80
adc ecx, 0xd
jmp 0x48c8c2
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
mov edx, eax
sar edx, 0x1f
mov ebx, 0x15180
mov esi, edx
mul ebx
imul ebx, esi, 0x15180
add edx, ebx
add eax, ebp
adc edx, ecx
add eax, 0x886e0900
adc edx, 0xfffffff1
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], eax
add esp, 0x48
ret
mov ecx, 0xd
call fcn.00462c20
mov eax, ebp
mov ecx, 0xd
call fcn.00462c20
nop
call fcn.004617c0
jmp fcn.0048c720
Function at 0x49e850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [0xf40b4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49e941
sub esp, 0x1c
mov ecx, dword [esp + 0x20]
test byte [ecx], al
mov edx, dword [esp + 0x24]
and edx, 0x7f
shl edx, 5
add ecx, edx
mov dword [esp + 0x18], ecx
xor eax, eax
jmp 0x49e88c
mov ebx, dword [esp + 0xc]
inc ebx
mov ecx, dword [esp + 0x18]
mov eax, ebx
cmp eax, 4
jge 0x49e8c5
mov dword [esp + 0xc], eax
lea edx, [ecx + eax*8]
mov dword [esp], edx
call fcn.00467090
mov eax, dword [esp + 0x24]
cmp dword [esp + 4], eax
sete cl
mov edx, dword [esp + 0x28]
cmp dword [esp + 8], edx
sete bl
and ebx, ecx
test bl, bl
je 0x49e881
mov byte [esp + 0x2c], 1
add esp, 0x1c
ret
xor eax, eax
mov edx, 0x84222325
jmp 0x49e8cf
inc eax
cmp eax, 4
jge 0x49e8e4
mov dword [esp + 0x14], eax
lea ebx, [ecx + eax*8]
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
xor esi, esi
jmp 0x49e93a
and edx, 3
lea eax, [ecx + edx*8]
mov dword [esp], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
call fcn.004670d0
mov byte [esp + 0x2c], 0
add esp, 0x1c
ret
mov edi, ebp
and edi, 0xff
xor edx, edi
shr ebp, 8
mov edi, ebx
shl edi, 0x18
mov dword [esp + 0x10], edi
mov eax, edx
mov edi, 0x1b3
mul edi
inc esi
mov edi, dword [esp + 0x10]
or ebp, edi
shr ebx, 8
mov edx, eax
mov eax, dword [esp + 0x14]
cmp esi, 8
jl 0x49e90b
jmp 0x49e8ce
call fcn.004617c0
jmp fcn.0049e850
Function at 0x4ae0b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov ecx, dword [0xf40b4c]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4ae2cb
sub esp, 0x70
mov dword [esp + 0x2a], 0
mov dword [esp + 0x2e], 0
mov dword [esp + 0x32], 0
mov dword [esp + 0x2a], 0x6e72656b
mov dword [esp + 0x2e], 0x32336c65
mov dword [esp + 0x32], 0x6c6c642e
mov dword [esp], 0
lea eax, [esp + 0x2a]
mov dword [esp + 4], eax
mov dword [esp + 8], 0xc
call fcn.0044e210
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x64], ecx
lea edx, [0x4c1760]
mov dword [esp], edx
call fcn.0040b7a0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x24]
mov dword [eax + 0x10], ecx
mov ecx, dword [0xf40c80]
test ecx, ecx
jne 0x4ae14c
mov ecx, dword [esp + 0x64]
jmp 0x4ae157
call fcn.00462bc0
mov ecx, dword [esp + 0x64]
mov dword [edi], ecx
mov dword [esp + 0x5c], eax
mov dword [eax + 0xc], ecx
mov dword [esp + 0x36], 0
lea edi, [esp + 0x38]
xor eax, eax
call fcn.00462d68
mov word [esp + 0x36], 0x6547
mov dword [esp + 0x38], 0x79685074
mov dword [esp + 0x3c], 0x61636973
mov dword [esp + 0x40], 0x49796c6c
mov dword [esp + 0x44], 0x6174736e
mov dword [esp + 0x48], 0x64656c6c
mov dword [esp + 0x4c], 0x74737953
mov dword [esp + 0x50], 0x654d6d65
mov dword [esp + 0x54], 0x79726f6d
mov dword [esp], 0
lea ecx, [esp + 0x36]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x22
call fcn.0044e210
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x60], ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0x20], edx
lea ebx, [0x4c3240]
mov dword [esp], ebx
call fcn.0040b7a0
mov ecx, dword [0xf40c80]
mov edx, dword [esp + 4]
test ecx, ecx
jne 0x4ae206
mov eax, dword [esp + 0x5c]
jmp 0x4ae211
call fcn.00462bc0
mov eax, dword [esp + 0x5c]
mov dword [edi], eax
mov dword [edx + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [edx + 0xc], eax
mov eax, dword [0xf40c80]
test eax, eax
jne 0x4ae22b
mov eax, dword [esp + 0x60]
jmp 0x4ae236
call fcn.00462bc0
mov eax, dword [esp + 0x60]
mov dword [edi], eax
mov dword [esp + 0x58], edx
mov dword [edx + 8], eax
lea eax, [0x4baee0]
mov dword [esp], eax
call fcn.0040b7a0
mov eax, dword [esp + 4]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x68], eax
lea ecx, [0x4b9360]
mov dword [esp], ecx
call fcn.0040b7a0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x68]
mov dword [eax], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], 1
mov dword [esp + 0xc], 1
call fcn.0047e720
mov eax, dword [esp + 0x6c]
mov ecx, dword [eax + 4]
mov edx, ecx
shr ecx, 0x14
shl edx, 0xc
mov ebx, dword [eax]
shr ebx, 0x14
or ebx, edx
mov dword [eax], ebx
mov dword [eax + 4], ecx
test ecx, ecx
sete al
cmp ebx, 4
setb cl
and eax, ecx
test al, al
je 0x4ae2c7
mov dword [esp], 0
call fcn.00492810
add esp, 0x70
ret
call fcn.004617c0
jmp fcn.004ae0b0
Function at 0x401106
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
mov al, byte [ebp - 0x64]
mov esp, ebp
pop ebp
ret

Function at 0x4018b1
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x4071f4
call sub.KERNEL32.DLL_GetCommandLineA
test eax, eax
je 0x4018de
xor edx, edx
mov dl, byte [eax]
cmp edx, 0x22
jne 0x4018de
inc eax
jmp 0x4018d9
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0x22
je 0x4018de
inc eax
cmp byte [eax], 0
jne 0x4018cf
test eax, eax
je 0x40194d
xor edx, edx
jmp 0x401909
xor ecx, ecx
mov cl, byte [eax + edx]
cmp ecx, 0x20
je 0x4018fa
xor ecx, ecx
mov cl, byte [eax + edx]
cmp ecx, 0x2f
jne 0x401908
add edx, eax
push edx
push ebx
call fcn.00405c23
add esp, 8
jmp 0x40190f
inc edx
cmp byte [eax + edx], 0
jne 0x4018e6
xor eax, eax
jmp 0x401947
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x2d
je 0x401927
xor ecx, ecx
mov cl, byte [ebx + eax]
cmp ecx, 0x2f
jne 0x401946
xor edx, edx
mov dl, byte [ebx + eax + 1]
cmp edx, 0x73
je 0x40193d
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x53
jne 0x401946
mov byte [0x406034], 1
jmp 0x40194d
inc eax
cmp byte [ebx + eax], 0
jne 0x401913
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40673c], eax
push 0x64
push dword [0x40673c]
call sub.USER32.dll_LoadIconA
mov dword [0x4072f8], eax
push 0x40608a
call sub.KERNEL32.DLL_LoadLibraryA
mov ebx, eax
push 0x104
push 0x406fec
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
call fcn.004019c7
cmp dword [0x406030], 0
jle 0x4019a2
push dword [0x40602c]
call fcn.00405997
pop ecx
push dword [0x4072f8]
call sub.GDI32.dll_DeleteObject
push ebx
call sub.KERNEL32.DLL_FreeLibrary
mov dword [0x406744], 2
push 0
call sub.KERNEL32.DLL_ExitProcess
pop ebx
pop ebp
ret
Function at 0x4019c7
Capabilities:
Create process on windows
Delete file
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc94
push ebx
mov ebx, 0x4070f0
push 0
push 0x401bd4
push 0
push 0x406097
push dword [0x40673c]
call sub.USER32.dll_DialogBoxParamA
cmp byte [ebx], 0
je 0x401bcf
cmp dword [0x406744], 0
jne 0x401bcf
cmp byte [0x4071f4], 0
je 0x401a36
xor eax, eax
mov al, byte [0x4071f4]
cmp eax, 0x20
je 0x401a28
push 0x4060a0
push ebx
call fcn.00405cd0
add esp, 8
push 0x4071f4
push ebx
call fcn.00405cd0
add esp, 8
push 0x3c
push 0
lea edx, [ebp - 0x40]
push edx
call fcn.00405b5c
add esp, 0xc
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x1c0
mov dword [ebp - 0x30], ebx
xor eax, eax
jmp 0x401a89
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
je 0x401a70
xor ecx, ecx
mov cl, byte [ebx + eax + 1]
cmp ecx, 0x2f
jne 0x401a88
xor edx, edx
mov dl, byte [ebx + eax]
cmp edx, 0x20
jne 0x401a7e
mov byte [ebx + eax], 0
lea ecx, [ebx + 1]
add eax, ecx
mov dword [ebp - 0x2c], eax
jmp 0x401a8f
inc eax
cmp byte [ebx + eax], 0
jne 0x401a5b
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x144]
push eax
push 0x104
push ebx
call sub.KERNEL32.DLL_GetFullPathNameA
test eax, eax
je 0x401ab2
lea edx, [ebp - 0x144]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x24], 1
lea ecx, [ebp - 0x40]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
jne 0x401ae2
mov dword [ebp - 0x30], ebx
lea edx, [ebp - 0x40]
push edx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
setne al
and eax, 1
test al, al
je 0x401bcf
cmp dword [0x406028], 0
je 0x401afd
push 0xffffffffffffffff
push dword [ebp - 8]
call sub.KERNEL32.DLL_WaitForSingleObject
push dword [ebp - 8]
call sub.KERNEL32.DLL_CloseHandle
cmp dword [0x406028], 0
je 0x401bc5
push 0x1b58
call sub.KERNEL32.DLL_Sleep
lea edx, [ebp - 0x34c]
push edx
push 0x104
call sub.KERNEL32.DLL_GetTempPathA
lea ecx, [ebp - 0x248]
push ecx
push 0x104
call sub.KERNEL32.DLL_GetCurrentDirectoryA
lea eax, [ebp - 0x34c]
push eax
call fcn.00405bc3
pop ecx
push eax
lea edx, [ebp - 0x248]
push edx
lea ecx, [ebp - 0x34c]
push ecx
call fcn.00405c94
add esp, 0xc
test eax, eax
jne 0x401bcf
push 0x4060a2
call sub.KERNEL32.DLL_SetCurrentDirectoryA
lea eax, [ebp - 0x248]
push eax
call fcn.00405bc3
pop ecx
mov byte [ebp + eax - 0x247], 0
push 0x1e
push 0
lea edx, [ebp - 0x36c]
push edx
call fcn.00405b5c
add esp, 0xc
mov dword [ebp - 0x368], 3
mov word [ebp - 0x35c], 0x14
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x364], ecx
lea eax, [ebp - 0x36c]
push eax
call sub.SHELL32.DLL_SHFileOperationA
jmp 0x401bcf
push 0x3e8
call sub.KERNEL32.DLL_Sleep
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401fe0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x40201c
mov ebx, esi
jmp 0x40200f
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x5c
jne 0x40200e
mov byte [ebx], 0
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
mov byte [ebx], 0x5c
inc ebx
cmp byte [ebx], 0
jne 0x401ff7
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
pop esi
pop ebx
pop ebp
ret
Function at 0x4024e8
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.00405a21
pop ecx
test eax, eax
jne 0x402509
mov eax, dword [ebp + 0xc]
push eax
push ebx
call sub.KERNEL32.DLL_SetFileAttributesA
xor eax, eax
pop ebx
pop ebp
ret
or eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x402510
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [ebp + 8]
add eax, 0x41
lea edx, [ebp - 0xc]
push eax
push 0x406720
push edx
call fcn.00405d60
add esp, 0xc
lea ecx, [ebp - 0xc]
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x402545
cmp eax, 5
je 0x402545
xor eax, eax
jmp 0x40254a
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x40261c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x407338]
push eax
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.DLL_SetFileAttributesA
pop ebp
ret

Function at 0x402684
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop ebp
ret
Function at 0x404f78
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx]
xor ecx, dword [0x40c15c]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 4]
xor edx, dword [0x40c160]
mov dword [ebp - 8], edx
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
mov edx, dword [ecx + 8]
mov ecx, dword [eax + 0xc]
xor ecx, dword [0x40c168]
xor edx, dword [0x40c164]
xor ebx, ebx
mov eax, ecx
mov esi, ecx
shr esi, 0x15
shl eax, 0xb
or eax, esi
mov esi, ebx
and esi, 3
add eax, edx
xor eax, dword [esi*4 + 0x40c15c]
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
movzx esi, byte [esi + 0x40c05c]
movzx edi, byte [edi + 0x40c05c]
shl edi, 8
or esi, edi
mov edi, eax
shr edi, 0x10
shr eax, 0x18
and edi, 0xff
and eax, 0xff
movzx edi, byte [edi + 0x40c05c]
movzx eax, byte [eax + 0x40c05c]
shl edi, 0x10
shl eax, 0x18
or esi, edi
or esi, eax
mov eax, edx
xor esi, dword [ebp - 4]
mov dword [ebp - 0xc], esi
mov esi, edx
shr esi, 0xf
shl eax, 0x11
or eax, esi
mov esi, ebx
and esi, 3
xor eax, ecx
inc ebx
add eax, dword [esi*4 + 0x40c15c]
mov edi, eax
mov esi, eax
shr edi, 8
and esi, 0xff
and edi, 0xff
movzx esi, byte [esi + 0x40c05c]
movzx edi, byte [edi + 0x40c05c]
shl edi, 8
or esi, edi
mov edi, eax
shr edi, 0x10
shr eax, 0x18
and edi, 0xff
and eax, 0xff
movzx edi, byte [edi + 0x40c05c]
movzx eax, byte [eax + 0x40c05c]
shl edi, 0x10
shl eax, 0x18
or esi, edi
or esi, eax
xor esi, dword [ebp - 8]
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
mov eax, esi
mov ecx, eax
mov edx, dword [ebp - 0xc]
cmp ebx, 0x20
jl 0x404fbe
mov eax, dword [ebp - 0x10]
xor edx, dword [0x40c15c]
mov dword [eax], edx
xor ecx, dword [0x40c160]
mov edx, dword [ebp - 0x10]
mov dword [edx + 4], ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, dword [0x40c164]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, dword [0x40c168]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 8]
push eax
call fcn.00405290
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret